/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | encodings.h | 125 #define COPY() c = is.Take(); *codepoint = (*codepoint << 6) | ((unsigned char)c & 0x3Fu) in Decode() 126 #define TRANS(mask) result &= ((GetRange((unsigned char)c) & (mask)) != 0) in Decode() 128 Ch c = is.Take(); in Decode() local 129 if (!(c & 0x80)) { in Decode() 130 *codepoint = (unsigned char)c; in Decode() 134 unsigned char type = GetRange((unsigned char)c); in Decode() 135 *codepoint = (0xFF >> type) & (unsigned char)c; in Decode() 154 #define COPY() os.Put(c = is.Take()) in Validate() 155 #define TRANS(mask) result &= ((GetRange((unsigned char)c) & (mask)) != 0) in Validate() 157 Ch c; in Validate() local [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtilsTests.java | 49 final int c = TextUtils.CAP_MODE_CHARACTERS; in allPathsForCaps() local 52 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps() 54 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps() 55 onePathForCaps(cs, expectedResult, c | w, sp, hasSpaceBefore); in allPathsForCaps() 56 onePathForCaps(cs, expectedResult, c, sp, hasSpaceBefore); in allPathsForCaps() 63 final int c = TextUtils.CAP_MODE_CHARACTERS; in testGetCapsMode() local 74 allPathsForCaps("", c | w | s, sp, false); in testGetCapsMode() 75 allPathsForCaps("Word", c, sp, false); in testGetCapsMode() 76 allPathsForCaps("Word.", c, sp, false); in testGetCapsMode() 77 allPathsForCaps("Word ", c | w, sp, false); in testGetCapsMode() [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/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 325 public void setMessageColumns(Cursor c) { in setMessageColumns() argument 326 mMessageColId = c.getColumnIndex(BluetoothMapContract.MessageColumns._ID); in setMessageColumns() 327 mMessageColDate = c.getColumnIndex(BluetoothMapContract.MessageColumns.DATE); in setMessageColumns() 328 mMessageColSubject = c.getColumnIndex(BluetoothMapContract.MessageColumns.SUBJECT); in setMessageColumns() 329 mMessageColFolder = c.getColumnIndex(BluetoothMapContract.MessageColumns.FOLDER_ID); in setMessageColumns() 330 mMessageColRead = c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_READ); in setMessageColumns() 331 mMessageColSize = c.getColumnIndex(BluetoothMapContract.MessageColumns.MESSAGE_SIZE); in setMessageColumns() 333 c.getColumnIndex(BluetoothMapContract.MessageColumns.FROM_LIST); in setMessageColumns() 334 mMessageColToAddress = c.getColumnIndex(BluetoothMapContract.MessageColumns.TO_LIST); in setMessageColumns() 336 c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_ATTACHMENT); in setMessageColumns() [all …]
|
D | BluetoothMapContentObserver.java | 559 public void setConvoColunms(Cursor c) { in setConvoColunms() argument 567 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CONVO_ID); in setConvoColunms() 568 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms() 570 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms() 571 mContactColBtUid = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.X_BT_UID); in setConvoColunms() 573 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CHAT_STATE); in setConvoColunms() 574 mContactColUci = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.UCI); in setConvoColunms() 576 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms() 578 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.LAST_ACTIVE); in setConvoColunms() 579 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms() [all …]
|
D | BluetoothMapUtils.java | 122 public static void printCursor(Cursor c) { in printCursor() argument 126 for (int i = 0; i < c.getColumnCount(); i++) { in printCursor() 127 if (c.getColumnName(i).equals(BluetoothMapContract.MessageColumns.DATE) in printCursor() 128 || c.getColumnName(i) in printCursor() 130 || c.getColumnName(i) in printCursor() 132 || c.getColumnName(i) in printCursor() 135 .append(c.getColumnName(i)) in printCursor() 137 .append(getDateTimeString(c.getLong(i))) in printCursor() 141 .append(c.getColumnName(i)) in printCursor() 143 .append(c.getString(i)) in printCursor() [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/Launcher3/src/com/android/launcher3/model/ |
D | LoaderTask.java | 289 final LoaderCursor c = new LoaderCursor(contentResolver.query( in loadWorkspace() local 295 final int appWidgetIdIndex = c.getColumnIndexOrThrow( in loadWorkspace() 297 final int appWidgetProviderIndex = c.getColumnIndexOrThrow( in loadWorkspace() 299 final int spanXIndex = c.getColumnIndexOrThrow in loadWorkspace() 301 final int spanYIndex = c.getColumnIndexOrThrow( in loadWorkspace() 303 final int rankIndex = c.getColumnIndexOrThrow( in loadWorkspace() 305 final int optionsIndex = c.getColumnIndexOrThrow( in loadWorkspace() 308 final LongSparseArray<UserHandle> allUsers = c.allUsers; in loadWorkspace() 342 while (!mStopped && c.moveToNext()) { in loadWorkspace() 344 if (c.user == null) { in loadWorkspace() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 93 try (Cursor c = db.query("files", null, null, null, null, null, null, null)) { in assertDowngrade() argument 94 assertEquals(1, c.getCount()); in assertDowngrade() 102 try (Cursor c = db.query("files", null, null, null, null, null, null, null)) { in assertDowngrade() argument 103 assertEquals(0, c.getCount()); in assertDowngrade() 190 try (Cursor c = db.query("files", null, FileColumns.DISPLAY_NAME + "='global.jpg'", in assertUpgrade() argument 192 assertEquals(1, c.getCount()); in assertUpgrade() 193 assertTrue(c.moveToFirst()); in assertUpgrade() 195 c.getString(c.getColumnIndexOrThrow(FileColumns.DATA))); in assertUpgrade() 197 c.getString(c.getColumnIndexOrThrow(FileColumns.OWNER_PACKAGE_NAME))); in assertUpgrade() 198 assertEquals("0", c.getString(c.getColumnIndexOrThrow(FileColumns.IS_DOWNLOAD))); in assertUpgrade() [all …]
|
/packages/services/Car/tools/emulator/ |
D | user_action_generator.py | 18 import vhal_consts_2_0 as c namespace 22 c.VEHICLEPROPERTY_HVAC_POWER_ON, 23 c.VEHICLEPROPERTY_HVAC_TEMPERATURE_SET, 24 c.VEHICLEPROPERTY_HVAC_FAN_SPEED, 25 c.VEHICLEPROPERTY_HVAC_FAN_DIRECTION, 26 c.VEHICLEPROPERTY_HVAC_AUTO_ON, 27 c.VEHICLEPROPERTY_HVAC_RECIRC_ON, 28 c.VEHICLEPROPERTY_HVAC_AC_ON, 29 c.VEHICLEPROPERTY_HVAC_DEFROSTER 33 c.VEHICLEPROPERTY_HVAC_POWER_ON: 'HVAC_POWER_ON', [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 604 Cursor c = queryRawContact(rawContactId); in queryContactId() local 605 assertTrue(c.moveToFirst()); in queryContactId() 606 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId() 607 c.close(); in queryContactId() 612 Cursor c = queryContact(contactId); in queryPhotoId() local 613 assertTrue(c.moveToFirst()); in queryPhotoId() 614 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId() 615 c.close(); in queryPhotoId() 625 Cursor c = queryRawContact(rawContactId); in queryRawContactIsStarred() local 627 assertTrue(c.moveToFirst()); in queryRawContactIsStarred() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | InspectorProvider.java | 72 MatrixCursor c = createDocCursor(projection); in queryDocument() local 73 addFile(c, OPEN_IN_PROVIDER_TEST, FLAG_SUPPORTS_SETTINGS); in queryDocument() 74 return c; in queryDocument() 77 MatrixCursor c = createDocCursor(projection); in queryDocument() local 78 addFolder(c, documentId); in queryDocument() 79 return c; in queryDocument() 98 MatrixCursor c = createDocCursor(projection); in queryChildDocuments() local 99 addFolder(c, "Middle"); in queryChildDocuments() 100 addFileWithSize(c, "dummy1", 50); in queryChildDocuments() 101 addFileWithSize(c, "dummy2", 150); in queryChildDocuments() [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()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | TestProviderTests.java | 109 Cursor c = mMockResolver.query(uri, PONY_PROJECTION, null, null, null); in testInsertQueryandDelete() local 110 assertNotNull(c); in testInsertQueryandDelete() 111 assertEquals(2, c.getCount()); in testInsertQueryandDelete() 114 while (c.moveToNext()) { in testInsertQueryandDelete() 115 String name = c.getString(PONY_NAME); in testInsertQueryandDelete() 117 assertEquals("Flicka", c.getString(PONY_NAME)); in testInsertQueryandDelete() 118 assertEquals("wayward", c.getString(PONY_TYPE)); in testInsertQueryandDelete() 119 assertEquals(4, c.getInt(PONY_LEGS)); in testInsertQueryandDelete() 120 assertEquals(1, c.getInt(PONY_CAN_RIDE)); in testInsertQueryandDelete() 121 flickaId = c.getLong(PONY_ID); in testInsertQueryandDelete() [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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 597 CRC32 c = new CRC32(); in getChecksum() local 598 c.update(array); in getChecksum() 599 checksum += c.getValue(); in getChecksum() 884 Cursor c; in onUpgrade() local 887 c = db.query(CARRIERS_TABLE, proj, null, null, null, null, null); in onUpgrade() 888 log("dbh.onUpgrade:- before upgrading total number of rows: " + c.getCount()); in onUpgrade() 895 c = db.query(CARRIERS_TABLE, null, null, null, null, null, null); in onUpgrade() 899 "rows: " + ((c == null) ? 0 : c.getCount())); in onUpgrade() 904 copyPreservedApnsToNewTable(db, c); in onUpgrade() 905 c.close(); in onUpgrade() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_geometry.h | 31 inline void db_PointCentroid2D(double c[2],const double *X,int nr_points) in db_PointCentroid2D() 45 c[0]=cx*m; in db_PointCentroid2D() 46 c[1]=cy*m; in db_PointCentroid2D() 48 else c[0]=c[1]=0; in db_PointCentroid2D() 51 inline void db_PointCentroid2D(double c[2],const double * const *X,int nr_points) in db_PointCentroid2D() 67 c[0]=cx*m; in db_PointCentroid2D() 68 c[1]=cy*m; in db_PointCentroid2D() 70 else c[0]=c[1]=0; in db_PointCentroid2D() 75 inline void db_PointCentroid3D(double c[3],const double *X,int nr_points) in db_PointCentroid3D() 90 c[0]=cx*m; in db_PointCentroid3D() [all …]
|
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/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | JavaNetHttpHelper.java | 83 HttpURLConnection c = null; in get() local 85 c = createConnection(url, requestHeaders); in get() 86 c.setRequestMethod("GET"); in get() 87 c.connect(); in get() 88 return getResponseFrom(c); in get() 90 if (c != null) { in get() 91 c.disconnect(); in get() 103 HttpURLConnection c = null; in post() local 110 c = createConnection(url, requestHeaders); in post() 111 c.setDoOutput(content != null); in post() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator2.java | 259 final Cursor c = db.rawQuery(sql, null); in clearSuperPrimarySetting() local 261 c.moveToPosition(-1); in clearSuperPrimarySetting() 262 while (c.moveToNext()) { in clearSuperPrimarySetting() 266 mimeTypeCondition.append(c.getLong((0))); in clearSuperPrimarySetting() 270 c.close(); in clearSuperPrimarySetting() 513 final Cursor c = db.query(AggregateExceptionQuery.TABLE, in updateMatchScoresBasedOnExceptions() local 520 while (c.moveToNext()) { in updateMatchScoresBasedOnExceptions() 521 int type = c.getInt(AggregateExceptionQuery.TYPE); in updateMatchScoresBasedOnExceptions() 522 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in updateMatchScoresBasedOnExceptions() 527 if (!c.isNull(AggregateExceptionQuery.RAW_CONTACT_ID2)) { in updateMatchScoresBasedOnExceptions() [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | contrast.c | 20 unsigned char clamp(int c) in clamp() argument 23 c &= ~(c >> 31); in clamp() 24 c -= N; in clamp() 25 c &= (c >> 31); in clamp() 26 c += N; in clamp() 27 return (unsigned char) c; in clamp() 30 int clampMax(int c,int max) in clampMax() argument 32 c &= ~(c >> 31); in clampMax() 33 c -= max; in clampMax() 34 c &= (c >> 31); in clampMax() [all …]
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCard.java | 198 ContextualCard(Cursor c) { in ContextualCard() argument 200 mName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.NAME)); in ContextualCard() 202 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard() 204 mRankingScore = c.getDouble(c.getColumnIndex(CardDatabaseHelper.CardColumns.SCORE)); in ContextualCard() 206 mSliceUri = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.SLICE_URI)); in ContextualCard() 208 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 210 mLocalizedToLocale = c.getString( in ContextualCard() 211 c.getColumnIndex(CardDatabaseHelper.CardColumns.LOCALIZED_TO_LOCALE)); in ContextualCard() 213 mPackageName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.PACKAGE_NAME)); in ContextualCard() 215 mAppVersion = c.getLong(c.getColumnIndex(CardDatabaseHelper.CardColumns.APP_VERSION)); in ContextualCard() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | ContextualCard.java | 192 ContextualCard(Cursor c) { in ContextualCard() argument 194 mName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.NAME)); in ContextualCard() 196 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard() 198 mRankingScore = c.getDouble(c.getColumnIndex(CardDatabaseHelper.CardColumns.SCORE)); in ContextualCard() 200 mSliceUri = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.SLICE_URI)); in ContextualCard() 202 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 204 mLocalizedToLocale = c.getString( in ContextualCard() 205 c.getColumnIndex(CardDatabaseHelper.CardColumns.LOCALIZED_TO_LOCALE)); in ContextualCard() 207 mPackageName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.PACKAGE_NAME)); in ContextualCard() 209 mAppVersion = c.getLong(c.getColumnIndex(CardDatabaseHelper.CardColumns.APP_VERSION)); in ContextualCard() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | char_utils.h | 32 static AK_FORCE_INLINE bool isAsciiUpper(int c) { in isAsciiUpper() argument 35 return (c >= 'A' && c <= 'Z'); in isAsciiUpper() 38 static AK_FORCE_INLINE int toLowerCase(const int c) { in toLowerCase() argument 39 if (isAsciiUpper(c)) { in toLowerCase() 40 return toAsciiLower(c); in toLowerCase() 42 if (isAscii(c)) { in toLowerCase() 43 return c; in toLowerCase() 45 return latin_tolower(c); in toLowerCase() 48 static AK_FORCE_INLINE int toBaseLowerCase(const int c) { in toBaseLowerCase() argument 49 return toLowerCase(toBaseCodePoint(c)); in toBaseLowerCase() [all …]
|