Home
last modified time | relevance | path

Searched refs:mApplicationInfo (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DInstantAppInfo.java37 private final ApplicationInfo mApplicationInfo; field in InstantAppInfo
47 mApplicationInfo = appInfo; in InstantAppInfo()
56 mApplicationInfo = null; in InstantAppInfo()
68 mApplicationInfo = parcel.readParcelable(null); in InstantAppInfo()
76 return mApplicationInfo; in getApplicationInfo()
83 if (mApplicationInfo != null) { in getPackageName()
84 return mApplicationInfo.packageName; in getPackageName()
94 if (mApplicationInfo != null) { in loadLabel()
95 return mApplicationInfo.loadLabel(packageManager); in loadLabel()
105 if (mApplicationInfo != null) { in loadIcon()
[all …]
/frameworks/base/core/java/android/security/net/config/
DManifestConfigSource.java33 private final ApplicationInfo mApplicationInfo; field in ManifestConfigSource
40 mApplicationInfo = new ApplicationInfo(context.getApplicationInfo()); in ManifestConfigSource()
58 int configResource = mApplicationInfo.networkSecurityConfigRes; in getConfigSource()
62 (mApplicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in getConfigSource()
69 source = new XmlConfigSource(mContext, configResource, mApplicationInfo); in getConfigSource()
77 (mApplicationInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC) != 0 in getConfigSource()
78 && !mApplicationInfo.isInstantApp(); in getConfigSource()
79 source = new DefaultConfigSource(usesCleartextTraffic, mApplicationInfo); in getConfigSource()
DXmlConfigSource.java39 private final ApplicationInfo mApplicationInfo; field in XmlConfigSource
49 mApplicationInfo = new ApplicationInfo(info); in XmlConfigSource()
51 mDebugBuild = (mApplicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in XmlConfigSource()
352 NetworkSecurityConfig.getDefaultBuilder(mApplicationInfo); in parseNetworkSecurityConfig()
/frameworks/base/media/java/android/media/tv/
DTvContentRatingSystemInfo.java36 private final ApplicationInfo mApplicationInfo; field in TvContentRatingSystemInfo
58 mApplicationInfo = applicationInfo; in TvContentRatingSystemInfo()
66 return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemDefined()
98 mApplicationInfo = in.readParcelable(null); in TvContentRatingSystemInfo()
104 dest.writeParcelable(mApplicationInfo, flags); in writeToParcel()
/frameworks/base/core/java/android/app/
DLoadedApk.java109 private ApplicationInfo mApplicationInfo; field in LoadedApk
179 mAppComponentFactory = createAppFactory(mApplicationInfo, mBaseClassLoader); in LoadedApk()
215 mApplicationInfo = new ApplicationInfo(); in LoadedApk()
216 mApplicationInfo.packageName = "android"; in LoadedApk()
235 mAppComponentFactory = createAppFactory(mApplicationInfo, mDefaultClassLoader); in LoadedApk()
237 new ApplicationInfo(mApplicationInfo)); in LoadedApk()
245 mApplicationInfo = info; in installSystemApplicationInfo()
249 new ApplicationInfo(mApplicationInfo)); in installSystemApplicationInfo()
275 return mApplicationInfo; in getApplicationInfo()
279 return mApplicationInfo.targetSdkVersion; in getTargetSdkVersion()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DDefaultAppInfoTest.java53 private ApplicationInfo mApplicationInfo; field in DefaultAppInfoTest
66 anyInt())).thenReturn(mApplicationInfo); in setUp()
67 when(mPackageManager.loadUnbadgedItemIcon(mPackageItemInfo, mApplicationInfo)).thenReturn( in setUp()
/frameworks/base/lowpan/tests/src/android/net/lowpan/
DLowpanInterfaceTest.java47 @Mock ApplicationInfo mApplicationInfo; field in LowpanInterfaceTest
60 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
DLowpanManagerTest.java49 @Mock ApplicationInfo mApplicationInfo; field in LowpanManagerTest
63 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java107 private ApplicationInfo mApplicationInfo = null; field in PackageHelperTests.MockedInterface
113 mApplicationInfo = applicationInfo; in setMockValues()
133 return mApplicationInfo; in getExistingAppInfo()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java157 private final ApplicationInfo mApplicationInfo; field in BridgeContext
236 mApplicationInfo = new ApplicationInfo(); in BridgeContext()
237 mApplicationInfo.targetSdkVersion = targetSdkVersion; in BridgeContext()
239 mApplicationInfo.flags = mApplicationInfo.flags | ApplicationInfo.FLAG_SUPPORTS_RTL; in BridgeContext()
954 if (mApplicationInfo.packageName == null) { in getPackageName()
955 mApplicationInfo.packageName = mLayoutlibCallback.getFlag(FLAG_KEY_APPLICATION_PACKAGE); in getPackageName()
957 return mApplicationInfo.packageName; in getPackageName()
1509 return mApplicationInfo; in getApplicationInfo()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java111 private ApplicationInfo mApplicationInfo; field in IntentForwarderActivityTest
593 when(mApplicationInfo.isSystemApp()).thenReturn(true); in setupShouldSkipDisclosureTest()
656 activityInfo.applicationInfo = mApplicationInfo; in resolveActivityAsUser()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java202 protected ApplicationInfo mApplicationInfo; field in TelephonyTest
672 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in setupMocksForTelephonyPermissions()
673 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser(eq(TAG), anyInt(), in setupMocksForTelephonyPermissions()
DContextFixture.java289 return mApplicationInfo; in getApplicationInfo()
552 private final ApplicationInfo mApplicationInfo = mock(ApplicationInfo.class); field in ContextFixture
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java114 private @Mock ApplicationInfo mApplicationInfo; field in AccessibilityShortcutControllerTest
130 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java95 @Mock private ApplicationInfo mApplicationInfo; field in OffloadControllerTest
108 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java202 private ApplicationInfo mApplicationInfo; field in WifiServiceImplTest
332 mApplicationInfo = new ApplicationInfo(); in setUp()
333 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in setUp()
352 when(mPackageManager.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in setUp()
2519 when(pm.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in testAddPasspointProfileViaAddNetwork()
3612 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.P; in testAddOrUpdateNetworkIsAllowedForSettingsApp()
3635 mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in testAddOrUpdateNetworkIsAllowedForSystemApp()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java106 @Mock ApplicationInfo mApplicationInfo; field in WifiManagerTest
125 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in setUp()
126 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java142 @Mock private ApplicationInfo mApplicationInfo; field in TetheringTest
181 public ApplicationInfo getApplicationInfo() { return mApplicationInfo; } in getApplicationInfo()