/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtilsTests.java | 40 final int c = TextUtils.CAP_MODE_CHARACTERS; in allPathsForCaps() local 43 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps() 45 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps() 46 onePathForCaps(cs, expectedResult, c | w, sp, hasSpaceBefore); in allPathsForCaps() 47 onePathForCaps(cs, expectedResult, c, sp, hasSpaceBefore); in allPathsForCaps() 53 final int c = TextUtils.CAP_MODE_CHARACTERS; in testGetCapsMode() local 64 allPathsForCaps("", c | w | s, sp, false); in testGetCapsMode() 65 allPathsForCaps("Word", c, sp, false); in testGetCapsMode() 66 allPathsForCaps("Word.", c, sp, false); in testGetCapsMode() 67 allPathsForCaps("Word ", c | w, sp, false); in testGetCapsMode() [all …]
|
/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/apps/Nfc/nci/jni/extns/pn54x/src/utils/ |
D | phNxpConfig.cpp | 102 inline bool isPrintable (char c) in isPrintable() argument 104 return (c >= 'A' && c <= 'Z') || in isPrintable() 105 (c >= 'a' && c <= 'z') || in isPrintable() 106 (c >= '0' && c <= '9') || in isPrintable() 107 c == '/' || c == '_' || c == '-' || c == '.'; in isPrintable() 119 inline bool isDigit (char c, int base) in isDigit() argument 121 if ('0' <= c && c <= '9') in isDigit() 125 if (('A' <= c && c <= 'F') || in isDigit() 126 ('a' <= c && c <= 'f')) in isDigit() 141 inline int getDigitValue (char c, int base) in getDigitValue() argument [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/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 | PercentEscaper.java | 149 for (char c : safeCharArray) { in createSafeOctets() 150 maxChar = Math.max(c, maxChar); in createSafeOctets() 153 for (int c = '0'; c <= '9'; c++) { in createSafeOctets() 154 octets[c] = true; in createSafeOctets() 156 for (int c = 'A'; c <= 'Z'; c++) { in createSafeOctets() 157 octets[c] = true; in createSafeOctets() 159 for (int c = 'a'; c <= 'z'; c++) { in createSafeOctets() 160 octets[c] = true; in createSafeOctets() 162 for (char c : safeCharArray) { in createSafeOctets() 163 octets[c] = true; in createSafeOctets() [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/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | BluetoothMapContentTest.java | 72 private void printAccountInfo(Cursor c) { in printAccountInfo() argument 74 c.getInt(c.getColumnIndex(BluetoothMapContract.MessageColumns.ACCOUNT_ID)) ); in printAccountInfo() 142 Cursor c = mContext.getContentResolver().query(mEmailFolderUri, in addEmailFolders() local 144 if (c != null) { in addEmailFolders() 145 c.moveToPosition(-1); in addEmailFolders() 146 while (c.moveToNext()) { in addEmailFolders() 147 … String name = c.getString(c.getColumnIndex(BluetoothMapContract.FolderColumns.NAME)); in addEmailFolders() 148 long id = c.getLong(c.getColumnIndex(BluetoothMapContract.FolderColumns._ID)); in addEmailFolders() 152 c.close(); in addEmailFolders() 183 private void printCursor(Cursor c) { in printCursor() argument [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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 332 public void setMessageColumns(Cursor c) { in setMessageColumns() argument 333 mMessageColId = c.getColumnIndex( in setMessageColumns() 335 mMessageColDate = c.getColumnIndex( in setMessageColumns() 337 mMessageColSubject = c.getColumnIndex( in setMessageColumns() 339 mMessageColFolder = c.getColumnIndex( in setMessageColumns() 341 mMessageColRead = c.getColumnIndex( in setMessageColumns() 343 mMessageColSize = c.getColumnIndex( in setMessageColumns() 345 mMessageColFromAddress = c.getColumnIndex( in setMessageColumns() 347 mMessageColToAddress = c.getColumnIndex( in setMessageColumns() 349 mMessageColAttachment = c.getColumnIndex( in setMessageColumns() [all …]
|
D | BluetoothMapUtils.java | 125 public static void printCursor(Cursor c) { in printCursor() argument 129 for(int i = 0; i < c.getColumnCount(); i++) { in printCursor() 130 if(c.getColumnName(i).equals(BluetoothMapContract.MessageColumns.DATE) || in printCursor() 131 c.getColumnName(i).equals( in printCursor() 133 c.getColumnName(i).equals(BluetoothMapContract.ChatStatusColumns.LAST_ACTIVE) || in printCursor() 134 c.getColumnName(i).equals(BluetoothMapContract.PresenceColumns.LAST_ONLINE) ){ in printCursor() 135 sb.append(" ").append(c.getColumnName(i)).append(" : ").append( in printCursor() 136 getDateTimeString(c.getLong(i))).append("\n"); in printCursor() 138 sb.append(" ").append(c.getColumnName(i)).append(" : ").append( in printCursor() 139 c.getString(i)).append("\n"); in printCursor() [all …]
|
D | BluetoothMapContentObserver.java | 559 public void setConvoColunms(Cursor c) { in setConvoColunms() argument 566 mContactColConvoId = c.getColumnIndex( in setConvoColunms() 568 mContactColName = c.getColumnIndex( in setConvoColunms() 570 mContactColNickname = c.getColumnIndex( in setConvoColunms() 572 mContactColBtUid = c.getColumnIndex( in setConvoColunms() 574 mContactColChatState = c.getColumnIndex( in setConvoColunms() 576 mContactColUci = c.getColumnIndex( in setConvoColunms() 578 mContactColNickname = c.getColumnIndex( in setConvoColunms() 580 mContactColLastActive = c.getColumnIndex( in setConvoColunms() 582 mContactColName = c.getColumnIndex( in setConvoColunms() [all …]
|
D | SmsMmsContacts.java | 80 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, where, null, null); in getPhoneNumberUncached() local 82 if (c != null) { in getPhoneNumberUncached() 83 if(c.moveToPosition(0)) { in getPhoneNumberUncached() 84 return c.getString(COL_ADDR_ADDR); in getPhoneNumberUncached() 89 if(c != null) c.close(); in getPhoneNumberUncached() 108 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, null, null, null); in fillPhoneCache() local 111 if(c != null) in fillPhoneCache() 113 size = c.getCount(); in fillPhoneCache() 120 if (c != null) { in fillPhoneCache() 123 c.moveToPosition(-1); in fillPhoneCache() [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_image_homography.cpp | 34 inline void db_SProjImagePointPointConstraint(double c[9],int i_num,int i_den,int i_zero, in db_SProjImagePointPointConstraint() 37 db_MultiplyScalarCopy3(c+3*i_den,x, xp[i_num]); in db_SProjImagePointPointConstraint() 38 db_MultiplyScalarCopy3(c+3*i_num,x, -xp[i_den]); in db_SProjImagePointPointConstraint() 39 db_Zero3(c+3*i_zero); in db_SProjImagePointPointConstraint() 83 double c[72]; in db_StitchProjective2D_4Points() local 86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1); in db_StitchProjective2D_4Points() 87 db_SProjImagePointPointConstraints(c+18,c+27,xp2,x2); in db_StitchProjective2D_4Points() 88 db_SProjImagePointPointConstraints(c+36,c+45,xp3,x3); in db_StitchProjective2D_4Points() 89 db_SProjImagePointPointConstraints(c+54,c+63,xp4,x4); in db_StitchProjective2D_4Points() 91 db_NullVector8x9Destructive(H,c); in db_StitchProjective2D_4Points() [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/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/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/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/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 596 Cursor c = queryRawContact(rawContactId); in queryContactId() local 597 assertTrue(c.moveToFirst()); in queryContactId() 598 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId() 599 c.close(); in queryContactId() 604 Cursor c = queryContact(contactId); in queryPhotoId() local 605 assertTrue(c.moveToFirst()); in queryPhotoId() 606 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId() 607 c.close(); in queryPhotoId() 617 Cursor c = queryRawContact(rawContactId); in queryRawContactIsStarred() local 619 assertTrue(c.moveToFirst()); in queryRawContactIsStarred() [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 …]
|
/packages/apps/Gallery2/jni/ |
D | Android.mk | 27 LOCAL_SRC_FILES := filters/gradient.c \ 28 filters/saturated.c \ 29 filters/exposure.c \ 30 filters/edge.c \ 31 filters/contrast.c \ 32 filters/hue.c \ 33 filters/shadows.c \ 34 filters/highlight.c \ 35 filters/hsv.c \ 36 filters/vibrance.c \ [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/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PhonebookPullRequest.java | 48 Cursor c = null; in fetchContact() local 50 c = mContext.getContentResolver().query( in fetchContact() 56 if (c != null) { in fetchContact() 57 int mimeTypeIndex = c.getColumnIndex(Data.MIMETYPE); in fetchContact() 58 int familyNameIndex = c.getColumnIndex(StructuredName.FAMILY_NAME); in fetchContact() 59 int givenNameIndex = c.getColumnIndex(StructuredName.GIVEN_NAME); in fetchContact() 60 int middleNameIndex = c.getColumnIndex(StructuredName.MIDDLE_NAME); in fetchContact() 61 int prefixIndex = c.getColumnIndex(StructuredName.PREFIX); in fetchContact() 62 int suffixIndex = c.getColumnIndex(StructuredName.SUFFIX); in fetchContact() 64 int phoneTypeIndex = c.getColumnIndex(Phone.TYPE); in fetchContact() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 130 char c = 0; in parse() local 135 c = string.charAt(offset++); in parse() 136 if (c < '0' || c > '9') { in parse() 139 hashCode = hashCode * 10 + (c - '0'); in parse() 143 if (c == 'i') { in parse() 146 } else if (c == 'e') { in parse() 149 } else if (c == 'n') { in parse() 151 } else if (c == 'r') { in parse() 153 } else if (c == 'c') { in parse() 166 c = string.charAt(offset++); in parse() [all …]
|