Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 25 of 1624) sorted by relevance

12345678910>>...65

/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java596 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled() argument
614 @NonNull Intent intent) { in onDisableRequested() argument
630 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled() argument
648 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged() argument
662 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged() argument
664 onPasswordChanged(context, intent); in onPasswordChanged()
679 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed() argument
693 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed() argument
695 onPasswordFailed(context, intent); in onPasswordFailed()
710 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded() argument
[all …]
DDelegatedAdminReceiver.java87 @NonNull Intent intent, int uid, @Nullable Uri uri, @Nullable String alias) { in onChoosePrivateKeyAlias() argument
117 public void onNetworkLogsAvailable(@NonNull Context context, @NonNull Intent intent, in onNetworkLogsAvailable() argument
145 public void onSecurityLogsAvailable(@NonNull Context context, @NonNull Intent intent) { in onSecurityLogsAvailable() argument
154 public final void onReceive(@NonNull Context context, @NonNull Intent intent) { in onReceive() argument
155 String action = intent.getAction(); in onReceive()
158 int uid = intent.getIntExtra(EXTRA_CHOOSE_PRIVATE_KEY_SENDER_UID, -1); in onReceive()
159 Uri uri = intent.getParcelableExtra(EXTRA_CHOOSE_PRIVATE_KEY_URI); in onReceive()
160 String alias = intent.getStringExtra(EXTRA_CHOOSE_PRIVATE_KEY_ALIAS); in onReceive()
161 String chosenAlias = onChoosePrivateKeyAlias(context, intent, uid, uri, alias); in onReceive()
164 long batchToken = intent.getLongExtra(EXTRA_NETWORK_LOGS_TOKEN, -1); in onReceive()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DIntentCreatorTest.java45 Intent intent = IntentCreator.getTextEditorIntent(getContext()); in test_getTextEditorIntent() local
47 intent.getComponent()); in test_getTextEditorIntent()
48 assertFlags(intent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in test_getTextEditorIntent()
57 Intent intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent() local
59 assertEquals(null, intent.getComponent()); in test_getRemoteCopyIntent()
60 assertFlags(intent, EXTERNAL_INTENT_FLAGS); in test_getRemoteCopyIntent()
61 assertEquals(clipData, intent.getClipData()); in test_getRemoteCopyIntent()
69 intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent()
70 assertEquals(fakeComponent, intent.getComponent()); in test_getRemoteCopyIntent()
78 Intent intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent() local
[all …]
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java225 final Intent intent = new Intent("com.android.systemui.demo"); in exitDemoMode() local
226 intent.putExtra("command", "exit"); in exitDemoMode()
227 mContext.sendBroadcast(intent); in exitDemoMode()
234 final Intent intent = new Intent("com.android.systemui.demo");
235 intent.putExtra("command", "status");
236 intent.putExtra("volume", mStatusSlots < 1 ? "hide"
238 intent.putExtra("bluetooth", mStatusSlots < 3 ? "hide"
240 intent.putExtra("location", mStatusSlots < 5 ? "hide" : "show");
241 intent.putExtra("alarm", mStatusSlots < 6 ? "hide" : "show");
242 intent.putExtra("sync", mStatusSlots < 7 ? "hide" : "show");
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityStarterDelegate.java51 public void startPendingIntentDismissingKeyguard(PendingIntent intent) { in startPendingIntentDismissingKeyguard() argument
53 starter -> starter.startPendingIntentDismissingKeyguard(intent)); in startPendingIntentDismissingKeyguard()
57 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
61 intent, intentSentUiThreadCallback)); in startPendingIntentDismissingKeyguard()
65 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
69 intent, intentSentUiThreadCallback, associatedView)); in startPendingIntentDismissingKeyguard()
73 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
78 intent, intentSentUiThreadCallback, animationController)); in startPendingIntentDismissingKeyguard()
82 public void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, in startActivity() argument
85 starter -> starter.startActivity(intent, onlyProvisioned, dismissShade, flags)); in startActivity()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java75 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast() argument
76 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) { in dispatchBroadcast()
80 mReceiver.onReceive(context, intent); in dispatchBroadcast()
82 mHandler.post(() -> mReceiver.onReceive(context, intent)); in dispatchBroadcast()
86 set(intent); in dispatchBroadcast()
112 final Intent intent = get(timeout, unit); in assertNotReceived() local
113 throw new AssertionError("Received intent: " + intent); in assertNotReceived()
176 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
181 if (interceptor.dispatchBroadcast(intent)) { in sendBroadcast()
189 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DWizardManagerHelperTest.java49 final Intent intent = new Intent("test.intent.ACTION"); in testGetNextIntent() local
50 intent.putExtra("scriptUri", "android-resource://test-script"); in testGetNextIntent()
51 intent.putExtra("actionId", "test_action_id"); in testGetNextIntent()
52 intent.putExtra("theme", "test_theme"); in testGetNextIntent()
53 intent.putExtra("ignoreExtra", "poof"); // extra is ignored because it's not known in testGetNextIntent()
58 final Intent nextIntent = WizardManagerHelper.getNextIntent(intent, Activity.RESULT_OK, data); in testGetNextIntent()
84 final Intent intent = new Intent(); in testIsSetupWizardTrue() local
85 intent.putExtra("firstRun", true); in testIsSetupWizardTrue()
87 .that(WizardManagerHelper.isSetupWizardIntent(intent)) in testIsSetupWizardTrue()
93 final Intent intent = new Intent(); in testIsDeferredSetupTrue() local
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAvatarPhotoControllerTest.java119 Intent intent = new Intent(); in takePhotoIsFollowedByCrop() local
120 intent.setData(Uri.parse( in takePhotoIsFollowedByCrop()
123 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in takePhotoIsFollowedByCrop()
133 Intent intent = new Intent(); in takePhotoIsNotFollowedByCropWhenResultCodeNotOk() local
134 intent.setData(Uri.parse( in takePhotoIsNotFollowedByCropWhenResultCodeNotOk()
137 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_CANCELED, intent); in takePhotoIsNotFollowedByCropWhenResultCodeNotOk()
147 Intent intent = new Intent(); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned() local
148 intent.setData(mTakePhotoUri); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned()
150 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned()
160 Intent intent = new Intent(); in choosePhotoIsFollowedByCrop() local
[all …]
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DActivityStarter.java35 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard() argument
41 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
48 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
55 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
62 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, int flags); in startActivity() argument
63 void startActivity(Intent intent, boolean dismissShade); in startActivity() argument
65 default void startActivity(Intent intent, boolean dismissShade, in startActivity() argument
67 startActivity(intent, dismissShade, animationController, in startActivity()
71 void startActivity(Intent intent, boolean dismissShade, in startActivity() argument
74 void startActivity(Intent intent, boolean dismissShade, in startActivity() argument
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelperTest.java45 Intent intent = new Intent(); in testGetNextIntentWithNullData() local
47 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1); in testGetNextIntentWithNullData()
58 Intent intent = new Intent(); in testGetNextIntentWithData() local
62 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1, data); in testGetNextIntentWithData()
99 Intent intent = new Intent(); in testIsSetupWizardIntentTrue() local
100 intent.putExtra(CarWizardManagerHelper.EXTRA_IS_FIRST_RUN, true); in testIsSetupWizardIntentTrue()
102 assertThat(CarWizardManagerHelper.isSetupWizardIntent(intent)).isTrue(); in testIsSetupWizardIntentTrue()
110 Intent intent = new Intent(); in testIsSetupWizardIntentFalse() local
111 intent.putExtra(CarWizardManagerHelper.EXTRA_IS_FIRST_RUN, false); in testIsSetupWizardIntentFalse()
113 assertThat(CarWizardManagerHelper.isSetupWizardIntent(intent)).isFalse(); in testIsSetupWizardIntentFalse()
[all …]
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java89 Intent intent = new Intent(ActivityTestMain.this, SpamActivity.class);
95 startActivity(intent, options);
100 Intent intent = new Intent(ActivityTestMain.this, AlarmSpamReceiver.class);
101 intent.setAction("com.example.SPAM_ALARM=" + when);
103 0, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED);
109 Intent intent = new Intent(ActivityTestMain.this, SlowReceiver.class);
110 intent.setAction(SLOW_RECEIVER_ACTION);
111 intent.putExtra(SLOW_RECEIVER_EXTRA, 1);
112 sendOrderedBroadcast(intent, null, mSlowReceiverCompletion, mHandler,
114 intent.putExtra(SLOW_RECEIVER_EXTRA, 2);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java284 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
285 spiedContext.sendBroadcast(intent); in sendBroadcast()
289 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument
290 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast()
294 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions() argument
295 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions); in sendBroadcastMultiplePermissions()
299 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions, in sendBroadcastMultiplePermissions() argument
301 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions, options); in sendBroadcastMultiplePermissions()
305 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument
307 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java156 Intent intent = new Intent(DemoMode.ACTION_DEMO); in startDemoMode() local
160 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK); in startDemoMode()
170 intent.putExtra("hhmm", demoTime); in startDemoMode()
171 getContext().sendBroadcast(intent); in startDemoMode()
173 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK); in startDemoMode()
174 intent.putExtra("wifi", "show"); in startDemoMode()
175 intent.putExtra("mobile", "show"); in startDemoMode()
176 intent.putExtra("sims", "1"); in startDemoMode()
177 intent.putExtra("nosim", "false"); in startDemoMode()
178 intent.putExtra("level", "4"); in startDemoMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java74 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRegister() local
75 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
76 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testRegister()
79 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testRegister()
80 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, testUri); in testRegister()
82 mRelayHandler.handleIntent(intent); in testRegister()
94 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testUnregister() local
95 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
96 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testUnregister()
99 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testUnregister()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java109 Intent intent = new Intent(action, null); in makeBroadcastIntent() local
110 intent.putExtra("caller", mCallTarget); in makeBroadcastIntent()
111 return intent; in makeBroadcastIntent()
119 public final void gotReceive(String name, Intent intent) { in gotReceive() argument
133 if (mExpectedData[i].equals(intent.getStringExtra("test"))) { in gotReceive()
145 + intent.getStringExtra("test")); in gotReceive()
148 + intent.getStringExtra("test")); in gotReceive()
195 public void onRegisteredReceiver(Intent intent) { in onRegisteredReceiver() argument
196 gotReceive(RECEIVER_REG, intent); in onRegisteredReceiver()
226 public void onReceive(Context context, Intent intent) {
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DBroadcastSenderTest.kt61 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcast_dispatchesWithWakelock() constant
62 broadcastSender.sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock()
65 verify(mockContext).sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock()
71 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastWithPermission_dispatchesWithWakelock() constant
73 broadcastSender.sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock()
76 verify(mockContext).sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock()
82 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastAsUser_dispatchesWithWakelock() constant
83 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock()
86 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock()
92 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastAsUserWithPermission_dispatchesWithWakelock() constant
[all …]
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelper.java60 Intent intent = new Intent(ACTION_NEXT); in getNextIntent() local
61 copyWizardManagerExtras(originalIntent, intent); in getNextIntent()
62 intent.putExtra(EXTRA_RESULT_CODE, resultCode); in getNextIntent()
64 intent.putExtras(data.getExtras()); in getNextIntent()
67 return intent; in getNextIntent()
92 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent() argument
93 return intent.getBooleanExtra(EXTRA_IS_FIRST_RUN, false); in isSetupWizardIntent()
102 public static boolean isDeferredIntent(Intent intent) { in isDeferredIntent() argument
103 return intent.getBooleanExtra(EXTRA_IS_DEFERRED_SETUP, false); in isDeferredIntent()
112 public static boolean isDealerIntent(Intent intent) { in isDealerIntent() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAvatarPhotoController.java61 void startActivityForResult(Intent intent, int resultCode); in startActivityForResult() argument
63 boolean startSystemActivityForResult(Intent intent, int resultCode); in startSystemActivityForResult() argument
154 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE_SECURE); in takePhoto() local
155 appendOutputExtra(intent, mTakePictureUri); in takePhoto()
156 mAvatarUi.startActivityForResult(intent, REQUEST_CODE_TAKE_PHOTO); in takePhoto()
160 Intent intent = new Intent(MediaStore.ACTION_PICK_IMAGES, null); in choosePhoto() local
161 intent.setType("image/*"); in choosePhoto()
162 mAvatarUi.startActivityForResult(intent, REQUEST_CODE_CHOOSE_PHOTO); in choosePhoto()
195 Intent intent = new Intent("com.android.camera.action.CROP"); in cropPhoto() local
196 intent.setDataAndType(pictureUri, "image/*"); in cropPhoto()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java193 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { in onHandleForceStop() argument
197 public void onHandleUserStop(Intent intent, int userHandle) { in onHandleUserStop() argument
321 String getPackageName(Intent intent) { in getPackageName() argument
322 Uri uri = intent.getData(); in getPackageName()
328 public void onReceive(Context context, Intent intent) { in onReceive() argument
329 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in onReceive()
332 Slog.w("PackageMonitor", "Intent broadcast does not contain user handle: " + intent); in onReceive()
341 String action = intent.getAction(); in onReceive()
343 String pkg = getPackageName(intent); in onReceive()
344 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java154 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent() local
155 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_canForward_sendIntent()
156 intent.setType(TYPE_PLAIN_TEXT); in forwardToManagedProfile_canForward_sendIntent()
157 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_canForward_sendIntent()
188 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent() local
189 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_cannotForward_sendIntent()
190 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_cannotForward_sendIntent()
209 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_noManagedProfile_sendIntent() local
210 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_noManagedProfile_sendIntent()
211 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_noManagedProfile_sendIntent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/
DCameraIntents.kt44 val intent = Intent(DEFAULT_INSECURE_CAMERA_INTENT_ACTION) in getInsecureCameraIntent() constant
45 getOverrideCameraPackage(context)?.let { intent.setPackage(it) } in getInsecureCameraIntent()
46 return intent in getInsecureCameraIntent()
51 val intent = Intent(DEFAULT_SECURE_CAMERA_INTENT_ACTION) in getSecureCameraIntent() constant
52 getOverrideCameraPackage(context)?.let { intent.setPackage(it) } in getSecureCameraIntent()
53 return intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) in getSecureCameraIntent()
57 fun isSecureCameraIntent(intent: Intent?): Boolean { in isSecureCameraIntent()
58 return intent?.getAction()?.equals(DEFAULT_SECURE_CAMERA_INTENT_ACTION) ?: false in isSecureCameraIntent()
62 fun isInsecureCameraIntent(intent: Intent?): Boolean { in isInsecureCameraIntent()
63 return intent?.getAction()?.equals(DEFAULT_INSECURE_CAMERA_INTENT_ACTION) ?: false in isInsecureCameraIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java132 public void onReceive(Context context, Intent intent) {
134 final String fsUuid = intent.getStringExtra(VolumeRecord.EXTRA_FS_UUID);
141 public void onReceive(Context context, Intent intent) {
537 final PendingIntent intent; in onMoveProgress() local
539 intent = buildWizardMovePendingIntent(move); in onMoveProgress()
541 intent = buildWizardMigratePendingIntent(move); in onMoveProgress()
550 .setContentIntent(intent) in onMoveProgress()
586 final PendingIntent intent; in onMoveFinished() local
588 intent = buildWizardReadyPendingIntent(privateVol.getDisk()); in onMoveFinished()
590 intent = buildVolumeSettingsPendingIntent(privateVol); in onMoveFinished()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsManagerServiceTest.java92 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_sameUser() local
96 intent, UID_PRIMARY_CAMERA, PKG_SOCIAL, USER_PRIMARY); in testNeeded_normal_sameUser()
110 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_differentUser() local
114 intent, UID_PRIMARY_CAMERA, PKG_SOCIAL, USER_SECONDARY); in testNeeded_normal_differentUser()
127 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public() local
129 intent, UID_PRIMARY_PUBLIC, PKG_SOCIAL, USER_PRIMARY); in testNeeded_public()
141 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public_differentUser() local
145 intent, UID_PRIMARY_PUBLIC, PKG_SOCIAL, USER_SECONDARY); in testNeeded_public_differentUser()
158 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PRIVATE).addFlags(FLAG_READ); in testNeeded_private() local
161 intent, UID_PRIMARY_PRIVATE, PKG_SOCIAL, USER_PRIMARY); in testNeeded_private()
[all …]
/frameworks/base/location/java/android/location/
DSettingInjectorService.java147 public final IBinder onBind(Intent intent) { in onBind() argument
152 public final void onStart(Intent intent, int startId) { in onStart() argument
153 super.onStart(intent, startId); in onStart()
157 public final int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
158 onHandleIntent(intent); in onStartCommand()
163 private void onHandleIntent(Intent intent) { in onHandleIntent() argument
173 sendStatus(intent, summary, enabled); in onHandleIntent()
181 private void sendStatus(Intent intent, String summary, boolean enabled) { in sendStatus() argument
182 Messenger messenger = intent.getParcelableExtra(MESSENGER_KEY); in sendStatus()
195 Log.d(TAG, mName + ": received " + intent + ", summary=" + summary in sendStatus()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DBroadcastSender.kt35 fun sendBroadcast(intent: Intent) { in sendBroadcast()
37 context.sendBroadcast(intent) in sendBroadcast()
46 fun sendBroadcast(intent: Intent, receiverPermission: String?) { in sendBroadcast()
48 context.sendBroadcast(intent, receiverPermission) in sendBroadcast()
57 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle) { in sendBroadcastAsUser()
59 context.sendBroadcastAsUser(intent, userHandle) in sendBroadcastAsUser()
68 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle, receiverPermission: String?) { in sendBroadcastAsUser()
70 context.sendBroadcastAsUser(intent, userHandle, receiverPermission) in sendBroadcastAsUser()
80 intent: Intent, in sendBroadcastAsUser()
86 context.sendBroadcastAsUser(intent, userHandle, receiverPermission, options) in sendBroadcastAsUser()
[all …]

12345678910>>...65