Home
last modified time | relevance | path

Searched refs:c2 (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.kt102 override fun compare(c1: City, c2: City): Int { in compare()
103 var result = mDelegate1.compare(c1, c2) in compare()
106 result = mDelegate2.compare(c1, c2) in compare()
122 override fun compare(c1: City, c2: City): Int { in compare()
124 val utcOffset2 = c2.timeZone.getOffset(now) in compare()
142 override fun compare(c1: City, c2: City): Int { in compare()
143 var result = mDelegate.compare(c1, c2) in compare()
146 result = mNameCollator.compare(c1.phoneticName, c2.phoneticName) in compare()
163 override fun compare(c1: City, c2: City): Int { in compare()
164 var result = c1.index.compareTo(c2.index) in compare()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarDatabaseHelperTest.java531 private static boolean compareCursors(Cursor c1, Cursor c2) { in compareCursors() argument
532 if(c1 == null || c2 == null) { in compareCursors()
533 Log.d("CDBT","c1 is " + c1 + " and c2 is " + c2); in compareCursors()
538 if (numColumns != c2.getColumnCount()) { in compareCursors()
539 Log.d("CDBT","c1 has " + numColumns + " columns and c2 has " + c2.getColumnCount()); in compareCursors()
543 if (c1.getCount() != c2.getCount()) { in compareCursors()
544 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount()); in compareCursors()
549 c2.moveToPosition(-1); in compareCursors()
550 while(c1.moveToNext() && c2.moveToNext()) { in compareCursors()
552 if(!TextUtils.equals(c1.getString(i),c2.getString(i))) { in compareCursors()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp97 double c0,c1,c2,c3; in db_SolveQuartic() local
122 c2=c/a; in db_SolveQuartic()
128 c3c3through4_min_c2=c3*c3through4-c2; in db_SolveQuartic()
137 db_SolveCubic(c_roots,&nr_c_roots,1.0,-c2,k1,k0); in db_SolveQuartic()
169 double c0,c1,c2,c3; in db_SolveQuarticForced() local
194 c2=c/a; in db_SolveQuarticForced()
200 c3c3through4_min_c2=c3*c3through4-c2; in db_SolveQuarticForced()
209 db_SolveCubic(c_roots,&nr_c_roots,1.0,-c2,k1,k0); in db_SolveQuarticForced()
Ddb_image_homography.cpp44 inline void db_SProjImagePointPointConstraints(double c1[9],double c2[9],double xp[3],double x[3]) in db_SProjImagePointPointConstraints()
58 db_SProjImagePointPointConstraint(c2,2,0,1,xp,x); in db_SProjImagePointPointConstraints()
62 db_SProjImagePointPointConstraint(c2,2,1,0,xp,x); in db_SProjImagePointPointConstraints()
66 db_SProjImagePointPointConstraint(c2,1,2,0,xp,x); in db_SProjImagePointPointConstraints()
70 inline void db_SAffineImagePointPointConstraints(double c1[7],double c2[7],double xp[3],double x[3]) in db_SAffineImagePointPointConstraints()
76 db_Copy6(c2,ct2); c2[6]=ct2[8]; in db_SAffineImagePointPointConstraints()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DAbstractLogVerifier.java166 MutableLogCall c2 = iterator2.next(); in removeAll() local
172 if (func.apply(c1, c2)) { in removeAll()
173 if (c1.mTimes >= c2.mTimes) { in removeAll()
174 c1.mTimes -= c2.mTimes; in removeAll()
175 c2.mTimes = 0; in removeAll()
177 c2.mTimes -= c1.mTimes; in removeAll()
188 if (c2.mTimes == 0) { in removeAll()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothCodecStatus.java86 @Nullable List<BluetoothCodecConfig> c1, @Nullable List<BluetoothCodecConfig> c2) { in sameCapabilities() argument
88 return (c2 == null); in sameCapabilities()
90 if (c2 == null) { in sameCapabilities()
93 if (c1.size() != c2.size()) { in sameCapabilities()
96 return c1.containsAll(c2); in sameCapabilities()
DBluetoothLeAudioCodecStatus.java118 @Nullable List<BluetoothLeAudioCodecConfig> c2) { in sameCapabilities() argument
120 return (c2 == null); in sameCapabilities()
122 if (c2 == null) { in sameCapabilities()
125 if (c1.size() != c2.size()) { in sameCapabilities()
128 return c1.containsAll(c2); in sameCapabilities()
/packages/apps/Messaging/jni/
DGifTranscoder.cpp438 ColorARGB c2 = *getPixel(renderBuffer, gifIn->SWidth, x * 2 + 1, y * 2); in computeNewColorIndex() local
441 ColorARGB avgColor = computeAverage(c1, c2, c3, c4); in computeNewColorIndex()
447 ColorARGB GifTranscoder::computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4) { in computeAverage() argument
448 char avgAlpha = (char)(((int) ALPHA(c1) + (int) ALPHA(c2) + in computeAverage()
450 char avgRed = (char)(((int) RED(c1) + (int) RED(c2) + in computeAverage()
452 char avgGreen = (char)(((int) GREEN(c1) + (int) GREEN(c2) + in computeAverage()
454 char avgBlue = (char)(((int) BLUE(c1) + (int) BLUE(c2) + in computeAverage()
484 int GifTranscoder::computeDistance(ColorARGB c1, ColorARGB c2) { in computeDistance() argument
485 return SQUARE(RED(c1) - RED(c2)) + in computeDistance()
486 SQUARE(GREEN(c1) - GREEN(c2)) + in computeDistance()
[all …]
DGifTranscoder.h85 static ColorARGB computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4);
92 static int computeDistance(ColorARGB c1, ColorARGB c2);
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DDatabaseHelperTest.kt64 val c2 = db.query(TMP_TABLE, null, null, null, null, null, null) in <lambda>() constant
67 assertEquals(19, c2.columnCount) in <lambda>()
68 assertEquals(c1.count, c2.count) in <lambda>()
71 c2.close() in <lambda>()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dconcat_float_3.mod.py41 for c2 in range(col2):
42 output_values[r * output_col + col1 + c2] = input2_values[r * col2 + c2]
Dconcat_quant8_3.mod.py41 for c2 in range(col2):
42 output_values[r * output_col + col1 + c2] = input2_values[r * col2 + c2]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dconcat_float16_3.mod.py41 for c2 in range(col2):
42 output_values[r * output_col + col1 + c2] = input2_values[r * col2 + c2]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dconcat_float_3_relaxed.mod.py42 for c2 in range(col2):
43 output_values[r * output_col + col1 + c2] = input2_values[r * col2 + c2]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipTransportControllerTest.java397 SipDelegateControllerContainer c2 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDenyOverlappingTags() local
399 createDelegateAndVerify(controller, c2, grantedAndDenied.first, in createTwoAndDenyOverlappingTags()
425 SipDelegateControllerContainer c2 = injectMockDelegateController(TEST_PACKAGE_NAME_2, in createTwoAndTriggerRoleChange() local
427 createDelegateAndVerify(controller, c2, Collections.emptySet(), secondDeniedTags, 1); in createTwoAndTriggerRoleChange()
433 c2.delegateController, secondDelegateRequest.getFeatureTags(), in createTwoAndTriggerRoleChange()
445 verify(c2.delegateController, never()).changeSupportedFeatureTags( in createTwoAndTriggerRoleChange()
452 verify(c2.delegateController).changeSupportedFeatureTags( in createTwoAndTriggerRoleChange()
483 SipDelegateControllerContainer c2 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDestroyOlder() local
485 createDelegateAndVerify(controller, c2, grantedAndDenied.first, grantedAndDenied.second, 1); in createTwoAndDestroyOlder()
491 c2.delegateController, secondDelegate, Collections.emptySet()); in createTwoAndDestroyOlder()
[all …]
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DKeyboardQuickSwitch.java89 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in moveFocusForward() argument
123 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in moveFocusBackward() argument
149 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in dismiss() argument
206 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in launchFocusedTask() argument
DQsb.java70 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchAssistant() argument
99 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchLens() argument
122 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in showSearchResult() argument
DOverviewActions.java53 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in clickAndDismissScreenshot() argument
107 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in clickSplit() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java104 int c2 = hexString.charAt(j++); in decodeHex() local
105 if (c2 > 'f') { in decodeHex()
110 final byte d2 = DIGITS[c2]; in decodeHex()
/packages/apps/SecureElement/src/com/android/se/internal/
DByteArrayConverter.java137 char c2 = str.charAt(i + 1 + offset); in hexStringToByteArray() local
138 if (!isHexChar(c1) || !isHexChar(c2)) { in hexStringToByteArray()
142 outputBytes[i / 2] = (byte) ((Character.digit(c1, 16) << 4) + Character.digit(c2, 16)); in hexStringToByteArray()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h190 T * c2 = finalCentroids; in runKMeansWithPicks() local
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks()
196 c1 = c2; in runKMeansWithPicks()
197 c2 = temp; in runKMeansWithPicks()
/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils_test.cpp143 uint16_t c2 = ip_checksum_finish(ip_checksum_add(0, &nat64Prefix, sizeof(nat64Prefix)) + in TEST_F() local
146 if (c1 != c2) { in TEST_F()
151 << "\n IPv4 checksum: " << c1 << "\n IPv6 checksum: " << c2 << "\n"; in TEST_F()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dconcat_quant8_signed.mod.py127 for c2 in range(col2):
128 output_values[r * output_col + col1 + c2] = input2_values[r * col2 + c2]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DAllAppsSession.java168 mAllApps.sort((c1, c2) -> (c1.size < c2.size ? 1 : c1.size == c2.size ? 0 : -1)); in updateAppList()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/include/
DRtpConfig.h67 bool operator==(const RtpConfig& c2) const;
68 bool operator!=(const RtpConfig& c2) const;

123