Home
last modified time | relevance | path

Searched refs:aInfo (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/core/java/android/app/
DLoadedApk.java168 public LoadedApk(ActivityThread activityThread, ApplicationInfo aInfo, in LoadedApk() argument
173 setApplicationInfo(aInfo); in LoadedApk()
174 mPackageName = aInfo.packageName; in LoadedApk()
328 public void updateApplicationInfo(@NonNull ApplicationInfo aInfo, in updateApplicationInfo() argument
330 setApplicationInfo(aInfo); in updateApplicationInfo()
333 makePaths(mActivityThread, aInfo, newPaths); in updateApplicationInfo()
371 mAppComponentFactory = createAppFactory(aInfo, mDefaultClassLoader); in updateApplicationInfo()
374 private void setApplicationInfo(ApplicationInfo aInfo) { in setApplicationInfo() argument
376 aInfo = adjustNativeLibraryPaths(aInfo); in setApplicationInfo()
377 mApplicationInfo = aInfo; in setApplicationInfo()
[all …]
DLocalActivityManager.java295 ActivityInfo aInfo = null; in startActivity() local
307 aInfo = r.activityInfo; in startActivity()
310 if (aInfo == null) { in startActivity()
311 aInfo = mActivityThread.resolveActivityInfo(intent); in startActivity()
333 if (aInfo == r.activityInfo || in startActivity()
334 (aInfo.name.equals(r.activityInfo.name) && in startActivity()
335 aInfo.packageName.equals(r.activityInfo.packageName))) { in startActivity()
336 if (aInfo.launchMode != ActivityInfo.LAUNCH_MULTIPLE || in startActivity()
371 r.activityInfo = aInfo; in startActivity()
DActivityManagerInternal.java264 public abstract ActivityInfo getActivityInfoForUser(ActivityInfo aInfo, int userId); in getActivityInfoForUser() argument
275 ApplicationInfo aInfo, String parentShortComponentName, Object parentProc, in inputDispatchingTimedOut() argument
310 public abstract void setDebugFlagsForStartingActivity(ActivityInfo aInfo, int startFlags, in setDebugFlagsForStartingActivity() argument
DAppComponentFactory.java57 @NonNull ApplicationInfo aInfo) { in instantiateClassLoader() argument
DActivityThread.java2295 private LoadedApk getPackageInfo(ApplicationInfo aInfo, CompatibilityInfo compatInfo, in getPackageInfo() argument
2298 final boolean differentUser = (UserHandle.myUserId() != UserHandle.getUserId(aInfo.uid)); in getPackageInfo()
2305 ref = mPackages.get(aInfo.packageName); in getPackageInfo()
2307 ref = mResourcePackages.get(aInfo.packageName); in getPackageInfo()
2313 if (!isLoadedApkResourceDirsUpToDate(packageInfo, aInfo)) { in getPackageInfo()
2314 packageInfo.updateApplicationInfo(aInfo, null); in getPackageInfo()
2322 : "Loading resource-only package ") + aInfo.packageName in getPackageInfo()
2329 new LoadedApk(this, aInfo, compatInfo, baseLoader, in getPackageInfo()
2331 && (aInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0, registerPackage); in getPackageInfo()
2333 if (mSystemThread && "android".equals(aInfo.packageName)) { in getPackageInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java119 ActivityOptions getOptions(@Nullable Intent intent, @Nullable ActivityInfo aInfo, in getOptions() argument
123 checkPermissions(intent, aInfo, callerApp, supervisor, mOriginalOptions, in getOptions()
129 checkPermissions(intent, aInfo, callerApp, supervisor, mCallerOptions, in getOptions()
191 private void checkPermissions(@Nullable Intent intent, @Nullable ActivityInfo aInfo, in checkPermissions() argument
212 if (aInfo != null && launchDisplayId != INVALID_DISPLAY in checkPermissions()
214 launchDisplayId, aInfo)) { in checkPermissions()
224 if (aInfo != null && lockTaskMode in checkPermissions()
226 UserHandle.getUserId(callingUid), aInfo.packageName)) { in checkPermissions()
DAlertWindowNotification.java106 final ApplicationInfo aInfo = getApplicationInfo(pm, mPackageName); in onPostNotification() local
107 final String appName = (aInfo != null) in onPostNotification()
108 ? pm.getApplicationLabel(aInfo).toString() : mPackageName; in onPostNotification()
128 if (aInfo != null) { in onPostNotification()
129 final Drawable drawable = pm.getApplicationIcon(aInfo); in onPostNotification()
DRootActivityContainer.java375 ActivityInfo aInfo = null; in startHomeOnDisplay() local
378 aInfo = resolveHomeActivity(userId, homeIntent); in startHomeOnDisplay()
381 aInfo = info.first; in startHomeOnDisplay()
384 if (aInfo == null || homeIntent == null) { in startHomeOnDisplay()
388 if (!canStartHomeOnDisplay(aInfo, displayId, allowInstrumenting)) { in startHomeOnDisplay()
393 homeIntent.setComponent(new ComponentName(aInfo.applicationInfo.packageName, aInfo.name)); in startHomeOnDisplay()
402 aInfo.applicationInfo.uid) + ":" + displayId; in startHomeOnDisplay()
403 mService.getActivityStartController().startHomeActivity(homeIntent, aInfo, myReason, in startHomeOnDisplay()
416 ActivityInfo aInfo = null; in resolveHomeActivity() local
420 aInfo = AppGlobals.getPackageManager().getActivityInfo(comp, flags, userId); in resolveHomeActivity()
[all …]
DActivityStartController.java171 void startHomeActivity(Intent intent, ActivityInfo aInfo, String reason, int displayId) { in startHomeActivity() argument
174 if (!ActivityRecord.isResolverActivity(aInfo.name)) { in startHomeActivity()
184 .setActivityInfo(aInfo) in startHomeActivity()
393 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, resolvedTypes[i], in startActivities() local
397 aInfo = mService.mAmInternal.getActivityInfoForUser(aInfo, userId); in startActivities()
399 if (aInfo != null && (aInfo.applicationInfo.privateFlags in startActivities()
411 .setActivityInfo(aInfo) in startActivities()
DActivityRecord.java621 void updateApplicationInfo(ApplicationInfo aInfo) { in updateApplicationInfo() argument
622 appInfo = aInfo; in updateApplicationInfo()
623 info.applicationInfo = aInfo; in updateApplicationInfo()
943 String _resolvedType, ActivityInfo aInfo, Configuration _configuration, in ActivityRecord() argument
950 info = aInfo; in ActivityRecord()
954 mUserId = UserHandle.getUserId(aInfo.applicationInfo.uid); in ActivityRecord()
987 if (aInfo.targetActivity == null in ActivityRecord()
988 || (aInfo.targetActivity.equals(_intent.getComponent().getClassName()) in ActivityRecord()
989 && (aInfo.launchMode == LAUNCH_MULTIPLE in ActivityRecord()
990 || aInfo.launchMode == LAUNCH_SINGLE_TOP))) { in ActivityRecord()
[all …]
DActivityStarter.java569 String resolvedType, ActivityInfo aInfo, ResolveInfo rInfo, in startActivity() argument
586 aInfo, rInfo, voiceSession, voiceInteractor, resultTo, resultWho, requestCode, in startActivity()
614 String resolvedType, ActivityInfo aInfo, ResolveInfo rInfo, in startActivity() argument
642 final int userId = aInfo != null && aInfo.applicationInfo != null in startActivity()
643 ? UserHandle.getUserId(aInfo.applicationInfo.uid) : 0; in startActivity()
703 if (err == ActivityManager.START_SUCCESS && aInfo == null) { in startActivity()
716 && sourceRecord.info.applicationInfo.uid != aInfo.applicationInfo.uid) { in startActivity()
762 boolean abort = !mSupervisor.checkStartAnyActivityPermission(intent, aInfo, resultWho, in startActivity()
766 callingPid, resolvedType, aInfo.applicationInfo); in startActivity()
785 ? options.getOptions(intent, aInfo, callerApp, mSupervisor) : null; in startActivity()
[all …]
DActivityStartInterceptor.java146 boolean intercept(Intent intent, ResolveInfo rInfo, ActivityInfo aInfo, String resolvedType, in intercept() argument
154 mAInfo = aInfo; in intercept()
294 private Intent interceptWithConfirmCredentialsIfNeeded(ActivityInfo aInfo, int userId) { in interceptWithConfirmCredentialsIfNeeded() argument
309 newIntent.putExtra(EXTRA_PACKAGE_NAME, aInfo.packageName); in interceptWithConfirmCredentialsIfNeeded()
DActivityStackSupervisor.java645 final ActivityInfo aInfo = rInfo != null ? rInfo.activityInfo : null; in resolveActivity() local
646 if (aInfo != null) { in resolveActivity()
652 aInfo.applicationInfo.packageName, aInfo.name)); in resolveActivity()
655 if (!aInfo.processName.equals("system")) { in resolveActivity()
667 mService.mAmInternal, aInfo, startFlags, profilerInfo, in resolveActivity()
679 if (aInfo.launchToken == null && intentLaunchToken != null) { in resolveActivity()
680 aInfo.launchToken = intentLaunchToken; in resolveActivity()
683 return aInfo; in resolveActivity()
1002 boolean checkStartAnyActivityPermission(Intent intent, ActivityInfo aInfo, String resultWho, in checkStartAnyActivityPermission() argument
1018 aInfo, callingPackage, callingPid, callingUid, ignoreTargetSecurity); in checkStartAnyActivityPermission()
[all …]
DActivityTaskManagerInternal.java344 public abstract void onPackageReplaced(ApplicationInfo aInfo); in onPackageReplaced() argument
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentsAnimationTest.java120 ActivityInfo aInfo = new ActivityInfo(); in testPreloadRecentsActivity() local
121 aInfo.applicationInfo = new ApplicationInfo(); in testPreloadRecentsActivity()
122 aInfo.applicationInfo.uid = 10001; in testPreloadRecentsActivity()
123 aInfo.applicationInfo.targetSdkVersion = mContext.getApplicationInfo().targetSdkVersion; in testPreloadRecentsActivity()
124 aInfo.packageName = aInfo.applicationInfo.packageName = mRecentsComponent.getPackageName(); in testPreloadRecentsActivity()
125 aInfo.processName = "recents"; in testPreloadRecentsActivity()
126 doReturn(aInfo).when(mSupervisor).resolveActivity(any() /* intent */, any() /* rInfo */, in testPreloadRecentsActivity()
130 WindowProcessController wpc = new WindowProcessController(mService, aInfo.applicationInfo, in testPreloadRecentsActivity()
131 aInfo.processName, aInfo.applicationInfo.uid, 0 /* userId */, in testPreloadRecentsActivity()
DActivityTestsBase.java288 final ActivityInfo aInfo = new ActivityInfo(); in build() local
289 aInfo.applicationInfo = new ApplicationInfo(); in build()
290 aInfo.applicationInfo.packageName = mComponent.getPackageName(); in build()
291 aInfo.applicationInfo.uid = mUid; in build()
292 aInfo.packageName = mComponent.getPackageName(); in build()
293 aInfo.name = mComponent.getClassName(); in build()
295 aInfo.targetActivity = mTargetActivity; in build()
297 aInfo.flags |= mActivityFlags; in build()
298 aInfo.launchMode = mLaunchMode; in build()
302 null, intent, null, aInfo /*aInfo*/, new Configuration(), null /* resultTo */, in build()
[all …]
DActivityStarterTests.java220 final ActivityInfo aInfo = containsConditions(preconditions, PRECONDITION_NO_ACTIVITY_INFO) in verifyStartActivityPreconditions() local
231 if (aInfo != null) { in verifyStartActivityPreconditions()
232 aInfo.applicationInfo = new ApplicationInfo(); in verifyStartActivityPreconditions()
233 aInfo.applicationInfo.packageName = in verifyStartActivityPreconditions()
239 builder.setUid(aInfo.applicationInfo.uid + 1); in verifyStartActivityPreconditions()
283 .setActivityInfo(aInfo) in verifyStartActivityPreconditions()
301 .setActivityInfo(aInfo) in verifyStartActivityPreconditions()
/frameworks/base/services/core/java/com/android/server/am/
DAppNotRespondingDialog.java62 CharSequence name1 = data.aInfo != null in AppNotRespondingDialog()
63 ? data.aInfo.loadLabel(context.getPackageManager()) in AppNotRespondingDialog()
185 final ApplicationInfo aInfo; field in AppNotRespondingDialog.Data
188 Data(ProcessRecord proc, ApplicationInfo aInfo, boolean aboveSystem) { in Data() argument
190 this.aInfo = aInfo; in Data()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java75 ApplicationInfo aInfo; in onCreate() local
77 aInfo = packageManager.getApplicationInfo(mPackageName, 0); in onCreate()
78 mUid = aInfo.uid; in onCreate()
104 String label = aInfo.loadLabel(packageManager).toString(); in onCreate()
/frameworks/native/libs/gui/tests/
DEndToEndNativeInputTest.cpp187 InputApplicationInfo aInfo; in populateInputInfo() local
188 aInfo.token = new BBinder(); in populateInputInfo()
189 aInfo.name = "Test app info"; in populateInputInfo()
190 aInfo.dispatchingTimeout = 100000; in populateInputInfo()
192 mInputInfo.applicationInfo = aInfo; in populateInputInfo()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserSettingsManager.java138 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in isCameraPermissionGranted() local
140 if (aInfo.uid != uid) { in isCameraPermissionGranted()
144 targetSdkVersion = aInfo.targetSdkVersion; in isCameraPermissionGranted()
198 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in requestPermissionDialog() local
199 if (aInfo.uid != uid) { in requestPermissionDialog()
DUsbProfileGroupSettingsManager.java967 private boolean handlePackageAddedLocked(UserPackage userPackage, ActivityInfo aInfo, in handlePackageAddedLocked() argument
973 parser = aInfo.loadXmlMetaData(mPackageManager, metaDataName); in handlePackageAddedLocked()
994 Slog.w(TAG, "Unable to load component info " + aInfo.toString(), e); in handlePackageAddedLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbPermissionActivity.java74 ApplicationInfo aInfo; in onCreate() local
76 aInfo = packageManager.getApplicationInfo(mPackageName, 0); in onCreate()
82 String appName = aInfo.loadLabel(packageManager).toString(); in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOverlayPackagesProviderTest.java333 ApplicationInfo aInfo = new ApplicationInfo(); in setSystemInputMethods() local
334 aInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setSystemInputMethods()
336 serviceInfo.applicationInfo = aInfo; in setSystemInputMethods()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java770 AuthorityInfo aInfo; in setSyncableStateForEndPoint() local
775 aInfo = getOrCreateAuthorityLocked(target, -1, false); in setSyncableStateForEndPoint()
780 Slog.d(TAG, "setIsSyncable: " + aInfo.toString() + " -> " + syncable); in setSyncableStateForEndPoint()
782 if (aInfo.syncable == syncable) { in setSyncableStateForEndPoint()
788 aInfo.syncable = syncable; in setSyncableStateForEndPoint()
792 requestSync(aInfo, SyncOperation.REASON_IS_SYNCABLE, new Bundle(), in setSyncableStateForEndPoint()

12