/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | ParallelUniverse.java | 133 parsedPackage.applicationInfo.targetSdkVersion = appManifest.getTargetSdkVersion(); in setUpApplicationState() 138 parsedPackage.applicationInfo.packageName = config.packageName(); in setUpApplicationState() 141 parsedPackage.applicationInfo.packageName = appManifest.getPackageName(); in setUpApplicationState() 163 ApplicationInfo applicationInfo = parsedPackage.applicationInfo; in setUpApplicationState() local 166 if (sdkConfig.getApiLevel() < P && applicationInfo.processName == null) { in setUpApplicationState() 167 applicationInfo.processName = parsedPackage.packageName; in setUpApplicationState() 170 setUpPackageStorage(applicationInfo, parsedPackage); in setUpApplicationState() 179 ShadowActivityThread.setApplicationInfo(applicationInfo); in setUpApplicationState() 219 createInstrumentation(activityThread, applicationInfo, application); in setUpApplicationState() 230 ReflectionHelpers.setField(data, "appInfo", applicationInfo); in setUpApplicationState() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 141 ApplicationInfo applicationInfo = ApplicationProvider.getApplicationContext() in setUpApplicationState_shouldCreateStorageDirs() local 144 assertThat(applicationInfo.sourceDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs() 145 assertThat(new File(applicationInfo.sourceDir).exists()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs() 147 assertThat(applicationInfo.publicSourceDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs() 148 assertThat(new File(applicationInfo.publicSourceDir).exists()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs() 150 assertThat(applicationInfo.dataDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs() 151 assertThat(new File(applicationInfo.dataDir).isDirectory()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs() 158 ApplicationInfo applicationInfo = ApplicationProvider.getApplicationContext() in setUpApplicationState_shouldCreateStorageDirs_Nplus() local 161 assertThat(applicationInfo.credentialProtectedDataDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs_Nplus() 162 assertThat(new File(applicationInfo.credentialProtectedDataDir).isDirectory()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs_Nplus() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowPackageManager.java | 233 private static void setUpPackageStorage(ApplicationInfo applicationInfo) { in setUpPackageStorage() argument 236 if (applicationInfo.sourceDir == null) { in setUpPackageStorage() 237 applicationInfo.sourceDir = in setUpPackageStorage() 239 .createIfNotExists(applicationInfo.packageName + "-sourceDir") in setUpPackageStorage() 244 if (applicationInfo.dataDir == null) { in setUpPackageStorage() 245 applicationInfo.dataDir = in setUpPackageStorage() 247 .createIfNotExists(applicationInfo.packageName + "-dataDir") in setUpPackageStorage() 251 if (applicationInfo.publicSourceDir == null) { in setUpPackageStorage() 252 applicationInfo.publicSourceDir = applicationInfo.sourceDir; in setUpPackageStorage() 255 applicationInfo.credentialProtectedDataDir = in setUpPackageStorage() [all …]
|
D | ShadowActivityThread.java | 25 private static ApplicationInfo applicationInfo; field in ShadowActivityThread 47 if (packageName.equals(ShadowActivityThread.applicationInfo.packageName)) { in getPackageManager() 48 return ShadowActivityThread.applicationInfo; in getPackageManager() 136 public static void setApplicationInfo(ApplicationInfo applicationInfo) { 137 ShadowActivityThread.applicationInfo = applicationInfo;
|
D | LegacyManifestParser.java | 135 pkg.applicationInfo.flags = decodeFlags(androidManifest.getApplicationAttributes()); in createPackage() 136 pkg.applicationInfo.targetSdkVersion = androidManifest.getTargetSdkVersion(); in createPackage() 137 pkg.applicationInfo.packageName = androidManifest.getPackageName(); in createPackage() 138 pkg.applicationInfo.processName = androidManifest.getProcessName(); in createPackage() 140 pkg.applicationInfo.className = in createPackage() 141 buildClassName(pkg.applicationInfo.packageName, androidManifest.getApplicationName()); in createPackage() 143 pkg.applicationInfo.name = pkg.applicationInfo.className; in createPackage() 146 pkg.applicationInfo.metaData = metaDataToBundle(androidManifest.getApplicationMetaData()); in createPackage() 147 pkg.applicationInfo.uid = Process.myUid(); in createPackage() 149 pkg.applicationInfo.theme = in createPackage() [all …]
|
D | ShadowApplicationPackageManager.java | 198 result.applicationInfo = new ApplicationInfo(packageInfo.applicationInfo); in getActivityInfo() 207 result.applicationInfo = new ApplicationInfo(); in getActivityInfo() 208 result.applicationInfo.packageName = packageName; in getActivityInfo() 209 result.applicationInfo.flags = ApplicationInfo.FLAG_INSTALLED; in getActivityInfo() 238 if (packageInfo.applicationInfo != null && packageInfo.applicationInfo.uid == uid) { in getPackagesForUid() 408 if (componentInfo == null || componentInfo.applicationInfo == null) { in filterResolvedComponent() 414 final int applicationFlags = componentInfo.applicationInfo.flags; in filterResolvedComponent() 425 new ComponentName(componentInfo.applicationInfo.packageName, componentInfo.name); in filterResolvedComponent() 436 && hiddenPackages.contains(componentInfo.applicationInfo.packageName)) { in filterResolvedComponent() 450 && componentInfo.applicationInfo != null in isValidComponentInfo() [all …]
|
D | ShadowResolveInfo.java | 34 actInfo.applicationInfo = new ApplicationInfo(); in newResolveInfo() 36 actInfo.applicationInfo.packageName = packageName; in newResolveInfo()
|
D | ShadowCrossProfileApps.java | 341 .map(applicationInfo -> applicationInfo.packageName) in findAllPackageNames()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/ |
D | FakeContextBuilder.java | 108 ApplicationInfo applicationInfo = invocation.getArgument(0); in build() local 109 return appLabels.get(applicationInfo.packageName); in build() 131 info.activityInfo.applicationInfo = new ApplicationInfo(); in getResolveInfo() 132 info.activityInfo.applicationInfo.packageName = component.getPackageName(); in getResolveInfo() 133 info.activityInfo.applicationInfo.icon = 0; in getResolveInfo()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPackageManagerTest.java | 176 packageInfo.applicationInfo = appInfo; in packageInstallerAndGetPackageArchiveInfo() 181 ApplicationInfo applicationInfo = packageInfoResult.applicationInfo; in packageInstallerAndGetPackageArchiveInfo() local 182 assertThat(applicationInfo).isInstanceOf(ApplicationInfo.class); in packageInstallerAndGetPackageArchiveInfo() 183 assertThat(applicationInfo.packageName).isEqualTo(TEST_PACKAGE_NAME); in packageInstallerAndGetPackageArchiveInfo() 184 assertThat(applicationInfo.sourceDir).isEqualTo(TEST_APP_PATH); in packageInstallerAndGetPackageArchiveInfo() 491 ApplicationInfo appInfo = pkg.applicationInfo; in getAllPermissionGroups_duplicatePermission() 511 ApplicationInfo appInfo2 = pkg2.applicationInfo; in getAllPermissionGroups_duplicatePermission() 545 packageInfo.applicationInfo = appInfo; in getPackageArchiveInfo() 550 ApplicationInfo applicationInfo = packageInfoResult.applicationInfo; in getPackageArchiveInfo() local 551 assertThat(applicationInfo).isInstanceOf(ApplicationInfo.class); in getPackageArchiveInfo() [all …]
|
D | ShadowNotificationBuilder25Test.java | 21 .applicationInfo in setup()
|
D | ShadowResolveInfoTest.java | 25 assertThat(mResolveInfo.activityInfo.applicationInfo.packageName).isEqualTo("package"); in testNewResolveInfoWithActivity()
|
D | ShadowCrossProfileAppsTest.java | 373 packageInfo.applicationInfo = new ApplicationInfo(); in buildTestPackageInfo() 374 packageInfo.applicationInfo.packageName = packageName; in buildTestPackageInfo() 375 packageInfo.applicationInfo.name = "test"; in buildTestPackageInfo()
|
D | ShadowContextTest.java | 59 .getPackageInfo("org.robolectric", 0).applicationInfo.dataDir, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
|
/external/vogar/src/vogar/target/ |
D | TestActivity.java | 50 ApplicationInfo applicationInfo = getPackageManager() in onCreate() local 52 boolean useDebugger = (applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in onCreate()
|
/external/llvm-project/mlir/tools/mlir-vulkan-runner/ |
D | VulkanRuntime.cpp | 225 VkApplicationInfo applicationInfo = {}; in createInstance() local 226 applicationInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO; in createInstance() 227 applicationInfo.pNext = nullptr; in createInstance() 228 applicationInfo.pApplicationName = "MLIR Vulkan runtime"; in createInstance() 229 applicationInfo.applicationVersion = 0; in createInstance() 230 applicationInfo.pEngineName = "mlir"; in createInstance() 231 applicationInfo.engineVersion = 0; in createInstance() 232 applicationInfo.apiVersion = VK_MAKE_VERSION(1, 0, 0); in createInstance() 238 instanceCreateInfo.pApplicationInfo = &applicationInfo; in createInstance()
|
/external/angle/src/android_system_settings/src/com/android/angle/common/ |
D | MainFragment.java | 212 if (packageInfo.applicationInfo.uid == Process.SYSTEM_UID) in getInstalledPkgsList() 218 if ((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) in getInstalledPkgsList() 240 return packageInfo.applicationInfo.loadLabel(getActivity().getPackageManager()).toString(); in getAppName()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/ |
D | LabeledIntent.java | 228 if (resolveInfo.activityInfo.applicationInfo == null) { in getApplicationName() 231 return packageManager.getApplicationLabel(resolveInfo.activityInfo.applicationInfo).toString(); in getApplicationName()
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | RendererVk.cpp | 1006 VkApplicationInfo applicationInfo = {}; in initialize() local 1007 applicationInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO; in initialize() 1009 applicationInfo.pApplicationName = appName.c_str(); in initialize() 1010 applicationInfo.applicationVersion = 1; in initialize() 1011 applicationInfo.pEngineName = "ANGLE"; in initialize() 1012 applicationInfo.engineVersion = 1; in initialize() 1018 applicationInfo.apiVersion = VK_API_VERSION_1_0; in initialize() 1030 applicationInfo.apiVersion = kPreferredVulkanAPIVersion; in initialize() 1035 applicationInfo.apiVersion = VK_API_VERSION_1_0; in initialize() 1042 instanceInfo.pApplicationInfo = &applicationInfo; in initialize() [all …]
|
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/ |
D | BlacklistedApis.java | 64 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in isDebuggable()
|
/external/libchrome/base/android/java/src/org/chromium/base/ |
D | BuildInfo.java | 106 hostPackageLabel = nullToEmpty(pm.getApplicationLabel(pi.applicationInfo)); in BuildInfo()
|
/external/setupdesign/main/src/com/google/android/setupdesign/util/ |
D | Partner.java | 206 final ApplicationInfo appInfo = info.activityInfo.applicationInfo; in get()
|
/external/angle/src/tests/test_utils/ |
D | VulkanExternalHelper.cpp | 217 VkApplicationInfo applicationInfo = { in initialize() local 240 /* .pApplicationInfo = */ &applicationInfo, in initialize()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/ |
D | RobolectricTestUtilities.java | 105 profileOwnerPackage.applicationInfo = new ApplicationInfo(); in RobolectricTestUtilities()
|
/external/libabigail/tests/data/test-read-dwarf/ |
D | test-libandroid.so.abi | 24485 …<var-decl name='applicationInfo' type-id='f33aa522' visibility='default' filepath='frameworks/nati…
|