Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 111) sorted by relevance

12345

/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
DAppLabelCache.java16 package com.example.android.pm.shortcutdemo;
19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PackageManager.NameNotFoundException;
37 PackageManager pm = mContext.getPackageManager(); in getAppLabel() local
39 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel()
40 name = pm.getApplicationLabel(ai).toString(); in getAppLabel()
DShortcutAdapter.java16 package com.example.android.pm.shortcutdemo;
19 import android.content.pm.LauncherApps;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PackageManager.NameNotFoundException;
22 import android.content.pm.ShortcutInfo;
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyPermissionEvent.java21 import android.content.pm.IPackageManager;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PermissionInfo;
40 IPackageManager pm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in injectEvent() local
44 int perm = pm.checkPermission(mPermissionInfo.name, mPkg, currentUser); in injectEvent()
50 pm.grantRuntimePermission(mPkg, mPermissionInfo.name, currentUser); in injectEvent()
52 pm.revokeRuntimePermission(mPkg, mPermissionInfo.name, currentUser); in injectEvent()
DMonkeyPermissionUtil.java20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.IPackageManager;
22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PermissionInfo;
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DMyBaseListFragment.java16 package com.example.android.pm.shortcutlauncherdemo;
23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.LauncherApps;
25 import android.content.pm.LauncherApps.ShortcutQuery;
26 import android.content.pm.PackageManager;
27 import android.content.pm.PackageManager.NameNotFoundException;
28 import android.content.pm.ShortcutInfo;
112 PackageManager pm = getActivity().getPackageManager(); in getAppLabel() local
114 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel()
115 return pm.getApplicationLabel(ai).toString(); in getAppLabel()
DShortcutTemplateListFragment.java16 package com.example.android.pm.shortcutlauncherdemo;
22 import android.content.pm.LauncherActivityInfo;
23 import android.content.pm.LauncherApps.PinItemRequest;
DCompat.java16 package com.example.android.pm.shortcutlauncherdemo;
19 import android.content.pm.LauncherApps;
DPinShortcutConfirm.java16 package com.example.android.pm.shortcutlauncherdemo;
19 import android.content.pm.LauncherApps;
20 import android.content.pm.ShortcutInfo;
DAppListFragment.java16 package com.example.android.pm.shortcutlauncherdemo;
19 import android.content.pm.LauncherActivityInfo;
20 import android.content.pm.LauncherApps.ShortcutQuery;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPurgeableBitmap.java21 import android.content.pm.ActivityInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
72 PackageManager pm = getPackageManager(); in detectIfPurgeableRequest() local
75 ActivityInfo info = pm.getActivityInfo(this.getComponentName(), in detectIfPurgeableRequest()
77 labelSeq = info.loadLabel(pm); in detectIfPurgeableRequest()
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
DShortcutPublishingService.java16 package com.example.android.pm.shortcutdemo;
21 import android.content.pm.ShortcutInfo;
22 import android.content.pm.ShortcutManager;
DRequestPinShortcutResultReceiver.java16 package com.example.android.pm.shortcutdemo;
21 import android.content.pm.ShortcutManager;
/development/apps/DumpViewer/
DREADME.md22 Alternatively, you can grant the permissions with `pm grant`:
24 pm grant com.android.dumpviewer android.permission.PACKAGE_USAGE_STATS
25 pm grant com.android.dumpviewer android.permission.READ_LOGS
26 pm grant com.android.dumpviewer android.permission.DUMP
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/
DExampleAppWidgetProvider.java23 import android.content.pm.PackageManager;
83 PackageManager pm = context.getPackageManager(); in onEnabled() local
84 pm.setComponentEnabledSetting( in onEnabled()
95 PackageManager pm = context.getPackageManager(); in onDisabled() local
96 pm.setComponentEnabledSetting( in onDisabled()
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/
DAppNavHomeActivity.java21 import android.content.pm.PackageManager;
22 import android.content.pm.ResolveInfo;
55 PackageManager pm = getPackageManager(); in querySampleActivities() local
56 List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0); in querySampleActivities()
63 final CharSequence labelSeq = info.loadLabel(pm); in querySampleActivities()
/development/apps/SdkSetup/src/com/android/sdksetup/
DDefaultActivity.java22 import android.content.pm.PackageManager;
62 PackageManager pm = getPackageManager(); in onCreate() local
64 pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0); in onCreate()
/development/apps/Development/src/com/android/development/
DShowActivity.java23 import android.content.pm.ActivityInfo;
24 import android.content.pm.PackageManager;
68 final PackageManager pm = getPackageManager(); in onCreate() local
70 mActivityInfo = pm.getActivityInfo(ComponentName.unflattenFromString( in onCreate()
76 mIconImage.setImageDrawable(mActivityInfo.loadIcon(pm)); in onCreate()
84 CharSequence label = mActivityInfo.loadLabel(pm); in onCreate()
DDevelopment.java23 import android.content.pm.PackageManager;
24 import android.content.pm.ResolveInfo;
DPackageSummary.java24 import android.content.pm.ActivityInfo;
25 import android.content.pm.ApplicationInfo;
26 import android.content.pm.InstrumentationInfo;
27 import android.content.pm.PackageInfo;
28 import android.content.pm.PackageManager;
29 import android.content.pm.ProviderInfo;
30 import android.content.pm.ServiceInfo;
67 final PackageManager pm = getPackageManager(); in onCreate() local
89 info = pm.getPackageInfo(mPackageName, in onCreate()
103 pm.getApplicationIcon(info.applicationInfo)); in onCreate()
DAppHwConfigList.java23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageManager.NameNotFoundException;
DAppHwPref.java25 import android.content.pm.ConfigurationInfo;
26 import android.content.pm.ApplicationInfo;
27 import android.content.pm.PackageInfo;
28 import android.content.pm.PackageManager;
29 import android.content.pm.PackageManager.NameNotFoundException;
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DResourceHelper.java20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.PackageManager;
/development/samples/MultiDisplay/src/com/example/android/multidisplay/launcher/
DAppEntry.java21 import android.content.pm.PackageManager;
22 import android.content.pm.ResolveInfo;
/development/samples/ApiDemos/src/com/example/android/apis/
DApiDemos.java21 import android.content.pm.PackageManager;
22 import android.content.pm.ResolveInfo;
61 PackageManager pm = getPackageManager(); in getData() local
62 List<ResolveInfo> list = pm.queryIntentActivities(mainIntent, 0); in getData()
83 CharSequence labelSeq = info.loadLabel(pm); in getData()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsMessagingDemo.java28 import android.content.pm.PackageManager;
70 final PackageManager pm = this.getPackageManager(); in onCreate() local
74 enableCheckBox.setChecked(pm.getComponentEnabledSetting(componentName) == in onCreate()
81 pm.setComponentEnabledSetting(componentName, in onCreate()

12345