/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()
|
/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/tests/media/src/android/media/cts/ |
D | EnumDevicesTest.java | 58 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()
|
D | MidiSoloTest.java | 85 PackageManager pm = getContext().getPackageManager(); in testMidiManager() 111 PackageManager pm = getContext().getPackageManager(); in testMidiReceiver() 156 PackageManager pm = getContext().getPackageManager(); in testMidiReceiverException()
|
D | RoutingTest.java | 73 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/ |
D | CarDockTestActivity.java | 78 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/ |
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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | AppLinkTest.java | 78 PackageManager pm = mContext.getPackageManager(); in checkHttpIntentResult() 89 PackageManager pm = mContext.getPackageManager(); in assertNumberOfReceivers()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | Utils.java | 10 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_TV); in hasTvInputFramework()
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
D | Utils.java | 26 return context.getPackageManager().hasSystemFeature(feature); in hasFeature()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 63 Drawable drawable = getPackageManager().getUserBadgedIcon(getAppIcon(), userHandle); in sampleImage() 86 PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), in getAppIcon()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | IntentSenderRemovalTest.java | 39 PackageManager pm = getContext().getPackageManager(); in testIntentSenderIntent()
|
/cts/hostsidetests/appsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/ |
D | KeySetPermissionsTest.java | 36 PackageManager pm = getContext().getPackageManager(); in testHasPerm()
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
D | SetInstallerPackage.java | 30 context.getPackageManager().setInstallerPackageName(targetPackage, installerPackage); in onReceive()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | AppWidgetManagerPermissionTest.java | 48 if (!getContext().getPackageManager() in testBindAppWidget()
|
D | DebuggableTest.java | 37 .getPackageManager() in testNoDebuggable()
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 288 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/ |
D | AccessibilitySettingsTest.java | 36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoCaptureAudioOutputPermissionTest.java | 49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord()
|
/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()
|