Home
last modified time | relevance | path

Searched refs:c1 (Results 1 – 25 of 79) sorted by relevance

1234

/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()
123 val utcOffset1 = c1.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/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp97 double c0,c1,c2,c3; in db_SolveQuartic() local
123 c1=d/a; in db_SolveQuartic()
131 k0=min4_c0*c3c3through4_min_c2-c1*c1; in db_SolveQuartic()
132 k1=c1*c3+min4_c0; in db_SolveQuartic()
145 mn=lz*c3through4-c1/2.0; in db_SolveQuartic()
169 double c0,c1,c2,c3; in db_SolveQuarticForced() local
195 c1=d/a; in db_SolveQuarticForced()
203 k0=min4_c0*c3c3through4_min_c2-c1*c1; in db_SolveQuarticForced()
204 k1=c1*c3+min4_c0; in db_SolveQuarticForced()
217 mn=lz*c3through4-c1/2.0; 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()
57 db_SProjImagePointPointConstraint(c1,1,0,2,xp,x); in db_SProjImagePointPointConstraints()
61 db_SProjImagePointPointConstraint(c1,0,1,2,xp,x); in db_SProjImagePointPointConstraints()
65 db_SProjImagePointPointConstraint(c1,0,2,1,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()
75 db_Copy6(c1,ct1); c1[6]=ct1[8]; in db_SAffineImagePointPointConstraints()
/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()
537 int numColumns = c1.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()
548 c1.moveToPosition(-1); in compareCursors()
550 while(c1.moveToNext() && c2.moveToNext()) { in compareCursors()
552 if(!TextUtils.equals(c1.getString(i),c2.getString(i))) { in compareCursors()
553 Log.d("CDBT", c1.getString(i) + "\n" + c2.getString(i)); in compareCursors()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DAbstractLogVerifier.java169 MutableLogCall c1 = iterator1.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()
177 c2.mTimes -= c1.mTimes; in removeAll()
178 c1.mTimes = 0; in removeAll()
183 if (c1.mTimes == 0) { in removeAll()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Ddamerau_levenshtein_edit_distance_policy.h35 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); in getSubstitutionCost() local
36 return (c0 == c1) ? 0.0f : 1.0f; in getSubstitutionCost()
49 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); in allowTransposition() local
51 && c1 == CharUtils::toBaseLowerCase(mString0[index0 - 1])) { in allowTransposition()
/packages/apps/Messaging/jni/
DGifTranscoder.cpp437 ColorARGB c1 = *getPixel(renderBuffer, gifIn->SWidth, x * 2, 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.kt63 val c1 = db.query(TABLE_NAME, null, null, null, null, null, null) in <lambda>() constant
66 assertEquals(21, c1.columnCount) in <lambda>()
68 assertEquals(c1.count, c2.count) in <lambda>()
70 c1.close() in <lambda>()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPerNameExecutorTest.java78 MockTask c1 = addTask("c" , 1); in testCancelPendingTasks() local
80 assertRanNever("step 2, new tasks", a3, c1, a2); in testCancelPendingTasks()
82 assertRanOnce("step 3", a1, b1, a3, c1); in testCancelPendingTasks()
85 assertRanOnce("step 4", a1, b1, a3, c1); in testCancelPendingTasks()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dconcat_float_3.mod.py39 for c1 in range(col1):
40 output_values[r * output_col + c1] = input1_values[r * col1 + c1]
Dconcat_quant8_3.mod.py39 for c1 in range(col1):
40 output_values[r * output_col + c1] = input1_values[r * col1 + c1]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dconcat_float16_3.mod.py39 for c1 in range(col1):
40 output_values[r * output_col + c1] = input1_values[r * col1 + c1]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dconcat_float_3_relaxed.mod.py40 for c1 in range(col1):
41 output_values[r * output_col + c1] = input1_values[r * col1 + c1]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipTransportControllerTest.java383 SipDelegateControllerContainer c1 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDenyOverlappingTags() local
385 createDelegateAndVerify(controller, c1, firstDelegate, Collections.emptySet()); in createTwoAndDenyOverlappingTags()
414 SipDelegateControllerContainer c1 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndTriggerRoleChange() local
416 createDelegateAndVerify(controller, c1, firstDelegateRequest.getFeatureTags(), in createTwoAndTriggerRoleChange()
431 c1.delegateController, Collections.emptySet(), firstDeniedTags); in createTwoAndTriggerRoleChange()
442 verify(c1.delegateController).changeSupportedFeatureTags(Collections.emptySet(), in createTwoAndTriggerRoleChange()
470 SipDelegateControllerContainer c1 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDestroyOlder() local
472 createDelegateAndVerify(controller, c1, firstDelegate, Collections.emptySet()); in createTwoAndDestroyOlder()
492 destroyDelegateAndVerify(controller, c1, false /*force*/, in createTwoAndDestroyOlder()
512 SipDelegateControllerContainer c1 = injectMockDelegateController(TEST_PACKAGE_NAME, in testThrottling() local
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DHex.java84 char c1 = s.charAt(pos + 1); in decodeEven() local
86 int n1 = Character.digit(c1, RADIX); in decodeEven()
88 Preconditions.checkArgument(n1 != -1, "Invalid character: '%s'", String.valueOf(c1)); in decodeEven()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothCodecStatus.java86 @Nullable List<BluetoothCodecConfig> c1, @Nullable List<BluetoothCodecConfig> c2) { in sameCapabilities()
87 if (c1 == null) { in sameCapabilities()
93 if (c1.size() != c2.size()) { in sameCapabilities()
96 return c1.containsAll(c2); in sameCapabilities()
DBluetoothLeAudioCodecStatus.java117 @Nullable List<BluetoothLeAudioCodecConfig> c1, in sameCapabilities()
119 if (c1 == null) { in sameCapabilities()
125 if (c1.size() != c2.size()) { in sameCapabilities()
128 return c1.containsAll(c2); in sameCapabilities()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DKeyboardQuickSwitch.java80 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in moveFocusForward() argument
112 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in moveFocusBackward() argument
139 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in dismiss() argument
193 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in launchFocusedTask() argument
DOverviewTaskMenu.java52 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapSplitMenuItem() argument
73 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapAppInfoMenuItem() argument
93 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapSelectMenuItem() argument
DLaunchedAppState.java122 LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
151 try (LauncherInstrumentation.Closable c1 = launcher.addContextLayer(
256 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
288 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
322 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java92 int c1 = hexString.charAt(j++); in decodeHex() local
93 if (c1 > 'f') { in decodeHex()
98 final byte d1 = DIGITS[c1]; in decodeHex()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h189 T * c1 = initialPicks; in runKMeansWithPicks() local
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks()
195 temp = c1; in runKMeansWithPicks()
196 c1 = c2; in runKMeansWithPicks()
202 set<T, T>(finalCentroids, c1, dimension); in runKMeansWithPicks()
/packages/apps/SecureElement/src/com/android/se/internal/
DByteArrayConverter.java136 char c1 = str.charAt(i + 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/modules/Bluetooth/system/gd/security/
Dpairing_handler_le_legacy.cc143 Octet16 mconfirm = crypto_toolbox::c1( in DoLegacyStage2()
178 Octet16 sconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()
200 Octet16 sconfirm = crypto_toolbox::c1( in DoLegacyStage2()
227 Octet16 mconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()

1234