Home
last modified time | relevance | path

Searched refs:mApplicationInfo (Results 1 – 22 of 22) 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/services/tests/servicestests/src/com/android/server/rollback/
DWatchdogRollbackLoggerTest.java51 private ApplicationInfo mApplicationInfo; field in WatchdogRollbackLoggerTest
63 mApplicationInfo = new ApplicationInfo(); in setUp()
95 mApplicationInfo.metaData = bundle; in testLogPackageParentKeyIsNull()
96 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageParentKeyIsNull()
111 mApplicationInfo.metaData = bundle; in testLogPackageHasParentKey()
112 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageHasParentKey()
131 mApplicationInfo.metaData = bundle; in testLogPackageNameNotFound()
132 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageNameNotFound()
/frameworks/base/core/java/android/app/
DLoadedApk.java113 private ApplicationInfo mApplicationInfo; field in LoadedApk
183 mAppComponentFactory = createAppFactory(mApplicationInfo, mBaseClassLoader); in LoadedApk()
219 mApplicationInfo = new ApplicationInfo(); in LoadedApk()
220 mApplicationInfo.packageName = "android"; in LoadedApk()
239 mAppComponentFactory = createAppFactory(mApplicationInfo, mDefaultClassLoader); in LoadedApk()
241 new ApplicationInfo(mApplicationInfo)); in LoadedApk()
249 mApplicationInfo = info; in installSystemApplicationInfo()
253 new ApplicationInfo(mApplicationInfo)); in installSystemApplicationInfo()
279 return mApplicationInfo; in getApplicationInfo()
283 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/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt65 @Mock private lateinit var mApplicationInfo: ApplicationInfo variable in com.android.systemui.qs.external.CustomTileTest
82 .thenReturn(mApplicationInfo) in setUp()
86 mServiceInfo.applicationInfo = mApplicationInfo in setUp()
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/navigationbar/
DButtonRoleHolderControllerTest.java74 private ApplicationInfo mApplicationInfo; field in ButtonRoleHolderControllerTest
87 when(mApplicationInfo.loadIcon(any())).thenReturn(mAppIcon); in setUp()
90 doReturn(mApplicationInfo).when(mPackageManager) 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.java163 private final ApplicationInfo mApplicationInfo; field in BridgeContext
246 mApplicationInfo = new ApplicationInfo(); in BridgeContext()
247 mApplicationInfo.targetSdkVersion = targetSdkVersion; in BridgeContext()
249 mApplicationInfo.flags = mApplicationInfo.flags | ApplicationInfo.FLAG_SUPPORTS_RTL; in BridgeContext()
994 if (mApplicationInfo.packageName == null) { in getPackageName()
995 mApplicationInfo.packageName = mLayoutlibCallback.getFlag(FLAG_KEY_APPLICATION_PACKAGE); in getPackageName()
997 return mApplicationInfo.packageName; in getPackageName()
1549 return mApplicationInfo; in getApplicationInfo()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java118 private @Mock ApplicationInfo mApplicationInfo; field in AccessibilityShortcutControllerTest
134 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
171 resolveInfo.serviceInfo.applicationInfo = mApplicationInfo; in setUp()
611 mApplicationInfo.targetSdkVersion = versionCode; in configureApplicationTargetSdkVersion()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java573 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in testGetLine1Number()
586 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in testGetLine1NumberWithOutPermissionTargetPreR()
680 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in testGetLine1NumberWithOutPermissionTargetR()
802 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in testGetMsisdn()
815 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in testGetMsisdnWithOutPermissionTargetPreR()
862 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in testGetMsisdnWithOutPermissionTargetR()
DTelephonyTest.java240 protected ApplicationInfo mApplicationInfo; field in TelephonyTest
793 mApplicationInfo.targetSdkVersion = targetSdkVersion; in setupMocksForTelephonyPermissions()
794 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser(anyString(), in setupMocksForTelephonyPermissions()
DContextFixture.java314 return mApplicationInfo; in getApplicationInfo()
606 private final ApplicationInfo mApplicationInfo = mock(ApplicationInfo.class); field in ContextFixture
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java116 private ApplicationInfo mApplicationInfo; field in IntentForwarderActivityTest
617 when(mApplicationInfo.isSystemApp()).thenReturn(true); in setupShouldSkipDisclosureTest()
686 activityInfo.applicationInfo = mApplicationInfo; in resolveActivityAsUser()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java249 private ApplicationInfo mApplicationInfo; field in WifiServiceImplTest
326 mApplicationInfo = new ApplicationInfo(); in setUp()
327 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in setUp()
348 .thenReturn(mApplicationInfo); in setUp()
669 mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in testSetWifiEnabledSuccessForSystemAppsTargetingQSdk()
930 mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in testSetWifiDisabledSuccessForSystemAppsTargetingQSdk()
3189 when(pm.getApplicationInfoAsUser(any(), anyInt(), any())).thenReturn(mApplicationInfo); in testAddPasspointProfileViaAddNetwork()
3826 mPackageInfo.applicationInfo = mApplicationInfo; in testPackageDisableBroadcastHandling()
3827 mApplicationInfo.enabled = false; in testPackageDisableBroadcastHandling()
4295 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.P; in testAddOrUpdateNetworkIsAllowedForSettingsApp()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java109 @Mock private ApplicationInfo mApplicationInfo; field in OffloadControllerTest
131 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
DTetheringTest.java187 @Mock private ApplicationInfo mApplicationInfo; field in TetheringTest
239 return mApplicationInfo; in getApplicationInfo()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java131 @Mock ApplicationInfo mApplicationInfo; field in WifiManagerTest
201 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in setUp()
202 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()