Home
last modified time | relevance | path

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

12345678910>>...30

/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DParcelNullabilityTest.java42 p.writeByteArray(null); in nullByteArray()
50 p.writeBlob(null); in nullBlob()
58 p.writeString(null); in nullString()
118 p.writeMap(null); in nullMap()
128 p.writeArrayMap(null); in nullArrayMap()
146 p.writeBundle(null); in nullBundle()
182 p.writeList(null); in nullList()
192 p.writeArray(null); in nullArray()
354 p.writeValue(null); in nullValue()
387 p = Parcel.obtain(); in throughBytes()
[all …]
H A DParcelTest.java41 Parcel p = Parcel.obtain(); in testIsForRpc() local
43 p.recycle(); in testIsForRpc()
48 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterWrite() local
63 p.recycle(); in testCallingWorkSourceUidAfterWrite()
68 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterEnforce() local
71 p.setDataPosition(0); in testCallingWorkSourceUidAfterEnforce()
80 p.recycle(); in testCallingWorkSourceUidAfterEnforce()
85 Parcel p = Parcel.obtain(); in testParcelWithMultipleHeaders() local
90 p.setDataPosition(0); in testParcelWithMultipleHeaders()
98 p.recycle(); in testParcelWithMultipleHeaders()
[all …]
H A DBundleTest.java65 p.setDataPosition(0); in getParcelledBundle()
66 return p; in getParcelledBundle()
120 Parcel p; in testCreateFromParcel() local
129 p.recycle(); in testCreateFromParcel()
135 p.recycle(); in testCreateFromParcel()
140 b.readFromParcel(p); in testCreateFromParcel()
142 p.recycle(); in testCreateFromParcel()
150 p.recycle(); in testCreateFromParcel()
156 p.recycle(); in testCreateFromParcel()
161 b.readFromParcel(p); in testCreateFromParcel()
[all …]
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProtoDumpUtil.java173 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
176 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
179 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
184 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
192 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
195 dumpSetting(s, p, in dumpProtoGlobalSettingsLocked()
244 p.end(appToken); in dumpProtoGlobalSettingsLocked()
1632 p.end(token); in dumpProtoGlobalSettingsLocked()
1667 p.end(token); in dumpProtoConfigSettingsLocked()
2704 p.end(token); in dumpProtoSecureSettingsLocked()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerPropertyTests.java41 final Property p = in testBooleanProperty() local
43 assertTrue(p.isBoolean()); in testBooleanProperty()
44 assertFalse(p.isFloat()); in testBooleanProperty()
45 assertFalse(p.isInteger()); in testBooleanProperty()
47 assertFalse(p.isString()); in testBooleanProperty()
66 final Property p = in testFloatProperty() local
69 assertTrue(p.isFloat()); in testFloatProperty()
91 final Property p = in testIntegerProperty() local
94 assertFalse(p.isFloat()); in testIntegerProperty()
116 final Property p = in testResourceProperty() local
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DMessageQueue.java491 p = p.next; in postSyncBarrier()
525 p = p.next; in removeSyncBarrier()
584 p = p.next; in enqueueMessage()
615 p = p.next; in hasMessages()
632 p = p.next; in hasEqualMessages()
650 p = p.next; in hasMessages()
667 p = p.next; in hasMessages()
682 while (p != null && p.target == h && p.what == what in removeMessages()
716 while (p != null && p.target == h && p.what == what in removeEqualMessages()
750 while (p != null && p.target == h && p.callback == r in removeMessages()
[all …]
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLines2Activity.java101 p.setColor(mColor); in onDraw()
113 p.setStrokeWidth(1); in onDraw()
122 p.setStrokeWidth(2); in onDraw()
130 p.setStrokeWidth(0); in onDraw()
141 p.setStrokeWidth(1); in onDraw()
150 p.setStrokeWidth(2); in onDraw()
159 p.setStrokeWidth(1); in onDraw()
169 p.setStrokeWidth(5); in onDraw()
182 p.setStrokeWidth(1); in onDraw()
192 p.setStrokeWidth(2); in onDraw()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/service/euicc/
H A DEuiccProfileInfoTest.java42 EuiccProfileInfo p = in testWriteToParcel() local
61 p.writeToParcel(parcel, 0); in testWriteToParcel()
71 EuiccProfileInfo p = in testWriteToParcelNullCarrierId() local
96 EuiccProfileInfo p = in testBuilderAndGetters() local
133 EuiccProfileInfo p = in testBuilder_BasedOnAnotherProfile() local
152 assertEquals(p, copied); in testBuilder_BasedOnAnotherProfile()
158 EuiccProfileInfo p = in testBuilder_BasedOnAnotherProfileWithEmptyAccessRules() local
181 EuiccProfileInfo p = in testEqualsHashCode() local
197 assertTrue(p.equals(p)); in testEqualsHashCode()
201 assertFalse(p.equals(t)); in testEqualsHashCode()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java124 Paint p = new Paint(); in testHasGlyph_variationSelectors() local
125 p.setTypeface(fontTypeface); in testHasGlyph_variationSelectors()
186 Paint p = new Paint(); in assertGetTextRunAdvances() local
222 Paint p = new Paint(); in testGetTextRunAdvances_invalid() local
275 Paint p = new Paint(); in testMeasureTextBidi() local
331 Paint p = new Paint(); in testSetGetWordSpacing() local
333 p.setWordSpacing(1.0f); in testSetGetWordSpacing()
335 p.setWordSpacing(-2.0f); in testSetGetWordSpacing()
342 final Paint p = new Paint(); in testGetUnderlinePositionAndThickness() local
344 p.setTextSize(textSize); in testGetUnderlinePositionAndThickness()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
H A DGestureManifoldTest.java78 testPath(p(-d, +0), p((-d - d), +0), AccessibilityService.GESTURE_SWIPE_LEFT); 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()
84 testPath(p(+d, +0), p((+d + d), +0), AccessibilityService.GESTURE_SWIPE_RIGHT); in testRecognizeGesturePath()
85 testPath(p(+d, +0), p(+d, -d), AccessibilityService.GESTURE_SWIPE_RIGHT_AND_UP); in testRecognizeGesturePath()
88 testPath(p(+0, -d), p(-d, -d), AccessibilityService.GESTURE_SWIPE_UP_AND_LEFT); in testRecognizeGesturePath()
89 testPath(p(+0, -d), p(+d, -d), AccessibilityService.GESTURE_SWIPE_UP_AND_RIGHT); in testRecognizeGesturePath()
90 testPath(p(+0, -d), p(+0, (-d - d)), AccessibilityService.GESTURE_SWIPE_UP); in testRecognizeGesturePath()
91 testPath(p(+0, -d), p(+0, +0), AccessibilityService.GESTURE_SWIPE_UP_AND_DOWN); in testRecognizeGesturePath()
95 testPath(p(+0, +d), p(+0, +0), AccessibilityService.GESTURE_SWIPE_DOWN_AND_UP); in testRecognizeGesturePath()
[all …]
/aosp14/frameworks/base/tools/aapt2/xml/
H A DXmlUtil_test.cpp30 std::optional<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()
37 ASSERT_TRUE(p); in TEST()
39 EXPECT_TRUE(p.value().private_namespace); in TEST()
42 ASSERT_TRUE(p); in TEST()
44 EXPECT_TRUE(p.value().private_namespace); in TEST()
47 ASSERT_TRUE(p); in TEST()
48 EXPECT_EQ(std::string(), p.value().package); in TEST()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DPackedIntVectorTest.java44 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()
82 p.setValue(i, j, i * j); in testBasic()
140 while (p.size() > 0) { in testBasic()
141 int osize = p.size(); in testBasic()
149 p.deleteAt(at, del); in testBasic()
161 assertEquals(p.getValue(i, j), (i + height - p.size()) * j); in testBasic()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/
H A DGainmap.cpp182 ScopedParcel p(env, parcel); in Gainmap_writeToParcel() local
198 p.writeFloat(info.fEpsilonSdr.fR); in Gainmap_writeToParcel()
199 p.writeFloat(info.fEpsilonSdr.fG); in Gainmap_writeToParcel()
200 p.writeFloat(info.fEpsilonSdr.fB); in Gainmap_writeToParcel()
202 p.writeFloat(info.fEpsilonHdr.fR); in Gainmap_writeToParcel()
224 ScopedParcel p(env, parcel); in Gainmap_readFromParcel() local
227 info.fGainmapRatioMin = {p.readFloat(), p.readFloat(), p.readFloat(), 1.f}; in Gainmap_readFromParcel()
228 info.fGainmapRatioMax = {p.readFloat(), p.readFloat(), p.readFloat(), 1.f}; in Gainmap_readFromParcel()
229 info.fGainmapGamma = {p.readFloat(), p.readFloat(), p.readFloat(), 1.f}; in Gainmap_readFromParcel()
230 info.fEpsilonSdr = {p.readFloat(), p.readFloat(), p.readFloat(), 1.f}; in Gainmap_readFromParcel()
[all …]
/aosp14/frameworks/base/tools/aapt/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DSystemUpdatePolicyTest.java273 millis_2018_01_01, p); in testInstallationOptionWithoutFreeze()
277 millis_2018_01_01, p); in testInstallationOptionWithoutFreeze()
282 millis_2018_01_01, p); in testInstallationOptionWithoutFreeze()
298 millis_2018_01_01, p); in testInstallationOptionWithoutFreeze()
317 millis_2018_01_01, p); in testInstallationOptionWithFreeze()
321 millis_2017_02_28, p); in testInstallationOptionWithFreeze()
328 millis_2016_02_29, p); in testInstallationOptionWithFreeze()
331 millis_2017_02_28, p); in testInstallationOptionWithFreeze()
402 SystemUpdatePolicy p) { in assertInstallationOption() argument
409 setFreezePeriods(p, dates); in testFreezePeriodsSucceeds()
[all …]
/aosp14/frameworks/base/core/java/android/content/pm/
H A DPackageParserCacheHelper.java45 public ReadHelper(Parcel p) { in ReadHelper() argument
46 mParcel = p; in ReadHelper()
84 public String readString(Parcel p) { in readString() argument
90 return readString(p); in readString8()
95 return readString(p); in readString16()
113 public WriteHelper(Parcel p) { in WriteHelper() argument
114 mParcel = p; in WriteHelper()
115 mStartPos = p.dataPosition(); in WriteHelper()
143 p.writeInt(index); in writeString()
149 writeString(p, s); in writeString8()
[all …]
/aosp14/frameworks/base/core/java/android/util/
H A DBase64.java268 int p = offset; in process() local
282 while (p < len) { in process()
298 while (p+4 <= len && in process()
307 p += 4; in process()
612 int p = offset; in process() local
626 if (p+2 <= len) { in process()
637 if (p+1 <= len) { in process()
664 while (p+3 <= len) { in process()
672 p += 3; in process()
722 assert p == len; in process()
[all …]
/aosp14/frameworks/base/core/java/android/app/usage/
H A DUsageEvents.java881 p.writeInt(packageIndex); in writeEventToParcel()
882 p.writeInt(classIndex); in writeEventToParcel()
883 p.writeInt(event.mInstanceId); in writeEventToParcel()
884 p.writeInt(taskRootPackageIndex); in writeEventToParcel()
885 p.writeInt(taskRootClassIndex); in writeEventToParcel()
886 p.writeInt(event.mEventType); in writeEventToParcel()
887 p.writeLong(event.mTimeStamp); in writeEventToParcel()
911 p.writeInt(event.mFlags); in writeEventToParcel()
983 eventOut.mFlags = p.readInt(); in readEventFromParcel()
1003 p.setDataPosition(0); in writeToParcel()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DThemedBatteryDrawable.kt111 p.alpha = 255
112 p.isDither = true
113 p.strokeWidth = 5f
116 p.strokeMiter = 5f
121 p.isDither = true
122 p.strokeWidth = 5f
131 p.alpha = 255
132 p.isDither = true
139 p.alpha = 255
140 p.isDither = true
[all …]
/aosp14/frameworks/base/core/jni/android/opengl/
H A Dpoly_clip.cpp41 #define CLIP_AND_SWAP(elem, sign, k, p, q, r) { \ argument
44 SWAP(p, q, r); \
70 u = &p->vert[p->n-1]; in poly_clip_to_halfspace()
72 for (v= &p->vert[0], i=p->n; i>0; i--, u=v, tu=tv, v++) { in poly_clip_to_halfspace()
111 Poly p2, *p, *q, *r; in poly_clip_to_frustum() local
139 p = p1; in poly_clip_to_frustum()
141 if (x0out) CLIP_AND_SWAP(sx, -1.0f, -1.0f, p, q, r); in poly_clip_to_frustum()
142 if (x1out) CLIP_AND_SWAP(sx, 1.0f, 1.0f, p, q, r); in poly_clip_to_frustum()
144 if (y1out) CLIP_AND_SWAP(sy, 1.0f, 1.0f, p, q, r); in poly_clip_to_frustum()
146 if (z1out) CLIP_AND_SWAP(sz, 1.0f, 1.0f, p, q, r); in poly_clip_to_frustum()
[all …]
/aosp14/frameworks/base/media/jni/audioeffect/
H A DVisualizer.cpp169 p->psize = sizeof(uint32_t); in setCaptureSize()
170 p->vsize = sizeof(uint32_t); in setCaptureSize()
178 status = p->status; in setCaptureSize()
198 p->psize = sizeof(uint32_t); in setScalingMode()
199 p->vsize = sizeof(uint32_t); in setScalingMode()
207 status = p->status; in setScalingMode()
228 p->psize = sizeof(uint32_t); in setMeasurementMode()
229 p->vsize = sizeof(uint32_t); in setMeasurementMode()
237 status = p->status; in setMeasurementMode()
398 p->psize = sizeof(uint32_t); in initCaptureSize()
[all …]
/aosp14/frameworks/base/core/java/android/widget/
H A DPopupWindow.java1343 p.x = x; in showAtLocation()
1344 p.y = y; in showAtLocation()
1622 p.flags = computeFlags(p.flags); in createPopupLayoutParams()
1651 return p; in createPopupLayoutParams()
2238 update(p.x, p.y, width, height, false); in update()
2304 p.x = x; in update()
2437 final boolean paramsChanged = oldGravity != p.gravity || oldX != p.x || oldY != p.y
2438 || oldWidth != p.width || oldHeight != p.height;
2446 update(p.x, p.y, newWidth, newHeight, paramsChanged);
2514 p.width, p.height, mAnchoredGravity, false));
[all …]
/aosp14/frameworks/base/tools/incident_report/
H A Dprinter.cpp47 char* p = (char*)malloc(size); in reallocate() local
48 if (p != NULL) { in reallocate()
51 mBuf = p; in reallocate()
83 char* p; in printf() local
85 p = strchr(last, '\n'); in printf()
86 int size = p != NULL ? p - last + 1 : strlen(last); in printf()
88 if (p != NULL) { in printf()
89 if (p[1] == '\0') { in printf()
95 last = p+1; in printf()
96 } while (p != NULL); in printf()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DKeyStore2ParameterUtils.java55 p.tag = tag; in makeBool()
57 return p; in makeBool()
118 p.tag = tag; in makeInt()
120 return p; in makeInt()
136 p.tag = tag; in makeLong()
138 return p; in makeLong()
153 p.tag = tag; in makeBytes()
155 return p; in makeBytes()
170 p.tag = tag; in makeBignum()
172 return p; in makeBignum()
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
H A DPackageParserLegacyCoreTest.java448 assertEquals(1, p.getServices().size()); in assertOneComponentOfEachType()
483 checkPackageWithComponents(p -> p); in testPackageWithComponents_no_cache()
488 checkPackageWithComponents(p -> in testPackageWithComponents_cached()
494 ParsedPackage p = parsePackage( in checkPackageWithComponents() local
505 findAndRemoveAppDetailsActivity(p); in checkPackageWithComponents()
509 assertMetadata(p.getMetaData(), in checkPackageWithComponents()
534 p.getActivities().remove(i); in findAndRemoveAppDetailsActivity()
543 checkPackageWithIntentFilters(p -> p); in testPackageWithIntentFilters_no_cache()
548 checkPackageWithIntentFilters(p -> in testPackageWithIntentFilters_cached()
554 ParsedPackage p = parsePackage( in checkPackageWithIntentFilters() local
[all …]

12345678910>>...30