/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/tests/coretests/src/android/database/sqlite/ |
D | SQLiteConnectionPoolTest.java | 78 SQLiteConnection c1 = pool.acquireConnection("pragma user_version", 0, null); in testCloseIdleConnections() local 79 assertEquals("First connection should be returned", 0, c1.getConnectionId()); in testCloseIdleConnections() 80 pool.releaseConnection(c1); in testCloseIdleConnections() 82 assertTrue("Returned connection should be the same", c1 == c2); in testCloseIdleConnections() 86 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 | 336 private static boolean equals(Control c1, Control c2) { in equals() argument 337 if (c1 == c2) return true; in equals() 338 if (c1 == null || c2 == null) return false; in equals() 339 return Objects.equals(c1.getControlId(), c2.getControlId()) in equals() 340 && c1.getDeviceType() == c2.getDeviceType() in equals() 341 && Objects.equals(c1.getTitle(), c2.getTitle()) in equals() 342 && Objects.equals(c1.getSubtitle(), c2.getSubtitle()) in equals() 343 && Objects.equals(c1.getStructure(), c2.getStructure()) in equals() 344 && Objects.equals(c1.getZone(), c2.getZone()) in equals() 345 && 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/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()
|
/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/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/libstagefright/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/minikin/include/minikin/ |
D | MinikinFont.h | 79 static uint32_t MakeTag(char c1, char c2, char c3, char c4) { in MakeTag() argument 80 return ((uint32_t)c1 << 24) | ((uint32_t)c2 << 16) | ((uint32_t)c3 << 8) | (uint32_t)c4; in MakeTag()
|
/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/libs/gui/include/gui/ |
D | DisplayEventReceiver.h | 45 static inline constexpr uint32_t fourcc(char c1, char c2, char c3, char c4) { in fourcc() argument 46 return static_cast<uint32_t>(c1) << 24 | in fourcc()
|
/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()
|
/frameworks/native/libs/binder/include/binder/ |
D | IBinder.h | 30 #define B_PACK_CHARS(c1, c2, c3, c4) \ argument 31 ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4))
|
/frameworks/native/include/binder/ |
D | IBinder.h | 30 #define B_PACK_CHARS(c1, c2, c3, c4) \ argument 31 ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4))
|
/frameworks/native/services/surfaceflinger/ |
D | TransactionCallbackInvoker.cpp | 41 static int compareCallbackIds(const std::vector<CallbackId>& c1, in compareCallbackIds() argument 43 if (c1.empty()) { in compareCallbackIds() 46 return c1.front().id - c2.front().id; in compareCallbackIds()
|