Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPackageManager.java397 public void installPackage(PackageInfo packageInfo) { in installPackage() argument
398 ApplicationInfo appInfo = packageInfo.applicationInfo; in installPackage()
401 appInfo.packageName = packageInfo.packageName; in installPackage()
402 packageInfo.applicationInfo = appInfo; in installPackage()
407 packageInfo.activities, in installPackage()
408 packageInfo.services, in installPackage()
409 packageInfo.providers, in installPackage()
410 packageInfo.receivers, in installPackage()
423 addPackageNoDefaults(packageInfo); in installPackage()
432 public void addPackageNoDefaults(PackageInfo packageInfo) { in addPackageNoDefaults() argument
[all …]
DShadowApplicationPackageManager.java135 for (PackageInfo packageInfo : packageInfos.values()) { in getInstalledPackages()
136 String packageName = packageInfo.packageName; in getInstalledPackages()
148 result.add(newPackageInfo(packageInfo)); in getInstalledPackages()
159 PackageInfo packageInfo = packageInfos.get(packageName); in getActivityInfo() local
161 if (packageInfo != null) { in getActivityInfo()
162 if (packageInfo.activities != null) { in getActivityInfo()
163 for (ActivityInfo activity : packageInfo.activities) { in getActivityInfo()
177 result.applicationInfo = new ApplicationInfo(packageInfo.applicationInfo); in getActivityInfo()
216 for (PackageInfo packageInfo : packageInfos.values()) { in getPackagesForUid()
217 if (packageInfo.applicationInfo != null && packageInfo.applicationInfo.uid == uid) { in getPackagesForUid()
[all …]
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()
DShadowDevicePolicyManager.java607 PackageInfo packageInfo; in setPermissionGrantState() local
609 packageInfo = in setPermissionGrantState()
616 if (Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in setPermissionGrantState()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java171 PackageInfo packageInfo = new PackageInfo(); in packageInstallerAndGetPackageArchiveInfo() local
172 packageInfo.packageName = TEST_PACKAGE_NAME; in packageInstallerAndGetPackageArchiveInfo()
173 packageInfo.applicationInfo = appInfo; in packageInstallerAndGetPackageArchiveInfo()
174 shadowPackageManager.installPackage(packageInfo); in packageInstallerAndGetPackageArchiveInfo()
228 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages() local
229 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages()
230 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages()
233 packageInfo.requestedPermissionsFlags = new int[] { in testCheckPermission_otherPackages()
235 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages()
251 PackageInfo packageInfo = new PackageInfo(); in testCheckPermission_otherPackages_grantedByDefault() local
[all …]
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()
DShadowPowerManagerTest.java168 PackageInfo packageInfo = context.getPackageManager() in setPowerSaveMode_succeedsWithPermission() local
170 packageInfo.requestedPermissions = new String[] { permission.DEVICE_POWER }; in setPowerSaveMode_succeedsWithPermission()
DShadowUserManagerTest.java144 PackageInfo packageInfo = in enforcePermissionChecks() local
147 packageInfo.requestedPermissions = new String[] {permission.MANAGE_USERS}; in enforcePermissionChecks()
/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/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()
DBuildInfo.java78 public static void setBrowserPackageInfo(PackageInfo packageInfo) { in setBrowserPackageInfo() argument
80 sBrowserPackageInfo = packageInfo; in setBrowserPackageInfo()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackApplication.java349 android.content.pm.PackageInfo packageInfo = context.getPackageManager().getPackageInfo( in getSystemInfo() local
351 int versionCode = packageInfo.versionCode; in getSystemInfo()
352 String versionName = packageInfo.versionName; in getSystemInfo()
/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()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerRegistry.cpp51 CheckerRegistry::CheckerInfo packageInfo(nullptr, opt.getName(), ""); in collectCheckers() local
54 std::lower_bound(checkers.cbegin(), end, packageInfo, checkerNameLT); in collectCheckers()
/external/turbine/java/com/google/turbine/bytecode/
DAttributeWriter.java234 tmp.writeShort(pool.packageInfo(export.moduleName())); in writeModule()
244 tmp.writeShort(pool.packageInfo(opens.moduleName())); in writeModule()
DConstantPoolReader.java138 public String packageInfo(int index) { in packageInfo() method in ConstantPoolReader
DConstantPool.java178 int packageInfo(String value) { in packageInfo() method in ConstantPool
DClassReader.java241 String exportsModule = constantPool.packageInfo(reader.u2()); in readModule()
255 String opensModule = constantPool.packageInfo(reader.u2()); in readModule()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DAndroidFacade.java917 PackageInfo packageInfo = null; in getPackageVersion() local
919 packageInfo = in getPackageVersion()
924 if (packageInfo != null) { in getPackageVersion()
925 return packageInfo.versionName; in getPackageVersion()
/external/turbine/javatests/com/google/turbine/main/
DMainTest.java81 public void packageInfo() throws IOException { in packageInfo() method in MainTest
/external/turbine/javatests/com/google/turbine/deps/
DDependenciesTest.java293 public void packageInfo() throws Exception { in packageInfo() method in DependenciesTest