Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 143) sorted by relevance

123456

/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamObjectTest.java38 void parseProto(ProtoInputStream pi) throws IOException { in parseProto() argument
50 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in parseProto()
51 switch (pi.getFieldNumber()) { in parseProto()
53 mChar = (char) pi.readInt(charId); in parseProto()
56 mLargeChar = (char) pi.readInt(largeCharId); in parseProto()
59 mString = pi.readString(stringId); in parseProto()
62 long token = pi.start(nestedId); in parseProto()
64 mNested.parseProto(pi); in parseProto()
65 pi.end(token); in parseProto()
68 fail("Unexpected field id " + pi.getFieldNumber()); in parseProto()
[all …]
DProtoInputStreamBoolTest.java65 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
67 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
68 switch (pi.getFieldNumber()) { in testRead()
73 results[1] = pi.readBoolean(fieldId2); in testRead()
79 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
108 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
112 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
113 switch (pi.getFieldNumber()) { in testReadCompat()
115 result = pi.readBoolean(fieldId); in testReadCompat()
118 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
[all …]
DProtoInputStreamSInt64Test.java81 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
83 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
84 switch (pi.getFieldNumber()) { in testRead()
89 results[1] = pi.readLong(fieldId2); in testRead()
92 results[2] = pi.readLong(fieldId3); in testRead()
95 results[3] = pi.readLong(fieldId4); in testRead()
98 results[4] = pi.readLong(fieldId5); in testRead()
101 results[5] = pi.readLong(fieldId6); in testRead()
104 results[6] = pi.readLong(fieldId7); in testRead()
110 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
[all …]
DProtoInputStreamUInt64Test.java83 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
85 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
86 switch (pi.getFieldNumber()) { in testRead()
91 results[1] = pi.readLong(fieldId2); in testRead()
94 results[2] = pi.readLong(fieldId3); in testRead()
97 results[3] = pi.readLong(fieldId4); in testRead()
100 results[4] = pi.readLong(fieldId5); in testRead()
103 results[5] = pi.readLong(fieldId6); in testRead()
106 results[6] = pi.readLong(fieldId7); in testRead()
112 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
[all …]
DProtoInputStreamFixed64Test.java86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
89 switch (pi.getFieldNumber()) { in testRead()
94 results[1] = pi.readLong(fieldId2); in testRead()
97 results[2] = pi.readLong(fieldId3); in testRead()
100 results[3] = pi.readLong(fieldId4); in testRead()
103 results[4] = pi.readLong(fieldId5); in testRead()
106 results[5] = pi.readLong(fieldId6); in testRead()
109 results[6] = pi.readLong(fieldId7); in testRead()
115 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
[all …]
DProtoInputStreamSFixed64Test.java86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
89 switch (pi.getFieldNumber()) { in testRead()
94 results[1] = pi.readLong(fieldId2); in testRead()
97 results[2] = pi.readLong(fieldId3); in testRead()
100 results[3] = pi.readLong(fieldId4); in testRead()
103 results[4] = pi.readLong(fieldId5); in testRead()
106 results[5] = pi.readLong(fieldId6); in testRead()
109 results[6] = pi.readLong(fieldId7); in testRead()
115 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
[all …]
DProtoInputStreamInt64Test.java84 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
86 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
87 switch (pi.getFieldNumber()) { in testRead()
92 results[1] = pi.readLong(fieldId2); in testRead()
95 results[2] = pi.readLong(fieldId3); in testRead()
98 results[3] = pi.readLong(fieldId4); in testRead()
101 results[4] = pi.readLong(fieldId5); in testRead()
104 results[5] = pi.readLong(fieldId6); in testRead()
107 results[6] = pi.readLong(fieldId7); in testRead()
113 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
[all …]
DProtoInputStreamInt32Test.java73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
76 switch (pi.getFieldNumber()) { in testRead()
81 results[1] = pi.readInt(fieldId2); in testRead()
84 results[2] = pi.readInt(fieldId3); in testRead()
87 results[3] = pi.readInt(fieldId4); in testRead()
90 results[4] = pi.readInt(fieldId5); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamEnumTest.java73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
76 switch (pi.getFieldNumber()) { in testRead()
81 results[1] = pi.readInt(fieldId2); in testRead()
84 results[2] = pi.readInt(fieldId3); in testRead()
87 results[3] = pi.readInt(fieldId4); in testRead()
90 results[4] = pi.readInt(fieldId5); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
134 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamFixed32Test.java71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
74 switch (pi.getFieldNumber()) { in testRead()
79 results[1] = pi.readInt(fieldId2); in testRead()
82 results[2] = pi.readInt(fieldId3); in testRead()
85 results[3] = pi.readInt(fieldId4); in testRead()
88 results[4] = pi.readInt(fieldId5); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamSInt32Test.java71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
74 switch (pi.getFieldNumber()) { in testRead()
79 results[1] = pi.readInt(fieldId2); in testRead()
82 results[2] = pi.readInt(fieldId3); in testRead()
85 results[3] = pi.readInt(fieldId4); in testRead()
88 results[4] = pi.readInt(fieldId5); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamSFixed32Test.java71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
74 switch (pi.getFieldNumber()) { in testRead()
79 results[1] = pi.readInt(fieldId2); in testRead()
82 results[2] = pi.readInt(fieldId3); in testRead()
85 results[3] = pi.readInt(fieldId4); in testRead()
88 results[4] = pi.readInt(fieldId5); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamUInt32Test.java73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
76 switch (pi.getFieldNumber()) { in testRead()
81 results[1] = pi.readInt(fieldId2); in testRead()
84 results[2] = pi.readInt(fieldId3); in testRead()
87 results[3] = pi.readInt(fieldId4); in testRead()
90 results[4] = pi.readInt(fieldId5); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamStringTest.java69 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
71 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
73 switch (pi.getFieldNumber()) { in testRead()
75 results[0] = pi.readString(fieldId1); in testRead()
78 results[1] = pi.readString(fieldId2); in testRead()
81 results[2] = pi.readString(fieldId3); in testRead()
84 results[3] = pi.readString(fieldId4); in testRead()
90 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
122 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
126 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
DProtoInputStreamDoubleTest.java97 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
99 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
100 switch (pi.getFieldNumber()) { in testRead()
105 results[1] = pi.readDouble(fieldId2); in testRead()
108 results[2] = pi.readDouble(fieldId3); in testRead()
111 results[3] = pi.readDouble(fieldId4); in testRead()
114 results[4] = pi.readDouble(fieldId5); in testRead()
117 results[5] = pi.readDouble(fieldId6); in testRead()
120 results[6] = pi.readDouble(fieldId7); in testRead()
123 results[7] = pi.readDouble(fieldId8); in testRead()
[all …]
DProtoInputStreamFloatTest.java88 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
90 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
91 switch (pi.getFieldNumber()) { in testRead()
96 results[1] = pi.readFloat(fieldId2); in testRead()
99 results[2] = pi.readFloat(fieldId3); in testRead()
102 results[3] = pi.readFloat(fieldId4); in testRead()
105 results[4] = pi.readFloat(fieldId5); in testRead()
108 results[5] = pi.readFloat(fieldId6); in testRead()
111 results[6] = pi.readFloat(fieldId7); in testRead()
114 results[7] = pi.readFloat(fieldId8); in testRead()
[all …]
DProtoInputStreamBytesTest.java73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() local
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
77 switch (pi.getFieldNumber()) { in testRead()
79 results[0] = pi.readBytes(fieldId1); in testRead()
82 results[1] = pi.readBytes(fieldId2); in testRead()
85 results[2] = pi.readBytes(fieldId3); in testRead()
88 results[3] = pi.readBytes(fieldId4); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
132 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() local
136 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
[all …]
/frameworks/opt/net/wifi/libwifi_system/
Dsupplicant_manager.cpp43 const prop_info* pi; in StartSupplicant() local
59 pi = __system_property_find(kSupplicantInitProperty); in StartSupplicant()
60 if (pi != NULL) { in StartSupplicant()
61 serial = __system_property_serial(pi); in StartSupplicant()
68 if (pi == NULL) { in StartSupplicant()
69 pi = __system_property_find(kSupplicantInitProperty); in StartSupplicant()
71 if (pi != NULL) { in StartSupplicant()
76 if (__system_property_serial(pi) != serial) { in StartSupplicant()
77 __system_property_read(pi, NULL, supp_status); in StartSupplicant()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java164 public MediaSession getSession(PendingIntent pi) { in getSession() argument
165 SessionHolder holder = mSessions.get(pi); in getSession()
199 public void addRccListener(PendingIntent pi, MediaSession.Callback listener) { in addRccListener() argument
200 if (pi == null) { in addRccListener()
204 SessionHolder holder = getHolder(pi, true); in addRccListener()
222 Log.d(TAG, "Added rcc listener for " + pi + "."); in addRccListener()
226 public void removeRccListener(PendingIntent pi) { in removeRccListener() argument
227 if (pi == null) { in removeRccListener()
230 SessionHolder holder = getHolder(pi, false); in removeRccListener()
237 Log.d(TAG, "Removed rcc listener for " + pi + "."); in removeRccListener()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java140 public void setPackageInfo(PackageInfo pi) { in setPackageInfo() argument
141 setPackageInfoForUser(PRIMARY_USER_ID, pi); in setPackageInfo()
144 public void setPackageInfoForUser(int userId, PackageInfo pi) { in setPackageInfoForUser() argument
148 if (!mPackages.containsKey(pi.packageName)) { in setPackageInfoForUser()
149 mPackages.put(pi.packageName, new HashMap<Integer, PackageInfo>()); in setPackageInfoForUser()
151 mPackages.get(pi.packageName).put(userId, pi); in setPackageInfoForUser()
163 PackageInfo pi = null; in getFactoryPackageVersion() local
167 pi = userPackages.get(PRIMARY_USER_ID); in getFactoryPackageVersion()
168 if (pi != null && pi.applicationInfo.isSystemApp()) { in getFactoryPackageVersion()
169 return pi.applicationInfo.longVersionCode; in getFactoryPackageVersion()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java75 PackageInfo pi = mShortcutService.getPackageInfo( in testGetPackageInfo() local
77 assertEquals(mMyPackage, pi.packageName); in testGetPackageInfo()
78 assertNull(pi.signatures); in testGetPackageInfo()
79 assertNull(pi.signingInfo); in testGetPackageInfo()
81 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
83 assertEquals(mMyPackage, pi.packageName); in testGetPackageInfo()
84 assertNull(pi.signatures); in testGetPackageInfo()
85 assertNotNull(pi.signingInfo); in testGetPackageInfo()
87 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
89 assertNull(pi); in testGetPackageInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java664 final ProviderInfo pi = getProviderInfo(uri.getAuthority(), sourceUserId, in readGrantedUriPermissions() local
666 if (pi != null && sourcePkg.equals(pi.packageName)) { in readGrantedUriPermissions()
681 + " but instead found " + pi); in readGrantedUriPermissions()
727 final ProviderInfo pi = getProviderInfo(authority, grantUri.sourceUserId, in grantUriPermissionUnchecked() local
729 if (pi == null) { in grantUriPermissionUnchecked()
738 pi.packageName, targetPkg, targetUid, grantUri); in grantUriPermissionUnchecked()
781 final ProviderInfo pi = getProviderInfo(authority, grantUri.sourceUserId, in revokeUriPermission() local
783 if (pi == null) { in revokeUriPermission()
790 if (!checkHoldingPermissions(pm, pi, grantUri, callingUid, modeFlags)) { in revokeUriPermission()
863 IPackageManager pm, ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) { in checkHoldingPermissions() argument
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java129 public void updateFromPackageInfo(@NonNull PackageInfo pi) { in updateFromPackageInfo() argument
130 if (pi != null) { in updateFromPackageInfo()
131 mVersionCode = pi.getLongVersionCode(); in updateFromPackageInfo()
132 mLastUpdateTime = pi.lastUpdateTime; in updateFromPackageInfo()
133 mBackupAllowed = ShortcutService.shouldBackupApp(pi); in updateFromPackageInfo()
166 final PackageInfo pi = s.getPackageInfoWithSignatures(packageName, packageUserId); in generateForInstalledPackageForTest() local
168 SigningInfo signingInfo = pi.signingInfo; in generateForInstalledPackageForTest()
175 final ShortcutPackageInfo ret = new ShortcutPackageInfo(pi.getLongVersionCode(), in generateForInstalledPackageForTest()
176 pi.lastUpdateTime, BackupUtils.hashSignatureArray(signatures), /* shadow=*/ false); in generateForInstalledPackageForTest()
178 ret.mBackupSourceBackupAllowed = s.shouldBackupApp(pi); in generateForInstalledPackageForTest()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java142 ProviderInfo pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData() local
145 checkMetaData(cn, pi); in testProviderWithData()
147 pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData()
150 assertNull("Meta data returned when not requested", pi.metaData); in testProviderWithData()
157 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData() local
159 checkMetaData(cn, pi); in testPermissionWithData()
161 pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
164 assertNull("Meta data returned when not requested", pi.metaData); in testPermissionWithData()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp65 float pi = 3.1415926535897932f; in ComputeGaussianWeights() local
79 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
116 const uchar *pi = ptrIn + x*4; in OneVU4() local
122 const uchar4 *pvy = (const uchar4 *)&pi[validY * iStride]; in OneVU4()
134 const uchar *pi = ptrIn + x; in OneVU1() local
140 float pf = (float)pi[validY * iStride]; in OneVU1()
182 const uchar *pi = ptrIn; in OneVFU4() local
187 float4 pf = convert_float4(((const uchar4 *)pi)[0]); in OneVFU4()
189 pi += iStride; in OneVFU4()
206 const uchar *pi = ptrIn; in OneVFU1() local
[all …]

123456