Home
last modified time | relevance | path

Searched refs:getPackageManager (Results 1 – 25 of 80) sorted by relevance

1234

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DModifyInstallerPackageTest.java111 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/
DApplicationInfo_DisplayNameComparatorTest.java39 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()
DApplicationInfoTest.java51 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()
DActivityInfoTest.java52 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testWriteToParcel()
79 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testGetThemeResource()
98 mActivityInfo = mContext.getPackageManager().getActivityInfo( in testDescribeContents()
DResolveInfoTest.java38 PackageManager pm = getContext().getPackageManager(); in testResolveInfo()
52 PackageManager pm = getContext().getPackageManager(); in testDump()
DComponentInfoTest.java73 PackageManager pm = mContext.getPackageManager(); in testLoadIcon()
187 final PackageManager pm = mContext.getPackageManager(); in testLoadLabel()
200 mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testLoadLabel()
DResolveInfo_DisplayNameComparatorTest.java31 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator()
DPackageItemInfo_DisplayNameComparatorTest.java34 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiFeature.java24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported()
29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported()
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java43 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/
DProcessTest.java39 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/
DNfcTestActivity.java64 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/
DIntentSenderRemovalTest.java39 PackageManager pm = getContext().getPackageManager(); in testIntentSenderIntent()
DPackageSignatureTest.java47 PackageManager packageManager = mContext.getPackageManager(); in testPackageSignatures()
149 PackageManager packageManager = mContext.getPackageManager(); in writeSignature()
/cts/tests/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java38 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/
DSetInstallerPackage.java30 context.getPackageManager().setInstallerPackageName(targetPackage, installerPackage); in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java36 PackageManager packageManager = context.getPackageManager(); in getPackageInfo()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorTest.java70 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/
DAccessibilitySettingsTest.java36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled()
/cts/tests/tests/permission/src/android/permission/cts/
DDebuggableTest.java37 .getPackageManager() in testNoDebuggable()
DPackageManagerRequiringPermissionsTest.java38 mPackageManager = getContext().getPackageManager(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DBaseEmulatorActivity.java116 HceUtils.enableComponent(getPackageManager(), component); in doInBackground()
119 HceUtils.disableComponent(getPackageManager(), component); in doInBackground()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContractIntentsTest.java33 .getPackageManager().queryIntentActivities(intent, 0); in assertCanBeHandled()
/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesTest.java56 PackageManager pm = getContext().getPackageManager(); in setUp()
/cts/tests/tests/app/src/android/app/cts/
DApplicationTest.java46 final PackageManager pm = targetContext.getPackageManager(); in testApplication()

1234