Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java70 int c1 = mTokens[0].charAt(i); in Watermark() local
72 if (c1 >= 'a' && c1 <= 'f') c1 = c1 - 'a' + 10; in Watermark()
73 else if (c1 >= 'A' && c1 <= 'F') c1 = c1 - 'A' + 10; in Watermark()
74 else c1 -= '0'; in Watermark()
78 builder.append((char)(255-((c1*16)+c2))); in Watermark()
/frameworks/base/core/java/android/text/format/
DDateUtilsBridge.java157 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/
DGradient_Delegate.java212 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/
DrsMatrix4x4.cpp45 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/
DSQLiteConnectionPoolTest.java78 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()
DSQLiteCursorTest.java98 Cursor c1 = mDatabase.rawQuery("select * from " + testTable, null); in testFillWindow() local
99 assertEquals(N, c1.getCount()); in testFillWindow()
100 c1.close(); in testFillWindow()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp60 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/
DGraphemeBreak.cpp77 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/ml/nn/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]
/frameworks/ml/nn/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]
/frameworks/ml/nn/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]
/frameworks/base/core/java/android/bluetooth/
DBluetoothCodecStatus.java77 public static boolean sameCapabilities(BluetoothCodecConfig[] c1, in sameCapabilities() argument
79 if (c1 == null) { in sameCapabilities()
85 if (c1.length != c2.length) { in sameCapabilities()
88 return Arrays.asList(c1).containsAll(Arrays.asList(c2)); in sameCapabilities()
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp163 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 …]
DhwcTestLib.h56 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/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSCarrierGroupTest.java70 c1 = new CarrierTextController.CarrierTextCallbackInfo( in testUpdateCarrierText_sameLengths() local
75 spiedCarrierGroup.updateCarrierInfo(c1); in testUpdateCarrierText_sameLengths()
118 c1 = new CarrierTextController.CarrierTextCallbackInfo( in testUpdateCarrierText_differentLength() local
123 spiedCarrierGroup.updateCarrierInfo(c1); in testUpdateCarrierText_differentLength()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCandidatesTest.java243 WifiCandidates.Candidate c1, c2; in testTwoBssids() local
244 c1 = mWifiCandidates.getGroupedCandidates().iterator().next().iterator().next(); in testTwoBssids()
245 assertTrue(mWifiCandidates.remove(c1)); in testTwoBssids()
249 assertFalse(mWifiCandidates.remove(c1)); in testTwoBssids()
257 assertTrue((mScanDetail1 == c1.getScanDetail() && mScanDetail2 == c2.getScanDetail()) in testTwoBssids()
258 || (mScanDetail2 == c1.getScanDetail() && mScanDetail1 == c2.getScanDetail())); in testTwoBssids()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix4f.java406 int c1 = (i+2) % 4; in computeCofactor() local
412 float minor = (mMat[c0 + 4*r0] * (mMat[c1 + 4*r1] * mMat[c2 + 4*r2] - in computeCofactor()
413 mMat[c1 + 4*r2] * mMat[c2 + 4*r1])) in computeCofactor()
414 - (mMat[c0 + 4*r1] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r2] - in computeCofactor()
415 mMat[c1 + 4*r2] * mMat[c2 + 4*r0])) in computeCofactor()
416 + (mMat[c0 + 4*r2] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r1] - in computeCofactor()
417 mMat[c1 + 4*r1] * mMat[c2 + 4*r0])); in computeCofactor()
/frameworks/base/rs/java/android/renderscript/
DMatrix4f.java405 int c1 = (i+2) % 4; in computeCofactor() local
411 float minor = (mMat[c0 + 4*r0] * (mMat[c1 + 4*r1] * mMat[c2 + 4*r2] - in computeCofactor()
412 mMat[c1 + 4*r2] * mMat[c2 + 4*r1])) in computeCofactor()
413 - (mMat[c0 + 4*r1] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r2] - in computeCofactor()
414 mMat[c1 + 4*r2] * mMat[c2 + 4*r0])) in computeCofactor()
415 + (mMat[c0 + 4*r2] * (mMat[c1 + 4*r0] * mMat[c2 + 4*r1] - in computeCofactor()
416 mMat[c1 + 4*r1] * mMat[c2 + 4*r0])); in computeCofactor()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DByteUtils.h25 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/minikin/include/minikin/
DMinikinFont.h74 static uint32_t MakeTag(char c1, char c2, char c3, char c4) { in MakeTag() argument
75 return ((uint32_t)c1 << 24) | ((uint32_t)c2 << 16) | ((uint32_t)c3 << 8) | (uint32_t)c4; in MakeTag()
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp169 int c1 = data[i]; in mirror() local
170 int c2 = u_charMirror(c1); in mirror()
172 if (c1 != c2) { in mirror()
/frameworks/rs/tests/lldb/java/ScriptGroup/src/com/android/rs/scriptgroup/
DMainActivity.java54 ScriptGroup.Closure c1 = builder.addKernel(script.getKernelID_goo(), in onCreate() local
57 ScriptGroup group = builder.create("scriptgroup_test", c1.getReturn()); in onCreate()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h42 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/src/com/android/rs/unittest/
DUT_script_group2_pointwise.java59 ScriptGroup.Closure c1 = in run() local
64 ScriptGroup group = builder.create("AddDouble", c1.getReturn()); in run()

123