Home
last modified time | relevance | path

Searched refs:caller (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java222 final CallerIdentity caller = getCaller();
223 if (!hasGrant(alias, caller)) {
227 final int granteeUid = caller.mUid;
260 final CallerIdentity caller = getCaller();
261 if (!hasGrant(alias, caller) && !isSystemUid(caller)) {
279 final CallerIdentity caller = getCaller();
280 if (!hasGrant(alias, caller) && !isSystemUid(caller)) {
429 private boolean hasGrant(String alias, CallerIdentity caller) {
430 return hasGrant(alias, caller.mUid);
447 final CallerIdentity caller = getCaller();
[all …]
/packages/modules/NetworkStack/src/com/android/server/util/
DPermissionUtil.java46 final int caller = getCallingUid(); in enforceNetworkStackCallingPermission() local
47 if (caller == Process.SYSTEM_UID) { in enforceNetworkStackCallingPermission()
52 if (caller != Process.myUid() // apps with NETWORK_STACK_UID in enforceNetworkStackCallingPermission()
53 && UserHandle.getAppId(caller) != Process.BLUETOOTH_UID in enforceNetworkStackCallingPermission()
54 && !isTestUid(caller)) { in enforceNetworkStackCallingPermission()
55 throw new SecurityException("Invalid caller: " + caller); in enforceNetworkStackCallingPermission()
120 final int caller = getCallingUid(); in checkDumpPermission() local
121 if (caller != Process.myUid() && caller != Process.SYSTEM_UID && caller != Process.ROOT_UID in checkDumpPermission()
122 && caller != Process.SHELL_UID) { in checkDumpPermission()
123 throw new SecurityException("No dump permissions for caller: " + caller); in checkDumpPermission()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DRenderingRequest.java51 int type, RenderingRequestCaller caller) { in post() argument
52 RenderingRequest.post(context, source, preset, type, caller, null, null); in post()
56 RenderingRequestCaller caller, Rect bounds, Rect destination) { in post() argument
59 || preset == null || caller == null) { in post()
61 + " or preset: " + preset + " or caller: " + caller); in post()
91 request.setCaller(caller); in post()
97 RenderingRequestCaller caller) { in postIconRequest() argument
98 if (preset == null || caller == null) { in postIconRequest()
100 + preset + " or caller: " + caller); in postIconRequest()
109 request.setCaller(caller); in postIconRequest()
[all …]
DProcessingService.java95 RenderingRequestCaller caller) { in postHighresRenderingRequest() argument
103 request.setCaller(caller); in postHighresRenderingRequest()
109 RenderingRequestCaller caller) { in postFullresRenderingRequest() argument
116 request.setCaller(caller); in postFullresRenderingRequest()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBaseSettingsFragment.java46 public final boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, in onPreferenceStartFragment() argument
61 f.setTargetFragment(caller, 0); in onPreferenceStartFragment()
85 public final boolean onPreferenceStartScreen(PreferenceFragmentCompat caller, in onPreferenceStartScreen() argument
99 public boolean onPreferenceDisplayDialog(@NonNull PreferenceFragmentCompat caller, in onPreferenceDisplayDialog() argument
108 f.setTargetFragment(caller, 0); in onPreferenceDisplayDialog()
112 return super.onPreferenceDisplayDialog(caller, pref); in onPreferenceDisplayDialog()
/packages/apps/Settings/src/com/android/settings/search/
DSearchFeatureProviderImpl.java40 public void verifyLaunchSearchResultPageCaller(Context context, ComponentName caller) { in verifyLaunchSearchResultPageCaller() argument
41 if (caller == null) { in verifyLaunchSearchResultPageCaller()
45 final String packageName = caller.getPackageName(); in verifyLaunchSearchResultPageCaller()
49 isSignatureAllowlisted(context, caller.getPackageName()); in verifyLaunchSearchResultPageCaller()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java351 final SettingsPreferenceFragment caller = mock(SettingsPreferenceFragment.class); in startAppInfoFragment_noCrashOnNullArgs() local
353 when(caller.getActivity()).thenReturn(sa); in startAppInfoFragment_noCrashOnNullArgs()
354 when(caller.getContext()).thenReturn(sa); in startAppInfoFragment_noCrashOnNullArgs()
359 caller, appEntry); in startAppInfoFragment_noCrashOnNullArgs()
364 final SettingsPreferenceFragment caller = mock(SettingsPreferenceFragment.class); in startAppInfoFragment_includesNewAndOldArgs() local
366 when(caller.getContext()).thenReturn(sa); in startAppInfoFragment_includesNewAndOldArgs()
374 caller, appEntry); in startAppInfoFragment_includesNewAndOldArgs()
378 verify(caller).startActivityForResult(intent.capture(), any(Integer.class)); in startAppInfoFragment_includesNewAndOldArgs()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionControlPreference.java74 @NonNull AppPermissionGroup group, @NonNull String caller) { in PermissionControlPreference() argument
75 this(context, group, caller, 0); in PermissionControlPreference()
79 @NonNull AppPermissionGroup group, @NonNull String caller, long sessionId) { in PermissionControlPreference() argument
80 this(context, group.getApp().packageName, group.getName(), group.getUser(), caller, in PermissionControlPreference()
86 @NonNull String caller, long sessionId, String granted, boolean hasNavGraph) { in PermissionControlPreference() argument
95 mCaller = caller; in PermissionControlPreference()
DAppPermissionFragment.java142 @NonNull UserHandle userHandle, @Nullable String caller, long sessionId, @Nullable in createArgs() argument
152 arguments.putString(EXTRA_CALLER_NAME, caller); in createArgs()
217 String caller = getArguments().getString(EXTRA_CALLER_NAME); in onCreateView() local
222 setBottomLinkState(footer1Link, caller, Intent.ACTION_MANAGE_APP_PERMISSIONS); in onCreateView()
226 setBottomLinkState(footer2Link, caller, Intent.ACTION_MANAGE_PERMISSION_APPS); in onCreateView()
270 private void setBottomLinkState(TextView view, String caller, String action) { in setBottomLinkState() argument
271 if ((Objects.equals(caller, AppPermissionGroupsFragment.class.getName()) in setBottomLinkState()
273 || (Objects.equals(caller, PermissionAppsFragment.class.getName()) in setBottomLinkState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java137 Activity caller, InstrumentedPreferenceFragment fragment, in startBatteryDetailPage() argument
155 startBatteryDetailPage(caller, fragment, launchArgs); in startBatteryDetailPage()
159 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
173 startBatteryDetailPage(caller, fragment, launchArgs); in startBatteryDetailPage()
176 private static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
198 new SubSettingLauncher(caller) in startBatteryDetailPage()
215 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
218 final PackageManager packageManager = caller.getPackageManager(); in startBatteryDetailPage()
227 new SubSettingLauncher(caller) in startBatteryDetailPage()
DHighPowerDetail.java190 public static void show(Fragment caller, int uid, String packageName, int requestCode) { in show() argument
196 fragment.setTargetFragment(caller, requestCode); in show()
197 fragment.show(caller.getFragmentManager(), HighPowerDetail.class.getSimpleName()); in show()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/overlay/
DFeatureFactoryImplTwoPanel.java127 PreferenceFragmentCompat caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
132 public Fragment onCreatePreviewFragment(@NonNull Fragment caller, Preference pref) { in onCreatePreviewFragment() argument
140 f.setTargetFragment(caller, 0); in onCreatePreviewFragment()
143 return super.onCreatePreviewFragment(caller, pref); in onCreatePreviewFragment()
/packages/apps/Settings/src/com/android/settings/homepage/
DTopLevelSettings.java87 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
91 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
92 ? ((Instrumentable) caller).getMetricsCategory() in onPreferenceStartFragment()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java206 StackTraceElement caller = DebugUtils.getCaller(2); in fail() local
207 if (caller != null) { in fail()
210 LogUtil.e(LogUtil.BUGLE_TAG, "\tat " + caller.toString()); in fail()
DDebugUtils.java387 StackTraceElement caller = getCaller(1);
388 if (caller == null) {
391 String className = caller.getClassName();
397 LogUtil.d(tag, className + "." + caller.getMethodName());
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java81 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
91 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
92 ? ((Instrumentable) caller).getMetricsCategory() in onPreferenceStartFragment()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailNotifier.java124 int caller = Binder.getCallingUid(); in getCallingPackages() local
125 if (caller == 0) { in getCallingPackages()
128 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
DDbModifierWithNotification.java390 int caller = Binder.getCallingUid(); in getCallingPackages() local
391 if (caller == 0) { in getCallingPackages()
394 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DParameterIconStyle.java30 public void getIcon(int index, BitmapCaller caller) { in getIcon() argument
31 caller.available(mBitmaps[index]); in getIcon()
DBasicParameterStyle.java93 public void getIcon(int index, BitmapCaller caller) { in getIcon() argument
94 mEditor.computeIcon(index, caller); in getIcon()
/packages/apps/Dialer/java/com/android/dialer/logging/
Dcontact_lookup_result.proto65 // via Cequint caller ID.
75 // Number was identified by manually-entered caller ID data
103 // Number was identified via Cequint caller ID.
/packages/apps/TV/src/com/android/tv/
DMainActivityWrapper.java62 void notifyCurrentChannelChange(@NonNull MainActivity caller, @Nullable Channel channel) { in notifyCurrentChannelChange() argument
63 if (mActivity == caller) { in notifyCurrentChannelChange()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragment.java518 SettingsPreferenceFragment caller, AppEntry appEntry) { in startAppInfoFragment() argument
525 new SubSettingLauncher(caller.getContext()) in startAppInfoFragment()
529 .setResultListener(caller, SUB_INFO_FRAGMENT) in startAppInfoFragment()
530 .setSourceMetricsCategory(caller.getMetricsCategory()) in startAppInfoFragment()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DTwoPanelSettingsFragment.java230 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
395 @NonNull PreferenceFragmentCompat caller, Preference pref) { in onPreferenceDisplayDialog()
402 if (caller == null) { in onPreferenceDisplayDialog()
1195 public Fragment onCreatePreviewFragment(Fragment caller, Preference preference) { in onCreatePreviewFragment() argument
1224 if (f != null && caller != null) { in onCreatePreviewFragment()
1225 f.setTargetFragment(caller, 0); in onCreatePreviewFragment()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorDraw.java274 public void computeIcon(int index, BitmapCaller caller) { in computeIcon() argument
276 caller.available(bitmap); in computeIcon()

123