Home
last modified time | relevance | path

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

123

/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java270 private static void assertEmailContentEqual(String caller, EmailContent expect, in assertEmailContentEqual() argument
276 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual()
277 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual()
285 public static void assertAccountEqual(String caller, Account expect, Account actual) { in assertAccountEqual() argument
290 assertEmailContentEqual(caller, expect, actual); in assertAccountEqual()
291 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual()
292 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual()
293 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual()
295 assertEquals(caller + " mSyncLookback", expect.mSyncLookback, actual.mSyncLookback); in assertAccountEqual()
296 assertEquals(caller + " mSyncInterval", expect.mSyncInterval, actual.mSyncInterval); in assertAccountEqual()
[all …]
/packages/modules/NetworkStack/src/com/android/server/util/
DPermissionUtil.java38 final int caller = getCallingUid(); in checkNetworkStackCallingPermission() local
39 if (caller == Process.SYSTEM_UID) { in checkNetworkStackCallingPermission()
44 if (UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) { in checkNetworkStackCallingPermission()
45 throw new SecurityException("Invalid caller: " + caller); in checkNetworkStackCallingPermission()
74 final int caller = getCallingUid(); in checkDumpPermission() local
75 if (caller != Process.SYSTEM_UID && caller != Process.ROOT_UID in checkDumpPermission()
76 && caller != Process.SHELL_UID) { in checkDumpPermission()
77 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/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/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/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.java78 public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { in onPreferenceStartFragment() argument
88 .setSourceMetricsCategory(caller instanceof Instrumentable in onPreferenceStartFragment()
89 ? ((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.java383 StackTraceElement caller = getCaller(1);
384 if (caller == null) {
387 String className = caller.getClassName();
393 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/Dialer/java/com/android/dialer/logging/
Dcontact_lookup_result.proto66 // via Cequint caller ID.
76 // Number was identified by manually-entered caller ID data
104 // Number was identified via Cequint caller ID.
/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/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()

123