/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 68 int c1 = tokens[0].charAt(i); in Watermark() local 70 if (c1 >= 'a' && c1 <= 'f') c1 = c1 - 'a' + 10; in Watermark() 71 else if (c1 >= 'A' && c1 <= 'F') c1 = c1 - 'A' + 10; in Watermark() 72 else c1 -= '0'; in Watermark() 76 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/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 212 private int computeColor(int c1, int c2, float percent) { in computeColor() argument 213 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent); in computeColor() 214 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent); in computeColor() 215 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent); in computeColor() 216 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent); in computeColor() 224 private int computeChannel(int c1, int c2, float percent) { in computeChannel() argument 225 return c1 + (int)((percent * (c2-c1)) + .5); in computeChannel()
|
/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/core/java/android/bluetooth/ |
D | BluetoothCodecStatus.java | 79 public static boolean sameCapabilities(BluetoothCodecConfig[] c1, in sameCapabilities() argument 81 if (c1 == null) { in sameCapabilities() 87 if (c1.length != c2.length) { in sameCapabilities() 90 return Arrays.asList(c1).containsAll(Arrays.asList(c2)); in sameCapabilities()
|
/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/rs/tests/lldb/java/ScriptGroup/src/com/android/rs/scriptgroup/ |
D | MainActivity.java | 54 ScriptGroup.Closure c1 = builder.addKernel(script.getKernelID_goo(), in onCreate() local 57 ScriptGroup group = builder.create("scriptgroup_test", c1.getReturn()); in onCreate()
|
/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/native/libs/gui/include/gui/ |
D | DisplayEventReceiver.h | 42 static inline constexpr uint32_t fourcc(char c1, char c2, char c3, char c4) { in fourcc() argument 43 return static_cast<uint32_t>(c1) << 24 | in fourcc()
|
/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/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/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/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/ |
D | QSCarrierGroupControllerTest.java | 137 c1 = new CarrierTextManager.CarrierTextCallbackInfo( in testUpdateCarrierText_sameLengths() local 142 mCallback.updateCarrierInfo(c1); in testUpdateCarrierText_sameLengths() 178 c1 = new CarrierTextManager.CarrierTextCallbackInfo( in testUpdateCarrierText_differentLength() local 183 mCallback.updateCarrierInfo(c1); in testUpdateCarrierText_differentLength()
|