Home
last modified time | relevance | path

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

12345678910>>...43

/packages/modules/Bluetooth/system/gd/security/ecc/
Dmultprecision.cc36 void multiprecision_init(uint32_t* c) { in multiprecision_init() argument
37 for (uint32_t i = 0; i < KEY_LENGTH_DWORDS_P256; i++) c[i] = 0; in multiprecision_init()
40 void multiprecision_copy(uint32_t* c, const uint32_t* a) { in multiprecision_copy() argument
41 for (uint32_t i = 0; i < KEY_LENGTH_DWORDS_P256; i++) c[i] = a[i]; in multiprecision_copy()
83 uint32_t multiprecision_add(uint32_t* c, const uint32_t* a, const uint32_t* b) { in multiprecision_add() argument
93 c[i] = temp; in multiprecision_add()
100 uint32_t multiprecision_sub(uint32_t* c, const uint32_t* a, const uint32_t* b) { in multiprecision_sub() argument
108 c[i] = temp - b[i]; in multiprecision_sub()
109 borrow |= (c[i] > temp); in multiprecision_sub()
116 void multiprecision_lshift_mod(uint32_t* c, const uint32_t* a, const uint32_t* modp) { in multiprecision_lshift_mod() argument
[all …]
/packages/modules/Bluetooth/system/stack/smp/
Dp_256_multprecision.cc30 void multiprecision_init(uint32_t* c) { in multiprecision_init() argument
31 for (uint32_t i = 0; i < KEY_LENGTH_DWORDS_P256; i++) c[i] = 0; in multiprecision_init()
34 void multiprecision_copy(uint32_t* c, uint32_t* a) { in multiprecision_copy() argument
35 for (uint32_t i = 0; i < KEY_LENGTH_DWORDS_P256; i++) c[i] = a[i]; in multiprecision_copy()
78 uint32_t multiprecision_add(uint32_t* c, uint32_t* a, uint32_t* b) { in multiprecision_add() argument
88 c[i] = temp; in multiprecision_add()
95 uint32_t multiprecision_sub(uint32_t* c, uint32_t* a, uint32_t* b) { in multiprecision_sub() argument
103 c[i] = temp - b[i]; in multiprecision_sub()
104 borrow |= (c[i] > temp); in multiprecision_sub()
111 void multiprecision_lshift_mod(uint32_t* c, uint32_t* a) { in multiprecision_lshift_mod() argument
[all …]
/packages/modules/Bluetooth/system/gd/rust/shim/src/
Dbridge.rs37 fn controller_supports_simple_pairing(c: &Controller) -> bool; in controller_supports_simple_pairing()
38 fn controller_supports_secure_connections(c: &Controller) -> bool; in controller_supports_secure_connections()
39 fn controller_supports_simultaneous_le_bredr(c: &Controller) -> bool; in controller_supports_simultaneous_le_bredr()
40 fn controller_supports_interlaced_inquiry_scan(c: &Controller) -> bool; in controller_supports_interlaced_inquiry_scan()
41 fn controller_supports_rssi_with_inquiry_results(c: &Controller) -> bool; in controller_supports_rssi_with_inquiry_results()
42 fn controller_supports_extended_inquiry_response(c: &Controller) -> bool; in controller_supports_extended_inquiry_response()
43 fn controller_supports_role_switch(c: &Controller) -> bool; in controller_supports_role_switch()
44 fn controller_supports_three_slot_packets(c: &Controller) -> bool; in controller_supports_three_slot_packets()
45 fn controller_supports_five_slot_packets(c: &Controller) -> bool; in controller_supports_five_slot_packets()
46 fn controller_supports_classic_2m_phy(c: &Controller) -> bool; in controller_supports_classic_2m_phy()
[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/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/modules/Bluetooth/system/stack/btm/
Dbtm_ble_multi_adv.cc303 std::unique_ptr<CreatorParams> c; in StartAdvertising() local
304 c.reset(new CreatorParams()); in StartAdvertising()
306 c->self = weak_factory_.GetWeakPtr(); in StartAdvertising()
307 c->cb = std::move(cb); in StartAdvertising()
308 c->params = *params; in StartAdvertising()
309 c->advertise_data = std::move(advertise_data); in StartAdvertising()
310 c->scan_response_data = std::move(scan_response_data); in StartAdvertising()
311 c->duration = duration; in StartAdvertising()
312 c->timeout_cb = std::move(timeout_cb); in StartAdvertising()
313 c->inst_id = advertiser_id; in StartAdvertising()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridSizeMigrationUtilTest.kt140 var c = in <lambda>() variable
151 assertThat(c.count).isEqualTo(idp.numDatabaseHotseatIcons) in <lambda>()
153 val screenIndex = c.getColumnIndex(SCREEN) in <lambda>()
154 var intentIndex = c.getColumnIndex(INTENT) in <lambda>()
155 c.moveToNext() in <lambda>()
156 assertThat(c.getInt(screenIndex).toLong()).isEqualTo(0) in <lambda>()
157 assertThat(c.getString(intentIndex)).contains(testPackage1) in <lambda>()
158 c.moveToNext() in <lambda>()
159 assertThat(c.getInt(screenIndex).toLong()).isEqualTo(1) in <lambda>()
160 assertThat(c.getString(intentIndex)).contains(testPackage2) in <lambda>()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java248 assertNotEqualsAfterChange(c -> c.mUsingMultinetworkPolicyTracker = false); in testEquals()
249 assertNotEqualsAfterChange(c -> c.mUsingIpReachabilityMonitor = false); in testEquals()
250 assertNotEqualsAfterChange(c -> c.mRequestedPreDhcpActionMs++); in testEquals()
251 assertNotEqualsAfterChange(c -> c.mInitialConfig.ipAddresses.add( in testEquals()
253 assertNotEqualsAfterChange(c -> c.mInitialConfig = null); in testEquals()
254 assertNotEqualsAfterChange(c -> c.mStaticIpConfig.ipAddress = in testEquals()
256 assertNotEqualsAfterChange(c -> c.mStaticIpConfig = null); in testEquals()
257 assertNotEqualsAfterChange(c -> c.mApfCapabilities = new ApfCapabilities(4, 5, 6)); in testEquals()
258 assertNotEqualsAfterChange(c -> c.mApfCapabilities = null); in testEquals()
259 assertNotEqualsAfterChange(c -> c.mProvisioningTimeoutMs++); in testEquals()
[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/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/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapContent.java339 public void setMessageColumns(Cursor c) { in setMessageColumns() argument
340 mMessageColId = c.getColumnIndex(BluetoothMapContract.MessageColumns._ID); in setMessageColumns()
341 mMessageColDate = c.getColumnIndex(BluetoothMapContract.MessageColumns.DATE); in setMessageColumns()
342 mMessageColSubject = c.getColumnIndex(BluetoothMapContract.MessageColumns.SUBJECT); in setMessageColumns()
343 mMessageColFolder = c.getColumnIndex(BluetoothMapContract.MessageColumns.FOLDER_ID); in setMessageColumns()
344 mMessageColRead = c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_READ); in setMessageColumns()
345 mMessageColSize = c.getColumnIndex(BluetoothMapContract.MessageColumns.MESSAGE_SIZE); in setMessageColumns()
347 c.getColumnIndex(BluetoothMapContract.MessageColumns.FROM_LIST); in setMessageColumns()
348 mMessageColToAddress = c.getColumnIndex(BluetoothMapContract.MessageColumns.TO_LIST); in setMessageColumns()
350 c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_ATTACHMENT); in setMessageColumns()
[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/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/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/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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DItemsProviderTest.java109 Cursor c = mItemsProvider.getCategories(/* mimeType */ null, /* userId */ null); in testGetCategories_camera() local
110 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_camera()
129 Cursor c = mItemsProvider.getCategories(/* mimeType */ null, /* userId */ null); in testGetCategories_not_camera() local
130 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_camera()
148 Cursor c = mItemsProvider.getCategories(/* mimeType */ null, /* userId */ null); in testGetCategories_videos() local
149 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_videos()
168 Cursor c = mItemsProvider.getCategories(/* mimeType */ null, /* userId */ null); in testGetCategories_not_videos() local
169 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_videos()
187 Cursor c = mItemsProvider.getCategories(/* mimeType */ null, /* userId */ null); in testGetCategories_screenshots() local
188 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_screenshots()
[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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java615 Cursor c = queryRawContact(rawContactId); in queryContactId() local
616 assertTrue(c.moveToFirst()); in queryContactId()
617 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId()
618 c.close(); in queryContactId()
623 Cursor c = queryContact(contactId); in queryPhotoId() local
624 assertTrue(c.moveToFirst()); in queryPhotoId()
625 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId()
626 c.close(); in queryPhotoId()
636 Cursor c = queryRawContact(rawContactId); in queryRawContactIsStarred() local
638 assertTrue(c.moveToFirst()); in queryRawContactIsStarred()
[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/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java380 final LoaderCursor c = new LoaderCursor( in loadWorkspace() local
383 final Bundle extras = c.getExtras(); in loadWorkspace()
415 while (!mStopped && c.moveToNext()) { in loadWorkspace()
416 processWorkspaceItem(c, memoryLogger, installingPkgs, isSdCardReady, in loadWorkspace()
422 IOUtils.closeSilently(c); in loadWorkspace()
441 mItemsDeleted = c.commitDeleted(); in loadWorkspace()
466 c.commitRestoredItems(); in loadWorkspace()
470 private void processWorkspaceItem(LoaderCursor c, in processWorkspaceItem() argument
484 if (c.user == null) { in processWorkspaceItem()
486 c.markDeleted("User has been deleted"); in processWorkspaceItem()
[all …]
/packages/modules/Bluetooth/system/embdrv/lc3/src/
Dsns.c376 LC3_HOT static void normalize(const int *c, float *cn) in normalize() argument
380 c2_sum += c[i] * c[i]; in normalize()
385 cn[i] = c[i] * c_norm; in normalize()
424 int (*c)[16], float (*cn)[16], int *shape_idx, int *gain_idx) in quantize()
456 c[3][i] = floorf(xm[i] * proj_factor); in quantize()
457 npulses += c[3][i]; in quantize()
458 corr += c[3][i] * xm[i]; in quantize()
459 energy += c[3][i] * c[3][i]; in quantize()
462 add_pulse(xm, c[3], 16, npulses, 6, &corr, &energy); in quantize()
468 memcpy(c[2], c[3], sizeof(c[2])); in quantize()
[all …]

12345678910>>...43