Home
last modified time | relevance | path

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

123

/packages/modules/NetworkStack/src/com/android/server/util/
DPermissionUtil.java38 final int caller = getCallingUid(); in enforceNetworkStackCallingPermission() local
39 if (caller == Process.SYSTEM_UID) { in enforceNetworkStackCallingPermission()
44 if (caller != Process.myUid() && // apps with NETWORK_STACK_UID in enforceNetworkStackCallingPermission()
45 UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) { in enforceNetworkStackCallingPermission()
46 throw new SecurityException("Invalid caller: " + caller); in enforceNetworkStackCallingPermission()
75 final int caller = getCallingUid(); in checkDumpPermission() local
76 if (caller != Process.myUid() && caller != Process.SYSTEM_UID && caller != Process.ROOT_UID in checkDumpPermission()
77 && caller != Process.SHELL_UID) { in checkDumpPermission()
78 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.java38 public final boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
41 f.setTargetFragment(caller, 0); in onPreferenceStartFragment()
51 public final boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
56 public boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref) { in onPreferenceDisplayDialog() argument
64 f.setTargetFragment(caller, 0); in onPreferenceDisplayDialog()
68 return super.onPreferenceDisplayDialog(caller, pref); in onPreferenceDisplayDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DAdvancedPowerUsageDetail.java105 static void startBatteryDetailPage(Activity caller, BatteryUtils batteryUtils, in startBatteryDetailPage() argument
139 new SubSettingLauncher(caller) in startBatteryDetailPage()
156 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
159 startBatteryDetailPage(caller, BatteryUtils.getInstance(caller), fragment, helper, which, in startBatteryDetailPage()
163 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
166 final PackageManager packageManager = caller.getPackageManager(); in startBatteryDetailPage()
175 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/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java105 static void startBatteryDetailPage(Activity caller, BatteryUtils batteryUtils, in startBatteryDetailPage() argument
139 new SubSettingLauncher(caller) in startBatteryDetailPage()
156 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
159 startBatteryDetailPage(caller, BatteryUtils.getInstance(caller), fragment, helper, which, in startBatteryDetailPage()
163 public static void startBatteryDetailPage(Activity caller, in startBatteryDetailPage() argument
166 final PackageManager packageManager = caller.getPackageManager(); in startBatteryDetailPage()
175 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/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/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 isSignatureWhitelisted(context, caller.getPackageName()); in verifyLaunchSearchResultPageCaller()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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 isSignatureWhitelisted(context, caller.getPackageName()); in verifyLaunchSearchResultPageCaller()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionControlPreference.java54 @NonNull AppPermissionGroup group, @NonNull String caller) { in PermissionControlPreference() argument
55 this(context, group, caller, 0); in PermissionControlPreference()
59 @NonNull AppPermissionGroup group, @NonNull String caller, long sessionId) { in PermissionControlPreference() argument
72 intent.putExtra(AppPermissionActivity.EXTRA_CALLER_NAME, caller); in PermissionControlPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java66 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
76 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
77 ? ((Instrumentable) caller).getMetricsCategory() in onPreferenceStartFragment()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/
DTopLevelSettings.java88 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
92 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
93 ? ((Instrumentable) caller).getMetricsCategory() in onPreferenceStartFragment()
/packages/apps/Settings/src/com/android/settings/homepage/
DTopLevelSettings.java88 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
92 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
93 ? ((Instrumentable) caller).getMetricsCategory() in onPreferenceStartFragment()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java79 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
89 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
90 ? ((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/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailNotifier.java107 int caller = Binder.getCallingUid(); in getCallingPackages() local
108 if (caller == 0) { in getCallingPackages()
111 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/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DQuickSettings.java50 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
55 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
/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.java487 SettingsPreferenceFragment caller, AppEntry appEntry) { in startAppInfoFragment() argument
494 new SubSettingLauncher(caller.getContext()) in startAppInfoFragment()
498 .setResultListener(caller, SUB_INFO_FRAGMENT) in startAppInfoFragment()
499 .setSourceMetricsCategory(caller.getMetricsCategory()) in startAppInfoFragment()

123