Home
last modified time | relevance | path

Searched refs:packageInfo (Results 1 – 25 of 49) sorted by relevance

12

/external/angle/src/android_system_settings/src/com/android/angle/common/
DMainFragment.java178 for (PackageInfo packageInfo : mInstalledPkgs) in createInstalledAppsListPreference()
181 initListPreference(packageInfo, listPreference); in createInstalledAppsListPreference()
195 PackageInfo packageInfo = getPackageInfoForPackageName(key); in validatePreferences() local
197 if (packageInfo != null) in validatePreferences()
210 for (PackageInfo packageInfo : pkgs) in getInstalledPkgsList()
212 if (packageInfo.applicationInfo.uid == Process.SYSTEM_UID) in getInstalledPkgsList()
218 if ((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) in getInstalledPkgsList()
223 mInstalledPkgs.add(packageInfo); in getInstalledPkgsList()
238 private String getAppName(PackageInfo packageInfo) in getAppName() argument
240 return packageInfo.applicationInfo.loadLabel(getActivity().getPackageManager()).toString(); in getAppName()
[all …]
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/content/pm/
DPackageManagerTest.java213 PackageInfo packageInfo = in getPackageInfo_disabledApplication_stillReturned_below24() local
215 ActivityInfo[] activities = filterExtraneous(packageInfo.activities); in getPackageInfo_disabledApplication_stillReturned_below24()
217 assertThat(packageInfo.packageName).isEqualTo(context.getPackageName()); in getPackageInfo_disabledApplication_stillReturned_below24()
218 assertThat(packageInfo.applicationInfo.enabled).isFalse(); in getPackageInfo_disabledApplication_stillReturned_below24()
223 assertThat(packageInfo.services).hasLength(1); in getPackageInfo_disabledApplication_stillReturned_below24()
226 assertThat(packageInfo.services[0].enabled).isTrue(); in getPackageInfo_disabledApplication_stillReturned_below24()
228 assertThat(packageInfo.services[0].isEnabled()).isFalse(); in getPackageInfo_disabledApplication_stillReturned_below24()
238 PackageInfo packageInfo = in getPackageInfo_disabledApplication_stillReturned_after24() local
241 assertThat(packageInfo.packageName).isEqualTo(context.getPackageName()); in getPackageInfo_disabledApplication_stillReturned_after24()
242 assertThat(packageInfo.applicationInfo.enabled).isFalse(); in getPackageInfo_disabledApplication_stillReturned_after24()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPackageManager.java408 PackageInfo packageInfo = packageInfos.get(packageName); in addComponent() local
409 if (packageInfo == null) { in addComponent()
410 packageInfo = new PackageInfo(); in addComponent()
411 packageInfo.packageName = packageName; in addComponent()
412 packageInfo.applicationInfo = newComponent.applicationInfo; in addComponent()
413 installPackage(packageInfo); in addComponent()
414 packageInfo = packageInfos.get(packageName); in addComponent()
416 newComponent.applicationInfo = packageInfo.applicationInfo; in addComponent()
417 C[] components = componentArrayInPackage.apply(packageInfo); in addComponent()
433 componentsSetter.accept(packageInfo, components); in addComponent()
[all …]
DShadowApplicationPackageManager.java166 PackageInfo packageInfo = getPackageInfo(packageName, flags); in getInstalledPackages() local
167 result.add(packageInfo); in getInstalledPackages()
212 packageInfo -> packageInfo.activities, in getActivityInfo()
226 PackageInfo packageInfo = getInternalMutablePackageInfo(packageName); in getComponentInfo() local
230 if (packageInfo != null) { in getComponentInfo()
231 if (packageInfo.applicationInfo != null) { in getComponentInfo()
232 appInfo = packageInfo.applicationInfo; in getComponentInfo()
234 T[] components = componentsInPackage.apply(packageInfo); in getComponentInfo()
303 for (PackageInfo packageInfo : packageInfos.values()) { in getPackagesForUid()
304 if (packageInfo.applicationInfo != null && packageInfo.applicationInfo.uid == uid) { in getPackagesForUid()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPackageManager.java398 public void installPackage(PackageInfo packageInfo) { in installPackage() argument
399 ApplicationInfo appInfo = packageInfo.applicationInfo; in installPackage()
402 appInfo.packageName = packageInfo.packageName; in installPackage()
403 packageInfo.applicationInfo = appInfo; in installPackage()
408 packageInfo.activities, in installPackage()
409 packageInfo.services, in installPackage()
410 packageInfo.providers, in installPackage()
411 packageInfo.receivers, in installPackage()
424 addPackageNoDefaults(packageInfo); in installPackage()
433 public void addPackageNoDefaults(PackageInfo packageInfo) { in addPackageNoDefaults() argument
[all …]
DShadowApplicationPackageManager.java156 for (PackageInfo packageInfo : packageInfos.values()) { in getInstalledPackages()
157 String packageName = packageInfo.packageName; in getInstalledPackages()
169 result.add(newPackageInfo(packageInfo)); in getInstalledPackages()
180 PackageInfo packageInfo = packageInfos.get(packageName); in getActivityInfo() local
182 if (packageInfo != null) { in getActivityInfo()
183 if (packageInfo.activities != null) { in getActivityInfo()
184 for (ActivityInfo activity : packageInfo.activities) { in getActivityInfo()
198 result.applicationInfo = new ApplicationInfo(packageInfo.applicationInfo); in getActivityInfo()
237 for (PackageInfo packageInfo : packageInfos.values()) { in getPackagesForUid()
238 if (packageInfo.applicationInfo != null && packageInfo.applicationInfo.uid == uid) { in getPackagesForUid()
[all …]
DShadowCrossProfileApps.java353 PackageInfo packageInfo; in canUserAttemptToConfigureInteractAcrossProfiles() local
355 packageInfo = packageManager.getPackageInfo(packageName, /* flags= */ 0); in canUserAttemptToConfigureInteractAcrossProfiles()
359 if (packageInfo == null || packageInfo.requestedPermissions == null) { in canUserAttemptToConfigureInteractAcrossProfiles()
362 return Arrays.asList(packageInfo.requestedPermissions).contains( in canUserAttemptToConfigureInteractAcrossProfiles()
DShadowWebView.java38 private static PackageInfo packageInfo = null; field in ShadowWebView
334 return packageInfo; in getCurrentWebViewPackage()
339 packageInfo = webViewPackageInfo; in setCurrentWebViewPackage()
401 packageInfo = null; in reset()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java174 PackageInfo packageInfo = new PackageInfo(); in packageInstallerAndGetPackageArchiveInfo() local
175 packageInfo.packageName = TEST_PACKAGE_NAME; in packageInstallerAndGetPackageArchiveInfo()
176 packageInfo.applicationInfo = appInfo; in packageInstallerAndGetPackageArchiveInfo()
177 shadowPackageManager.installPackage(packageInfo); in packageInstallerAndGetPackageArchiveInfo()
231 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages() local
232 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages()
233 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages()
236 packageInfo.requestedPermissionsFlags = new int[] { in testCheckPermission_otherPackages()
238 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages()
254 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages_grantedByDefault() local
[all …]
DShadowCrossProfileAppsTest.java371 PackageInfo packageInfo = new PackageInfo(); in buildTestPackageInfo() local
372 packageInfo.packageName = packageName; in buildTestPackageInfo()
373 packageInfo.applicationInfo = new ApplicationInfo(); in buildTestPackageInfo()
374 packageInfo.applicationInfo.packageName = packageName; in buildTestPackageInfo()
375 packageInfo.applicationInfo.name = "test"; in buildTestPackageInfo()
376 return packageInfo; in buildTestPackageInfo()
DShadowWebViewTest.java328 PackageInfo packageInfo = new PackageInfo(); in shouldReturnStoredPackageInfoForGetCurrentWebViewPackageIfSet() local
329 packageInfo.packageName = "org.robolectric.shadows.shadowebviewtest"; in shouldReturnStoredPackageInfoForGetCurrentWebViewPackageIfSet()
330 ShadowWebView.setCurrentWebViewPackage(packageInfo); in shouldReturnStoredPackageInfoForGetCurrentWebViewPackageIfSet()
331 assertThat(WebView.getCurrentWebViewPackage()).isEqualTo(packageInfo); in shouldReturnStoredPackageInfoForGetCurrentWebViewPackageIfSet()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java284 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages() local
285 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages()
286 packageInfo.requestedPermissions = in testCheckPermission_otherPackages()
289 packageInfo.requestedPermissionsFlags = in testCheckPermission_otherPackages()
291 shadowOf(packageManager).installPackage(packageInfo); in testCheckPermission_otherPackages()
310 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages_grantedByDefault() local
311 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages_grantedByDefault()
312 packageInfo.requestedPermissions = in testCheckPermission_otherPackages_grantedByDefault()
314 shadowOf(packageManager).installPackage(packageInfo); in testCheckPermission_otherPackages_grantedByDefault()
333 PackageInfo packageInfo = new PackageInfo(); in testGrantRuntimePermission() local
[all …]
/external/cronet/base/android/java/src/org/chromium/base/
DPackageUtils.java53 PackageInfo packageInfo = getPackageInfo(packageName, 0); in getPackageVersion() local
54 if (packageInfo != null) return packageInfo.versionCode; in getPackageVersion()
91 PackageInfo packageInfo = getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in getCertificateSHA256FingerprintForPackage() local
93 if (packageInfo == null) return null; in getCertificateSHA256FingerprintForPackage()
95 ArrayList<String> fingerprints = new ArrayList<>(packageInfo.signatures.length); in getCertificateSHA256FingerprintForPackage()
97 for (Signature signature : packageInfo.signatures) { in getCertificateSHA256FingerprintForPackage()
/external/python/cpython2/Mac/scripts/
Dbuildpkg.py166 self.packageInfo = copy.deepcopy(self.packageInfoDefaults)
167 self.packageInfo.update(info)
195 self.packageInfo[k] = v
201 packageName = self.packageInfo["Title"]
234 if self.packageInfo.has_key(f):
236 info = info % self.packageInfo
237 base = self.packageInfo["Title"] + ".info"
249 base = self.packageInfo["Title"] + ".bom"
266 base = basename(self.packageInfo["Title"]) + ".pax"
297 packageName = self.packageInfo["Title"]
[all …]
/external/doclava/src/com/google/doclava/
DLinkReference.java47 public PackageInfo packageInfo; field in LinkReference
276 result.packageInfo = Converter.obtainPackage(ref); in parse()
342 + (result.packageInfo != null ? result.packageInfo.name() : "") + "/class=" in parse()
380 } else if (result.packageInfo != null) { in parse()
381 result.href = result.packageInfo.htmlPage(); in parse()
383 result.href = result.packageInfo.htmlPage(); in parse()
384 result.label = result.packageInfo.name(); in parse()
436 } else if (result.packageInfo != null && !result.packageInfo.checkLevel()) { in parse()
456 if (packageInfo != null) { in checkLevel()
457 return packageInfo.checkLevel(); in checkLevel()
DDoclavaDiff.java113 PackageInfo packageInfo = new PackageInfo(pkg); in generateHdf() local
122 data.setValue(siteBase + ".link", site.linkFor(packageInfo.htmlPage())); in generateHdf()
213 PackageInfo packageInfo = site.apiInfo().getPackages().get(pkg); in knownClassesForPackage() local
214 if (packageInfo == null) { in knownClassesForPackage()
217 HashMap<String, ClassInfo> classes = packageInfo.allClasses(); in knownClassesForPackage()
/external/cronet/testing/android/junit/java/src/org/chromium/testing/local/
DCustomShadowApplicationPackageManager.java26 PackageInfo packageInfo = getPackageInfo(component.getPackageName(), flags); in getActivityInfo() local
27 if (packageInfo.activities != null) { in getActivityInfo()
28 for (ActivityInfo activityInfo : packageInfo.activities) { in getActivityInfo()
/external/libchrome/base/android/java/src/org/chromium/base/
DPackageUtils.java29 PackageInfo packageInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion() local
30 if (packageInfo != null) versionCode = packageInfo.versionCode; in getPackageVersion()
/external/android-key-attestation/server/src/main/java/com/google/android/attestation/
DAttestationApplicationId.java53 for (ASN1Encodable packageInfo : attestationPackageInfos) { in AttestationApplicationId()
54 this.packageInfos.add(new AttestationPackageInfo((ASN1Sequence) packageInfo)); in AttestationApplicationId()
127 private AttestationPackageInfo(ASN1Sequence packageInfo) { in AttestationPackageInfo() argument
131 packageInfo.getObjectAt(ATTESTATION_PACKAGE_INFO_PACKAGE_NAME_INDEX)) in AttestationPackageInfo()
135 ((ASN1Integer) packageInfo.getObjectAt(ATTESTATION_PACKAGE_INFO_VERSION_INDEX)) in AttestationPackageInfo()
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DAbstractProfileBinder.java117 PackageInfo packageInfo = in cachePermissionRequests() local
120 if (packageInfo == null || packageInfo.requestedPermissions == null) { in cachePermissionRequests()
125 for (String permission : packageInfo.requestedPermissions) { in cachePermissionRequests()
DDefaultUserBinder.java115 PackageInfo packageInfo = in cachePermissionRequests() local
118 if (packageInfo == null || packageInfo.requestedPermissions == null) { in cachePermissionRequests()
123 for (String permission : packageInfo.requestedPermissions) { in cachePermissionRequests()
/external/robolectric/integration_tests/dependency-on-stubs/src/test/java/org/robolectric/
DLoadWeirdClassesTest.java45 PackageInfo packageInfo = new PackageInfo(); in packageManager() local
46 packageInfo.packageName = "test.package"; in packageManager()
47 shadowOf(RuntimeEnvironment.application.getPackageManager()).addPackage(packageInfo); in packageManager()
/external/cronet/base/android/java/src/org/chromium/base/compat/
DApiHelperForP.java41 public static long getLongVersionCode(PackageInfo packageInfo) { in getLongVersionCode() argument
42 return packageInfo.getLongVersionCode(); in getLongVersionCode()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DRobolectricTestUtilities.java285 PackageInfo packageInfo = new PackageInfo(); in setRequestsPermissions() local
286 packageInfo.packageName = context.getPackageName(); in setRequestsPermissions()
287 packageInfo.requestedPermissions = permissions; in setRequestsPermissions()
288 shadowOf(packageManager).installPackage(packageInfo); in setRequestsPermissions()
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DBlacklistedApis.java61 PackageInfo packageInfo = context.getPackageManager().getPackageInfo( in isDebuggable() local
64 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in isDebuggable()

12