Home
last modified time | relevance | path

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

12345678910>>...36

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pManager.java1129 private static void checkChannel(Channel c) { in checkChannel() argument
1130 if (c == null) throw new IllegalArgumentException("Channel needs to be initialized"); in checkChannel()
1141 private static void checkP2pConfig(WifiP2pConfig c) { in checkP2pConfig() argument
1142 if (c == null) throw new IllegalArgumentException("config cannot be null"); in checkP2pConfig()
1143 if (TextUtils.isEmpty(c.deviceAddress)) { in checkP2pConfig()
1178 Channel c = new Channel(srcContext, srcLooper, listener, binder, this); in initializeChannel()
1179 if (c.mAsyncChannel.connectSync(srcContext, c.mHandler, messenger) in initializeChannel()
1182 bundle.putString(CALLING_PACKAGE, c.mContext.getOpPackageName()); in initializeChannel()
1183 bundle.putString(CALLING_FEATURE_ID, c.mContext.getAttributionTag()); in initializeChannel()
1185 c.mAsyncChannel.sendMessage(UPDATE_CHANNEL_INFO, 0, in initializeChannel()
[all …]
/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/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionTest.java53 TestTelephonyConnection c = new TestTelephonyConnection(); in testSetupCommunicator() local
54 c.setIsImsConnection(true); in testSetupCommunicator()
56 when(c.mMockResources.getBoolean(eq( in testSetupCommunicator()
58 c.getCarrierConfigBundle().putBoolean( in testSetupCommunicator()
62 c.setOriginalConnection(mImsPhoneConnection); in testSetupCommunicator()
63 assertNotNull(c.getCommunicator()); in testSetupCommunicator()
71 TestTelephonyConnection c = new TestTelephonyConnection(); in testDoNotSetupCommunicatorWhenDisabled() local
72 c.setIsImsConnection(true); in testDoNotSetupCommunicatorWhenDisabled()
74 when(c.mMockResources.getBoolean(eq( in testDoNotSetupCommunicatorWhenDisabled()
77 c.setOriginalConnection(mImsPhoneConnection); in testDoNotSetupCommunicatorWhenDisabled()
[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.java166 assertNotEqualsAfterChange(c -> c.mEnableIPv4 = false); in testEquals()
167 assertNotEqualsAfterChange(c -> c.mEnableIPv6 = false); in testEquals()
168 assertNotEqualsAfterChange(c -> c.mUsingMultinetworkPolicyTracker = false); in testEquals()
169 assertNotEqualsAfterChange(c -> c.mUsingIpReachabilityMonitor = false); in testEquals()
170 assertNotEqualsAfterChange(c -> c.mRequestedPreDhcpActionMs++); in testEquals()
171 assertNotEqualsAfterChange(c -> c.mInitialConfig.ipAddresses.add( in testEquals()
173 assertNotEqualsAfterChange(c -> c.mInitialConfig = null); in testEquals()
174 assertNotEqualsAfterChange(c -> c.mStaticIpConfig.ipAddress = in testEquals()
176 assertNotEqualsAfterChange(c -> c.mStaticIpConfig = null); in testEquals()
177 assertNotEqualsAfterChange(c -> c.mApfCapabilities = new ApfCapabilities(4, 5, 6)); in testEquals()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskV2Test.java137 Cursor c = mContext.getContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, in testMigration() local
140 assertEquals(c.getCount(), mIdp.numDatabaseHotseatIcons); in testMigration()
141 int screenIndex = c.getColumnIndex(LauncherSettings.Favorites.SCREEN); in testMigration()
142 int intentIndex = c.getColumnIndex(LauncherSettings.Favorites.INTENT); in testMigration()
143 c.moveToNext(); in testMigration()
144 assertEquals(c.getInt(screenIndex), 1); in testMigration()
145 assertTrue(c.getString(intentIndex).contains(testPackage2)); in testMigration()
146 c.moveToNext(); in testMigration()
147 assertEquals(c.getInt(screenIndex), 0); in testMigration()
148 assertTrue(c.getString(intentIndex).contains(testPackage1)); in testMigration()
[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/modules/Connectivity/tests/unit/java/android/net/
DIpSecConfigTest.java44 IpSecConfig c = new IpSecConfig(); in testDefaults() local
45 assertEquals(IpSecTransform.MODE_TRANSPORT, c.getMode()); in testDefaults()
46 assertEquals("", c.getSourceAddress()); in testDefaults()
47 assertEquals("", c.getDestinationAddress()); in testDefaults()
48 assertNull(c.getNetwork()); in testDefaults()
49 assertEquals(IpSecTransform.ENCAP_NONE, c.getEncapType()); in testDefaults()
50 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getEncapSocketResourceId()); in testDefaults()
51 assertEquals(0, c.getEncapRemotePort()); in testDefaults()
52 assertEquals(0, c.getNattKeepaliveInterval()); in testDefaults()
53 assertNull(c.getEncryption()); in testDefaults()
[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/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, "stub1", 50); in queryChildDocuments()
101 addFileWithSize(c, "stub2", 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/Car/Settings/tests/unit/src/com/android/car/settings/search/
DCarSettingsSearchIndexablesProviderTest.java107 Cursor c = mProvider.queryXmlResources(null); in queryXmlResources_fillsColumns() local
109 assertThat(c.getCount()).isEqualTo(1); in queryXmlResources_fillsColumns()
111 c.moveToFirst(); in queryXmlResources_fillsColumns()
113 assertEqual(c, res); in queryXmlResources_fillsColumns()
129 Cursor c = mProvider.queryXmlResources(null); in queryXmlResources_returnsAllRows() local
131 assertThat(c.getCount()).isEqualTo(resources.size()); in queryXmlResources_returnsAllRows()
134 while (c.moveToNext()) { in queryXmlResources_returnsAllRows()
135 assertEqual(c, resources.get(i++)); in queryXmlResources_returnsAllRows()
151 Cursor c = mProvider.queryXmlResources(null); in queryXmlResources_onPartiallyFilledFields_returnsPartialRows() local
153 assertThat(c.getCount()).isEqualTo(1); in queryXmlResources_onPartiallyFilledFields_returnsPartialRows()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java363 final LoaderCursor c = new LoaderCursor( in loadWorkspace() local
366 final Bundle extras = c.getExtras(); in loadWorkspace()
370 final int appWidgetIdIndex = c.getColumnIndexOrThrow( in loadWorkspace()
372 final int appWidgetProviderIndex = c.getColumnIndexOrThrow( in loadWorkspace()
374 final int spanXIndex = c.getColumnIndexOrThrow in loadWorkspace()
376 final int spanYIndex = c.getColumnIndexOrThrow( in loadWorkspace()
378 final int rankIndex = c.getColumnIndexOrThrow( in loadWorkspace()
380 final int optionsIndex = c.getColumnIndexOrThrow( in loadWorkspace()
382 final int sourceContainerIndex = c.getColumnIndexOrThrow( in loadWorkspace()
418 while (!mStopped && c.moveToNext()) { in loadWorkspace()
[all …]
/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/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/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 …]
/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/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/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/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/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/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java1066 Cursor c; in onUpgrade() local
1069 c = db.query(CARRIERS_TABLE, proj, null, null, null, null, null); in onUpgrade()
1070 log("dbh.onUpgrade:- before upgrading total number of rows: " + c.getCount()); in onUpgrade()
1077 c = db.query(CARRIERS_TABLE, null, null, null, null, null, null); in onUpgrade()
1081 "rows: " + ((c == null) ? 0 : c.getCount())); in onUpgrade()
1086 copyPreservedApnsToNewTable(db, c); in onUpgrade()
1087 c.close(); in onUpgrade()
1095 c = db.query(CARRIERS_TABLE, proj, null, null, null, null, null); in onUpgrade()
1096 log("dbh.onUpgrade:- after upgrading total number of rows: " + c.getCount()); in onUpgrade()
1097 c.close(); in onUpgrade()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DLogcatLogTest.java69 logMessage.c(1).flush(); in logMessageWorksWithValueOnly()
80 logMessage.c('%').flush(); in logMessageIsNotConfusedByPlaceholderInValue()
88 logMessage.c(1).flush(); in logMessageWorksWithValueAtBegin()
96 logMessage.c(1).flush(); in logMessageWorksWithValueInMiddle()
104 logMessage.c(1).flush(); in logMessageWorksWithValueAtEnd()
112 logMessage.c("hello").c("world").flush(); in logMessageWorksWithMultipleValues()
120 logMessage.c("hello").c("world").flush(); in logMessageWorksWithMultipleValuesAndLiterals()
128 logMessage.c("hello").c("world").flush(); in logMessageWorksWithAdjacentValues()
136 logMessage.c("hello world").c("more stuff").flush(); in logMessageSilentlyIgnoresExtraneousValues()
147 logMessage.c("hello world").c("more stuff").flush(); in logMessageSilentlyIgnoresExtraneousValuesEvenForEmptyFormat()
[all …]

12345678910>>...36