Home
last modified time | relevance | path

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

12345678910>>...40

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java29 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in claimsOutput()
33 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE); in claimsInput()
37 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO); in claimsProAudio()
42 … return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY); in claimsLowLatencyAudio()
47 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MIDI); in claimsMIDI()
51 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST); in claimsUSBHostMode()
55 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY); in claimsUSBPeripheralMode()
71 return context.getPackageManager().hasSystemFeature( in claimsHeadTrackingLowLatency()
80 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()
88 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAutomobile()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DCarModeInCallServiceTest.java63 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in setUp()
97 && !mContext.getPackageManager().hasSystemFeature( in tearDown()
132 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testSetCarMode()
133 || mContext.getPackageManager().hasSystemFeature( in testSetCarMode()
146 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testRequestAutomotiveProjection()
147 || mContext.getPackageManager().hasSystemFeature( in testRequestAutomotiveProjection()
162 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testRequestAutomotiveProjectionExclusive()
163 || mContext.getPackageManager().hasSystemFeature( in testRequestAutomotiveProjectionExclusive()
184 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testStartCallInCarMode()
185 || mContext.getPackageManager().hasSystemFeature( in testStartCallInCarMode()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java59 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_currentUser()
68 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserGrant()
77 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserNoGrant()
89 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserGrant()
98 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserNoGrant()
110 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_currentUser()
119 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserGrant()
128 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserNoGrant()
140 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserGrant()
149 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserNoGrant()
[all …]
/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()
39 final PackageManager pm = context.getPackageManager(); in isRttSupported()
44 final PackageManager pm = context.getPackageManager(); in isAwareSupported()
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiFeature.java24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported()
29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported()
34 final PackageManager pm = context.getPackageManager(); in isTelephonySupported()
39 final PackageManager pm = context.getPackageManager(); in isRttSupported()
44 final PackageManager pm = context.getPackageManager(); in isAwareSupported()
/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/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureUtil.java120 PackageManager pm = context.getPackageManager(); in isDataRoamingSupported()
163 PackageManager pm = context.getPackageManager(); in isWatch()
171 PackageManager pm = context.getPackageManager(); in isTelevision()
179 PackageManager pm = context.getPackageManager(); in isWatchOrAutomotive()
188 PackageManager pm = context.getPackageManager(); in isWatchOrAutomotiveOrTv()
199 PackageManager pm = context.getPackageManager(); in isAutomotive()
207 PackageManager pm = context.getPackageManager(); in supportManagedSecondaryUsers()
231 PackageManager pm = context.getPackageManager(); in supportCameraFeature()
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java66 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled()
78 PackageManager packageManager = mContext.getPackageManager(); in assertDefaultHandlerValidPriority()
91 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySystemOnly()
105 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySelfOnly()
173 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber()
185 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber()
200 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail()
215 PackageManager packageManager = mContext.getPackageManager(); in testChangePhoneAccounts()
226 PackageManager packageManager = mContext.getPackageManager(); in testShowCallAccessibilitySettings()
237 PackageManager packageManager = mContext.getPackageManager(); in testShowCallSettings()
[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/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java167 PackageManager pm = getContext().getPackageManager(); in testHasPerm()
174 PackageManager pm = getContext().getPackageManager(); in testHasNoPerm()
184 PackageManager pm = getContext().getPackageManager(); in testGetSignaturesShowsOld()
196 PackageManager pm = getContext().getPackageManager(); in testGetSigningCertificatesShowsAll()
227 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsCurrent()
239 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsMultipleSigners()
261 PackageManager pm = getContext().getPackageManager(); in testGetSigningCertificateHistoryReturnsSignersInOrder()
274 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificate()
286 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateSha256()
299 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateByUid()
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DDisableContextTest.java51 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextAndScreenshotOff()
71 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenshotOff()
91 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenContextOff()
107 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in isSupportedDevice()
110 } else if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in isSupportedDevice()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcTestActivity.java55 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate()
59 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate()
65 … if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF)) { in onCreate()
67 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate()
77 …if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC))… in onCreate()
79 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfo_DisplayNameComparatorTest.java41 PackageManager pm = getContext().getPackageManager(); in testConstructor()
48 PackageManager pm = getContext().getPackageManager(); in testCompare()
57 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare()
64 info2 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare()
DApplicationInfoTest.java104 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testWriteToParcel()
137 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDescribeContents()
160 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testLoadDescription()
163 assertNull(applicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
169 applicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription()
175 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyOwnInfo()
200 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyDefaultValues()
236 getContext().getPackageManager().setApplicationCategoryHint(getContext().getPackageName(), in setOwnAppCategory()
243 getContext().getPackageManager().setApplicationCategoryHint( in setAppCategoryByNotInstaller()
250 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDirectBootUnawareAppIsNotEncryptionAware()
[all …]
DPackageItemInfoTest.java56 private PackageManager getPackageManager() { in getPackageManager() method in PackageItemInfoTest
57 return getContext().getPackageManager(); in getPackageManager()
76 assertEquals(ACTIVITY_NAME, pkgItemInfo.loadLabel(getPackageManager())); in testLoadMethods()
78 assertNotNull(pkgItemInfo.loadIcon(getPackageManager())); in testLoadMethods()
81 XmlResourceParser parser = pkgItemInfo.loadXmlMetaData(getPackageManager(), METADATA_NAME); in testLoadMethods()
127 getPackageManager().getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
/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/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/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/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/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/framework/base/windowmanager/src/android/server/wm/window/
DMultiWindowAvailabilityTests.java113 return context.getPackageManager().hasSystemFeature(FEATURE_FREEFORM_WINDOW_MANAGEMENT); in supportsFreeform()
118 return context.getPackageManager().hasSystemFeature(FEATURE_PICTURE_IN_PICTURE); in supportsPictureInPicture()
123 return context.getPackageManager().hasSystemFeature(FEATURE_EXPANDED_PICTURE_IN_PICTURE); in supportsExpandedPictureInPicture()
131 return context.getPackageManager().hasSystemFeature( in supportsMultiDisplay()
/cts/tests/tests/settings/src/android/settings/cts/
DSettingsTestUtils.java34 return InstrumentationRegistry.getTargetContext().getPackageManager() in isWatch()
42 return InstrumentationRegistry.getTargetContext().getPackageManager() in isAutomotive()
DTetherProvisioningCarrierDialogActivityTest.java46 InstrumentationRegistry.getInstrumentation().getContext().getPackageManager(); in setUp()
56 .getPackageManager().resolveActivity( in testTetheringProvisioningCarrierUiExisted()
63 .getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()

12345678910>>...40