/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ATResponseParserTest.java | 25 ATResponseParser p = new ATResponseParser("+CREG: 0"); in testBasic() local 27 assertEquals(0, p.nextInt()); in testBasic() 29 assertFalse(p.hasMore()); in testBasic() 32 p.nextInt(); in testBasic() 38 p = new ATResponseParser("+CREG: 0,1"); in testBasic() 39 assertEquals(0, p.nextInt()); in testBasic() 40 assertEquals(1, p.nextInt()); in testBasic() 41 assertFalse(p.hasMore()); in testBasic() 43 p = new ATResponseParser("+CREG: 0, 1"); in testBasic() 44 assertEquals(0, p.nextInt()); in testBasic() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProtoDumpUtil.java | 82 @NonNull SettingsState s, @NonNull ProtoOutputStream p) { in dumpProtoGlobalSettingsLocked() argument 83 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 86 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 89 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 92 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 95 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 98 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 101 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 104 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() 107 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked() [all …]
|
/frameworks/rs/script_api/ |
D | GenerateTestFiles.cpp | 138 void writeJavaArrayInitialization(const ParameterDefinition& p) const; 141 void writeJavaTestAndSetValid(const ParameterDefinition& p, const string& argsIndex, 143 void writeJavaTestOneValue(const ParameterDefinition& p, const string& argsIndex, 146 void writeJavaVectorComparison(const ParameterDefinition& p) const; 149 void writeJavaAppendOutputToMessage(const ParameterDefinition& p, const string& argsIndex, 151 void writeJavaAppendInputToMessage(const ParameterDefinition& p, const string& actual) const; 153 void writeJavaAppendVectorInputToMessage(const ParameterDefinition& p) const; 154 void writeJavaAppendVectorOutputToMessage(const ParameterDefinition& p) const; 192 for (auto p : permutation.getParams()) { in PermutationWriter() local 193 mAllInputsAndOutputs.push_back(p); in PermutationWriter() [all …]
|
/frameworks/native/services/batteryservice/ |
D | BatteryProperties.cpp | 32 status_t BatteryProperties::readFromParcel(Parcel* p) { in readFromParcel() argument 33 chargerAcOnline = p->readInt32() == 1 ? true : false; in readFromParcel() 34 chargerUsbOnline = p->readInt32() == 1 ? true : false; in readFromParcel() 35 chargerWirelessOnline = p->readInt32() == 1 ? true : false; in readFromParcel() 36 maxChargingCurrent = p->readInt32(); in readFromParcel() 37 maxChargingVoltage = p->readInt32(); in readFromParcel() 38 batteryStatus = p->readInt32(); in readFromParcel() 39 batteryHealth = p->readInt32(); in readFromParcel() 40 batteryPresent = p->readInt32() == 1 ? true : false; in readFromParcel() 41 batteryLevel = p->readInt32(); in readFromParcel() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | IpPrefixTest.java | 47 IpPrefix p; in testConstructor() local 49 p = new IpPrefix((byte[]) null, 9); in testConstructor() 54 p = new IpPrefix((InetAddress) null, 10); in testConstructor() 59 p = new IpPrefix((String) null); in testConstructor() 66 p = new IpPrefix(b2, 29); in testConstructor() 71 p = new IpPrefix("1.2.3.4"); in testConstructor() 76 p = new IpPrefix("1.2.3.4/"); in testConstructor() 81 p = new IpPrefix("foo/32"); in testConstructor() 86 p = new IpPrefix("1/32"); in testConstructor() 91 p = new IpPrefix("1.2.3.256/32"); in testConstructor() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Lines2Activity.java | 75 private void drawLines(Canvas canvas, Paint p, float xOffset, float yOffset) { in drawLines() argument 76 canvas.drawLine(10 + xOffset, yOffset, 10 + xOffset, 40 + yOffset, p); in drawLines() 77 canvas.drawLine(30 + xOffset, yOffset, 40 + xOffset, 40 + yOffset, p); in drawLines() 78 canvas.drawLine(40 + xOffset, yOffset, 75 + xOffset, 35 + yOffset, p); in drawLines() 79 canvas.drawLine(50 + xOffset, 5+ yOffset, 100 + xOffset, 15 + yOffset, p); in drawLines() 80 canvas.drawLine(60 + xOffset, yOffset, 110 + xOffset, 2 + yOffset, p); in drawLines() 81 canvas.drawLine(60 + xOffset, 40 + yOffset, 110 + xOffset, 40 + yOffset, p); in drawLines() 86 canvas.drawLines(copyPoints, 0, 12, p); in drawLines() 89 private void drawVerticalLine(Canvas canvas, Paint p, float length, float x, float y) { in drawVerticalLine() argument 90 canvas.drawLine(x, y, x, y + length, p); in drawVerticalLine() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | mandelbulb.rs | 42 static float3 nylander3(float3 p) { 44 float xy2 = p.x * p.x + p.y * p.y; 46 float z23x2y2 = (3 * p.z * p.z - p.x * p.x - p.y * p.y); 47 out.x = (z23x2y2 * p.x * (p.x * p.x - 3 * p.y * p.y)) / xy2; 48 out.y = (z23x2y2 * p.y * (3 * p.x * p.x - p.y * p.y)) / xy2; 49 out.z = p.z * (p.z * p.z - 3 * p.x * p.x - 3 * p.y * p.y); 62 float3 p = c; 66 p = nylander3(p) + c; 67 len = fast_length(p); 72 len = length(p);
|
/frameworks/base/core/java/android/os/ |
D | BatteryProperties.java | 62 private BatteryProperties(Parcel p) { in BatteryProperties() argument 63 chargerAcOnline = p.readInt() == 1 ? true : false; in BatteryProperties() 64 chargerUsbOnline = p.readInt() == 1 ? true : false; in BatteryProperties() 65 chargerWirelessOnline = p.readInt() == 1 ? true : false; in BatteryProperties() 66 maxChargingCurrent = p.readInt(); in BatteryProperties() 67 maxChargingVoltage = p.readInt(); in BatteryProperties() 68 batteryStatus = p.readInt(); in BatteryProperties() 69 batteryHealth = p.readInt(); in BatteryProperties() 70 batteryPresent = p.readInt() == 1 ? true : false; in BatteryProperties() 71 batteryLevel = p.readInt(); in BatteryProperties() [all …]
|
D | MessageQueue.java | 475 Message p = mMessages; in postSyncBarrier() local 477 while (p != null && p.when <= when) { in postSyncBarrier() 478 prev = p; in postSyncBarrier() 479 p = p.next; in postSyncBarrier() 483 msg.next = p; in postSyncBarrier() 486 msg.next = p; in postSyncBarrier() 508 Message p = mMessages; in removeSyncBarrier() local 509 while (p != null && (p.target != null || p.arg1 != token)) { in removeSyncBarrier() 510 prev = p; in removeSyncBarrier() 511 p = p.next; in removeSyncBarrier() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerCubic.h | 50 static inline int32_t interp(state* p, int32_t x) { in interp() argument 51 return (((((p->a * x >> 14) + p->b) * x >> 14) + p->c) * x >> 14) + p->y1; in interp() 53 static inline void advance(state* p, int16_t in) { in advance() argument 54 p->y0 = p->y1; in advance() 55 p->y1 = p->y2; in advance() 56 p->y2 = p->y3; in advance() 57 p->y3 = in; in advance() 58 p->a = (3 * (p->y1 - p->y2) - p->y0 + p->y3) >> 1; in advance() 59 p->b = (p->y2 << 1) + p->y0 - (((5 * p->y1 + p->y3)) >> 1); in advance() 60 p->c = (p->y2 - p->y0) >> 1; in advance()
|
/frameworks/native/libs/vr/libbufferhub/ |
D | bufferhub_tests.cpp | 29 std::unique_ptr<BufferProducer> p = BufferProducer::Create( in TEST_F() local 31 ASSERT_TRUE(p.get() != nullptr); in TEST_F() 33 BufferConsumer::Import(p->CreateConsumer()); in TEST_F() 40 EXPECT_EQ(0, p->Post(LocalHandle(), kContext)); in TEST_F() 42 EXPECT_GE(0, RETRY_EINTR(p->Poll(0))); in TEST_F() 57 EXPECT_GE(0, RETRY_EINTR(p->Poll(0))); in TEST_F() 60 EXPECT_LE(0, RETRY_EINTR(p->Poll(0))); in TEST_F() 61 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F() 62 EXPECT_GE(0, RETRY_EINTR(p->Poll(0))); in TEST_F() 70 std::unique_ptr<BufferProducer> p = BufferProducer::Create( in TEST_F() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 122 Paint p = new Paint(); in testHasGlyph_variationSelectors() local 123 p.setTypeface(fontTypeface); in testHasGlyph_variationSelectors() 152 assertTrue(signature + " is expected to be true", p.hasGlyph(testString)); in testHasGlyph_variationSelectors() 154 assertFalse(signature + " is expected to be false", p.hasGlyph(testString)); in testHasGlyph_variationSelectors() 181 Paint p = new Paint(); in assertGetTextRunAdvances() local 186 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd, in assertGetTextRunAdvances() 190 final float advance_c = p.getTextRunAdvances(chars, start, count, contextStart, in assertGetTextRunAdvances() 195 final float firstPartAdvance = p.getTextRunAdvances(str, start, start + c, in assertGetTextRunAdvances() 197 final float secondPartAdvance = p.getTextRunAdvances(str, start + c, end, in assertGetTextRunAdvances() 202 final float firstPartAdvance_c = p.getTextRunAdvances(chars, start, c, in assertGetTextRunAdvances() [all …]
|
/frameworks/native/cmds/installd/ |
D | CacheItem.cpp | 33 CacheItem::CacheItem(FTSENT* p) { in CacheItem() argument 34 level = p->fts_level; in CacheItem() 35 directory = S_ISDIR(p->fts_statp->st_mode); in CacheItem() 36 size = p->fts_statp->st_blocks * 512; in CacheItem() 37 modified = p->fts_statp->st_mtime; in CacheItem() 39 mParent = static_cast<CacheItem*>(p->fts_parent->fts_pointer); in CacheItem() 43 mName = p->fts_name; in CacheItem() 48 mName = p->fts_path; in CacheItem() 74 FTSENT *p; in purge() local 80 while ((p = fts_read(fts)) != nullptr) { in purge() [all …]
|
/frameworks/av/media/common_time/ |
D | utils.cpp | 34 void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr) { in serializeSockaddr() argument 39 p->writeInt32(AF_INET); in serializeSockaddr() 40 p->writeInt32(ntohl(s->sin_addr.s_addr)); in serializeSockaddr() 41 p->writeInt32(static_cast<int32_t>(ntohs(s->sin_port))); in serializeSockaddr() 49 p->writeInt32(AF_INET6); in serializeSockaddr() 50 p->writeInt32(ntohl(a[0])); in serializeSockaddr() 51 p->writeInt32(ntohl(a[1])); in serializeSockaddr() 52 p->writeInt32(ntohl(a[2])); in serializeSockaddr() 53 p->writeInt32(ntohl(a[3])); in serializeSockaddr() 54 p->writeInt32(static_cast<int32_t>(ntohs(s->sin6_port))); in serializeSockaddr() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | multiplay.c | 95 Player *p = (Player *) context; in prefetch_callback() local 96 assert(p->mPlayerPrefetchStatus == caller); in prefetch_callback() 107 p->mPlayerErrorInCallback = SL_BOOLEAN_TRUE; in prefetch_callback() 178 Player *p; in main() local 186 p = &players[i]; in main() 192 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &p->mPlayerObject, &audioSrc, in main() 195 result = (*p->mPlayerObject)->Realize(p->mPlayerObject, SL_BOOLEAN_FALSE); in main() 197 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_PLAY, &p->mPlayerPlay); in main() 199 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_VOLUME, in main() 200 &p->mPlayerVolume); in main() [all …]
|
D | monkey.c | 54 State_t actionPause(Player_pt p) in actionPause() argument 56 assert(NULL != p->mPlay); in actionPause() 57 SLresult result = (*p->mPlay)->SetPlayState(p->mPlay, SL_PLAYSTATE_PAUSED); in actionPause() 62 State_t actionPlay(Player_pt p) in actionPlay() argument 64 assert(NULL != p->mPlay); in actionPlay() 65 SLresult result = (*p->mPlay)->SetPlayState(p->mPlay, SL_PLAYSTATE_PLAYING); in actionPlay() 70 State_t actionStop(Player_pt p) in actionStop() argument 72 assert(NULL != p->mPlay); in actionStop() 73 SLresult result = (*p->mPlay)->SetPlayState(p->mPlay, SL_PLAYSTATE_STOPPED); in actionStop() 78 State_t actionRewind(Player_pt p) in actionRewind() argument [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifPatternDrawable.java | 193 Path p = sPatternPaths[0] = new Path(); in renderOnCanvas() local 194 p.moveTo(1029.4f, 357.5f); in renderOnCanvas() 195 p.lineTo(1366f, 759.1f); in renderOnCanvas() 196 p.lineTo(1366f, 0f); in renderOnCanvas() 197 p.lineTo(1137.7f, 0f); in renderOnCanvas() 198 p.close(); in renderOnCanvas() 200 p = sPatternPaths[1] = new Path(); in renderOnCanvas() 201 p.moveTo(1138.1f, 0f); in renderOnCanvas() 202 p.rLineTo(-144.8f, 768f); in renderOnCanvas() 203 p.rLineTo(372.7f, 0f); in renderOnCanvas() [all …]
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
D | dvr_deleter.h | 48 void operator()(DvrBuffer* p) { dvrBufferDestroy(p); } in operator() 49 void operator()(DvrReadBuffer* p) { dvrReadBufferDestroy(p); } in operator() 50 void operator()(DvrWriteBuffer* p) { dvrWriteBufferDestroy(p); } in operator() 51 void operator()(DvrReadBufferQueue* p) { dvrReadBufferQueueDestroy(p); } in operator() 52 void operator()(DvrWriteBufferQueue* p) { dvrWriteBufferQueueDestroy(p); } in operator() 53 void operator()(DvrDisplayManager* p) { dvrDisplayManagerDestroy(p); } in operator() 54 void operator()(DvrSurfaceState* p) { dvrSurfaceStateDestroy(p); } in operator() 55 void operator()(DvrSurface* p) { dvrSurfaceDestroy(p); } in operator() 56 void operator()(DvrHwcClient* p) { dvrHwcClientDestroy(p); } in operator() 57 void operator()(DvrHwcFrame* p) { dvrHwcFrameDestroy(p); } in operator() [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil_test.cpp | 34 Maybe<xml::ExtractedPackage> p = in TEST() local 36 AAPT_ASSERT_TRUE(p); in TEST() 37 EXPECT_EQ(std::string("a"), p.value().package); in TEST() 38 EXPECT_FALSE(p.value().private_namespace); in TEST() 40 p = xml::ExtractPackageFromNamespace( in TEST() 42 AAPT_ASSERT_TRUE(p); in TEST() 43 EXPECT_EQ(std::string("android"), p.value().package); in TEST() 44 EXPECT_TRUE(p.value().private_namespace); in TEST() 46 p = xml::ExtractPackageFromNamespace( in TEST() 48 AAPT_ASSERT_TRUE(p); in TEST() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MetricsTestUtil.java | 30 static ConnectivityMetricsEvent ev(Parcelable p) { in ev() argument 33 ev.data = p; in ev() 38 Parcel p = Parcel.obtain(); in describeIpEvent() local 40 f.accept(p); in describeIpEvent() 42 p.setDataPosition(0); in describeIpEvent() 43 return ev(p.readParcelable(ClassLoader.getSystemClassLoader())); in describeIpEvent() 55 return (p) -> p.writeByte(b); in aByte() 59 return (p) -> p.writeInt(i); in anInt() 63 return (p) -> p.writeLong(l); in aLong() 67 return (p) -> p.writeString(s); in aString() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityGestureDetectorTest.java | 100 testPath(p(-d, +0), AccessibilityService.GESTURE_SWIPE_LEFT); in testRecognizeGesturePath() 101 testPath(p(+d, +0), AccessibilityService.GESTURE_SWIPE_RIGHT); in testRecognizeGesturePath() 102 testPath(p(+0, -d), AccessibilityService.GESTURE_SWIPE_UP); in testRecognizeGesturePath() 103 testPath(p(+0, +d), AccessibilityService.GESTURE_SWIPE_DOWN); in testRecognizeGesturePath() 105 testPath(p(-d, +0), p((-d - d), +0), AccessibilityService.GESTURE_SWIPE_LEFT); in testRecognizeGesturePath() 106 testPath(p(-d, +0), p(+0, +0), AccessibilityService.GESTURE_SWIPE_LEFT_AND_RIGHT); in testRecognizeGesturePath() 107 testPath(p(-d, +0), p(-d, -d), AccessibilityService.GESTURE_SWIPE_LEFT_AND_UP); in testRecognizeGesturePath() 108 testPath(p(-d, +0), p(-d, +d), AccessibilityService.GESTURE_SWIPE_LEFT_AND_DOWN); in testRecognizeGesturePath() 110 testPath(p(+d, +0), p(+0, +0), AccessibilityService.GESTURE_SWIPE_RIGHT_AND_LEFT); in testRecognizeGesturePath() 111 testPath(p(+d, +0), p((+d + d), +0), AccessibilityService.GESTURE_SWIPE_RIGHT); in testRecognizeGesturePath() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 37 PackedIntVector p = new PackedIntVector(width); in testBasic() local 41 assertEquals(p.width(), width); in testBasic() 51 at = p.size() - i; in testBasic() 59 p.insertAt(at, null); in testBasic() 61 p.insertAt(at, ins); in testBasic() 64 assertEquals(p.size(), i + 1); in testBasic() 68 assertEquals(0, p.getValue(at, j)); in testBasic() 70 assertEquals(p.getValue(at, j), i + j); in testBasic() 79 p.setValue(i, j, i * j); in testBasic() 81 assertEquals(p.getValue(i, j), i * j); in testBasic() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_sample.c | 50 getElementAt1(const uint8_t *p, int32_t x) { in getElementAt1() argument 51 float r = p[x]; in getElementAt1() 56 getElementAt2(const uint8_t *p, int32_t x) { in getElementAt2() argument 58 float2 r = {p[x], p[x+1]}; in getElementAt2() 63 getElementAt3(const uint8_t *p, int32_t x) { in getElementAt3() argument 65 float3 r = {p[x], p[x+1], p[x+2]}; in getElementAt3() 70 getElementAt4(const uint8_t *p, int32_t x) { in getElementAt4() argument 72 const uchar4 *p2 = (const uchar4 *)&p[x]; in getElementAt4() 77 getElementAt565(const uint8_t *p, int32_t x) { in getElementAt565() argument 79 float3 r = getFrom565(((const uint16_t *)p)[0]); in getElementAt565() [all …]
|
/frameworks/base/tools/aapt/ |
D | AaptUtil.cpp | 26 const char* p = str.string(); in split() local 30 q = strchr(p, sep); in split() 32 parts.add(String8(p, strlen(p))); in split() 36 parts.add(String8(p, q-p)); in split() 37 p = q + 1; in split() 44 const char* p = str.string(); in splitAndLowerCase() local 48 q = strchr(p, sep); in splitAndLowerCase() 50 String8 val(p, strlen(p)); in splitAndLowerCase() 56 String8 val(p, q-p); in splitAndLowerCase() 59 p = q + 1; in splitAndLowerCase()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaInformationRecords.java | 67 public CdmaInformationRecords(Parcel p) { in CdmaInformationRecords() argument 68 int id = p.readInt(); in CdmaInformationRecords() 72 record = new CdmaDisplayInfoRec(id, p.readString()); in CdmaInformationRecords() 78 record = new CdmaNumberInfoRec(id, p.readString(), p.readInt(), p.readInt(), in CdmaInformationRecords() 79 p.readInt(), p.readInt()); in CdmaInformationRecords() 83 record = new CdmaSignalInfoRec(p.readInt(), p.readInt(), p.readInt(), p.readInt()); in CdmaInformationRecords() 87 record = new CdmaRedirectingNumberInfoRec(p.readString(), p.readInt(), p.readInt(), in CdmaInformationRecords() 88 p.readInt(), p.readInt(), p.readInt()); in CdmaInformationRecords() 92 record = new CdmaLineControlInfoRec(p.readInt(), p.readInt(), p.readInt(), in CdmaInformationRecords() 93 p.readInt()); in CdmaInformationRecords() [all …]
|