| /development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
| ContactablesLoaderCallbacks.java | 23 import android.database.Cursor; 34 public class ContactablesLoaderCallbacks implements LoaderManager.LoaderCallbacks<Cursor> { 47 public Loader<Cursor> onCreateLoader(int loaderIndex, Bundle args) { 80 public void onLoadFinished(Loader<Cursor> arg0, Cursor cursor) { 93 if (cursor.getCount() == 0) { 97 // Pulling the relevant value from the cursor requires knowing the column index to pull 100 int phoneColumnIndex = cursor.getColumnIndex(CommonDataKinds.Phone.NUMBER); 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS) [all...] |
| /development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/contacts/ |
| ContactsFragment.java | 25 import android.database.Cursor; 54 public class ContactsFragment extends Fragment implements LoaderManager.LoaderCallbacks<Cursor> { 119 public Loader<Cursor> onCreateLoader(int i, Bundle bundle) { 129 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { 131 if (cursor != null) { 132 final int totalCount = cursor.getCount(); 134 cursor.moveToFirst(); 135 String name = cursor [all...] |
| /device/google/accessory/arduino/USB_Host_Shield/ |
| Max_LCD.cpp | 49 // C = 0; Cursor off 141 // turn the display on with no cursor or blinking default 157 command(LCD_CLEARDISPLAY); // clear display, set cursor position to zero 163 command(LCD_RETURNHOME); // set cursor position to zero 187 // Turns the underline cursor on/off 192 void Max_LCD::cursor() { function in class:Max_LCD 198 // Turn on and off the blinking cursor 228 // This will 'right justify' text from the cursor 234 // This will 'left justify' text from the cursor
|
| /external/apache-http/src/org/apache/http/impl/cookie/ |
| BrowserCompatSpec.java | 136 ParserCursor cursor; local 139 cursor = new ParserCursor( 149 cursor = new ParserCursor(0, buffer.length()); 151 elems = new HeaderElement[] { parser.parseHeader(buffer, cursor) };
|
| /external/apache-http/src/org/apache/http/message/ |
| BasicHeaderValueParser.java | 112 ParserCursor cursor = new ParserCursor(0, value.length()); local 113 return parser.parseElements(buffer, cursor); 119 final ParserCursor cursor) { 124 if (cursor == null) { 125 throw new IllegalArgumentException("Parser cursor may not be null"); 129 while (!cursor.atEnd()) { 130 HeaderElement element = parseHeaderElement(buffer, cursor); 163 ParserCursor cursor = new ParserCursor(0, value.length()); local 164 return parser.parseHeaderElement(buffer, cursor); 170 final ParserCursor cursor) { 228 ParserCursor cursor = new ParserCursor(0, value.length()); local 298 ParserCursor cursor = new ParserCursor(0, value.length()); local [all...] |
| BasicLineParser.java | 127 ParserCursor cursor = new ParserCursor(0, value.length()); local 128 return parser.parseProtocolVersion(buffer, cursor); 134 final ParserCursor cursor) 140 if (cursor == null) { 141 throw new IllegalArgumentException("Parser cursor may not be null"); 147 int indexFrom = cursor.getPos(); 148 int indexTo = cursor.getUpperBound(); 150 skipWhitespace(buffer, cursor); 152 int i = cursor.getPos(); 206 cursor.updatePos(blank) 292 ParserCursor cursor = new ParserCursor(0, value.length()); local 392 ParserCursor cursor = new ParserCursor(0, value.length()); local [all...] |
| /external/e2fsprogs/resize/ |
| extent.c | 29 __u64 cursor; member in struct:_ext2_extent 49 extent->cursor = 0; 203 fprintf(out, _("#\tNum=%llu, Size=%llu, Cursor=%llu, Sorted=%llu\n"), 204 extent->num, extent->size, extent->cursor, extent->sorted); 220 extent->cursor = 0; 224 if (extent->cursor >= extent->num) { 231 ent = extent->list + extent->cursor++;
|
| /external/freetype/include/freetype/ |
| ftsystem.h | 321 * cursor :: 342 unsigned char* cursor; member in struct:FT_StreamRec_
|
| /external/freetype/src/lzw/ |
| ftlzw.c | 79 FT_Byte* cursor; member in struct:FT_LZWFileRec_ 121 zip->cursor = zip->limit; 161 zip->cursor = zip->limit; 177 zip->cursor = zip->buffer; 181 zip->limit = zip->cursor + count; 200 FT_ULong delta = (FT_ULong)( zip->limit - zip->cursor ); 206 zip->cursor += delta; 253 if ( ( zip->pos - pos ) <= (FT_ULong)( zip->cursor - zip->buffer ) ) 255 zip->cursor -= zip->pos - pos; 283 delta = (FT_ULong)( zip->limit - zip->cursor ); [all...] |
| /external/guice/core/src/com/google/inject/spi/ |
| ModuleSource.java | 170 int cursor = 0; local 176 System.arraycopy(chunk, 0, callStack, cursor, chunkSize); 178 cursor = cursor + chunkSize;
|
| /external/honggfuzz/linux/ |
| unwind.c | 187 unw_cursor_t cursor; local 188 int ret = unw_init_remote(&cursor, as, ui); 199 ret = unw_get_reg(&cursor, UNW_REG_IP, &pc); 208 ret = unw_get_proc_info(&cursor, &frameInfo); 215 ret = unw_get_proc_name(&cursor, buf, sizeof(buf), &offset); 236 ret = unw_step(&cursor);
|
| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| NameUnicodeTransliterator.java | 62 int cursor = offsets.start; local 72 while (cursor < limit) { 73 c = text.char32At(cursor); 78 openPos = cursor; 79 int i = Utility.parsePattern(OPEN_PAT, text, cursor, limit); 83 cursor = i; 84 continue; // *** reprocess char32At(cursor) 126 cursor++; // advance over CLOSE_DELIM 129 text.replace(openPos, cursor, str); 134 int delta = cursor - openPos - str.length() [all...] |
| StringMatcher.java | 112 int[] cursor = new int[] { offset[0] }; local 113 if (limit < cursor[0]) { 119 if (cursor[0] > limit && 120 keyChar == text.charAt(cursor[0])) { // OK; see note (1) above 121 --cursor[0]; 127 subm.matches(text, cursor, limit, incremental); 137 matchStart = cursor[0]+1; 142 if (incremental && cursor[0] == limit) { 150 // Don't need the cursor < limit check if 153 if (cursor[0] < limit & [all...] |
| StringReplacer.java | 35 * Cursor position. Value is ignored if hasCursor is false. 40 * True if this object outputs a cursor position. 61 * text and sets the cursor to the given position. 65 * @param theCursorPos cursor position that will be returned by 82 * text and does not modify the cursor. 118 int[] cursor) { 131 // Setup default cursor position (for cursorPos within output) 171 // Record the position of the cursor 206 int len = r.replace(text, destLimit, destLimit, cursor); 217 // Record the position of the cursor 274 int cursor = cursorPos; local [all...] |
| /external/icu/icu4c/source/i18n/ |
| strmatch.cpp | 95 int32_t cursor = offset; local 96 if (limit < cursor) { 102 if (cursor > limit && 103 keyChar == text.charAt(cursor)) { 104 --cursor; 110 subm->matches(text, cursor, limit, incremental); 120 matchStart = cursor+1; 125 if (incremental && cursor == limit) { 133 // Don't need the cursor < limit check if 136 if (cursor < limit & [all...] |
| /external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
| NameUnicodeTransliterator.java | 61 int cursor = offsets.start; local 71 while (cursor < limit) { 72 c = text.char32At(cursor); 77 openPos = cursor; 78 int i = Utility.parsePattern(OPEN_PAT, text, cursor, limit); 82 cursor = i; 83 continue; // *** reprocess char32At(cursor) 125 cursor++; // advance over CLOSE_DELIM 128 text.replace(openPos, cursor, str); 133 int delta = cursor - openPos - str.length() [all...] |
| StringReplacer.java | 34 * Cursor position. Value is ignored if hasCursor is false. 39 * True if this object outputs a cursor position. 60 * text and sets the cursor to the given position. 64 * @param theCursorPos cursor position that will be returned by 81 * text and does not modify the cursor. 117 int[] cursor) { 130 // Setup default cursor position (for cursorPos within output) 170 // Record the position of the cursor 205 int len = r.replace(text, destLimit, destLimit, cursor); 216 // Record the position of the cursor 273 int cursor = cursorPos; local [all...] |
| /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
| CapabilityPolling.java | 37 import android.database.Cursor; 477 Cursor cursor = null; local 483 cursor = mEABContactManager.query(baseQuery); 484 if (cursor == null) { 485 logger.print("Cursor is null, there is no database found."); 488 int count = cursor.getCount(); 490 logger.print("Cursor.getCount() is 0, there is no items found in db."); 498 for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) 581 Cursor cursor = null; local [all...] |
| /external/libchrome/base/ |
| sha1.cc | 64 uint32_t cursor; member in class:base::SecureHashAlgorithm 104 cursor = 0; 124 M[cursor++] = *d++; 125 if (cursor >= 64) 132 M[cursor++] = 0x80; 134 if (cursor > 64-8) { 136 while (cursor < 64) 137 M[cursor++] = 0; 142 while (cursor < 64-8) 143 M[cursor++] = 0 [all...] |
| /external/libchrome/base/trace_event/ |
| heap_profiler_heap_dump_writer.cc | 64 // cursor, must be equal. 89 const StackFrame* cursor = begin + bucket.backtrace_cursor; local 91 DCHECK_LE(cursor, end); 93 if (cursor != end) { 94 Bucket& subbucket = breakdown[cursor->value]; 193 // The contexts in the bucket are all different, but the [begin, cursor) range
|
| /external/libdrm/tests/kms/ |
| kms-universal-planes.c | 127 { "cursor", 0, 0, 'c' }, 134 struct kms_framebuffer *cursor = NULL; local 228 type = "cursor"; 247 fprintf(stderr, "no cursor plane found\n"); 257 cursor = kms_framebuffer_create(device, 32, 32, format); 258 if (!cursor) { 259 fprintf(stderr, "failed to create cursor buffer\n"); 263 prepare_framebuffer(cursor, false); 265 x = (device->screens[0]->width - cursor->width) / 2; 266 y = (device->screens[0]->height - cursor->height) / 2 [all...] |
| /external/libdrm/tests/modetest/ |
| cursor.c | 46 #include "cursor.h" 48 struct cursor { struct 61 static struct cursor cursors[MAX_CURSORS]; 69 * the cursor 73 void (*run)(struct cursor *cursor, const struct cursor_step *step); 81 static void set_cursor(struct cursor *cursor, const struct cursor_step *step) 87 handle = cursor->bo_handle; 89 cursor->enabled = enabled 152 struct cursor *cursor = &cursors[i]; local 173 struct cursor *cursor = &cursors[ncursors]; local [all...] |
| /external/libunwind/tests/ |
| Gperf-simple.c | 61 unw_cursor_t cursor; local 66 if (unw_init_local (&cursor, &uc) < 0) 73 ret = unw_step (&cursor); 159 cursor[N]; local 195 unw_init_local (&cursor[i].c, &uc[i].uc); 219 unw_init_local (&cursor[0].c, &uc[0].uc);
|
| Gperf-trace.c | 145 cursor[N]; local 181 unw_init_local (&cursor[i].c, &uc[i].uc); 205 unw_init_local (&cursor[0].c, &uc[0].uc);
|
| /external/libunwind_llvm/src/ |
| UnwindLevel1-gcc-ext.c | 89 // We create an unwind cursor then alter the IP to be pc 90 unw_cursor_t cursor; local 94 unw_init_local(&cursor, &uc); 95 unw_set_reg(&cursor, UNW_REG_IP, (unw_word_t)(long) pc); 96 if (unw_get_proc_info(&cursor, &info) == UNW_ESUCCESS) 106 unw_cursor_t cursor; local 109 unw_init_local(&cursor, &uc); 128 if (unw_step(&cursor) <= 0) { 129 _LIBUNWIND_TRACE_UNWINDING(" _backtrace: ended because cursor reached " 137 if (unw_get_proc_info(&cursor, &frameInfo) != UNW_ESUCCESS) 188 unw_cursor_t cursor; local 206 unw_cursor_t *cursor = (unw_cursor_t *)context; local [all...] |