Home
last modified time | relevance | path

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

1234567

/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()
/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/tests/media/src/android/media/cts/
DEnumDevicesTest.java58 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_getDevices()
72 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices()
86 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT) && in test_getDevices()
87 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices()
DMidiSoloTest.java85 PackageManager pm = getContext().getPackageManager(); in testMidiManager()
111 PackageManager pm = getContext().getPackageManager(); in testMidiReceiver()
156 PackageManager pm = getContext().getPackageManager(); in testMidiReceiverException()
DRoutingTest.java73 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_audioTrack_preferredDevice()
168 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_RoutingListener()
198 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_preferredDevice()
317 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_getRoutedDevice()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DCarDockTestActivity.java78 ResolveInfo info = getPackageManager().resolveActivity(i, in onCreate()
86 PackageManager pm = getApplicationContext().getPackageManager(); in onCreate()
102 PackageManager pm = getApplicationContext().getPackageManager(); in swapCarDockHandler()
/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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DAppLinkTest.java78 PackageManager pm = mContext.getPackageManager(); in checkHttpIntentResult()
89 PackageManager pm = mContext.getPackageManager(); in assertNumberOfReceivers()
/cts/tests/tests/tv/src/android/media/tv/cts/
DUtils.java10 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_TV); in hasTvInputFramework()
/cts/tests/tests/tv/src/android/tv/settings/cts/
DUtils.java26 return context.getPackageManager().hasSystemFeature(feature); in hasFeature()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java63 Drawable drawable = getPackageManager().getUserBadgedIcon(getAppIcon(), userHandle); in sampleImage()
86 PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), in getAppIcon()
/cts/tests/tests/security/src/android/security/cts/
DIntentSenderRemovalTest.java39 PackageManager pm = getContext().getPackageManager(); in testIntentSenderIntent()
/cts/hostsidetests/appsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/
DKeySetPermissionsTest.java36 PackageManager pm = getContext().getPackageManager(); in testHasPerm()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DSetInstallerPackage.java30 context.getPackageManager().setInstallerPackageName(targetPackage, installerPackage); in onReceive()
/cts/tests/tests/permission/src/android/permission/cts/
DAppWidgetManagerPermissionTest.java48 if (!getContext().getPackageManager() in testBindAppWidget()
DDebuggableTest.java37 .getPackageManager() in testNoDebuggable()
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTest.java288 PackageManager pm = mContext.getPackageManager(); in testMidiManager()
304 PackageManager pm = mContext.getPackageManager(); in testDeviceInfo()
318 PackageManager pm = mContext.getPackageManager(); in testEchoSmallMessage()
357 PackageManager pm = mContext.getPackageManager(); in testEchoLatency()
398 PackageManager pm = mContext.getPackageManager(); in testEchoMultipleMessages()
473 PackageManager pm = mContext.getPackageManager(); in testEchoBadBehavior()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySettingsTest.java36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled()
/cts/tests/tests/permission2/src/android/permission2/cts/
DNoCaptureAudioOutputPermissionTest.java49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord()
/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()

1234567