/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ActivityStarterImpl.kt | 44 override fun startPendingIntentDismissingKeyguard(intent: PendingIntent) { in startPendingIntentDismissingKeyguard() 46 intent = intent, in startPendingIntentDismissingKeyguard() 52 intent: PendingIntent, in startPendingIntentDismissingKeyguard() 56 intent = intent, in startPendingIntentDismissingKeyguard() 63 intent: PendingIntent, in startPendingIntentDismissingKeyguard() 68 intent = intent, in startPendingIntentDismissingKeyguard() 76 intent: PendingIntent, in startPendingIntentDismissingKeyguard() 81 intent = intent, in startPendingIntentDismissingKeyguard() 89 intent: PendingIntent, in startPendingIntentWithoutDismissing() 97 intent = intent, in startPendingIntentWithoutDismissing() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 600 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled() argument 618 @NonNull Intent intent) { in onDisableRequested() argument 634 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled() argument 652 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged() argument 666 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged() argument 668 onPasswordChanged(context, intent); in onPasswordChanged() 683 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed() argument 697 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed() argument 699 onPasswordFailed(context, intent); in onPasswordFailed() 714 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded() argument [all …]
|
D | PolicyUpdateReceiver.java | 157 public final void onReceive(Context context, Intent intent) { in onReceive() argument 158 Objects.requireNonNull(intent.getAction()); in onReceive() 159 switch (intent.getAction()) { in onReceive() 162 onPolicySetResult(context, getPolicyKey(intent), getPolicyExtraBundle(intent), in onReceive() 163 getTargetUser(intent), getPolicyChangedReason(intent)); in onReceive() 167 onPolicyChanged(context, getPolicyKey(intent), getPolicyExtraBundle(intent), in onReceive() 168 getTargetUser(intent), getPolicyChangedReason(intent)); in onReceive() 171 Log.e(TAG, "Unknown action received: " + intent.getAction()); in onReceive() 178 static String getPolicyKey(Intent intent) { in getPolicyKey() argument 179 if (!intent.hasExtra(EXTRA_POLICY_KEY)) { in getPolicyKey() [all …]
|
D | DelegatedAdminReceiver.java | 87 @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, android.net.Uri.class); 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/ |
D | IntentCreatorTest.java | 45 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/ |
D | DemoModeController.java | 225 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/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 75 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() 203 public void sendBroadcast(Intent intent) { in sendBroadcast() argument 208 if (interceptor.dispatchBroadcast(intent)) { in sendBroadcast() 216 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument [all …]
|
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/ |
D | PackageMonitorTest.java | 122 Intent intent = new Intent(Intent.ACTION_UID_REMOVED); in testPackageMonitorDoHandlePackageEventUidRemoved() local 123 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventUidRemoved() 124 intent.putExtra(Intent.EXTRA_UID, FAKE_PACKAGE_UID); in testPackageMonitorDoHandlePackageEventUidRemoved() 125 spyPackageMonitor.doHandlePackageEvent(intent); in testPackageMonitorDoHandlePackageEventUidRemoved() 136 Intent intent = new Intent(Intent.ACTION_PACKAGES_SUSPENDED); in testPackageMonitorDoHandlePackageEventPackageSuspended() local 137 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventPackageSuspended() 139 intent.putExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST, packageList); in testPackageMonitorDoHandlePackageEventPackageSuspended() 140 spyPackageMonitor.doHandlePackageEvent(intent); in testPackageMonitorDoHandlePackageEventPackageSuspended() 152 Intent intent = new Intent(Intent.ACTION_PACKAGES_UNSUSPENDED); in testPackageMonitorDoHandlePackageEventPackageUnSuspended() local 153 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventPackageUnSuspended() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | WizardManagerHelperTest.java | 49 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/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastSender.kt | 32 fun sendBroadcast(intent: Intent) { in sendBroadcast() 33 sendInBackground("$intent") { in sendBroadcast() 34 context.sendBroadcast(intent) in sendBroadcast() 43 fun sendBroadcast(intent: Intent, receiverPermission: String?) { in sendBroadcast() 44 sendInBackground("$intent") { in sendBroadcast() 45 context.sendBroadcast(intent, receiverPermission) in sendBroadcast() 54 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle) { in sendBroadcastAsUser() 55 sendInBackground("$intent") { in sendBroadcastAsUser() 56 context.sendBroadcastAsUser(intent, userHandle) in sendBroadcastAsUser() 65 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle, receiverPermission: String?) { in sendBroadcastAsUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AvatarPhotoControllerTest.java | 119 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/core/java/com/android/internal/content/ |
D | PackageMonitor.java | 260 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit, in onHandleForceStop() argument 262 return onHandleForceStop(intent, packages, uid, doit); in onHandleForceStop() 265 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { in onHandleForceStop() argument 419 String getPackageName(Intent intent) { in getPackageName() argument 420 Uri uri = intent.getData(); in getPackageName() 426 public void onReceive(Context context, Intent intent) { in onReceive() argument 427 doHandlePackageEvent(intent); in onReceive() 431 private void postHandlePackageEvent(Intent intent) { in postHandlePackageEvent() argument 433 mExecutor.execute(() -> doHandlePackageEvent(intent)); in postHandlePackageEvent() 442 public final void doHandlePackageEvent(Intent intent) { in doHandlePackageEvent() argument [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | ActivityStarter.java | 36 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard() argument 42 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 49 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 56 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 66 PendingIntent intent, in startPendingIntentWithoutDismissing() argument 79 void startPendingIntentMaybeDismissingKeyguard(PendingIntent intent, in startPendingIntentMaybeDismissingKeyguard() argument 89 void startPendingIntentMaybeDismissingKeyguard(PendingIntent intent, in startPendingIntentMaybeDismissingKeyguard() argument 99 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, int flags); in startActivity() argument 100 void startActivity(Intent intent, boolean dismissShade); in startActivity() argument 101 default void startActivity(Intent intent, boolean dismissShade, in startActivity() argument [all …]
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 89 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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | SlicePurchaseBroadcastReceiver.java | 110 public static void sendSlicePurchaseAppResponse(@NonNull Intent intent, @NonNull String extra) { in sendSlicePurchaseAppResponse() argument 111 PendingIntent pendingIntent = intent.getParcelableExtra(extra, PendingIntent.class); in sendSlicePurchaseAppResponse() 133 @NonNull Intent intent, @NonNull String extra, @NonNull Intent data) { in sendSlicePurchaseAppResponseWithData() argument 134 PendingIntent pendingIntent = intent.getParcelableExtra(extra, PendingIntent.class); in sendSlicePurchaseAppResponseWithData() 153 public static boolean isIntentValid(@NonNull Intent intent) { in isIntentValid() argument 154 int phoneId = intent.getIntExtra(SlicePurchaseController.EXTRA_PHONE_ID, in isIntentValid() 161 int subId = intent.getIntExtra(SlicePurchaseController.EXTRA_SUB_ID, in isIntentValid() 168 int capability = intent.getIntExtra(SlicePurchaseController.EXTRA_PREMIUM_CAPABILITY, in isIntentValid() 175 String purchaseUrl = intent.getStringExtra(SlicePurchaseController.EXTRA_PURCHASE_URL); in isIntentValid() 176 String userData = intent.getStringExtra(SlicePurchaseController.EXTRA_USER_DATA); in isIntentValid() [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelperTest.java | 45 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/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 111 Intent intent = new Intent(action, null); in makeBroadcastIntent() local 112 intent.putExtra("caller", mCallTarget); in makeBroadcastIntent() 113 intent.setPackage(getContext().getPackageName()); in makeBroadcastIntent() 114 return intent; in makeBroadcastIntent() 122 public final void gotReceive(String name, Intent intent) { in gotReceive() argument 136 if (mExpectedData[i].equals(intent.getStringExtra("test"))) { in gotReceive() 148 + intent.getStringExtra("test")); in gotReceive() 151 + intent.getStringExtra("test")); in gotReceive() 199 public void onRegisteredReceiver(Intent intent) { in onRegisteredReceiver() argument 200 gotReceive(RECEIVER_REG, intent); in onRegisteredReceiver() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | DemoModeFragment.java | 156 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/media/dialog/ |
D | MediaOutputDialogReceiverTest.java | 62 Intent intent = new Intent(MediaOutputConstants.ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() local 63 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() 64 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() local 74 Intent intent = new Intent(MediaOutputConstants.ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() local 75 intent.putExtra("Wrong Package Name Key", getContext().getPackageName()); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() 76 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() local 86 Intent intent = new Intent(MediaOutputConstants.ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled() local 87 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled() local 98 Intent intent = new Intent( in launchMediaOutputBroadcastDialog_flagOff_broadcastDialogFactoryNotCalled() local 100 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputBroadcastDialog_flagOff_broadcastDialogFactoryNotCalled() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 298 public void sendBroadcast(Intent intent) { in sendBroadcast() argument 299 spiedContext.sendBroadcast(intent); in sendBroadcast() 303 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument 304 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast() 308 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions() argument 309 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions); in sendBroadcastMultiplePermissions() 313 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions, in sendBroadcastMultiplePermissions() argument 315 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions, options); in sendBroadcastMultiplePermissions() 319 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument 321 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 60 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcast_dispatchesWithWakelock() constant 61 broadcastSender.sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 64 verify(mockContext).sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 70 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastWithPermission_dispatchesWithWakelock() constant 72 broadcastSender.sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock() 75 verify(mockContext).sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock() 81 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastAsUser_dispatchesWithWakelock() constant 82 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock() 85 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock() 91 val intent = Intent(Intent.ACTION_VIEW) in sendBroadcastAsUserWithPermission_dispatchesWithWakelock() constant [all …]
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 517 private void adjustIntentForCtsInSdkSandboxInstrumentation(@NonNull Intent intent) { in adjustIntentForCtsInSdkSandboxInstrumentation() argument 519 && intent.getComponent() != null in adjustIntentForCtsInSdkSandboxInstrumentation() 523 .equals(intent.getComponent().getPackageName())) { in adjustIntentForCtsInSdkSandboxInstrumentation() 525 intent.setComponent( in adjustIntentForCtsInSdkSandboxInstrumentation() 527 mComponent.getPackageName(), intent.getComponent().getClassName())); in adjustIntentForCtsInSdkSandboxInstrumentation() 530 intent.setIdentifier(mComponent.getPackageName()); in adjustIntentForCtsInSdkSandboxInstrumentation() 533 private ActivityInfo resolveActivityInfoForCtsInSandbox(@NonNull Intent intent) { in resolveActivityInfoForCtsInSandbox() argument 534 adjustIntentForCtsInSdkSandboxInstrumentation(intent); in resolveActivityInfoForCtsInSandbox() 535 ActivityInfo ai = intent.resolveActivityInfo(getTargetContext().getPackageManager(), 0); in resolveActivityInfoForCtsInSandbox() 563 public Activity startActivitySync(Intent intent) { in startActivitySync() argument [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelper.java | 60 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/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 168 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent() local 169 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_canForward_sendIntent() 170 intent.setType(TYPE_PLAIN_TEXT); in forwardToManagedProfile_canForward_sendIntent() 171 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_canForward_sendIntent() 208 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent() local 209 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_cannotForward_sendIntent() 210 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_cannotForward_sendIntent() 229 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_noManagedProfile_sendIntent() local 230 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_noManagedProfile_sendIntent() 231 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_noManagedProfile_sendIntent() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SystemServerAdapter.java | 84 final Intent intent = new Intent(AudioManager.ACTION_AUDIO_BECOMING_NOISY); in sendDeviceBecomingNoisyIntent() local 85 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); in sendDeviceBecomingNoisyIntent() 86 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in sendDeviceBecomingNoisyIntent() 89 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendDeviceBecomingNoisyIntent() 99 public void broadcastStickyIntentToCurrentProfileGroup(Intent intent) { in broadcastStickyIntentToCurrentProfileGroup() argument 103 ActivityManager.broadcastStickyIntent(intent, userId); in broadcastStickyIntentToCurrentProfileGroup() 116 public void onReceive(Context context, Intent intent) { in registerUserStartedReceiver() 117 if (Intent.ACTION_USER_STARTED.equals(intent.getAction())) { in registerUserStartedReceiver() 118 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in registerUserStartedReceiver() 142 Intent intent = context.registerReceiverAsUser(/*receiver*/ null, UserHandle.of(parentId), in broadcastProfileParentStickyIntent() local [all …]
|