/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 163 private PackageManager getPm() { in getPm() 196 if (observer.returnCode != PackageManager.INSTALL_SUCCEEDED) { in invokeInstallPackage() 201 if (observer.returnCode == PackageManager.INSTALL_SUCCEEDED) { in invokeInstallPackage() 312 if ((flags & PackageManager.INSTALL_EXTERNAL) != 0 ) { in getInstallLoc() 314 } else if ((flags & PackageManager.INSTALL_INTERNAL) != 0) { in getInstallLoc() 383 if ((flags & PackageManager.INSTALL_FORWARD_LOCK) != 0) { in assertInstall() 415 if ((flags & PackageManager.INSTALL_FORWARD_LOCK) != 0) { in assertInstall() 494 final PackageManager pm = getPm(); in assertPermissions() [all …]
|
D | ComponentTest.java | 19 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; 20 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 21 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED; 22 import static android.content.pm.PackageManager.GET_DISABLED_COMPONENTS; 51 private PackageManager mPackageManager; 134 PackageManager.DONT_KILL_APP); in testResolveDisabledActivity() 150 PackageManager.DONT_KILL_APP); in testResolveEnabledActivity() 163 PackageManager.DONT_KILL_APP); in testQueryDisabledActivity() 183 PackageManager.DONT_KILL_APP); in testQueryEnabledActivity() 198 PackageManager.DONT_KILL_APP); in testGetDisabledActivityInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageVerificationStateTest.java | 19 import android.content.pm.PackageManager; 37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() 72 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall() 77 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall() 97 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall() 102 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall() 123 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough() 128 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough() 149 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_SecondSufficientIsEnough() [all …]
|
D | PackageManagerSettingsTests.java | 19 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; 20 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 21 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER; 22 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
/frameworks/base/core/java/android/webkit/ |
D | PluginManager.java | 28 import android.content.pm.PackageManager; 32 import android.content.pm.PackageManager.NameNotFoundException; 115 PackageManager pm = mContext.getPackageManager(); in getPluginDirectories() 117 PackageManager.GET_SERVICES | PackageManager.GET_META_DATA); in getPluginDirectories() 137 PackageManager.GET_PERMISSIONS in getPluginDirectories() 138 | PackageManager.GET_SIGNATURES); in getPluginDirectories() 210 PackageManager pm = mContext.getPackageManager(); in containsPluginPermissionAndSignatures() 214 PackageInfo pkgInfo = pm.getPackageInfo(pluginAPKName, PackageManager.GET_PERMISSIONS in containsPluginPermissionAndSignatures() 215 | PackageManager.GET_SIGNATURES); in containsPluginPermissionAndSignatures()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 110 public CharSequence loadLabel(PackageManager pm) { in loadLabel() 138 public Drawable loadIcon(PackageManager pm) { in loadIcon() 159 protected Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() 174 public Drawable loadLogo(PackageManager pm) { in loadLogo() 195 protected Drawable loadDefaultLogo(PackageManager pm) { in loadDefaultLogo() 212 public XmlResourceParser loadXmlMetaData(PackageManager pm, String name) { in loadXmlMetaData() 273 public DisplayNameComparator(PackageManager pm) { in DisplayNameComparator() 286 private PackageManager mPM;
|
D | PackageParser.java | 152 private int mParseError = PackageManager.INSTALL_SUCCEEDED; 251 grantedPermissions, false, PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, in generatePackageInfo() 283 if ((flags&PackageManager.GET_GIDS) != 0) { in generatePackageInfo() 286 if ((flags&PackageManager.GET_CONFIGURATIONS) != 0) { in generatePackageInfo() 298 if ((flags&PackageManager.GET_ACTIVITIES) != 0) { in generatePackageInfo() 301 if ((flags&PackageManager.GET_DISABLED_COMPONENTS) != 0) { in generatePackageInfo() 313 || (flags&PackageManager.GET_DISABLED_COMPONENTS) != 0) { in generatePackageInfo() 320 if ((flags&PackageManager.GET_RECEIVERS) != 0) { in generatePackageInfo() 323 if ((flags&PackageManager.GET_DISABLED_COMPONENTS) != 0) { in generatePackageInfo() 335 || (flags&PackageManager.GET_DISABLED_COMPONENTS) != 0) { in generatePackageInfo() [all …]
|
D | ApplicationInfo.java | 19 import android.content.pm.PackageManager.NameNotFoundException; 433 public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; 495 public DisplayNameComparator(PackageManager pm) { in DisplayNameComparator() 513 private PackageManager mPM; 634 public CharSequence loadDescription(PackageManager pm) { in loadDescription() 658 @Override protected Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() 667 private boolean isPackageUnavailable(PackageManager pm) { in isPackageUnavailable()
|
/frameworks/base/core/java/android/server/search/ |
D | Searchables.java | 26 import android.content.pm.PackageManager; 119 getActivityInfo(activity, PackageManager.GET_META_DATA ); in getSearchableInfo() 160 } catch (PackageManager.NameNotFoundException e) { in getSearchableInfo() 198 final PackageManager pm = mContext.getPackageManager(); in buildSearchableList() 203 searchList = pm.queryIntentActivities(intent, PackageManager.GET_META_DATA); in buildSearchableList() 207 webSearchInfoList = pm.queryIntentActivities(webSearchIntent, PackageManager.GET_META_DATA); in buildSearchableList() 265 PackageManager pm = mContext.getPackageManager(); in findGlobalSearchActivities() 267 pm.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in findGlobalSearchActivities() 304 PackageManager pm = mContext.getPackageManager(); in isInstalled() 306 pm.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in isInstalled() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SchedulingPolicyService.java | 20 import android.content.pm.PackageManager; 51 return PackageManager.PERMISSION_DENIED; in requestPriority() 60 return PackageManager.PERMISSION_DENIED; in requestPriority() 62 return PackageManager.PERMISSION_GRANTED; in requestPriority()
|
/frameworks/base/services/java/com/android/server/pm/ |
D | PackageVerificationState.java | 21 import android.content.pm.PackageManager; 84 case PackageManager.VERIFICATION_ALLOW_WITHOUT_SUFFICIENT: in setVerifierResponse() 87 case PackageManager.VERIFICATION_ALLOW: in setVerifierResponse() 96 if (code == PackageManager.VERIFICATION_ALLOW) { in setVerifierResponse()
|
D | PackageManagerService.java | 21 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; 22 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 23 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER; 24 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED; 69 import android.content.pm.PackageManager; 673 if (res.returnCode == PackageManager.INSTALL_SUCCEEDED) { in doHandleMessage() 772 int ret = PackageManager.INSTALL_FAILED_VERIFICATION_TIMEOUT; in doHandleMessage() 800 ret = PackageManager.INSTALL_FAILED_INTERNAL_ERROR; in doHandleMessage() 807 ret = PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE; in doHandleMessage() 1251 PackageManager.GET_DISABLED_COMPONENTS, 0 /* TODO: Which userId? */); in getRequiredVerifierLPr() [all …]
|
/frameworks/base/docs/html/intl/ko/training/monitoring-device-state/ |
D | manifest-receivers.jd | 38 <p>{@link android.content.pm.PackageManager}를 사용하여 아래에서 표시된 대로 모든 사용 또는 사용 중지하기 원하는 브로드캐스트 리시버를 포함하… 42 PackageManager pm = context.getPackageManager(); 45 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 46 PackageManager.DONT_KILL_APP)</pre>
|
/frameworks/base/docs/html/intl/zh-CN/training/monitoring-device-state/ |
D | manifest-receivers.jd | 38 <p>您可以使用 {@link android.content.pm.PackageManager} 切换清单中定义的任意组件的启用状态(包括您要启用或停用的任意广播接收器),具体如以下片段所示:<… 42 PackageManager pm = context.getPackageManager(); 45 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 46 PackageManager.DONT_KILL_APP)</pre>
|
/frameworks/base/docs/html/intl/ja/training/monitoring-device-state/ |
D | manifest-receivers.jd | 38 <p>{@link android.content.pm.PackageManager} を使用すると、マニフェスト内で定義されているコンポーネントの有効化状態を切り替えることができます。このコンポ… 42 PackageManager pm = context.getPackageManager(); 45 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 46 PackageManager.DONT_KILL_APP)</pre>
|
/frameworks/base/core/java/android/app/ |
D | WallpaperInfo.java | 25 import android.content.pm.PackageManager; 28 import android.content.pm.PackageManager.NameNotFoundException; 87 PackageManager pm = context.getPackageManager(); in WallpaperInfo() 190 public CharSequence loadLabel(PackageManager pm) { in loadLabel() 200 public Drawable loadIcon(PackageManager pm) { in loadIcon() 210 public Drawable loadThumbnail(PackageManager pm) { in loadThumbnail() 221 public CharSequence loadAuthor(PackageManager pm) throws NotFoundException { in loadAuthor() 235 public CharSequence loadDescription(PackageManager pm) throws NotFoundException { in loadDescription()
|
D | TaskStackBuilder.java | 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageManager.NameNotFoundException; 129 PackageManager pm = sourceActivity.getPackageManager(); in addParentStack() 159 PackageManager pm = mSourceContext.getPackageManager(); in addParentStack() 189 PackageManager pm = mSourceContext.getPackageManager(); in addParentStack()
|
D | AliasActivity.java | 24 import android.content.pm.PackageManager; 59 getComponentName(), PackageManager.GET_META_DATA); in onCreate() 76 } catch (PackageManager.NameNotFoundException e) { in onCreate()
|
/frameworks/base/docs/html/intl/ru/training/monitoring-device-state/ |
D | manifest-receivers.jd | 38 <p>{@link android.content.pm.PackageManager} позволяет включать и выключать любые компоненты, опред… 42 PackageManager pm = context.getPackageManager(); 45 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 46 PackageManager.DONT_KILL_APP)</pre>
|
/frameworks/base/core/java/android/speech/tts/ |
D | TtsEngines.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.PackageManager.NameNotFoundException; 99 PackageManager pm = mContext.getPackageManager(); in getEngineInfo() 103 PackageManager.MATCH_DEFAULT_ONLY); in getEngineInfo() 120 PackageManager pm = mContext.getPackageManager(); in getEngines() 123 pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); in getEngines() 159 PackageManager pm = mContext.getPackageManager(); in getSettingsIntent() 163 PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA); in getSettingsIntent() 190 private String settingsActivityFromServiceInfo(ServiceInfo si, PackageManager pm) { in settingsActivityFromServiceInfo() 238 private EngineInfo getEngineInfo(ResolveInfo resolve, PackageManager pm) { in getEngineInfo()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 22 import android.content.pm.PackageManager; 101 cn, PackageManager.GET_META_DATA); in testActivityWithData() 114 cn, PackageManager.GET_META_DATA); in testReceiverWithData() 127 cn, PackageManager.GET_META_DATA); in testServiceWithData() 141 PackageManager.GET_META_DATA); in testProviderWithData() 155 cn.getClassName(), PackageManager.GET_META_DATA); in testPermissionWithData()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | SearchablesTest.java | 27 import android.content.pm.PackageManager; 231 protected PackageManager mPackageManager; 238 MyMockContext(Context realContext, PackageManager packageManager) { in MyMockContext() 255 public PackageManager getPackageManager() { in getPackageManager() 264 throws PackageManager.NameNotFoundException { in createPackageContext() 288 protected PackageManager mRealPackageManager; 291 public MyMockPackageManager(PackageManager realPM) { in MyMockPackageManager() 442 return PackageManager.PERMISSION_DENIED; in checkPermission()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | PowerTest.java | 30 import android.content.pm.PackageManager; 73 PackageManager pm = getPackageManager(); 76 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 0); 82 PackageManager pm = getPackageManager(); 85 PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
|
/frameworks/base/docs/html/sdk/api_diff/7/ |
D | missingSinces.txt | 68 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_CAMERA 69 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_CAMERA_AUTOFOCUS 70 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_CAMERA_FLASH 71 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_LIVE_WALLPAPER 72 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_SENSOR_LIGHT 73 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_SENSOR_PROXIMITY 74 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_TELEPHONY 75 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_TELEPHONY_CDMA 76 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_TELEPHONY_GSM 77 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_TOUCHSCREEN_MULTITOUCH
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 31 import android.content.pm.PackageManager; 124 return PackageManager.INSTALL_FAILED_INVALID_URI; 132 return PackageManager.INSTALL_SUCCEEDED; 136 return PackageManager.INSTALL_FAILED_INVALID_URI; 140 return PackageManager.INSTALL_FAILED_INSUFFICIENT_STORAGE; 144 return PackageManager.INSTALL_FAILED_INVALID_APK; 268 if (PackageManager.ACTION_CLEAN_EXTERNAL_STORAGE.equals(intent.getAction())) { in onHandleIntent() 382 if (ret != PackageManager.INSTALL_SUCCEEDED) { in copyResourceInner() 639 final boolean isForwardLocked = (flags & PackageManager.INSTALL_FORWARD_LOCK) != 0; in recommendAppInstallLocation() 645 if ((flags & PackageManager.INSTALL_INTERNAL) != 0) { in recommendAppInstallLocation() [all …]
|