| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| UnicodeNameTransliterator.java | 49 int cursor = offsets.start; local 57 while (cursor < limit) { 58 int c = text.char32At(cursor); 65 text.replace(cursor, cursor+clen, str.toString()); 67 cursor += len; // advance cursor by 1 and adjust for new text 70 ++cursor; 76 offsets.start = cursor;
|
| /external/icu/icu4c/source/i18n/ |
| name2uni.cpp | 133 int32_t cursor = offsets.start; local 143 while (cursor < limit) { 144 c = text.char32At(cursor); 149 openPos = cursor; 151 ICU_Utility::parsePattern(openPat, text, cursor, limit); 155 cursor = i; 156 continue; // *** reprocess char32At(cursor) 201 cursor++; // advance over CLOSE_DELIM 205 text.handleReplaceBetween(openPos, cursor, str); 210 int32_t delta = cursor - openPos - str.length() [all...] |
| strrepl.cpp | 30 * text and sets the cursor to the given position. 34 * @param theCursorPos cursor position that will be returned by 51 * text and does not modify the cursor. 107 int32_t& cursor) { 120 // Setup default cursor position (for cursorPos within output) 160 // Record the position of the cursor 179 int32_t len = r->replace(text, destLimit, destLimit, cursor); 190 // Record the position of the cursor 205 // Adjust the cursor for positions outside the key. These 228 // Cursor is within output string. It has been set up abov 247 int32_t cursor = cursorPos; local [all...] |
| /external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
| UnicodeNameTransliterator.java | 48 int cursor = offsets.start; local 56 while (cursor < limit) { 57 int c = text.char32At(cursor); 64 text.replace(cursor, cursor+clen, str.toString()); 66 cursor += len; // advance cursor by 1 and adjust for new text 69 ++cursor; 75 offsets.start = cursor;
|
| /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/ |
| SourcePrinter.java | 35 private Position cursor = new Position(1, 0); field in class:SourcePrinter 56 cursor = Position.pos(cursor.line, cursor.column + indentationLength); 79 cursor = Position.pos(cursor.line, cursor.column + arg.length()); 107 cursor = Position.pos(cursor.line + 1, 0); 113 * Return the current cursor position (line, column) in the source printer buffer [all...] |
| /external/jline/src/src/main/java/jline/ |
| CursorBuffer.java | 11 * current cursor position. 16 public int cursor = 0; field in class:CursorBuffer 27 if (cursor <= 0) { 31 return buffer.charAt(cursor - 1); 40 cursor = 0; 45 * Write the specific character into the buffer, setting the cursor position 53 buffer.insert(cursor++, c); 54 if (isOvertyping() && cursor < buffer.length()) { 55 buffer.deleteCharAt(cursor); 60 * Insert the specified {@link String} into the buffer, setting the cursor [all...] |
| /external/libunwind/tests/ |
| Gtest-bt.c | 54 unw_cursor_t cursor; variable 68 if (unw_init_local (&cursor, &uc) < 0) 73 unw_get_reg (&cursor, UNW_REG_IP, &ip); 74 unw_get_reg (&cursor, UNW_REG_SP, &sp); 76 if (unw_get_proc_name (&cursor, name, sizeof (name), &off) == 0) 87 if (unw_get_proc_info (&cursor, &pi) == 0) 98 unw_get_reg (&cursor, UNW_IA64_BSP, &bsp); 105 ret = unw_step (&cursor); 108 unw_get_reg (&cursor, UNW_REG_IP, &ip);
|
| Gtest-dyn1.c | 105 unw_cursor_t cursor; local 115 unw_init_local (&cursor, &uc); 118 while (!unw_is_signal_frame (&cursor)) 120 if (unw_step (&cursor) < 0) 129 unw_step (&cursor); 134 unw_get_reg (&cursor, UNW_REG_IP, &ip); 137 if (unw_get_proc_name (&cursor, name, sizeof (name), &offset) == 0 151 while (unw_step (&cursor) > 0);
|
| Gtest-trace.c | 54 unw_cursor_t cursor; variable 69 if (unw_init_local (&cursor, &uc) < 0) 74 unw_get_reg (&cursor, UNW_REG_IP, &ip); 77 while ((ret = unw_step (&cursor)) > 0 && ++depth < 128); 81 unw_get_reg (&cursor, UNW_REG_IP, &ip);
|
| ppc64-test-altivec.c | 43 unw_cursor_t cursor; local 54 if (unw_init_local (&cursor, &uc) < 0) 62 if ((ret = unw_get_reg (&cursor, UNW_REG_IP, &ip)) < 0) 67 if ((ret = unw_get_reg (&cursor, UNW_REG_SP, &sp)) < 0) 72 if ((ret = unw_get_fpreg (&cursor, UNW_PPC64_V30, &vr)) < 0) 95 unw_get_proc_name (&cursor, proc_name_buffer, 109 ret = unw_step (&cursor); 112 unw_get_reg (&cursor, UNW_REG_IP, &ip);
|
| test-async-sig.c | 70 unw_cursor_t cursor; local 83 if (unw_init_local (&cursor, &uc) < 0) 88 unw_get_reg (&cursor, UNW_REG_IP, &ip); 89 unw_get_reg (&cursor, UNW_REG_SP, &sp); 94 ret = unw_get_proc_name (&cursor, name, sizeof (name), &off); 113 ret = unw_step (&cursor); 116 unw_get_reg (&cursor, UNW_REG_IP, &ip);
|
| /external/libvncserver/test/ |
| cursortest.c | 49 char cursor[]= local 75 c=rfbMakeXCursor(width,height,cursor,mask); 84 char cursor[]= local 131 c=rfbMakeXCursor(width,height,cursor,mask); 137 /* Example for a rich cursor (full-colour) */ 143 /* rfbCursorPtr c = rfbScreen->cursor; */ 198 /* rfbCursorPtr c = rfbScreen->cursor; */ 217 /* c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); */ 238 rfbCursorPtr c = screen->cursor; 329 rfbScreen->desktopName = "Cursor Test" [all...] |
| /external/mesa3d/src/compiler/nir/ |
| nir_lower_io_to_temporaries.c | 43 emit_copies(nir_cursor cursor, nir_shader *shader, struct exec_list *new_vars, 72 nir_instr_insert(cursor, ©->instr); 90 nir_cursor cursor = nir_before_instr(&intrin->instr); local 91 emit_copies(cursor, state->shader, &state->shader->outputs, 97 nir_cursor cursor = nir_before_block(nir_start_block(impl)); local 98 emit_copies(cursor, state->shader, &state->old_outputs, 107 nir_cursor cursor = nir_after_block_before_jump(block); local 108 emit_copies(cursor, state->shader, &state->shader->outputs, 118 nir_cursor cursor = nir_before_block(nir_start_block(impl)); local 119 emit_copies(cursor, state->shader, &state->old_inputs [all...] |
| /external/ppp/pppd/plugins/rp-pppoe/ |
| common.c | 99 unsigned char *cursor = packet.payload; local 128 memcpy(cursor, &hostUniq, sizeof(pid) + TAG_HDR_SIZE); 129 cursor += sizeof(pid) + TAG_HDR_SIZE; 140 memcpy(cursor, &err, elen + TAG_HDR_SIZE); 141 cursor += elen + TAG_HDR_SIZE; 147 CHECK_ROOM(cursor, packet.payload, 149 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); 150 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 155 CHECK_ROOM(cursor, packet.payload, 157 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE) [all...] |
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| SQLiteQueryBuilderTest.java | 6 import android.database.Cursor; 66 Cursor cursor = builder.query(database, new String[] {"rowid"}, null, null, null, null, null); local 67 assertThat(cursor.getCount()).isEqualTo(2); 72 Cursor cursor = builder.query(database, new String[] {"rowid"}, COL_VALUE + "=?", new String[] {"record1"}, null, null, null); local 73 assertThat(cursor.getCount()).isEqualTo(1); 74 assertThat(cursor.moveToNext()).isTrue(); 75 assertThat(cursor.getLong(0)).isEqualTo(firstRecordId); 80 Cursor cursor = builder.query(database, new String[] {"rowid"}, null, null, COL_GROUP, null, null) local [all...] |
| /external/skia/tools/ |
| CrashHandler.cpp | 35 unw_cursor_t cursor; local 36 unw_init_local(&cursor, &context); 39 while (unw_step(&cursor) > 0) { 43 unw_get_proc_name(&cursor, mangled, kMax, &offset);
|
| /external/skqp/tools/ |
| CrashHandler.cpp | 35 unw_cursor_t cursor; local 36 unw_init_local(&cursor, &context); 39 while (unw_step(&cursor) > 0) { 43 unw_get_proc_name(&cursor, mangled, kMax, &offset);
|
| /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/ |
| ApiProvider.java | 23 import android.database.Cursor; 41 public static final String SINGLE_MIME = "vnd.android.cursor.item/vnd.sl4a.api"; 94 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 104 private Cursor querySearchSuggestions(String query) { 108 MatrixCursor cursor = new MatrixCursor(columns); local 118 cursor.addRow(row); 121 return cursor;
|
| /frameworks/base/core/java/android/text/util/ |
| Rfc822Tokenizer.java | 51 int cursor = text.length(); local 53 while (i < cursor) { 59 while (i < cursor && text.charAt(i) == ' ') { 81 while (i < cursor) { 88 if (i + 1 < cursor) { 101 while (i < cursor && level > 0) { 116 if (i + 1 < cursor) { 128 while (i < cursor) { 210 public int findTokenStart(CharSequence text, int cursor) { 213 * we reach the cursor [all...] |
| /frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
| BaseProgram.java | 22 import android.database.Cursor; 332 * Sets the fields in the cursor to the given builder instance. 334 * @param cursor A row from the TV Input Framework database. 337 static void setFieldsFromCursor(Cursor cursor, Builder builder) { 340 if ((index = cursor.getColumnIndex(BaseTvColumns._ID)) >= 0 && !cursor.isNull(index)) { 341 builder.setId(cursor.getLong(index)); 343 if ((index = cursor.getColumnIndex(BaseTvColumns.COLUMN_PACKAGE_NAME)) >= 0 344 && !cursor.isNull(index)) [all...] |
| Channel.java | 22 import android.database.Cursor; 56 * try (Cursor cursor = resolver.query(channelUri, null, null, null, null)) { 57 * if (cursor != null && cursor.getCount() != 0) { 58 * cursor.moveToNext(); 59 * channel = Channel.fromCursor(cursor); 407 * Creates a Channel object from a cursor including the fields defined in {@link Channels}. 409 * @param cursor A row from the TV Input Framework database. 410 * @return A channel with the values taken from the cursor [all...] |
| PreviewChannel.java | 24 import android.database.Cursor; 86 * This method assumes the cursor was obtained using {@link androidx.tvprovider.media.tv 90 * @param cursor a cursor row from the TvProvider 91 * @return a PreviewChannel whose values come from the cursor row 93 public static PreviewChannel fromCursor(Cursor cursor) { 95 builder.setId(cursor.getInt(Columns.COL_ID)); 96 builder.setPackageName(cursor.getString(Columns.COL_PACKAGE_NAME)); 97 builder.setType(cursor.getString(Columns.COL_TYPE)) [all...] |
| /packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
| AtPhonebook.java | 23 import android.database.Cursor; 70 public Cursor cursor; // result set of last query field in class:AtPhonebook.PhonebookResult 118 Cursor cursor = mContentResolver.query(Calls.CONTENT_URI, projection, local 121 if (cursor == null) { 122 Log.w(TAG, "getLastDialledNumber, cursor is null"); 126 if (cursor.getCount() < 1) { 127 cursor.close(); 128 Log.w(TAG, "getLastDialledNumber, cursor.getCount is 0") [all...] |
| /packages/apps/Dialer/java/com/android/dialer/calldetails/ |
| CallDetailsCursorLoader.java | 21 import android.database.Cursor; 36 // toCallDetailsEntry(Cursor) when updating this array. 74 // when building CallDetailsEntries proto (see toCallDetailsEntries(Cursor)). 116 * @param cursor A cursor pointing to the data set loaded by this loader. The caller must ensure 117 * the cursor is not null and the data set it points to is not empty. 120 static CallDetailsEntries toCallDetailsEntries(Cursor cursor) { 121 Assert.isNotNull(cursor); 122 Assert.checkArgument(cursor.moveToFirst()) [all...] |
| /packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
| Cp2ExtendedDirectoryPhoneLookup.java | 20 import android.database.Cursor; 79 try (Cursor cursor = 88 if (cursor == null) { 90 "Cp2ExtendedDirectoryPhoneLookup.queryCp2ForExtendedDirectoryIds", "null cursor"); 94 if (!cursor.moveToFirst()) { 97 "empty cursor"); 101 int idColumnIndex = cursor.getColumnIndexOrThrow(ContactsContract.Directory._ID); 103 long directoryId = cursor.getLong(idColumnIndex); 106 directoryIds.add(cursor.getLong(idColumnIndex)) [all...] |