/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 69 int c1 = tokens[0].charAt(i); in Watermark() local 71 if (c1 >= 'a' && c1 <= 'f') c1 = c1 - 'a' + 10; in Watermark() 72 else if (c1 >= 'A' && c1 <= 'F') c1 = c1 - 'A' + 10; in Watermark() 73 else c1 -= '0'; in Watermark() 77 builder.append((char)(255-((c1*16)+c2))); in Watermark()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtilsBridge.java | 157 public static int dayDistance(Calendar c1, Calendar c2) { in dayDistance() argument 158 return c2.get(Calendar.JULIAN_DAY) - c1.get(Calendar.JULIAN_DAY); in dayDistance() 175 private static boolean fallOnDifferentDates(Calendar c1, Calendar c2) { in fallOnDifferentDates() argument 176 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) in fallOnDifferentDates() 177 || c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) in fallOnDifferentDates() 178 || c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH); in fallOnDifferentDates() 181 private static boolean fallInSameMonth(Calendar c1, Calendar c2) { in fallInSameMonth() argument 182 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth() 185 private static boolean fallInSameYear(Calendar c1, Calendar c2) { in fallInSameYear() argument 186 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR); in fallInSameYear()
|
/frameworks/rs/ |
D | rsMatrix4x4.cpp | 45 int c1 = (i+2) % 4; in inverse() local 52 (m[c0 + 4*r0] * (m[c1 + 4*r1] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r1])) in inverse() 53 - (m[c0 + 4*r1] * (m[c1 + 4*r0] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r0])) in inverse() 54 + (m[c0 + 4*r2] * (m[c1 + 4*r0] * m[c2 + 4*r1] - m[c1 + 4*r1] * m[c2 + 4*r0])); in inverse() 87 int c1 = (i+2) % 4; in inverseTranspose() local 93 … float minor = (m[c0 + 4*r0] * (m[c1 + 4*r1] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r1])) in inverseTranspose() 94 … - (m[c0 + 4*r1] * (m[c1 + 4*r0] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r0])) in inverseTranspose() 95 … + (m[c0 + 4*r2] * (m[c1 + 4*r0] * m[c2 + 4*r1] - m[c1 + 4*r1] * m[c2 + 4*r0])); in inverseTranspose()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | Utils.java | 133 public static int interpolateColor(int c1, int c2, float t) { in interpolateColor() argument 135 return c1; in interpolateColor() 139 int a = 0xFF & (c1 >> 24); in interpolateColor() 140 int r = 0xFF & (c1 >> 16); in interpolateColor() 141 int g = 0xFF & (c1 >> 8); in interpolateColor() 142 int b = 0xFF & c1; in interpolateColor()
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
D | SQLiteConnectionPoolTest.java | 79 SQLiteConnection c1 = pool.acquireConnection("pragma user_version", 0, null); in testCloseIdleConnections() local 80 assertEquals("First connection should be returned", 0, c1.getConnectionId()); in testCloseIdleConnections() 81 pool.releaseConnection(c1); in testCloseIdleConnections() 83 assertTrue("Returned connection should be the same", c1 == c2); in testCloseIdleConnections() 87 assertTrue("New connection should be returned", c1 != c3); in testCloseIdleConnections()
|
D | SQLiteCursorTest.java | 98 Cursor c1 = mDatabase.rawQuery("select * from " + testTable, null); in testFillWindow() local 99 assertEquals(N, c1.getCount()); in testFillWindow() 100 c1.close(); in testFillWindow()
|
/frameworks/base/core/tests/coretests/src/android/service/controls/ |
D | ControlProviderServiceTest.java | 351 private static boolean equals(Control c1, Control c2) { in equals() argument 352 if (c1 == c2) return true; in equals() 353 if (c1 == null || c2 == null) return false; in equals() 354 return Objects.equals(c1.getControlId(), c2.getControlId()) in equals() 355 && c1.getDeviceType() == c2.getDeviceType() in equals() 356 && Objects.equals(c1.getTitle(), c2.getTitle()) in equals() 357 && Objects.equals(c1.getSubtitle(), c2.getSubtitle()) in equals() 358 && Objects.equals(c1.getStructure(), c2.getStructure()) in equals() 359 && Objects.equals(c1.getZone(), c2.getZone()) in equals() 360 && Objects.equals(c1.getAppIntent(), c2.getAppIntent()) in equals() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | buffer_hub-test.cpp | 60 std::unique_ptr<ConsumerBuffer> c1 = in TEST_F() local 62 ASSERT_TRUE(c1.get() != nullptr); in TEST_F() 65 ConsumerBuffer::Import(c1->CreateConsumer()); in TEST_F() 70 EXPECT_EQ(c1->client_state_mask(), kFirstClientBitMask << 1); in TEST_F() 75 EXPECT_EQ(0, RETRY_EINTR(PollBufferEvent(c1))); in TEST_F() 83 EXPECT_EQ(1, RETRY_EINTR(PollBufferEvent(c1))); in TEST_F() 87 EXPECT_EQ(0, c1->Acquire(&fence)); in TEST_F() 88 EXPECT_EQ(0, RETRY_EINTR(PollBufferEvent(c1))); in TEST_F() 93 EXPECT_EQ(0, RETRY_EINTR(PollBufferEvent(c1))); in TEST_F() 95 EXPECT_EQ(0, c1->Release(LocalHandle())); in TEST_F() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeDiffTest.java | 178 ZenModeConfig c1 = new ZenModeConfig(); in testConfigDiff_fieldDiffs() local 186 generateFieldDiffs(c1, c2, fieldsForDiff, expectedFrom, expectedTo); in testConfigDiff_fieldDiffs() 188 ZenModeDiff.ConfigDiff d = new ZenModeDiff.ConfigDiff(c1, c2); in testConfigDiff_fieldDiffs() 207 ZenModeConfig c1 = new ZenModeConfig(); in testConfigDiff_fieldDiffs_flagOn() local 215 generateFieldDiffs(c1, c2, fieldsForDiff, expectedFrom, expectedTo); in testConfigDiff_fieldDiffs_flagOn() 217 ZenModeDiff.ConfigDiff d = new ZenModeDiff.ConfigDiff(c1, c2); in testConfigDiff_fieldDiffs_flagOn() 235 ZenModeConfig c1 = new ZenModeConfig(); in testConfigDiff_specialSenders() local 239 NotificationManager.Policy c1Policy = c1.toNotificationPolicy(); in testConfigDiff_specialSenders() 240 c1.applyNotificationPolicy(new NotificationManager.Policy( in testConfigDiff_specialSenders() 245 NotificationManager.Policy c2Policy = c1.toNotificationPolicy(); in testConfigDiff_specialSenders() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | GraphemeBreak.cpp | 77 uint32_t c1 = 0; in isGraphemeBreak() local 81 U16_PREV(buf, start, offset_back, c1); in isGraphemeBreak() 83 int32_t p1 = tailoredGraphemeClusterBreak(c1); in isGraphemeBreak() 179 if (u_getIntPropertyValue(c1, UCHAR_CANONICAL_COMBINING_CLASS) == 9 // virama in isGraphemeBreak() 180 && !isPureKiller(c1) && in isGraphemeBreak()
|
D | Locale.cpp | 106 constexpr uint32_t packScript(char c1, char c2, char c3, char c4) { in packScript() argument 109 return ((uint32_t)(c1 - FIRST_LETTER_BASE) << 15) | (uint32_t)(c2 - REST_LETTER_BASE) << 10 | in packScript() 470 bool Locale::supportsScript(char c1, char c2, char c3, char c4) const { in supportsScript() argument 471 uint32_t packedScript = packScript(c1, c2, c3, c4); in supportsScript() 553 bool LocaleList::hasScript(char c1, char c2, char c3, char c4) const { in hasScript() argument 555 if (locale.supportsScript(c1, c2, c3, c4)) { in hasScript()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | ImtConflictPerfTest.java | 50 C1 c1 = new C1(); in setup() local 51 callF0(c1); in setup() 52 callF19(c1); in setup() 310 C1 c1 = new C1(); in timeConflictDepth02() local 313 callF0(c1); in timeConflictDepth02() 314 callF19(c1); in timeConflictDepth02() 315 callF0(c1); in timeConflictDepth02() 316 callF19(c1); in timeConflictDepth02() 317 callF0(c1); in timeConflictDepth02() 318 callF19(c1); in timeConflictDepth02() [all …]
|
/frameworks/minikin/include/minikin/ |
D | Constants.h | 30 constexpr uint32_t MakeTag(char c1, char c2, char c3, char c4) { in MakeTag() argument 31 return ((uint32_t)c1 << 24) | ((uint32_t)c2 << 16) | ((uint32_t)c3 << 8) | (uint32_t)c4; in MakeTag()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcTestLib.cpp | 163 out << '[' << this->c1() << ", " in operator string() 309 float c1, c2, c3; in hwcTestParseColor() local 320 in >> c1; in hwcTestParseColor() 322 if ((c1 < 0.0) || (c1 > 1.0)) { return color; } in hwcTestParseColor() 345 if ((c1 < 0.0) || (c1 > 1.0) in hwcTestParseColor() 352 return ColorFract(c1, c2, c3); in hwcTestParseColor() 579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) in hwcTestColor2Pixel() 707 ColorFract color(startColor.c1() + (endColor.c1() - startColor.c1()) in hwcTestFillColorHBlend() 842 + ((float) (fromAttrib->c1Max - fromAttrib->c1Min) * color.c1()); in hwcTestColorConvert() 871 float r = color.c1(), g = color.c2(), b = color.c3(); in hwcTestColorConvert() [all …]
|
D | hwcTestLib.h | 56 ColorFract(float c1, float c2, float c3): _c1(c1), _c2(c2), _c3(c3) {}; in ColorFract() argument 57 float c1(void) const { return _c1; } in c1() function
|
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/ |
D | ByteUtils.h | 25 constexpr int FOURCC(unsigned char c1, unsigned char c2, unsigned char c3, unsigned char c4) { in FOURCC() argument 26 return ((c1) << 24 | (c2) << 16 | (c3) << 8 | (c4)); in FOURCC()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Matrix4f.java | 410 int c1 = (i+2) % 4; in computeCofactor() local 416 float minor = (mMat[c0 + 4*r0] * (mMat[c1 + 4*r1] * mMat[c2 + 4*r2] - in computeCofactor() 417 mMat[c1 + 4*r2] * mMat[c2 + 4*r1])) in computeCofactor() 418 - (mMat[c0 + 4*r1] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r2] - in computeCofactor() 419 mMat[c1 + 4*r2] * mMat[c2 + 4*r0])) in computeCofactor() 420 + (mMat[c0 + 4*r2] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r1] - in computeCofactor() 421 mMat[c1 + 4*r1] * mMat[c2 + 4*r0])); in computeCofactor()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix4f.java | 409 int c1 = (i+2) % 4; in computeCofactor() local 415 float minor = (mMat[c0 + 4*r0] * (mMat[c1 + 4*r1] * mMat[c2 + 4*r2] - in computeCofactor() 416 mMat[c1 + 4*r2] * mMat[c2 + 4*r1])) in computeCofactor() 417 - (mMat[c0 + 4*r1] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r2] - in computeCofactor() 418 mMat[c1 + 4*r2] * mMat[c2 + 4*r0])) in computeCofactor() 419 + (mMat[c0 + 4*r2] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r1] - in computeCofactor() 420 mMat[c1 + 4*r1] * mMat[c2 + 4*r0])); in computeCofactor()
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 169 int c1 = data[i]; in mirror() local 170 int c2 = u_charMirror(c1); in mirror() 172 if (c1 != c2) { in mirror()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_script_group2_pointwise.java | 59 ScriptGroup.Closure c1 = in run() local 64 ScriptGroup group = builder.create("AddDouble", c1.getReturn()); in run()
|
D | UT_script_group2_float.java | 65 ScriptGroup.Closure c1 = in run() local 72 ScriptGroup group = builder.create("TestFloatAnd64bit", c1.getReturn()); in run()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_script_group2_pointwise.java | 61 ScriptGroup.Closure c1 = in run() local 66 ScriptGroup group = builder.create("AddDouble", c1.getReturn()); in run()
|
D | UT_script_group2_float.java | 67 ScriptGroup.Closure c1 = in run() local 74 ScriptGroup group = builder.create("TestFloatAnd64bit", c1.getReturn()); in run()
|
/frameworks/native/services/surfaceflinger/ |
D | TransactionCallbackInvoker.cpp | 43 static int compareCallbackIds(const std::vector<CallbackId>& c1, in compareCallbackIds() argument 45 if (c1.empty()) { in compareCallbackIds() 48 return c1.front().id - c2.front().id; in compareCallbackIds()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 204 int c1 = bm1.getPixel(i % 16, i / 16); in testSetPixelsWithNonOpaqueAlpha() local 208 assertEquals("getPixel", c1, c2); in testSetPixelsWithNonOpaqueAlpha() 214 int a1 = Color.alpha(c1); in testSetPixelsWithNonOpaqueAlpha() 218 int r1 = Color.red(c1); in testSetPixelsWithNonOpaqueAlpha() 223 int g1 = Color.green(c1); in testSetPixelsWithNonOpaqueAlpha() 228 int b1 = Color.blue(c1); in testSetPixelsWithNonOpaqueAlpha() 235 " set+get " + Integer.toHexString(c1) + in testSetPixelsWithNonOpaqueAlpha()
|