Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java264 final ActivityInfo aInfo = new ActivityInfo(); in buildInner() local
265 aInfo.applicationInfo = new ApplicationInfo(); in buildInner()
266 aInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in buildInner()
267 aInfo.applicationInfo.packageName = mComponent.getPackageName(); in buildInner()
268 aInfo.applicationInfo.uid = mUid; in buildInner()
269 aInfo.processName = mProcessName; in buildInner()
270 aInfo.packageName = mComponent.getPackageName(); in buildInner()
271 aInfo.name = mComponent.getClassName(); in buildInner()
273 aInfo.targetActivity = mTargetActivity; in buildInner()
275 aInfo.flags |= mActivityFlags; in buildInner()
[all …]
DRecentsAnimationTest.java130 ActivityInfo aInfo = new ActivityInfo(); in testPreloadRecentsActivity() local
131 aInfo.applicationInfo = new ApplicationInfo(); in testPreloadRecentsActivity()
132 aInfo.applicationInfo.uid = 10001; in testPreloadRecentsActivity()
133 aInfo.applicationInfo.targetSdkVersion = mContext.getApplicationInfo().targetSdkVersion; in testPreloadRecentsActivity()
134 aInfo.packageName = aInfo.applicationInfo.packageName = mRecentsComponent.getPackageName(); in testPreloadRecentsActivity()
135 aInfo.processName = "recents"; in testPreloadRecentsActivity()
136 doReturn(aInfo).when(mSupervisor).resolveActivity(any() /* intent */, any() /* rInfo */, in testPreloadRecentsActivity()
140 WindowProcessController wpc = new WindowProcessController(mService, aInfo.applicationInfo, in testPreloadRecentsActivity()
141 aInfo.processName, aInfo.applicationInfo.uid, 0 /* userId */, in testPreloadRecentsActivity()
DActivityStarterTests.java209 final ActivityInfo aInfo = containsConditions(preconditions, PRECONDITION_NO_ACTIVITY_INFO) in verifyStartActivityPreconditionsUntracked() local
220 if (aInfo != null) { in verifyStartActivityPreconditionsUntracked()
221 aInfo.applicationInfo = new ApplicationInfo(); in verifyStartActivityPreconditionsUntracked()
222 aInfo.applicationInfo.packageName = in verifyStartActivityPreconditionsUntracked()
228 builder.setUid(aInfo.applicationInfo.uid + 1); in verifyStartActivityPreconditionsUntracked()
272 .setActivityInfo(aInfo) in verifyStartActivityPreconditionsUntracked()
290 .setActivityInfo(aInfo) in verifyStartActivityPreconditionsUntracked()
DRootActivityContainerTests.java938 final ActivityInfo aInfo = new ActivityInfo(); in getFakeHomeActivityInfo() local
939 aInfo.name = primaryHome ? "fakeHomeActivity" : "fakeSecondaryHomeActivity"; in getFakeHomeActivityInfo()
940 aInfo.applicationInfo = new ApplicationInfo(); in getFakeHomeActivityInfo()
941 aInfo.applicationInfo.packageName = in getFakeHomeActivityInfo()
943 return aInfo; in getFakeHomeActivityInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java121 ActivityOptions getOptions(@Nullable Intent intent, @Nullable ActivityInfo aInfo, in getOptions() argument
125 checkPermissions(intent, aInfo, callerApp, supervisor, mOriginalOptions, in getOptions()
131 checkPermissions(intent, aInfo, callerApp, supervisor, mCallerOptions, in getOptions()
193 private void checkPermissions(@Nullable Intent intent, @Nullable ActivityInfo aInfo, in checkPermissions() argument
215 if (aInfo != null && taskDisplayArea != null in checkPermissions()
217 taskDisplayArea, aInfo)) { in checkPermissions()
226 if (aInfo != null && launchDisplayId != INVALID_DISPLAY in checkPermissions()
228 launchDisplayId, aInfo)) { in checkPermissions()
238 if (aInfo != null && lockTaskMode in checkPermissions()
240 UserHandle.getUserId(callingUid), aInfo.packageName)) { in checkPermissions()
DActivityStartController.java175 void startHomeActivity(Intent intent, ActivityInfo aInfo, String reason, in startHomeActivity() argument
179 if (!ActivityRecord.isResolverActivity(aInfo.name)) { in startHomeActivity()
204 .setActivityInfo(aInfo) in startHomeActivity()
419 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, resolvedTypes[i], in startActivities() local
421 aInfo = mService.mAmInternal.getActivityInfoForUser(aInfo, userId); in startActivities()
424 if (aInfo != null) { in startActivities()
427 aInfo.applicationInfo.packageName, in startActivities()
428 UserHandle.getUserId(aInfo.applicationInfo.uid)); in startActivities()
431 if (aInfo != null) { in startActivities()
432 if ((aInfo.applicationInfo.privateFlags in startActivities()
[all …]
DAlertWindowNotification.java105 final ApplicationInfo aInfo = getApplicationInfo(pm, mPackageName); in onPostNotification() local
106 final String appName = (aInfo != null) in onPostNotification()
107 ? pm.getApplicationLabel(aInfo).toString() : mPackageName; in onPostNotification()
127 if (aInfo != null) { in onPostNotification()
128 final Drawable drawable = pm.getApplicationIcon(aInfo); in onPostNotification()
DRootWindowContainer.java1516 ActivityInfo aInfo = null; in startHomeOnTaskDisplayArea() local
1519 aInfo = resolveHomeActivity(userId, homeIntent); in startHomeOnTaskDisplayArea()
1522 aInfo = info.first; in startHomeOnTaskDisplayArea()
1525 if (aInfo == null || homeIntent == null) { in startHomeOnTaskDisplayArea()
1529 if (!canStartHomeOnDisplayArea(aInfo, taskDisplayArea, allowInstrumenting)) { in startHomeOnTaskDisplayArea()
1534 homeIntent.setComponent(new ComponentName(aInfo.applicationInfo.packageName, aInfo.name)); in startHomeOnTaskDisplayArea()
1544 aInfo.applicationInfo.uid) + ":" + taskDisplayArea.getDisplayId(); in startHomeOnTaskDisplayArea()
1545 mService.getActivityStartController().startHomeActivity(homeIntent, aInfo, myReason, in startHomeOnTaskDisplayArea()
1558 ActivityInfo aInfo = null; in resolveHomeActivity() local
1562 aInfo = AppGlobals.getPackageManager().getActivityInfo(comp, flags, userId); in resolveHomeActivity()
[all …]
DActivityStartInterceptor.java150 boolean intercept(Intent intent, ResolveInfo rInfo, ActivityInfo aInfo, String resolvedType, in intercept() argument
158 mAInfo = aInfo; in intercept()
330 private Intent interceptWithConfirmCredentialsIfNeeded(ActivityInfo aInfo, int userId) { in interceptWithConfirmCredentialsIfNeeded() argument
346 newIntent.putExtra(EXTRA_PACKAGE_NAME, aInfo.packageName); in interceptWithConfirmCredentialsIfNeeded()
DActivityStackSupervisor.java634 final ActivityInfo aInfo = rInfo != null ? rInfo.activityInfo : null; in resolveActivity() local
635 if (aInfo != null) { in resolveActivity()
641 aInfo.applicationInfo.packageName, aInfo.name)); in resolveActivity()
644 if (!aInfo.processName.equals("system")) { in resolveActivity()
656 mService.mAmInternal, aInfo, startFlags, profilerInfo, in resolveActivity()
668 if (aInfo.launchToken == null && intentLaunchToken != null) { in resolveActivity()
669 aInfo.launchToken = intentLaunchToken; in resolveActivity()
672 return aInfo; in resolveActivity()
989 boolean checkStartAnyActivityPermission(Intent intent, ActivityInfo aInfo, String resultWho, in checkStartAnyActivityPermission() argument
1004 final int componentRestriction = getComponentRestrictionForCallingPackage(aInfo, in checkStartAnyActivityPermission()
[all …]
DActivityStarter.java847 ActivityInfo aInfo = request.activityInfo; in executeRequest() local
881 final int userId = aInfo != null && aInfo.applicationInfo != null in executeRequest()
882 ? UserHandle.getUserId(aInfo.applicationInfo.uid) : 0; in executeRequest()
942 if (err == ActivityManager.START_SUCCESS && aInfo == null) { in executeRequest()
955 && sourceRecord.info.applicationInfo.uid != aInfo.applicationInfo.uid) { in executeRequest()
999 boolean abort = !mSupervisor.checkStartAnyActivityPermission(intent, aInfo, resultWho, in executeRequest()
1003 callingPid, resolvedType, aInfo.applicationInfo); in executeRequest()
1023 ? options.getOptions(intent, aInfo, callerApp, mSupervisor) : null; in executeRequest()
1035 aInfo.applicationInfo.packageName); in executeRequest()
1043 if (mInterceptor.intercept(intent, rInfo, aInfo, resolvedType, inTask, callingPid, in executeRequest()
[all …]
DActivityRecord.java1042 void updateApplicationInfo(ApplicationInfo aInfo) { in updateApplicationInfo() argument
1043 info.applicationInfo = aInfo; in updateApplicationInfo()
1492 ActivityInfo aInfo, Configuration _configuration, ActivityRecord _resultTo, in ActivityRecord() argument
1501 info = aInfo; in ActivityRecord()
1525 mShowWhenLocked = (aInfo.flags & ActivityInfo.FLAG_SHOW_WHEN_LOCKED) != 0; in ActivityRecord()
1526 mInheritShownWhenLocked = (aInfo.privateFlags & FLAG_INHERIT_SHOW_WHEN_LOCKED) != 0; in ActivityRecord()
1527 mTurnScreenOn = (aInfo.flags & FLAG_TURN_SCREEN_ON) != 0; in ActivityRecord()
1531 realTheme = aInfo.applicationInfo.targetSdkVersion < HONEYCOMB in ActivityRecord()
1604 stateNotNeeded = (aInfo.flags & FLAG_STATE_NOT_NEEDED) != 0; in ActivityRecord()
1605 nonLocalizedLabel = aInfo.nonLocalizedLabel; in ActivityRecord()
[all …]
/frameworks/base/core/java/android/app/
DLoadedApk.java171 public LoadedApk(ActivityThread activityThread, ApplicationInfo aInfo, in LoadedApk() argument
176 setApplicationInfo(aInfo); in LoadedApk()
177 mPackageName = aInfo.packageName; in LoadedApk()
331 public void updateApplicationInfo(@NonNull ApplicationInfo aInfo, in updateApplicationInfo() argument
333 setApplicationInfo(aInfo); in updateApplicationInfo()
336 makePaths(mActivityThread, aInfo, newPaths); in updateApplicationInfo()
375 mAppComponentFactory = createAppFactory(aInfo, mDefaultClassLoader); in updateApplicationInfo()
378 private void setApplicationInfo(ApplicationInfo aInfo) { in setApplicationInfo() argument
380 aInfo = adjustNativeLibraryPaths(aInfo); in setApplicationInfo()
381 mApplicationInfo = aInfo; in setApplicationInfo()
[all …]
DLocalActivityManager.java308 ActivityInfo aInfo = null; in startActivity() local
320 aInfo = r.activityInfo; in startActivity()
323 if (aInfo == null) { in startActivity()
324 aInfo = mActivityThread.resolveActivityInfo(intent); in startActivity()
346 if (aInfo == r.activityInfo || in startActivity()
347 (aInfo.name.equals(r.activityInfo.name) && in startActivity()
348 aInfo.packageName.equals(r.activityInfo.packageName))) { in startActivity()
349 if (aInfo.launchMode != ActivityInfo.LAUNCH_MULTIPLE || in startActivity()
384 r.activityInfo = aInfo; in startActivity()
DActivityManagerInternal.java304 public abstract ActivityInfo getActivityInfoForUser(ActivityInfo aInfo, @UserIdInt int userId); in getActivityInfoForUser() argument
318 ApplicationInfo aInfo, String parentShortComponentName, Object parentProc, in inputDispatchingTimedOut() argument
353 public abstract void setDebugFlagsForStartingActivity(ActivityInfo aInfo, int startFlags, in setDebugFlagsForStartingActivity() argument
DAppComponentFactory.java57 @NonNull ApplicationInfo aInfo) { in instantiateClassLoader() argument
/frameworks/base/services/core/java/com/android/server/am/
DAnrHelper.java58 ApplicationInfo aInfo, String parentShortComponentName, in appNotResponding() argument
61 mAnrRecords.add(new AnrRecord(anrProcess, activityShortComponentName, aInfo, in appNotResponding()
125 ApplicationInfo aInfo, String parentShortComponentName, in AnrRecord() argument
131 mAppInfo = aInfo; in AnrRecord()
DAppNotRespondingDialog.java62 CharSequence name1 = data.aInfo != null in AppNotRespondingDialog()
63 ? data.aInfo.loadLabel(context.getPackageManager()) in AppNotRespondingDialog()
183 final ApplicationInfo aInfo; field in AppNotRespondingDialog.Data
186 Data(ProcessRecord proc, ApplicationInfo aInfo, boolean aboveSystem) { in Data() argument
188 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()
106 String label = aInfo.loadLabel(packageManager).toString(); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbPermissionActivity.java75 ApplicationInfo aInfo; in onCreate() local
77 aInfo = packageManager.getApplicationInfo(mPackageName, 0); in onCreate()
83 String appName = aInfo.loadLabel(packageManager).toString(); in onCreate()
97 this, android.Manifest.permission.RECORD_AUDIO, -1, aInfo.uid, in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DBlockedAppActivity.java69 ApplicationInfo aInfo = in getAppLabel() local
71 return aInfo.loadLabel(pm); in getAppLabel()
/frameworks/native/libs/gui/tests/
DEndToEndNativeInputTest.cpp207 InputApplicationInfo aInfo; in populateInputInfo() local
208 aInfo.token = new BBinder(); in populateInputInfo()
209 aInfo.name = "Test app info"; in populateInputInfo()
210 aInfo.dispatchingTimeout = seconds_to_nanoseconds(5); in populateInputInfo()
212 mInputInfo.applicationInfo = aInfo; in populateInputInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOverlayPackagesProviderTest.java323 ApplicationInfo aInfo = new ApplicationInfo(); in setSystemInputMethods() local
324 aInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setSystemInputMethods()
326 serviceInfo.applicationInfo = aInfo; in setSystemInputMethods()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java345 PackageInfo aInfo = PackageInfoUtils.generate(a, new int[]{}, 0, 0, 0, in assertPackagesEqual() local
349 assertApplicationInfoEqual(aInfo.applicationInfo, bInfo.applicationInfo); in assertPackagesEqual()
487 ServiceInfo aInfo = PackageInfoUtils.generateServiceInfo(aPkg, a, 0, in assertServicesEqual() local
491 assertApplicationInfoEqual(aInfo.applicationInfo, bInfo.applicationInfo); in assertServicesEqual()
514 ActivityInfo aInfo = PackageInfoUtils.generateActivityInfo(aPkg, a, 0, in assertActivitiesEqual() local
518 assertApplicationInfoEqual(aInfo.applicationInfo, bInfo.applicationInfo); in assertActivitiesEqual()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java628 ApplicationInfo aInfo = mContext.getPackageManager().getApplicationInfo(packageName, 0); in isCameraPermissionGranted() local
630 if (aInfo.uid != uid) { in isCameraPermissionGranted()
634 targetSdkVersion = aInfo.targetSdkVersion; in isCameraPermissionGranted()
673 ApplicationInfo aInfo = mContext.getPackageManager().getApplicationInfo(packageName, 0); in requestPermissionDialog() local
674 if (aInfo.uid != uid) { in requestPermissionDialog()

12