/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 172 private void printSms(Cursor c) { in printSms() argument 173 String body = c.getString(c.getColumnIndex(Sms.BODY)); in printSms() 174 …if (D) Log.d(TAG, "printSms " + BaseColumns._ID + ": " + c.getLong(c.getColumnIndex(BaseColumns._I… in printSms() 175 " " + Sms.THREAD_ID + " : " + c.getLong(c.getColumnIndex(Sms.THREAD_ID)) + in printSms() 176 " " + Sms.ADDRESS + " : " + c.getString(c.getColumnIndex(Sms.ADDRESS)) + in printSms() 178 " " + Sms.DATE + " : " + c.getLong(c.getColumnIndex(Sms.DATE)) + in printSms() 179 " " + Sms.TYPE + " : " + c.getInt(c.getColumnIndex(Sms.TYPE))); in printSms() 182 private void printMms(Cursor c) { in printMms() argument 183 …if (D) Log.d(TAG, "printMms " + BaseColumns._ID + ": " + c.getLong(c.getColumnIndex(BaseColumns._I… in printMms() 184 "\n " + Mms.THREAD_ID + " : " + c.getLong(c.getColumnIndex(Mms.THREAD_ID)) + in printMms() [all …]
|
D | BluetoothMapContentObserver.java | 284 Cursor c = mResolver.query(Sms.CONTENT_URI, in initMsgList() local 287 if (c != null && c.moveToFirst()) { in initMsgList() 289 long id = c.getLong(c.getColumnIndex(BaseColumns._ID)); in initMsgList() 290 int type = c.getInt(c.getColumnIndex(Sms.TYPE)); in initMsgList() 294 } while (c.moveToNext()); in initMsgList() 295 c.close(); in initMsgList() 302 c = mResolver.query(Mms.CONTENT_URI, in initMsgList() 305 if (c != null && c.moveToFirst()) { in initMsgList() 307 long id = c.getLong(c.getColumnIndex(BaseColumns._ID)); in initMsgList() 308 int type = c.getInt(c.getColumnIndex(Mms.MESSAGE_BOX)); in initMsgList() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | MailboxTests.java | 80 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, in createMessage() argument 83 "1", b.mAccountKey, b.mId, true, false, c, starred, read); in createMessage() 85 message.save(c); in createMessage() 97 final Context c = mMockContext; in testSave() local 99 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); in testSave() 101 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testSave() 104 Mailbox box2 = Mailbox.restoreMailboxWithId(c, box1Id); in testSave() 113 final Context c = mMockContext; in testDelete() local 115 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c); in testDelete() 117 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testDelete() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 542 Cursor c = queryRawContact(rawContactId); in queryContactId() local 543 assertTrue(c.moveToFirst()); in queryContactId() 544 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId() 545 c.close(); in queryContactId() 550 Cursor c = queryContact(contactId); in queryPhotoId() local 551 assertTrue(c.moveToFirst()); in queryPhotoId() 552 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId() 553 c.close(); in queryPhotoId() 563 Cursor c = queryRawContact(rawContactId); in queryRawContactIsStarred() local 565 assertTrue(c.moveToFirst()); in queryRawContactIsStarred() [all …]
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | BluetoothMapContentTest.java | 50 private void printEmail(Cursor c) { in printEmail() argument 52 c.getLong(c.getColumnIndex(EmailContent.RECORD_ID)) + in printEmail() 53 …"\n " + MessageColumns.DISPLAY_NAME + " : " + c.getString(c.getColumnIndex(MessageColumns.DISPLA… in printEmail() 54 …"\n " + MessageColumns.TIMESTAMP + " : " + getDateTimeString(c.getLong(c.getColumnIndex(MessageC… in printEmail() 55 … "\n " + MessageColumns.SUBJECT + " : " + c.getString(c.getColumnIndex(MessageColumns.SUBJECT)) + in printEmail() 56 …"\n " + MessageColumns.FLAG_READ + " : " + c.getString(c.getColumnIndex(MessageColumns.FLAG_READ… in printEmail() 57 …"\n " + MessageColumns.FLAG_ATTACHMENT + " : " + c.getInt(c.getColumnIndex(MessageColumns.FLAG_A… in printEmail() 58 … "\n " + MessageColumns.FLAGS + " : " + c.getInt(c.getColumnIndex(MessageColumns.FLAGS)) + in printEmail() 59 … "\n " + SyncColumns.SERVER_ID + " : " + c.getInt(c.getColumnIndex(SyncColumns.SERVER_ID)) + in printEmail() 60 …"\n " + MessageColumns.DRAFT_INFO + " : " + c.getInt(c.getColumnIndex(MessageColumns.DRAFT_INFO)… in printEmail() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharEscapers.java | 68 @Override public Appendable append(char c) throws IOException { 69 out.append(c); 76 protected char[] escape(char c) { 772 @Override protected char[] escape(char c) { 773 if (c <= 127) { 778 r[5] = HEX_DIGITS[c & 15]; 779 c >>>= 4; 780 r[4] = HEX_DIGITS[c & 15]; 781 c >>>= 4; 782 r[3] = HEX_DIGITS[c & 15]; [all …]
|
D | CharMatcher.java | 132 @Override public boolean matches(char c) { 133 return Character.isDigit(c); 144 @Override public boolean matches(char c) { 145 return Character.isLetter(c); 154 @Override public boolean matches(char c) { 155 return Character.isLetterOrDigit(c); 164 @Override public boolean matches(char c) { 165 return Character.isUpperCase(c); 174 @Override public boolean matches(char c) { 175 return Character.isLowerCase(c); [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
D | CharEscapers.java | 68 @Override public Appendable append(char c) throws IOException { 69 out.append(c); 76 protected char[] escape(char c) { 772 @Override protected char[] escape(char c) { 773 if (c <= 127) { 778 r[5] = HEX_DIGITS[c & 15]; 779 c >>>= 4; 780 r[4] = HEX_DIGITS[c & 15]; 781 c >>>= 4; 782 r[3] = HEX_DIGITS[c & 15]; [all …]
|
D | CharMatcher.java | 132 @Override public boolean matches(char c) { 133 return Character.isDigit(c); 144 @Override public boolean matches(char c) { 145 return Character.isLetter(c); 154 @Override public boolean matches(char c) { 155 return Character.isLetterOrDigit(c); 164 @Override public boolean matches(char c) { 165 return Character.isUpperCase(c); 174 @Override public boolean matches(char c) { 175 return Character.isLowerCase(c); [all …]
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | Conversation.java | 316 final Cursor c = SqliteWrapper.query(context, context.getContentResolver(), in sendReadReport() local 321 if (c == null || c.getCount() == 0) { in sendReadReport() 325 while (c.moveToNext()) { in sendReadReport() 326 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, c.getLong(0)); in sendReadReport() 331 c.getString(1), status); in sendReadReport() 334 if (c != null) { in sendReadReport() 335 c.close(); in sendReadReport() 380 Cursor c = mContext.getContentResolver().query(threadUri, in markAsRead() local 382 if (c != null) { in markAsRead() 384 needUpdate = c.getCount() > 0; in markAsRead() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 168 Context c, Mailbox b, boolean starred, boolean read, int flagLoaded) { in createMessage() argument 174 c, in createMessage() 178 message.save(c); in createMessage() 394 Cursor c = null; in getUnreadCount() local 396 c = mMockContext.getContentResolver().query(Mailbox.CONTENT_URI, in getUnreadCount() 399 c.moveToFirst(); in getUnreadCount() 400 text = c.getString(MAILBOX_UNREAD_COUNT_COLMUN); in getUnreadCount() 402 c.close(); in getUnreadCount() 416 Cursor c = null; in loadBodyForMessageId() local 418 c = mMockContext.getContentResolver().query(EmailContent.Body.CONTENT_URI, in loadBodyForMessageId() [all …]
|
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
D | BP1to2UpgradeTests.java | 55 Cursor c = mBp1.query(Browser.BOOKMARKS_URI, in testStockUpgrade() local 58 ArrayList<String> urls = new ArrayList<String>(c.getCount()); in testStockUpgrade() 59 while (c.moveToNext()) { in testStockUpgrade() 60 urls.add(c.getString(0)); in testStockUpgrade() 62 c.close(); in testStockUpgrade() 64 c = getMockContentResolver().query(Browser.BOOKMARKS_URI, in testStockUpgrade() 67 assertEquals(urls.size(), c.getCount()); in testStockUpgrade() 69 while (c.moveToNext()) { in testStockUpgrade() 70 assertEquals(urls.get(i++), c.getString(0)); in testStockUpgrade() 72 c.close(); in testStockUpgrade() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 552 private int copyFromCursor(SQLiteDatabase db, Cursor c, ContentValuesCallback cb) { in copyFromCursor() argument 553 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in copyFromCursor() 554 final int intentIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT); in copyFromCursor() 555 final int titleIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE); in copyFromCursor() 556 final int iconTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_TYPE); in copyFromCursor() 557 final int iconIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON); in copyFromCursor() 558 … final int iconPackageIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE); in copyFromCursor() 559 … final int iconResourceIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE); in copyFromCursor() 560 … final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER); in copyFromCursor() 561 final int itemTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in copyFromCursor() [all …]
|
D | CellLayout.java | 1560 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation() local 1562 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in addViewToTempLocation() 1565 findNearestArea(c.x, c.y, c.spanX, c.spanY, direction, mTmpOccupied, null, mTempLocation); in addViewToTempLocation() 1568 c.x = mTempLocation[0]; in addViewToTempLocation() 1569 c.y = mTempLocation[1]; in addViewToTempLocation() 1572 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in addViewToTempLocation() 1702 CellAndSpan c = config.map.get(v); in shift() local 1705 c.x -= delta; in shift() 1708 c.x += delta; in shift() 1711 c.y -= delta; in shift() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 449 final Cursor c = db.rawQuery(sbQuery.toString(), null); in aggregateInTransaction() local 451 actualCount = c.getCount(); in aggregateInTransaction() 457 while (c.moveToNext()) { in aggregateInTransaction() 458 rawContactIds[index] = c.getLong(AggregationQuery._ID); in aggregateInTransaction() 459 contactIds[index] = c.getLong(AggregationQuery.CONTACT_ID); in aggregateInTransaction() 460 accountIds[index] = c.getLong(AggregationQuery.ACCOUNT_ID); in aggregateInTransaction() 464 c.close(); in aggregateInTransaction() 1150 final Cursor c = db.query(AggregateExceptionPrefetchQuery.TABLE, in prefetchAggregationExceptionIds() local 1155 while (c.moveToNext()) { in prefetchAggregationExceptionIds() 1156 long rawContactId1 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID1); in prefetchAggregationExceptionIds() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 37 long c,size; in db_AllocStrengthImage_f() local 49 for(c=0;c<size;c++) p[c]=0.0; in db_AllocStrengthImage_f() 73 int c; in db_IxIyRow_f() local 75 for(c=0;c<chunk_width;c++) in db_IxIyRow_f() 77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f() 78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f() 201 int c; in db_IxIyRow_u() 204 for(c=0;c<nc;c++) in db_IxIyRow_u() 206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u() 207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u() [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 37 long c,size; in db_AllocStrengthImage_f() local 49 for(c=0;c<size;c++) p[c]=0.0; in db_AllocStrengthImage_f() 73 int c; in db_IxIyRow_f() local 75 for(c=0;c<chunk_width;c++) in db_IxIyRow_f() 77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f() 78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f() 201 int c; in db_IxIyRow_u() 204 for(c=0;c<nc;c++) in db_IxIyRow_u() 206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u() 207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u() [all …]
|
/packages/apps/Camera2/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 37 long c,size; in db_AllocStrengthImage_f() local 49 for(c=0;c<size;c++) p[c]=0.0; in db_AllocStrengthImage_f() 73 int c; in db_IxIyRow_f() local 75 for(c=0;c<chunk_width;c++) in db_IxIyRow_f() 77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f() 78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f() 201 int c; in db_IxIyRow_u() 204 for(c=0;c<nc;c++) in db_IxIyRow_u() 206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u() 207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtilsTests.java | 38 final int c = TextUtils.CAP_MODE_CHARACTERS; in allPathsForCaps() local 41 onePathForCaps(cs, expectedResult, c | w | s, sv, hasSpaceBefore); in allPathsForCaps() 43 onePathForCaps(cs, expectedResult, c | s, sv, hasSpaceBefore); in allPathsForCaps() 44 onePathForCaps(cs, expectedResult, c | w, sv, hasSpaceBefore); in allPathsForCaps() 45 onePathForCaps(cs, expectedResult, c, sv, hasSpaceBefore); in allPathsForCaps() 51 final int c = TextUtils.CAP_MODE_CHARACTERS; in testGetCapsMode() local 55 allPathsForCaps("", c | w | s, sv, false); in testGetCapsMode() 56 allPathsForCaps("Word", c, sv, false); in testGetCapsMode() 57 allPathsForCaps("Word.", c, sv, false); in testGetCapsMode() 58 allPathsForCaps("Word ", c | w, sv, false); in testGetCapsMode() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | TestProviderTests.java | 114 Cursor c = mMockResolver.query(TestProvider.uri(uri), PONY_PROJECTION, null, null, null); in testInsertQueryandDelete() local 115 assertNotNull(c); in testInsertQueryandDelete() 116 assertEquals(2, c.getCount()); in testInsertQueryandDelete() 119 while (c.moveToNext()) { in testInsertQueryandDelete() 120 String name = c.getString(PONY_NAME); in testInsertQueryandDelete() 122 assertEquals("Flicka", c.getString(PONY_NAME)); in testInsertQueryandDelete() 123 assertEquals("wayward", c.getString(PONY_TYPE)); in testInsertQueryandDelete() 124 assertEquals(4, c.getInt(PONY_LEGS)); in testInsertQueryandDelete() 125 assertEquals(1, c.getInt(PONY_CAN_RIDE)); in testInsertQueryandDelete() 126 flickaId = c.getLong(PONY_ID); in testInsertQueryandDelete() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallNotifier.java | 375 Connection c = (Connection) r.result; in onNewRingingConnection() local 376 log("onNewRingingConnection(): state = " + mCM.getState() + ", conn = { " + c + " }"); in onNewRingingConnection() 377 Call ringing = c.getCall(); in onNewRingingConnection() 390 if (!c.isRinging()) { in onNewRingingConnection() 403 Call.State state = c.getState(); in onNewRingingConnection() 439 startIncomingCallQuery(c); in onNewRingingConnection() 527 private void startIncomingCallQuery(Connection c) { in startIncomingCallQuery() argument 552 mApplication, c, this, c); in startIncomingCallQuery() 558 onQueryComplete(0, c, cit.currentInfo); in startIncomingCallQuery() 565 Message.obtain(this, RINGER_CUSTOM_RINGTONE_QUERY_TIMEOUT, c), in startIncomingCallQuery() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | LauncherProvider.java | 374 private int copyFromCursor(SQLiteDatabase db, Cursor c) { in copyFromCursor() argument 375 final int idIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in copyFromCursor() 376 final int intentIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT); in copyFromCursor() 377 final int titleIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE); in copyFromCursor() 378 final int iconTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_TYPE); in copyFromCursor() 379 final int iconIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON); in copyFromCursor() 380 … final int iconPackageIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE); in copyFromCursor() 381 … final int iconResourceIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE); in copyFromCursor() 382 … final int containerIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER); in copyFromCursor() 383 final int itemTypeIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in copyFromCursor() [all …]
|
D | CellLayout.java | 1572 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation() local 1574 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in addViewToTempLocation() 1577 findNearestArea(c.x, c.y, c.spanX, c.spanY, direction, mTmpOccupied, null, mTempLocation); in addViewToTempLocation() 1580 c.x = mTempLocation[0]; in addViewToTempLocation() 1581 c.y = mTempLocation[1]; in addViewToTempLocation() 1584 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in addViewToTempLocation() 1714 CellAndSpan c = config.map.get(v); in shift() local 1717 c.x -= delta; in shift() 1720 c.x += delta; in shift() 1723 c.y -= delta; in shift() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | FilterStackSource.java | 109 Cursor c = null; in getStack() local 112 c = database.query(FilterStack.TABLE, in getStack() 116 if (c != null && c.moveToFirst() && !c.isNull(0)) { in getStack() 117 ret = c.getBlob(0); in getStack() 121 if (c != null) { in getStack() 122 c.close(); in getStack() 133 Cursor c = null; in getAllUserPresets() local 136 c = database.query(FilterStack.TABLE, in getAllUserPresets() 141 if (c != null) { in getAllUserPresets() 142 boolean loopCheck = c.moveToFirst(); in getAllUserPresets() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | trsMatrix.cpp | 24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d() 26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d() 27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d() 28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d() 29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d() 30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d() 31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d() 32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d() 33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d() 34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
|