Android CharArrayBuffer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android CharArrayBuffer class.

This code example shows how to use the following methods:
    } 
 
    private static class AudioFilesViewHolder { 
        public TextView separator;
        public TextView titleView;
        public CharArrayBuffer titleBuffer = new CharArrayBuffer(128);
        public TextView subtitleView;
        public StringBuilder subtitleBuffer = new StringBuilder();
    } 
 
    private static class AudioFilesAdapter extends CursorAdapter {
 
        /** 
         * State of ListView item that has never been determined. 
         */ 
        private static final int STATE_UNKNOWN = 0;
 
        /** 
         * State of a ListView item that is sectioned. A sectioned item must 
         * display the separator. 
6
CodeRank
This code example shows how to use the following methods:
    } 
 
    final static class ContactListItemCache { 
        public TextView nameView;
        public QuickContactBadge photoView;
        public CharArrayBuffer nameBuffer = new CharArrayBuffer(128);
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
        checkCharArrayBufferToString("test test test test test"); 
    } 
 
    /** Checks that copying a string into a {@link CharArrayBuffer} and back works correctly. */ 
    private void checkCharArrayBufferToString(String text) {
        CharArrayBuffer buffer = new CharArrayBuffer(20);
        FormatUtils.copyToCharArrayBuffer(text, buffer);
        assertEquals(text, FormatUtils.charArrayBufferToString(buffer));
    } 
 
    /** 
     * Checks that copying into the char array buffer copies the values correctly. 
     */ 
    private void checkCopyToCharArrayBuffer(CharArrayBuffer buffer, String value, int length) {
        FormatUtils.copyToCharArrayBuffer(value, buffer);
        assertEquals(length, buffer.sizeCopied);
        for (int index = 0; index < length; ++index) {
            assertEquals(value.charAt(index), buffer.data[index]);
        } 
    } 
5
CodeRank
This code example shows how to use the following methods:
         * State of a ListView item that is not sectioned and therefore does not 
         * display the separator. 
         */ 
        private static final int STATE_REGULAR_CELL = 2;
 
        private final CharArrayBuffer mBuffer = new CharArrayBuffer(128);
        private int[] mCellStates;
 
        public AudioFilesAdapter(Context context, Cursor cursor) {
            super(context, cursor);
            mCellStates = cursor == null ? null : new int[cursor.getCount()];
        } 
 
        @Override 
        public void changeCursor(Cursor cursor) {
            super.changeCursor(cursor);
            mCellStates = cursor == null ? null : new int[cursor.getCount()];
        } 
 
        @Override 
3
CodeRank
This code example shows how to use the following methods:
    public interface GroupCreator { 
        public void addGroup(int cursorPosition, int size, boolean expanded);
    } 
 
    /** Reusable char array buffer. */ 
    private CharArrayBuffer mBuffer1 = new CharArrayBuffer(128);
    /** Reusable char array buffer. */ 
    private CharArrayBuffer mBuffer2 = new CharArrayBuffer(128);
 
    /** The object on which the groups are created. */ 
    private final GroupCreator mGroupCreator;
 
    public CallLogGroupBuilder(GroupCreator groupCreator) {
        mGroupCreator = groupCreator;
    } 
 
    /** 
     * Finds all groups of adjacent entries in the call log which should be grouped together and 
     * calls {@link CallLogFragment.GroupCreator#addGroup(int, int, boolean)} on 
     * {@link #mGroupCreator} for each of them. 
4
CodeRank
This code example shows how to use the following methods:
/** 
 * Sets the content of the given text view, to contain the formatted display name, with a 
 * prefix if necessary. 
 */ 
public final class DisplayNameFormatter { 
    private final CharArrayBuffer mNameBuffer = new CharArrayBuffer(128);
    private final CharArrayBuffer mAlternateNameBuffer = new CharArrayBuffer(128);
    private final PrefixHighlighter mPrefixHighlighter;
 
    private TextWithHighlightingFactory mTextWithHighlightingFactory;
    private TextWithHighlighting mTextWithHighlighting;
    private CharSequence mUnknownNameText;
 
    public DisplayNameFormatter(PrefixHighlighter prefixHighlighter) {
        mPrefixHighlighter = prefixHighlighter;
    } 
 
    public CharArrayBuffer getNameBuffer() {
        return mNameBuffer;
    } 
4
CodeRank
This code example shows how to use the following methods:
 
	class ViewHolder { 
	    TextView title;
	    String bookId;
	    CrossFadeDrawable transition;
	    final CharArrayBuffer buffer = new CharArrayBuffer(64);
	    boolean queryCover;
	    String bookName;
	} 
} 
 
 
4
CodeRank
This code example shows how to use the following methods:
class BookViewHolder { 
	ImageView ivBookCover; 
	ImageView ivUpdateLogo; 
	TextView title; 
	String bookId; 
	final CharArrayBuffer buffer = new CharArrayBuffer(64); 
	String sortTitle; 
	public String localPath; 
	boolean needUpdate = false; 
} 
4
CodeRank
This code example shows how to use the following methods:
 
	class ViewHolder { 
	    TextView title;
	    String bookId;
	    CrossFadeDrawable transition;
	    final CharArrayBuffer buffer = new CharArrayBuffer(64);
	    boolean queryCover;
	    String bookName;
	} 
} 
 
 
4
CodeRank
This code example shows how to use the following methods:
    final class BlurtItem 
    { 
    	public TextView titleView;
    	public TextView detailView;
    	public int id=0;
    	public CharArrayBuffer title=new CharArrayBuffer(8);
    	public CharArrayBuffer detail = new CharArrayBuffer(12);
    } 
     
    final class BlurtAdapter extends ResourceCursorAdapter
    { 
    	private boolean isLoading=false;
    	public BlurtAdapter(Context ctx, int layout, Cursor cursor)
    	{ 
    		super(ctx,layout,cursor);
    	} 
    	 
		public void setLoading(boolean value)
		{ 
			isLoading=value;
3
CodeRank

Related Android CharArrayBuffer Questions & Answers:

See Code Examples for Android CharArrayBuffer Methods: