/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
D | AppLabelCache.java | 16 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()
|
D | ShortcutAdapter.java | 16 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/ |
D | MonkeyPermissionEvent.java | 21 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()
|
D | MonkeyPermissionUtil.java | 20 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/ |
D | MyBaseListFragment.java | 16 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()
|
D | ShortcutTemplateListFragment.java | 16 package com.example.android.pm.shortcutlauncherdemo; 22 import android.content.pm.LauncherActivityInfo; 23 import android.content.pm.LauncherApps.PinItemRequest;
|
D | Compat.java | 16 package com.example.android.pm.shortcutlauncherdemo; 19 import android.content.pm.LauncherApps;
|
D | PinShortcutConfirm.java | 16 package com.example.android.pm.shortcutlauncherdemo; 19 import android.content.pm.LauncherApps; 20 import android.content.pm.ShortcutInfo;
|
D | AppListFragment.java | 16 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/ |
D | PurgeableBitmap.java | 21 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/ |
D | ShortcutPublishingService.java | 16 package com.example.android.pm.shortcutdemo; 21 import android.content.pm.ShortcutInfo; 22 import android.content.pm.ShortcutManager;
|
D | RequestPinShortcutResultReceiver.java | 16 package com.example.android.pm.shortcutdemo; 21 import android.content.pm.ShortcutManager;
|
/development/apps/DumpViewer/ |
D | README.md | 22 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/ |
D | ExampleAppWidgetProvider.java | 23 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/ |
D | AppNavHomeActivity.java | 21 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/ |
D | DefaultActivity.java | 22 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/ |
D | ShowActivity.java | 23 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()
|
D | Development.java | 23 import android.content.pm.PackageManager; 24 import android.content.pm.ResolveInfo;
|
D | PackageSummary.java | 24 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()
|
D | AppHwConfigList.java | 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.PackageInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.PackageManager.NameNotFoundException;
|
D | AppHwPref.java | 25 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/ |
D | ResourceHelper.java | 20 import android.content.pm.ApplicationInfo; 21 import android.content.pm.PackageManager;
|
/development/samples/MultiDisplay/src/com/example/android/multidisplay/launcher/ |
D | AppEntry.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.ResolveInfo;
|
/development/samples/ApiDemos/src/com/example/android/apis/ |
D | ApiDemos.java | 21 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/ |
D | SmsMessagingDemo.java | 28 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()
|