Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h125 #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/
DCapsModeUtilsTests.java49 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/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java144 assertNotEqualsAfterChange(c -> c.mEnableIPv4 = false); in testEquals()
145 assertNotEqualsAfterChange(c -> c.mEnableIPv6 = false); in testEquals()
146 assertNotEqualsAfterChange(c -> c.mUsingMultinetworkPolicyTracker = false); in testEquals()
147 assertNotEqualsAfterChange(c -> c.mUsingIpReachabilityMonitor = false); in testEquals()
148 assertNotEqualsAfterChange(c -> c.mRequestedPreDhcpActionMs++); in testEquals()
149 assertNotEqualsAfterChange(c -> c.mInitialConfig.ipAddresses.add( in testEquals()
151 assertNotEqualsAfterChange(c -> c.mInitialConfig = null); in testEquals()
152 assertNotEqualsAfterChange(c -> c.mStaticIpConfig.ipAddress = in testEquals()
154 assertNotEqualsAfterChange(c -> c.mStaticIpConfig = null); in testEquals()
155 assertNotEqualsAfterChange(c -> c.mApfCapabilities = new ApfCapabilities(4, 5, 6)); in testEquals()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java325 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 …]
DBluetoothMapContentObserver.java561 public void setConvoColunms(Cursor c) { in setConvoColunms() argument
569 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CONVO_ID); in setConvoColunms()
570 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms()
572 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms()
573 mContactColBtUid = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.X_BT_UID); in setConvoColunms()
575 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CHAT_STATE); in setConvoColunms()
576 mContactColUci = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.UCI); in setConvoColunms()
578 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms()
580 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.LAST_ACTIVE); in setConvoColunms()
581 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms()
[all …]
DBluetoothMapUtils.java117 public static void printCursor(Cursor c) { in printCursor() argument
121 for (int i = 0; i < c.getColumnCount(); i++) { in printCursor()
122 if (c.getColumnName(i).equals(BluetoothMapContract.MessageColumns.DATE) in printCursor()
123 || c.getColumnName(i) in printCursor()
125 || c.getColumnName(i) in printCursor()
127 || c.getColumnName(i) in printCursor()
130 .append(c.getColumnName(i)) in printCursor()
132 .append(getDateTimeString(c.getLong(i))) in printCursor()
136 .append(c.getColumnName(i)) in printCursor()
138 .append(c.getString(i)) in printCursor()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java294 final LoaderCursor c = new LoaderCursor(contentResolver.query( in loadWorkspace() local
300 final int appWidgetIdIndex = c.getColumnIndexOrThrow( in loadWorkspace()
302 final int appWidgetProviderIndex = c.getColumnIndexOrThrow( in loadWorkspace()
304 final int spanXIndex = c.getColumnIndexOrThrow in loadWorkspace()
306 final int spanYIndex = c.getColumnIndexOrThrow( in loadWorkspace()
308 final int rankIndex = c.getColumnIndexOrThrow( in loadWorkspace()
310 final int optionsIndex = c.getColumnIndexOrThrow( in loadWorkspace()
313 final LongSparseArray<UserHandle> allUsers = c.allUsers; in loadWorkspace()
347 while (!mStopped && c.moveToNext()) { in loadWorkspace()
349 if (c.user == null) { in loadWorkspace()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java93 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/
Duser_action_generator.py18 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/
DBaseContactsProvider2Test.java604 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/
DInspectorProvider.java72 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/modules/DnsResolver/
Dres_comp.cpp131 #define hyphenchar(c) ((c) == 0x2d) argument
132 #define bslashchar(c) ((c) == 0x5c) argument
133 #define periodchar(c) ((c) == PERIOD) argument
134 #define asterchar(c) ((c) == 0x2a) argument
135 #define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) || ((c) >= 0x61 && (c) <= 0x7a)) argument
136 #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) argument
137 #define underscorechar(c) ((c) == 0x5f) argument
139 #define borderchar(c) (alphachar(c) || digitchar(c)) argument
140 #define middlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c)) argument
141 #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) argument
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DtrsMatrix.cpp24 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/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java109 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_stab/db_vlvm/
Ddb_utilities_geometry.h31 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 …]
Ddb_feature_detection.cpp37 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 …]
Ddb_image_homography.cpp34 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/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java667 CRC32 c = new CRC32(); in getChecksum() local
668 c.update(array); in getChecksum()
669 checksum += c.getValue(); in getChecksum()
956 Cursor c; in onUpgrade() local
959 c = db.query(CARRIERS_TABLE, proj, null, null, null, null, null); in onUpgrade()
960 log("dbh.onUpgrade:- before upgrading total number of rows: " + c.getCount()); in onUpgrade()
967 c = db.query(CARRIERS_TABLE, null, null, null, null, null, null); in onUpgrade()
971 "rows: " + ((c == null) ? 0 : c.getCount())); in onUpgrade()
976 copyPreservedApnsToNewTable(db, c); in onUpgrade()
977 c.close(); in onUpgrade()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java83 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/
DContactAggregator2.java259 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/
Dcontrast.c20 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCard.java192 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/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java198 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/inputmethods/LatinIME/native/jni/src/utils/
Dchar_utils.h32 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/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java436 try (Cursor c = db.rawQuery(ACCOUNTS_QUERY, null)) { in dump() argument
437 c.moveToPosition(-1); in dump()
438 while (c.moveToNext()) { in dump()
440 dumpLongColumn(pw, c, BaseColumns._ID); in dump()
442 dumpStringColumn(pw, c, AccountsColumns.ACCOUNT_NAME); in dump()
444 dumpStringColumn(pw, c, AccountsColumns.ACCOUNT_TYPE); in dump()
446 dumpStringColumn(pw, c, AccountsColumns.DATA_SET); in dump()
471 try (Cursor c = db.rawQuery(RAW_CONTACTS_PER_ACCOUNT_PER_CONTACT, null)) { in dump() argument
472 c.moveToPosition(-1); in dump()
473 while (c.moveToNext()) { in dump()
[all …]

12345678910>>...29