Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 1045) sorted by relevance

12345678910>>...42

/frameworks/base/core/tests/coretests/src/android/os/
DParcelNullabilityTest.java41 Parcel p = Parcel.obtain(); in nullByteArray() local
42 p.writeByteArray(null); in nullByteArray()
44 assertNull(throughBytes(p).createByteArray()); in nullByteArray()
49 Parcel p = Parcel.obtain(); in nullBlob() local
50 p.writeBlob(null); in nullBlob()
52 assertNull(throughBytes(p).readBlob()); in nullBlob()
57 Parcel p = Parcel.obtain(); in nullString() local
58 p.writeString(null); in nullString()
60 assertNull(throughBytes(p).readString()); in nullString()
65 Parcel p = Parcel.obtain(); in nullCharSequence() local
[all …]
DParcelTest.java38 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterWrite() local
41 assertEquals(false, p.replaceCallingWorkSourceUid(WORK_SOURCE_1)); in testCallingWorkSourceUidAfterWrite()
42 assertEquals(Binder.UNSET_WORKSOURCE, p.readCallingWorkSourceUid()); in testCallingWorkSourceUidAfterWrite()
45 p.writeInterfaceToken(INTERFACE_TOKEN_1); in testCallingWorkSourceUidAfterWrite()
46 assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_2)); in testCallingWorkSourceUidAfterWrite()
47 assertEquals(WORK_SOURCE_2, p.readCallingWorkSourceUid()); in testCallingWorkSourceUidAfterWrite()
50 assertEquals(true, p.replaceCallingWorkSourceUid(Binder.UNSET_WORKSOURCE)); in testCallingWorkSourceUidAfterWrite()
51 assertEquals(Binder.UNSET_WORKSOURCE, p.readCallingWorkSourceUid()); in testCallingWorkSourceUidAfterWrite()
53 p.recycle(); in testCallingWorkSourceUidAfterWrite()
58 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterEnforce() local
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DATResponseParserTest.java25 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/core/tests/coretests/src/android/content/pm/
DPackageManagerPropertyTests.java38 final Property p = in testBooleanProperty() local
40 assertTrue(p.isBoolean()); in testBooleanProperty()
41 assertFalse(p.isFloat()); in testBooleanProperty()
42 assertFalse(p.isInteger()); in testBooleanProperty()
43 assertFalse(p.isResourceId()); in testBooleanProperty()
44 assertFalse(p.isString()); in testBooleanProperty()
45 assertTrue(p.getBoolean()); in testBooleanProperty()
46 assertEquals(0.0f, p.getFloat(), 0.0f); in testBooleanProperty()
47 assertEquals(0, p.getInteger()); in testBooleanProperty()
48 assertEquals(0, p.getResourceId()); in testBooleanProperty()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java157 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { in dumpProtoGlobalSettingsLocked()
158 final long token = p.start(fieldId); in dumpProtoGlobalSettingsLocked()
159 s.dumpHistoricalOperations(p, GlobalSettingsProto.HISTORICAL_OPERATIONS); in dumpProtoGlobalSettingsLocked()
162 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
165 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
168 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
172 final long airplaneModeToken = p.start(GlobalSettingsProto.AIRPLANE_MODE); in dumpProtoGlobalSettingsLocked()
173 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
181 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
184 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
[all …]
/frameworks/rs/script_api/
DGenerateTestFiles.cpp138 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/base/core/java/android/os/
DMessageQueue.java487 Message p = mMessages; in postSyncBarrier() local
489 while (p != null && p.when <= when) { in postSyncBarrier()
490 prev = p; in postSyncBarrier()
491 p = p.next; in postSyncBarrier()
495 msg.next = p; in postSyncBarrier()
498 msg.next = p; in postSyncBarrier()
522 Message p = mMessages; in removeSyncBarrier() local
523 while (p != null && (p.target != null || p.arg1 != token)) { in removeSyncBarrier()
524 prev = p; in removeSyncBarrier()
525 p = p.next; in removeSyncBarrier()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DLines2Activity.java75 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/base/core/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java42 EuiccProfileInfo p = in testWriteToParcel() local
61 p.writeToParcel(parcel, 0); in testWriteToParcel()
66 assertEquals(p, fromParcel); in testWriteToParcel()
71 EuiccProfileInfo p = in testWriteToParcelNullCarrierId() local
86 p.writeToParcel(parcel, 0); in testWriteToParcelNullCarrierId()
91 assertEquals(p, fromParcel); in testWriteToParcelNullCarrierId()
96 EuiccProfileInfo p = in testBuilderAndGetters() local
112 assertEquals("21430000000000006587", p.getIccid()); in testBuilderAndGetters()
113 assertEquals("profile nickname", p.getNickname()); in testBuilderAndGetters()
114 assertEquals("profile name", p.getProfileName()); in testBuilderAndGetters()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioResamplerCubic.h50 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/
Dbuffer_hub-test.cpp50 pollfd p = {buffer->event_fd(), POLLIN, 0}; in PollBufferEvent() local
51 return poll(&p, 1, timeout_ms); in PollBufferEvent()
57 std::unique_ptr<ProducerBuffer> p = ProducerBuffer::Create( in TEST_F() local
59 ASSERT_TRUE(p.get() != nullptr); in TEST_F()
61 ConsumerBuffer::Import(p->CreateConsumer()); in TEST_F()
69 EXPECT_EQ(p->client_state_mask(), kFirstClientBitMask); in TEST_F()
74 EXPECT_EQ(0, RETRY_EINTR(PollBufferEvent(p))); in TEST_F()
78 EXPECT_EQ(0, p->GainAsync()); in TEST_F()
79 EXPECT_EQ(0, p->Post(LocalHandle())); in TEST_F()
82 EXPECT_EQ(0, RETRY_EINTR(PollBufferEvent(p))); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java124 Paint p = new Paint(); in testHasGlyph_variationSelectors() local
125 p.setTypeface(fontTypeface); in testHasGlyph_variationSelectors()
157 assertTrue(signature + " is expected to be true", p.hasGlyph(testString)); in testHasGlyph_variationSelectors()
159 assertFalse(signature + " is expected to be false", p.hasGlyph(testString)); in testHasGlyph_variationSelectors()
186 Paint p = new Paint(); in assertGetTextRunAdvances() local
192 final float advance = p.getTextRunAdvances(chars, start, count, in assertGetTextRunAdvances()
195 final float firstPartAdvance = p.getTextRunAdvances(chars, start, c, in assertGetTextRunAdvances()
197 final float secondPartAdvance = p.getTextRunAdvances(chars, start + c, count - c, in assertGetTextRunAdvances()
208 assertEquals(advance, p.measureText(str, start, end), 1.0f); in assertGetTextRunAdvances()
209 assertEquals(advance, p.getRunAdvance( in assertGetTextRunAdvances()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dmandelbulb.rscript26 static float3 nylander(float3 p, int n) {
28 float r = length(p);
29 float phi = atan2(p.y, p.x);
30 float theta = acos(p.z / r);
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);
[all …]
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DAppLaunchEvent.java120 protected void writeToParcelImpl(Parcel p, int flags) { in writeToParcelImpl() argument
121 super.writeToParcelImpl(p, flags); in writeToParcelImpl()
122 IntentProtoParcelable.write(p, intent, flags); in writeToParcelImpl()
123 p.writeLong(timestampNs); in writeToParcelImpl()
126 IntentStarted(Parcel p) { in IntentStarted() argument
127 super(p); in IntentStarted()
128 intent = IntentProtoParcelable.create(p); in IntentStarted()
129 timestampNs = p.readLong(); in IntentStarted()
146 IntentFailed(Parcel p) { in IntentFailed() argument
147 super(p); in IntentFailed()
[all …]
/frameworks/native/cmds/installd/
DCacheItem.cpp33 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/native/libs/binder/tests/
DbinderParcelTest.cpp32 Parcel p; in TEST() local
33 p.writeString8(kTestString); in TEST()
34 p.setDataPosition(0); in TEST()
37 p.writeInt32(kTestString.size() - 2); in TEST()
39 p.setDataPosition(0); in TEST()
41 EXPECT_NE(OK, p.readString8(&output)); in TEST()
49 Parcel p; in TEST() local
50 p.writeString16(kTestString); in TEST()
51 p.setDataPosition(0); in TEST()
54 p.writeInt32(kTestString.size() - 2); in TEST()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java178 Path p = patternPaths[0] = new Path(); in renderOnCanvas() local
179 p.moveTo(1029.4f, 357.5f); in renderOnCanvas()
180 p.lineTo(1366f, 759.1f); in renderOnCanvas()
181 p.lineTo(1366f, 0f); in renderOnCanvas()
182 p.lineTo(1137.7f, 0f); in renderOnCanvas()
183 p.close(); in renderOnCanvas()
185 p = patternPaths[1] = new Path(); in renderOnCanvas()
186 p.moveTo(1138.1f, 0f); in renderOnCanvas()
187 p.rLineTo(-144.8f, 768f); in renderOnCanvas()
188 p.rLineTo(372.7f, 0f); in renderOnCanvas()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dmultiplay.c95 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 …]
Dmonkey.c54 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/native/libs/binder/
DParcelableHolder.cpp29 status_t ParcelableHolder::writeToParcel(Parcel* p) const { in writeToParcel()
30 RETURN_ON_FAILURE(p->writeInt32(static_cast<int32_t>(this->getStability()))); in writeToParcel()
32 RETURN_ON_FAILURE(p->writeInt32(this->mParcelPtr->dataSize())); in writeToParcel()
33 RETURN_ON_FAILURE(p->appendFrom(this->mParcelPtr.get(), 0, this->mParcelPtr->dataSize())); in writeToParcel()
37 size_t sizePos = p->dataPosition(); in writeToParcel()
38 RETURN_ON_FAILURE(p->writeInt32(0)); in writeToParcel()
39 size_t dataStartPos = p->dataPosition(); in writeToParcel()
40 RETURN_ON_FAILURE(p->writeString16(this->mParcelableName)); in writeToParcel()
41 this->mParcelable->writeToParcel(p); in writeToParcel()
42 size_t dataSize = p->dataPosition() - dataStartPos; in writeToParcel()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlUtil_test.cpp30 Maybe<xml::ExtractedPackage> p = in TEST() local
32 ASSERT_TRUE(p); in TEST()
33 EXPECT_EQ(std::string("a"), p.value().package); in TEST()
34 EXPECT_FALSE(p.value().private_namespace); in TEST()
36 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/android"); in TEST()
37 ASSERT_TRUE(p); in TEST()
38 EXPECT_EQ(std::string("android"), p.value().package); in TEST()
39 EXPECT_TRUE(p.value().private_namespace); in TEST()
41 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/com.test"); in TEST()
42 ASSERT_TRUE(p); in TEST()
[all …]
/frameworks/native/libs/vr/libdvr/include/dvr/
Ddvr_deleter.h46 void operator()(DvrBuffer* p) { dvrBufferDestroy(p); } in operator()
47 void operator()(DvrReadBuffer* p) { dvrReadBufferDestroy(p); } in operator()
48 void operator()(DvrWriteBuffer* p) { dvrWriteBufferDestroy(p); } in operator()
49 void operator()(DvrReadBufferQueue* p) { dvrReadBufferQueueDestroy(p); } in operator()
50 void operator()(DvrWriteBufferQueue* p) { dvrWriteBufferQueueDestroy(p); } in operator()
51 void operator()(DvrDisplayManager* p) { dvrDisplayManagerDestroy(p); } in operator()
52 void operator()(DvrSurfaceState* p) { dvrSurfaceStateDestroy(p); } in operator()
53 void operator()(DvrSurface* p) { dvrSurfaceDestroy(p); } in operator()
54 void operator()(DvrHwcClient* p) { dvrHwcClientDestroy(p); } in operator()
55 void operator()(DvrHwcFrame* p) { dvrHwcFrameDestroy(p); } in operator()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGestureManifoldTest.java73 testPath(p(-d, +0), AccessibilityService.GESTURE_SWIPE_LEFT); in testRecognizeGesturePath()
74 testPath(p(+d, +0), AccessibilityService.GESTURE_SWIPE_RIGHT); in testRecognizeGesturePath()
75 testPath(p(+0, -d), AccessibilityService.GESTURE_SWIPE_UP); in testRecognizeGesturePath()
76 testPath(p(+0, +d), AccessibilityService.GESTURE_SWIPE_DOWN); in testRecognizeGesturePath()
78 testPath(p(-d, +0), p((-d - d), +0), AccessibilityService.GESTURE_SWIPE_LEFT); in testRecognizeGesturePath()
79 testPath(p(-d, +0), p(+0, +0), AccessibilityService.GESTURE_SWIPE_LEFT_AND_RIGHT); in testRecognizeGesturePath()
80 testPath(p(-d, +0), p(-d, -d), AccessibilityService.GESTURE_SWIPE_LEFT_AND_UP); in testRecognizeGesturePath()
81 testPath(p(-d, +0), p(-d, +d), AccessibilityService.GESTURE_SWIPE_LEFT_AND_DOWN); in testRecognizeGesturePath()
83 testPath(p(+d, +0), p(+0, +0), AccessibilityService.GESTURE_SWIPE_RIGHT_AND_LEFT); in testRecognizeGesturePath()
84 testPath(p(+d, +0), p((+d + d), +0), AccessibilityService.GESTURE_SWIPE_RIGHT); in testRecognizeGesturePath()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java40 PackedIntVector p = new PackedIntVector(width); in testBasic() local
44 assertEquals(p.width(), width); in testBasic()
54 at = p.size() - i; in testBasic()
62 p.insertAt(at, null); in testBasic()
64 p.insertAt(at, ins); in testBasic()
67 assertEquals(p.size(), i + 1); in testBasic()
71 assertEquals(0, p.getValue(at, j)); in testBasic()
73 assertEquals(p.getValue(at, j), i + j); in testBasic()
82 p.setValue(i, j, i * j); in testBasic()
84 assertEquals(p.getValue(i, j), i * j); in testBasic()
[all …]
/frameworks/base/tools/aapt/
DAaptUtil.cpp26 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()

12345678910>>...42