/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 596 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 …]
|
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); 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/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() 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/base/packages/SystemUI/src/com/android/systemui/ |
D | ActivityStarterDelegate.java | 50 public void startPendingIntentDismissingKeyguard(PendingIntent intent) { in startPendingIntentDismissingKeyguard() argument 52 starter -> starter.get().startPendingIntentDismissingKeyguard(intent)); in startPendingIntentDismissingKeyguard() 56 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 59 starter -> starter.get().startPendingIntentDismissingKeyguard(intent, in startPendingIntentDismissingKeyguard() 64 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 67 starter -> starter.get().startPendingIntentDismissingKeyguard(intent, in startPendingIntentDismissingKeyguard() 72 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 76 starter -> starter.get().startPendingIntentDismissingKeyguard(intent, in startPendingIntentDismissingKeyguard() 81 public void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, in startActivity() argument 84 starter -> starter.get().startActivity(intent, onlyProvisioned, dismissShade, in startActivity() [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/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/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/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 277 public void sendBroadcast(Intent intent) { in sendBroadcast() argument 278 spiedContext.sendBroadcast(intent); in sendBroadcast() 282 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument 283 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast() 287 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions() argument 288 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions); in sendBroadcastMultiplePermissions() 292 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions, in sendBroadcastMultiplePermissions() argument 294 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions, options); in sendBroadcastMultiplePermissions() 298 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument 300 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | DemoModeFragment.java | 153 Intent intent = new Intent(DemoMode.ACTION_DEMO); in startDemoMode() local 157 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK); in startDemoMode() 167 intent.putExtra("hhmm", demoTime); in startDemoMode() 168 getContext().sendBroadcast(intent); in startDemoMode() 170 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK); in startDemoMode() 171 intent.putExtra("wifi", "show"); in startDemoMode() 172 intent.putExtra("mobile", "show"); in startDemoMode() 173 intent.putExtra("sims", "1"); in startDemoMode() 174 intent.putExtra("nosim", "false"); in startDemoMode() 175 intent.putExtra("level", "4"); in startDemoMode() [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | ActivityStarter.java | 34 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard() argument 40 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 47 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 54 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument 61 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, int flags); in startActivity() argument 62 void startActivity(Intent intent, boolean dismissShade); in startActivity() argument 63 void startActivity(Intent intent, boolean dismissShade, in startActivity() argument 65 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade); in startActivity() argument 66 void startActivity(Intent intent, boolean dismissShade, Callback callback); in startActivity() argument 67 void postStartActivityDismissingKeyguard(Intent intent, int delay); in postStartActivityDismissingKeyguard() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 109 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/ |
D | SliceBroadcastRelayHandlerTest.java | 73 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRegister() local 74 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister() 75 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testRegister() 78 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testRegister() 79 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, testUri); in testRegister() 81 mRelayHandler.handleIntent(intent); in testRegister() 93 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testUnregister() local 94 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister() 95 intent.putExtra(SliceBroadcastRelay.EXTRA_RECEIVER, in testUnregister() 98 intent.putExtra(SliceBroadcastRelay.EXTRA_FILTER, value); in testUnregister() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelper.java | 63 Intent intent = new Intent(ACTION_NEXT); in getNextIntent() local 64 copyWizardManagerExtras(originalIntent, intent); in getNextIntent() 65 intent.putExtra(EXTRA_RESULT_CODE, resultCode); in getNextIntent() 67 intent.putExtras(data.getExtras()); in getNextIntent() 70 return intent; in getNextIntent() 98 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent() argument 99 return intent.getBooleanExtra(EXTRA_IS_FIRST_RUN, false); in isSetupWizardIntent() 109 public static boolean isDeferredIntent(Intent intent) { in isDeferredIntent() argument 110 return intent.getBooleanExtra(EXTRA_IS_DEFERRED_SETUP, false); in isDeferredIntent() 120 public static boolean isDealerIntent(Intent intent) { in isDealerIntent() argument [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageMonitor.java | 193 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/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsManagerServiceTest.java | 91 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_sameUser() local 95 intent, UID_PRIMARY_CAMERA, PKG_SOCIAL, USER_PRIMARY); in testNeeded_normal_sameUser() 109 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_differentUser() local 113 intent, UID_PRIMARY_CAMERA, PKG_SOCIAL, USER_SECONDARY); in testNeeded_normal_differentUser() 126 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public() local 128 intent, UID_PRIMARY_PUBLIC, PKG_SOCIAL, USER_PRIMARY); in testNeeded_public() 140 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public_differentUser() local 144 intent, UID_PRIMARY_PUBLIC, PKG_SOCIAL, USER_SECONDARY); in testNeeded_public_differentUser() 157 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PRIVATE).addFlags(FLAG_READ); in testNeeded_private() local 160 intent, UID_PRIMARY_PRIVATE, PKG_SOCIAL, USER_PRIMARY); in testNeeded_private() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 155 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent() local 156 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_canForward_sendIntent() 157 intent.setType(TYPE_PLAIN_TEXT); in forwardToManagedProfile_canForward_sendIntent() 158 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_canForward_sendIntent() 189 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent() local 190 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_cannotForward_sendIntent() 191 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_cannotForward_sendIntent() 210 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_noManagedProfile_sendIntent() local 211 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_noManagedProfile_sendIntent() 212 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_noManagedProfile_sendIntent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/ |
D | CameraIntents.kt | 45 val intent = Intent(DEFAULT_INSECURE_CAMERA_INTENT_ACTION) in getInsecureCameraIntent() constant 47 intent.setPackage(it) in getInsecureCameraIntent() 49 return intent in getInsecureCameraIntent() 54 val intent = Intent(DEFAULT_SECURE_CAMERA_INTENT_ACTION) in getSecureCameraIntent() constant 56 intent.setPackage(it) in getSecureCameraIntent() 58 return intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) in getSecureCameraIntent() 62 fun isSecureCameraIntent(intent: Intent?): Boolean { in isSecureCameraIntent() 63 return intent?.getAction()?.equals(DEFAULT_SECURE_CAMERA_INTENT_ACTION) ?: false in isSecureCameraIntent() 67 fun isInsecureCameraIntent(intent: Intent?): Boolean { in isInsecureCameraIntent() 68 return intent?.getAction()?.equals(DEFAULT_INSECURE_CAMERA_INTENT_ACTION) ?: false in isInsecureCameraIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 114 public void onReceive(Context context, Intent intent) { 116 final String fsUuid = intent.getStringExtra(VolumeRecord.EXTRA_FS_UUID); 123 public void onReceive(Context context, Intent intent) { 510 final PendingIntent intent; in onMoveProgress() local 512 intent = buildWizardMovePendingIntent(move); in onMoveProgress() 514 intent = buildWizardMigratePendingIntent(move); in onMoveProgress() 523 .setContentIntent(intent) in onMoveProgress() 559 final PendingIntent intent; in onMoveFinished() local 561 intent = buildWizardReadyPendingIntent(privateVol.getDisk()); in onMoveFinished() 563 intent = buildVolumeSettingsPendingIntent(privateVol); in onMoveFinished() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | UnlaunchableAppActivity.java | 59 Intent intent = getIntent(); in onCreate() local 60 mReason = intent.getIntExtra(EXTRA_UNLAUNCHABLE_REASON, -1); in onCreate() 61 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); in onCreate() 62 mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate() 110 Intent intent = new Intent(); in createBaseIntent() local 111 intent.setComponent(new ComponentName("android", UnlaunchableAppActivity.class.getName())); in createBaseIntent() 112 intent.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); in createBaseIntent() 113 return intent; in createBaseIntent() 117 Intent intent = createBaseIntent(); in createInQuietModeDialogIntent() local 118 intent.putExtra(EXTRA_UNLAUNCHABLE_REASON, UNLAUNCHABLE_REASON_QUIET_MODE); in createInQuietModeDialogIntent() [all …]
|
/frameworks/base/location/java/android/location/ |
D | SettingInjectorService.java | 147 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/telephony/java/android/telephony/mbms/ |
D | MbmsDownloadReceiver.java | 142 public void onReceive(Context context, Intent intent) { in onReceive() argument 145 if (!verifyIntentContents(context, intent)) { in onReceive() 149 if (!Objects.equals(intent.getStringExtra(VendorUtils.EXTRA_TEMP_FILE_ROOT), in onReceive() 155 if (VendorUtils.ACTION_DOWNLOAD_RESULT_INTERNAL.equals(intent.getAction())) { in onReceive() 156 moveDownloadedFile(context, intent); in onReceive() 157 cleanupPostMove(context, intent); in onReceive() 158 } else if (VendorUtils.ACTION_FILE_DESCRIPTOR_REQUEST.equals(intent.getAction())) { in onReceive() 159 generateTempFiles(context, intent); in onReceive() 160 } else if (VendorUtils.ACTION_CLEANUP.equals(intent.getAction())) { in onReceive() 161 cleanupTempFiles(context, intent); in onReceive() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | HelpUtilsTest.java | 96 Intent intent = new Intent(); in addIntentParameters_configTrue_argumentTrue() local 99 mContext, intent, null /* backupContext */, true /* sendPackageName */); in addIntentParameters_configTrue_argumentTrue() 101 assertThat(intent.getStringArrayExtra(HELP_INTENT_EXTRA_KEY)).asList() in addIntentParameters_configTrue_argumentTrue() 103 assertThat(intent.getStringArrayExtra(HELP_INTENT_NAME_KEY)).asList() in addIntentParameters_configTrue_argumentTrue() 105 assertThat(intent.getStringArrayExtra(FEEDBACK_INTENT_EXTRA_KEY)).asList() in addIntentParameters_configTrue_argumentTrue() 107 assertThat(intent.getStringArrayExtra(FEEDBACK_INTENT_NAME_KEY)).asList() in addIntentParameters_configTrue_argumentTrue() 114 Intent intent = new Intent(); in addIntentParameters_configTrue_argumentFalse() local 117 mContext, intent, null /* backupContext */, false /* sendPackageName */); in addIntentParameters_configTrue_argumentFalse() 119 assertThat(intent.hasExtra(HELP_INTENT_EXTRA_KEY)).isFalse(); in addIntentParameters_configTrue_argumentFalse() 120 assertThat(intent.hasExtra(HELP_INTENT_NAME_KEY)).isFalse(); in addIntentParameters_configTrue_argumentFalse() [all …]
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction() argument 63 onEnableAllMeteredApns(intent, context); in applyCarrierAction() 66 onDisableAllMeteredApns(intent, context); in applyCarrierAction() 69 onDisableRadio(intent, context); in applyCarrierAction() 72 onEnableRadio(intent, context); in applyCarrierAction() 75 onShowCaptivePortalNotification(intent, context); in applyCarrierAction() 90 onRegisterDefaultNetworkAvail(intent, context); in applyCarrierAction() 93 onDeregisterDefaultNetworkAvail(intent, context); in applyCarrierAction() 96 onResetAllCarrierActions(intent, context); in applyCarrierAction() 103 private static void onDisableAllMeteredApns(Intent intent, Context context) { in onDisableAllMeteredApns() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiverTest.kt | 62 private lateinit var intent: Intent variable in com.android.systemui.controls.management.ControlsRequestReceiverTest 76 intent = Intent(ControlsProviderService.ACTION_ADD_CONTROL).apply { in setUp() 114 receiver.onReceive(wrapper, intent) in testOnReceive_packageNotVerified_nameNotFound() 116 assertNull(wrapper.intent) in testOnReceive_packageNotVerified_nameNotFound() 126 receiver.onReceive(wrapper, intent) in testOnReceive_packageNotVerified_notForeground() 128 assertNull(wrapper.intent) in testOnReceive_packageNotVerified_notForeground() 138 receiver.onReceive(wrapper, intent) in testOnReceive_OK() 140 wrapper.intent?.let { in testOnReceive_OK() 152 receiver.onReceive(wrapper, intent) in testFeatureDisabled_activityNotStarted() 154 assertNull(wrapper.intent) in testFeatureDisabled_activityNotStarted() [all …]
|