Home
last modified time | relevance | path

Searched refs:activityToken (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/src/com/android/settings/password/
DPasswordUtils.java41 public static boolean isCallingAppPermitted(Context context, IBinder activityToken, in isCallingAppPermitted() argument
45 ActivityManager.getService().getLaunchedFromUid(activityToken)) in isCallingAppPermitted()
58 public static CharSequence getCallingAppLabel(Context context, IBinder activityToken) { in getCallingAppLabel() argument
59 String pkg = getCallingAppPackageName(activityToken); in getCallingAppLabel()
71 public static String getCallingAppPackageName(IBinder activityToken) { in getCallingAppPackageName() argument
74 pkg = ActivityManager.getService().getLaunchedFromPackage(activityToken); in getCallingAppPackageName()
82 public static void crashCallingApplication(IBinder activityToken, String message) { in crashCallingApplication() argument
85 int uid = am.getLaunchedFromUid(activityToken); in crashCallingApplication()
90 getCallingAppPackageName(activityToken), in crashCallingApplication()
DSetNewPasswordActivity.java86 final IBinder activityToken = getActivityToken(); in onCreate() local
87 mCallerAppName = (String) PasswordUtils.getCallingAppLabel(this, activityToken); in onCreate()
91 this, activityToken, REQUEST_PASSWORD_COMPLEXITY); in onCreate()
97 PasswordUtils.crashCallingApplication(activityToken, in onCreate()
DSetupChooseLockGeneric.java84 IBinder activityToken = getActivityToken(); in onCreate() local
86 this, activityToken, REQUEST_PASSWORD_COMPLEXITY); in onCreate()
88 PasswordUtils.crashCallingApplication(activityToken, in onCreate()
DSetNewPasswordController.java70 IBinder activityToken) { in create() argument
77 final int callingUserId = Utils.getSecureTargetUser(activityToken, in create()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DPasswordUtils.java41 public static boolean isCallingAppPermitted(Context context, IBinder activityToken, in isCallingAppPermitted() argument
45 ActivityManager.getService().getLaunchedFromUid(activityToken)) in isCallingAppPermitted()
58 public static CharSequence getCallingAppLabel(Context context, IBinder activityToken) { in getCallingAppLabel() argument
59 String pkg = getCallingAppPackageName(activityToken); in getCallingAppLabel()
71 public static String getCallingAppPackageName(IBinder activityToken) { in getCallingAppPackageName() argument
74 pkg = ActivityManager.getService().getLaunchedFromPackage(activityToken); in getCallingAppPackageName()
82 public static void crashCallingApplication(IBinder activityToken, String message) { in crashCallingApplication() argument
85 int uid = am.getLaunchedFromUid(activityToken); in crashCallingApplication()
90 getCallingAppPackageName(activityToken), in crashCallingApplication()
DSetNewPasswordActivity.java81 final IBinder activityToken = getActivityToken(); in onCreate() local
82 mCallerAppName = (String) PasswordUtils.getCallingAppLabel(this, activityToken); in onCreate()
86 this, activityToken, REQUEST_PASSWORD_COMPLEXITY); in onCreate()
92 PasswordUtils.crashCallingApplication(activityToken, in onCreate()
DSetupChooseLockGeneric.java83 IBinder activityToken = getActivityToken(); in onCreate() local
85 this, activityToken, REQUEST_PASSWORD_COMPLEXITY); in onCreate()
87 PasswordUtils.crashCallingApplication(activityToken, in onCreate()
DSetNewPasswordController.java70 IBinder activityToken) { in create() argument
77 final int callingUserId = Utils.getSecureTargetUser(activityToken, in create()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowPasswordUtils.java45 protected static boolean isCallingAppPermitted(Context context, IBinder activityToken, in isCallingAppPermitted() argument
61 protected static String getCallingAppLabel(Context context, IBinder activityToken) { in getCallingAppLabel() argument
70 protected static String getCallingAppPackageName(IBinder activityToken) { in getCallingAppPackageName() argument
/packages/apps/Settings/src/com/android/settings/
DUtils.java457 public static UserHandle getSecureTargetUser(IBinder activityToken, in getSecureTargetUser() argument
462 String launchedFromPackage = am.getLaunchedFromPackage(activityToken); in getSecureTargetUser()
466 am.getLaunchedFromUid(activityToken))); in getSecureTargetUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java462 public static UserHandle getSecureTargetUser(IBinder activityToken, in getSecureTargetUser() argument
467 String launchedFromPackage = am.getLaunchedFromPackage(activityToken); in getSecureTargetUser()
471 am.getLaunchedFromUid(activityToken))); in getSecureTargetUser()