/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | ModifyInstallerPackageTest.java | 111 PackageManager getPackageManager() { in getPackageManager() method in ModifyInstallerPackageTest 112 return getContext().getPackageManager(); in getPackageManager() 120 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 122 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, MY_PACKAGE); in testSetInstallPackage() 123 assertEquals(MY_PACKAGE, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 126 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, null); in testSetInstallPackage() 127 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 136 getPackageManager().setInstallerPackageName("thisdoesnotexistihope!", MY_PACKAGE); in testSetInstallPackageBadTarget() 149 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, "thisdoesnotexistihope!"); in testSetInstallPackageBadInstaller() 154 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackageBadInstaller() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ApplicationInfo_DisplayNameComparatorTest.java | 39 PackageManager pm = getContext().getPackageManager(); in testConstructor() 46 PackageManager pm = getContext().getPackageManager(); in testCompare() 55 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testCompare() 61 info2 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testCompare()
|
D | ApplicationInfoTest.java | 51 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcel() 80 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); in testDescribeContents() 99 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); in testLoadDescription() 101 assertNull(mApplicationInfo.loadDescription(mContext.getPackageManager())); in testLoadDescription() 105 mApplicationInfo.loadDescription(mContext.getPackageManager())); in testLoadDescription()
|
D | ActivityInfoTest.java | 52 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testWriteToParcel() 79 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testGetThemeResource() 98 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testDescribeContents()
|
D | ResolveInfoTest.java | 38 PackageManager pm = getContext().getPackageManager(); in testResolveInfo() 52 PackageManager pm = getContext().getPackageManager(); in testDump()
|
D | ComponentInfoTest.java | 73 PackageManager pm = mContext.getPackageManager(); in testLoadIcon() 187 final PackageManager pm = mContext.getPackageManager(); in testLoadLabel() 200 mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testLoadLabel()
|
D | ResolveInfo_DisplayNameComparatorTest.java | 31 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator()
|
D | PackageItemInfo_DisplayNameComparatorTest.java | 34 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiFeature.java | 24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported() 29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 43 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled() 107 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber() 119 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber() 131 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail() 143 PackageManager packageManager = mContext.getPackageManager(); in testCamera() 177 PackageManager packageManager = mContext.getPackageManager(); in testContactsCallLogs()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 39 int uid1 = mContext.getPackageManager().getApplicationInfo(enableApp, in testUid() 41 int uid2 = mContext.getPackageManager().getApplicationInfo(disableApp, in testUid() 43 int uid3 = mContext.getPackageManager().getApplicationInfo(testApp, in testUid()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcTestActivity.java | 64 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate() 69 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in onCreate()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | IntentSenderRemovalTest.java | 39 PackageManager pm = getContext().getPackageManager(); in testIntentSenderIntent()
|
D | PackageSignatureTest.java | 47 PackageManager packageManager = mContext.getPackageManager(); in testPackageSignatures() 149 PackageManager packageManager = mContext.getPackageManager(); in writeSignature()
|
/cts/tests/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 38 mPackageManager = mContext.getPackageManager(); in setUp() 42 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN); in setUp()
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
D | SetInstallerPackage.java | 30 context.getPackageManager().setInstallerPackageName(targetPackage, installerPackage); in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 36 PackageManager packageManager = context.getPackageManager(); in getPackageInfo()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SensorTest.java | 70 boolean hasAccelerometer = getContext().getPackageManager().hasSystemFeature( in testSensorOperations() 81 boolean hasStepCounter = getContext().getPackageManager().hasSystemFeature( in testSensorOperations() 92 boolean hasStepDetector = getContext().getPackageManager().hasSystemFeature( in testSensorOperations() 103 boolean hasCompass = getContext().getPackageManager().hasSystemFeature( in testSensorOperations()
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySettingsTest.java | 36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | DebuggableTest.java | 37 .getPackageManager() in testNoDebuggable()
|
D | PackageManagerRequiringPermissionsTest.java | 38 mPackageManager = getContext().getPackageManager(); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | BaseEmulatorActivity.java | 116 HceUtils.enableComponent(getPackageManager(), component); in doInBackground() 119 HceUtils.disableComponent(getPackageManager(), component); in doInBackground()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContractIntentsTest.java | 33 .getPackageManager().queryIntentActivities(intent, 0); in assertCanBeHandled()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | DefaultManifestAttributesTest.java | 56 PackageManager pm = getContext().getPackageManager(); in setUp()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplicationTest.java | 46 final PackageManager pm = targetContext.getPackageManager(); in testApplication()
|