/frameworks/base/core/java/android/content/pm/ |
D | InstantAppInfo.java | 37 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/ |
D | ManifestConfigSource.java | 33 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()
|
D | XmlConfigSource.java | 39 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/ |
D | TvContentRatingSystemInfo.java | 36 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/ |
D | WatchdogRollbackLoggerTest.java | 51 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/ |
D | LoadedApk.java | 113 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/ |
D | DefaultAppInfoTest.java | 53 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/ |
D | LowpanInterfaceTest.java | 47 @Mock ApplicationInfo mApplicationInfo; field in LowpanInterfaceTest 60 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
|
D | LowpanManagerTest.java | 49 @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/ |
D | CustomTileTest.kt | 65 @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/ |
D | ButtonRoleHolderControllerTest.java | 74 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/ |
D | PackageHelperTests.java | 107 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/ |
D | BridgeContext.java | 163 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/ |
D | AccessibilityShortcutControllerTest.java | 118 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/ |
D | PhoneSubInfoControllerTest.java | 573 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()
|
D | TelephonyTest.java | 240 protected ApplicationInfo mApplicationInfo; field in TelephonyTest 793 mApplicationInfo.targetSdkVersion = targetSdkVersion; in setupMocksForTelephonyPermissions() 794 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser(anyString(), in setupMocksForTelephonyPermissions()
|
D | ContextFixture.java | 314 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/ |
D | IntentForwarderActivityTest.java | 116 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/ |
D | WifiServiceImplTest.java | 249 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/ |
D | OffloadControllerTest.java | 109 @Mock private ApplicationInfo mApplicationInfo; field in OffloadControllerTest 131 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
|
D | TetheringTest.java | 187 @Mock private ApplicationInfo mApplicationInfo; field in TetheringTest 239 return mApplicationInfo; in getApplicationInfo()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 131 @Mock ApplicationInfo mApplicationInfo; field in WifiManagerTest 201 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in setUp() 202 when(mContext.getApplicationInfo()).thenReturn(mApplicationInfo); in setUp()
|