Home
last modified time | relevance | path

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

1234

/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java163 public MediaSession getSession(PendingIntent pi) { in getSession() argument
164 SessionHolder holder = mSessions.get(pi); in getSession()
240 public void addRccListener(PendingIntent pi, MediaSession.Callback listener) { in addRccListener() argument
241 if (pi == null) { in addRccListener()
245 SessionHolder holder = getHolder(pi, true); in addRccListener()
263 Log.d(TAG, "Added rcc listener for " + pi + "."); in addRccListener()
267 public void removeRccListener(PendingIntent pi) { in removeRccListener() argument
268 if (pi == null) { in removeRccListener()
271 SessionHolder holder = getHolder(pi, false); in removeRccListener()
278 Log.d(TAG, "Removed rcc listener for " + pi + "."); in removeRccListener()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java43 final PackageInfo pi = new PackageInfo(); in genPackage() local
44 pi.packageName = "package"; in genPackage()
45 pi.applicationInfo = new ApplicationInfo(); in genPackage()
46 pi.signatures = genSignatures(signatures); in genPackage()
48 return pi; in genPackage()
57 PackageInfo pi; in testSignaturesMatch() local
63 pi = genPackage("xyz"); in testSignaturesMatch()
64 pi.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testSignaturesMatch()
65 assertTrue(BackupUtils.signaturesMatch(stored1, pi)); in testSignaturesMatch()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java109 final PackageInfo pi = s.getPackageInfoWithSignatures(packageName, packageUserId); in generateForInstalledPackage() local
110 if (pi.signatures == null || pi.signatures.length == 0) { in generateForInstalledPackage()
114 final ShortcutPackageInfo ret = new ShortcutPackageInfo(pi.versionCode, in generateForInstalledPackage()
115 BackupUtils.hashSignatureArray(pi.signatures), /* shadow=*/ false); in generateForInstalledPackage()
127 final PackageInfo pi = s.getPackageInfoWithSignatures( in refresh() local
129 if (pi == null) { in refresh()
133 mVersionCode = pi.versionCode; in refresh()
134 mSigHashes = BackupUtils.hashSignatureArray(pi.signatures); in refresh()
DPackageManagerShellCommand.java1313 PermissionInfo pi = ps.get(p); in doListPermissions() local
1314 if (groups && groupName == null && pi.group != null) { in doListPermissions()
1317 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
1328 Resources res = getResources(pi); in doListPermissions()
1330 pw.print(loadText(pi, pi.labelRes, in doListPermissions()
1331 pi.nonLocalizedLabel)); in doListPermissions()
1333 pw.print(pi.name); in doListPermissions()
1337 + "permission:" + pi.name); in doListPermissions()
1339 pw.println(prefix + " package:" + pi.packageName); in doListPermissions()
1340 Resources res = getResources(pi); in doListPermissions()
[all …]
DShortcutPackageItem.java98 final PackageInfo pi = s.getPackageInfoWithSignatures(mPackageName, mPackageUserId); in attemptToRestoreIfNeededAndSave() local
99 if (!mPackageInfo.canRestoreTo(s, pi)) { in attemptToRestoreIfNeededAndSave()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java139 ProviderInfo pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData() local
142 checkMetaData(cn, pi); in testProviderWithData()
144 pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData()
147 assertNull("Meta data returned when not requested", pi.metaData); in testProviderWithData()
154 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData() local
156 checkMetaData(cn, pi); in testPermissionWithData()
158 pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
161 assertNull("Meta data returned when not requested", pi.metaData); in testPermissionWithData()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp68 float pi = 3.1415926535897932f; in ComputeGaussianWeights() local
82 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
119 const uchar *pi = ptrIn + x*4; in OneVU4() local
125 const uchar4 *pvy = (const uchar4 *)&pi[validY * iStride]; in OneVU4()
137 const uchar *pi = ptrIn + x; in OneVU1() local
143 float pf = (float)pi[validY * iStride]; in OneVU1()
180 const uchar *pi = ptrIn; in OneVFU4() local
185 float4 pf = convert_float4(((const uchar4 *)pi)[0]); in OneVFU4()
187 pi += iStride; in OneVFU4()
204 const uchar *pi = ptrIn; in OneVFU1() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java154 public byte pi; field in CdmaInformationRecords.CdmaNumberInfoRec
157 public CdmaNumberInfoRec(int id, String number, int numberType, int numberPlan, int pi, in CdmaNumberInfoRec() argument
162 this.pi = (byte)pi; in CdmaNumberInfoRec()
173 ", pi: " + pi + in toString()
191 int pi, int si, int reason) { in CdmaRedirectingNumberInfoRec() argument
193 number, numberType, numberPlan, pi, si); in CdmaRedirectingNumberInfoRec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DMediaSessions.java138 final PlaybackInfo pi = controller.getPlaybackInfo(); in onActiveSessionsUpdatedH() local
147 final boolean remote = isRemote(pi); in onActiveSessionsUpdatedH()
149 updateRemoteH(token, r.name, pi); in onActiveSessionsUpdatedH()
165 private static boolean isRemote(PlaybackInfo pi) { in isRemote() argument
166 return pi != null && pi.getPlaybackType() == PlaybackInfo.PLAYBACK_TYPE_REMOTE; in isRemote()
198 private void updateRemoteH(Token token, String name, PlaybackInfo pi) { in updateRemoteH() argument
200 mCallbacks.onRemoteUpdate(token, name, pi); in updateRemoteH()
209 final PlaybackInfo pi = c.getPlaybackInfo(); in dump() local
217 writer.println(" PlaybackInfo: " + Util.playbackInfoToString(pi)); in dump()
238 if (pi != null) { in dump()
[all …]
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/
DMediaSessionCompatApi18.java38 public static void registerMediaButtonEventReceiver(Context context, PendingIntent pi, in registerMediaButtonEventReceiver() argument
47 am.registerMediaButtonEventReceiver(pi); in registerMediaButtonEventReceiver()
60 public static void unregisterMediaButtonEventReceiver(Context context, PendingIntent pi, in unregisterMediaButtonEventReceiver() argument
64 am.unregisterMediaButtonEventReceiver(pi); in unregisterMediaButtonEventReceiver()
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DSharedLibraryMain.java43 PackageInfo pi = null; in getVersion() local
45 pi = context.getPackageManager().getPackageInfo(LIBRARY_PACKAGE, 0); in getVersion()
46 return pi.versionCode; in getVersion()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java234 PolicyInfo pi = sPoliciesDisplayOrder.get(i);
235 sRevKnownPolicies.put(pi.ident, pi); in sRevKnownPolicies.put() argument
236 sKnownPolicies.put(pi.tag, pi.ident); in sKnownPolicies.put()
451 PolicyInfo pi = sPoliciesDisplayOrder.get(i); in getUsedPolicies() local
452 if (usesPolicy(pi.ident)) { in getUsedPolicies()
453 res.add(pi); in getUsedPolicies()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMetricsLoggerService.java219 for (PendingIntent pi : mPendingIntents) {
220 pw.println(pi.toString());
298 for (PendingIntent pi : mPendingIntents) {
301 pi.send(getContext(), 0, null, null, null);
303 Log.e(TAG, "Pending intent canceled: " + pi);
304 mPendingIntents.remove(pi);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DIntentTile.java104 private void sendIntent(String type, PendingIntent pi, String uri) { in sendIntent() argument
106 if (pi != null) { in sendIntent()
107 if (pi.isActivity()) { in sendIntent()
108 getHost().startActivityDismissingKeyguard(pi); in sendIntent()
110 pi.send(); in sendIntent()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java104 public void setPackageInfo(PackageInfo pi) { in setPackageInfo() argument
105 mPackages.put(pi.packageName, pi); in setPackageInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java72 final PackageInfo pi = DpmTestUtils.cloneParcelable( in markPackageAsInstalled() local
75 assertTrue(pi.applicationInfo.flags != 0); in markPackageAsInstalled()
78 pi.applicationInfo = ai; in markPackageAsInstalled()
81 doReturn(pi).when(mMockContext.ipackageManager).getPackageInfo( in markPackageAsInstalled()
/frameworks/rs/api/
Drs_math.spec54 summary: 1 / pi, as a 32 bit float
56 The inverse of pi, as a 32 bit float.
61 summary: 2 / pi, as a 32 bit float
63 2 divided by pi, as a 32 bit float.
70 summary: 2 / pi, as a 32 bit float
72 2 divided by pi, as a 32 bit float.
77 summary: 2 / sqrt(pi), as a 32 bit float
79 2 divided by the square root of pi, as a 32 bit float.
119 summary: pi, as a 32 bit float
121 The constant pi, as a 32 bit float.
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPathMeasure_Delegate.java147 for (PathIterator pi = path.getJavaShape().getPathIterator(null); !pi.isDone(); pi.next()) { in native_isClosed()
148 type = pi.currentSegment(segment); in native_isClosed()
/frameworks/support/v4/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java107 public static void setSessionActivity(Object sessionObj, PendingIntent pi) { in setSessionActivity() argument
108 ((MediaSession) sessionObj).setSessionActivity(pi); in setSessionActivity()
111 public static void setMediaButtonReceiver(Object sessionObj, PendingIntent pi) { in setMediaButtonReceiver() argument
112 ((MediaSession) sessionObj).setMediaButtonReceiver(pi); in setMediaButtonReceiver()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java429 public void requestPermission(UsbDevice device, PendingIntent pi) { in requestPermission() argument
431 mService.requestDevicePermission(device, mContext.getPackageName(), pi); in requestPermission()
455 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission() argument
457 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi); in requestPermission()
DIUsbManager.aidl66 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); in requestDevicePermission() argument
73 in PendingIntent pi); in requestAccessoryPermission() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java190 PackageInfo pi = pm.getPackageInfo(app.packageName, 0); in fetchAndMergeApps() local
195 && pi.requiredAccountType != null && pi.restrictedAccountType == null) { in fetchAndMergeApps()
331 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage() local
332 if (pi.applicationInfo == null) return false; in isSystemPackage()
333 final int flags = pi.applicationInfo.flags; in isSystemPackage()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java633 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions() local
634 assertNotNull(pi); in assertPermissions()
635 assertEquals(pi.packageName, pkg); in assertPermissions()
636 assertEquals(pi.name, cmd); in assertPermissions()
3075 PackageInfo pi = pm.getPackageInfo(pkgName, PackageManager.GET_SIGNATURES); in testSigChangeAfterUpgrade() local
3077 pi.signatures.length == 1); in testSigChangeAfterUpgrade()
3078 String sigBefore = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade()
3083 pi = pm.getPackageInfo(pkgName, PackageManager.GET_SIGNATURES); in testSigChangeAfterUpgrade()
3085 pi.signatures.length == 1); in testSigChangeAfterUpgrade()
3086 String sigAfter = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade()
[all …]
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
DAlarmImpl.java53 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, wakupIntent, 0); in setAlarmAndWait() local
55 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in setAlarmAndWait()
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
DWakeLoopService.java83 PendingIntent pi = PendingIntent.getBroadcast(this, 0, wakupIntent, in onStartCommand() local
86 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in onStartCommand()

1234