Home
last modified time | relevance | path

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

12345678910>>...28

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java28 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in claimsOutput()
32 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE); in claimsInput()
36 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO); in claimsProAudio()
41 … return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY); in claimsLowLatencyAudio()
46 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MIDI); in claimsMIDI()
50 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST); in claimsUSBHostMode()
54 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY); in claimsUSBPeripheralMode()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFeatureUtil.java47 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
52 PackageManager pm = getPackageManager(); in hasAnySystemFeature()
63 PackageManager pm = getPackageManager(); in hasAllSystemFeatures()
75 for (FeatureInfo fi : getPackageManager().getSystemAvailableFeatures()) { in getAllFeatures()
119 private static PackageManager getPackageManager() { in getPackageManager() method in FeatureUtil
120 return getContext().getPackageManager(); in getPackageManager()
134 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
DPackageUtil.java49 return (getPackageManager().getApplicationInfo(packageName, in exists()
59 if (getPackageManager().getApplicationInfo( in exists()
72 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isSystemApp()
86 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isPrivilegedSystemApp()
97 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString()
112 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getLongVersionCode()
131 PackageInfo packageInfo = getPackageManager() in computePackageSignatureDigest()
152 private static PackageManager getPackageManager() { in getPackageManager() method in PackageUtil
153 return InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in getPackageManager()
165 applicationInfo = getPackageManager().getApplicationInfo(pkgInfo.packageName, 0); in computePackageFileDigest()
[all …]
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/
DCookieTest.java36 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieUpdateAndRetrieval()
66 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedAcrossInstantInstalls1()
74 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedAcrossInstantInstalls2()
82 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedUpgradeFromInstant1()
93 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedUpgradeFromInstant2()
104 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieResetOnNonInstantReinstall1()
112 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieResetOnNonInstantReinstall2()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java56 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_currentUser()
65 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserGrant()
74 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserNoGrant()
86 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserGrant()
95 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserNoGrant()
107 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_currentUser()
116 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserGrant()
125 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserNoGrant()
137 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserGrant()
146 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserNoGrant()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java62 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled()
74 PackageManager packageManager = mContext.getPackageManager(); in assertDefaultHandlerValidPriority()
87 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySystemOnly()
101 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySelfOnly()
169 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber()
181 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber()
193 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail()
205 PackageManager packageManager = mContext.getPackageManager(); in testChangePhoneAccounts()
216 PackageManager packageManager = mContext.getPackageManager(); in testShowCallAccessibilitySettings()
227 PackageManager packageManager = mContext.getPackageManager(); in testShowCallSettings()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DCarModeInCallServiceTest.java63 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in setUp()
90 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in tearDown()
127 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testSetCarMode()
139 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testRequestAutomotiveProjection()
153 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testRequestAutomotiveProjectionExclusive()
173 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInCarMode()
196 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInAutomotiveProjection()
219 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in failingTestStartCallInCarModeAndAutomotiveProjection()
261 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInCarModeTwoServices()
293 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallingInCarModeAndProjectionTwoServices()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/
DPackageAccessTest.java50 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_inUser()
61 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_inUserUninstalled()
72 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_notInOtherUser()
83 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_notInOtherUserUninstalled()
94 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_getPackagesCantSeeTiny()
106 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_getPackagesCanSeeTiny()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiFeature.java24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported()
29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported()
34 final PackageManager pm = context.getPackageManager(); in isTelephonySupported()
/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.java95 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcel()
126 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testDescribeContents()
147 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testLoadDescription()
149 assertNull(mApplicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
153 mApplicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
158 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in verifyOwnInfo()
171 mApplicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyDefaultValues()
205 getContext().getPackageManager().setApplicationCategoryHint(getContext().getPackageName(), in setOwnAppCategory()
211 getContext().getPackageManager().setApplicationCategoryHint( in setAppCategoryByNotInstaller()
217 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDirectBootUnawareAppIsNotEncryptionAware()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureUtil.java93 PackageManager pm = context.getPackageManager(); in isWatch()
101 PackageManager pm = context.getPackageManager(); in isWatchOrAutomotive()
110 PackageManager pm = context.getPackageManager(); in isAutomotive()
118 return (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS) in supportManagedSecondaryUsers()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java120 PackageManager pm = getContext().getPackageManager(); in testHasPerm()
127 PackageManager pm = getContext().getPackageManager(); in testHasNoPerm()
137 PackageManager pm = getContext().getPackageManager(); in testGetSignaturesShowsOld()
149 PackageManager pm = getContext().getPackageManager(); in testGetSigningCertificatesShowsAll()
180 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsCurrent()
192 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsMultipleSigners()
205 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificate()
217 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateSha256()
230 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateByUid()
243 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateByUidSha256()
/cts/tests/vr/src/android/vr/cts/
DVrFeaturesTest.java33 boolean hasVrMode = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature()
35 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature()
46 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testSustainedPerformanceModeSupported()
/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/
DPermissionEscalationTest.java40 PermissionInfo stealAudio1Permission1 = context.getPackageManager() in testCannotEscalateNonRuntimePermissionsToRuntime()
47 PermissionInfo stealAudio1Permission2 = context.getPackageManager() in testCannotEscalateNonRuntimePermissionsToRuntime()
61 PermissionInfo stealAudio1Permission1 = context.getPackageManager() in testRuntimePermissionsAreNotGranted()
72 PermissionInfo stealAudio1Permission2 = context.getPackageManager() in testRuntimePermissionsAreNotGranted()
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/
DClientTest.java43 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWritePreferences()
51 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadPreferences()
59 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWriteFile()
68 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadFile()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DNoLocationPermissionTest.java52 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testGetCellLocation()
69 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testGetAllCellInfo()
86 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testListenCellLocation()
104 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testRequestCellInfoUpdate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/instantapps/
DNotificationTestActivity.java53 …boolean hasCnFeature = getApplicationContext().getPackageManager().hasSystemFeature("cn.google.ser… in deviceHasCnFeature()
59 …return getPackageManager().getApplicationInfo(gms_package_name, PackageManager.MATCH_DIRECT_BOOT_A… in deviceHasGmsCore()
67 …return getPackageManager().getApplicationInfo(store_package_name, PackageManager.MATCH_DIRECT_BOOT… in deviceHasPlayStore()
/cts/tests/tests/print/src/android/print/cts/
DPrintJobTest.java256 printJob.getInfo().getStatus(getActivity().getPackageManager())));
262 printJob.getInfo().getStatus(getActivity().getPackageManager())));
268 printJob.getInfo().getStatus(getActivity().getPackageManager())));
272 printJob.getInfo().getStatus(getActivity().getPackageManager())));
286 printJob.getInfo().getStatus(getActivity().getPackageManager())));
292 printJob.getInfo().getStatus(getActivity().getPackageManager())));
475 printJob.getInfo().getStatus(getActivity().getPackageManager())));
479 printJob.getInfo().getStatus(getActivity().getPackageManager())));
483 printJob.getInfo().getStatus(getActivity().getPackageManager())));
487 printJob.getInfo().getStatus(getActivity().getPackageManager())));
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DDisableContextTest.java43 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextAndScreenshotOff()
59 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextOff()
75 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenshotOff()
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java58 .getPackageManager().queryIntentActivities(installerIntent, MATCH_SYSTEM_ONLY in testPackageInstallerPresent()
73 PackageManager packageManager = InstrumentationRegistry.getContext().getPackageManager(); in testExtServicesPresent()
96 final PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testNoPackageInfoAccess()
112 .getPackageManager().queryIntentActivities(installerIntent, MATCH_SYSTEM_ONLY in testNoPackageInstallerPresent()
122 .getPackageManager(); in enforceSharedLibPresentAndProperlyHosted()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java48 private PackageManager getPackageManager() { in getPackageManager() method in DynamicSystemClientTest
49 return mInstrumentation.getContext().getPackageManager(); in getPackageManager()
77 getPackageManager().getPackageInfo(DSU_PACKAGE_NAME, 0); in testDynamicSystemClient()
111 getPackageManager().getPackageInfo(DSU_PACKAGE_NAME, 0); in testDynamicSystemClient_withoutOnStatusChangedListener()
/cts/tests/tests/permission/src/android/permission/cts/
DBackgroundPermissionButtonLabelTest.java36 mContext.getPackageManager().getPermissionControllerPackageName();
47 Assert.assertEquals(mContext.getPackageManager().getBackgroundPermissionOptionLabel(), in testBackgroundPermissionButtonLabel()
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorActivity.java49 getPackageManager().getPackageInstaller().createSession(params); in onCreate()
55 getPackageManager().getPackageInstaller().getSessionInfo(sessionId); in onCreate()
61 getPackageManager().getPackageInstaller().abandonSession(sessionId); in onCreate()
/cts/tests/tests/settings/src/android/settings/cts/
DWifiSliceTest.java68 mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS);
118 final PackageManager pm = mContext.getPackageManager(); in wifiSlice_grantedPermissionToDefaultAssistant()
149 final PackageManager pm = mContext.getPackageManager(); in wifiSlice_grantedPermissionToDefaultVoiceAssistant()
165 PackageManager pm = mContext.getPackageManager(); in isCar()
170 PackageManager pm = mContext.getPackageManager(); in isTv()
176 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()

12345678910>>...28