Home
last modified time | relevance | path

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

12345678910>>...56

/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java554 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled() argument
569 @NonNull Intent intent) { in onDisableRequested() argument
581 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled() argument
596 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged() argument
610 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged() argument
612 onPasswordChanged(context, intent); in onPasswordChanged()
627 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed() argument
641 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed() argument
643 onPasswordFailed(context, intent); in onPasswordFailed()
658 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded() argument
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() local
42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged()
43 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() local
52 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, nwInfo); in sendNetworkStateChanged()
53 intent.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in sendNetworkStateChanged()
54 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable() local
63 broadcastReceiver.onReceive(context, intent); in sendScanResultsAvailable()
71 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged() 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/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/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java152 Intent intent = new Intent(DemoMode.ACTION_DEMO); in startDemoMode() local
154 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_ENTER); in startDemoMode()
155 getContext().sendBroadcast(intent); in startDemoMode()
157 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK); in startDemoMode()
166 intent.putExtra("hhmm", demoTime); in startDemoMode()
167 getContext().sendBroadcast(intent); in startDemoMode()
169 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK); in startDemoMode()
170 intent.putExtra("wifi", "show"); in startDemoMode()
171 intent.putExtra("mobile", "show"); in startDemoMode()
172 intent.putExtra("sims", "1"); in startDemoMode()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java71 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast() argument
72 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) { in dispatchBroadcast()
75 mReceiver.onReceive(context, intent); in dispatchBroadcast()
78 set(intent); in dispatchBroadcast()
104 final Intent intent = get(timeout, unit); in assertNotReceived() local
105 throw new AssertionError("Received intent: " + intent); in assertNotReceived()
155 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
160 if (interceptor.dispatchBroadcast(intent)) { in sendBroadcast()
168 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument
169 sendBroadcast(intent); in sendBroadcast()
[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, 0);
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/
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/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java277 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 sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument
294 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions()
298 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() argument
299 spiedContext.sendBroadcast(intent, receiverPermission, options); in sendBroadcast()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityStarterDelegate.java47 public void startPendingIntentDismissingKeyguard(PendingIntent intent) { in startPendingIntentDismissingKeyguard() argument
49 starter -> starter.get().startPendingIntentDismissingKeyguard(intent)); in startPendingIntentDismissingKeyguard()
53 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
56 starter -> starter.get().startPendingIntentDismissingKeyguard(intent, in startPendingIntentDismissingKeyguard()
61 public void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() argument
64 starter -> starter.get().startPendingIntentDismissingKeyguard(intent, in startPendingIntentDismissingKeyguard()
69 public void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade, in startActivity() argument
72 starter -> starter.get().startActivity(intent, onlyProvisioned, dismissShade, in startActivity()
77 public void startActivity(Intent intent, boolean dismissShade) { in startActivity() argument
78 mActualStarter.ifPresent(starter -> starter.get().startActivity(intent, dismissShade)); in startActivity()
[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/
DSliceBroadcastRelayHandlerTest.java73 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/base/core/java/com/android/internal/content/
DPackageMonitor.java191 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { in onHandleForceStop() argument
195 public void onHandleUserStop(Intent intent, int userHandle) { in onHandleUserStop() argument
312 String getPackageName(Intent intent) { in getPackageName() argument
313 Uri uri = intent.getData(); in getPackageName()
319 public void onReceive(Context context, Intent intent) { in onReceive() argument
320 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in onReceive()
323 Slog.w("PackageMonitor", "Intent broadcast does not contain user handle: " + intent); in onReceive()
332 String action = intent.getAction(); in onReceive()
334 String pkg = getPackageName(intent); in onReceive()
335 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsManagerServiceTest.java91 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/
DIntentForwarderActivityTest.java155 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/usb/
DStorageNotification.java114 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/
DUnlaunchableAppActivity.java59 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/
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/SettingsLib/HelpUtils/src/com/android/settingslib/
DHelpUtils.java120 final Intent intent = getHelpIntent(activity, helpUriString, backupContext); in prepareHelpMenuItem() local
124 if (intent != null) { in prepareHelpMenuItem()
136 activity.startActivityForResult(intent, 0); in prepareHelpMenuItem()
138 Log.e(TAG, "No activity found for intent: " + intent); in prepareHelpMenuItem()
162 Intent intent = Intent.parseUri(helpUriString, in getHelpIntent() local
164 addIntentParameters(context, intent, backupContext, true /* sendPackageName */); in getHelpIntent()
165 ComponentName component = intent.resolveActivity(context.getPackageManager()); in getHelpIntent()
167 return intent; in getHelpIntent()
168 } else if (intent.hasExtra(EXTRA_BACKUP_URI)) { in getHelpIntent()
170 return getHelpIntent(context, intent.getStringExtra(EXTRA_BACKUP_URI), in getHelpIntent()
[all …]
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelper.java63 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/telephony/java/android/telephony/mbms/
DMbmsDownloadReceiver.java142 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/
DHelpUtilsTest.java96 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/
DCarrierActionUtils.java60 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/core/java/android/app/
DPendingIntent.java212 void onSendFinished(PendingIntent pendingIntent, Intent intent, in onSendFinished() argument
240 public void performReceive(Intent intent, int resultCode, String data, in performReceive() argument
242 mIntent = intent; in performReceive()
271 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); in onMarshaled() argument
316 Intent intent, @Flags int flags) { in getActivity() argument
317 return getActivity(context, requestCode, intent, flags, null); in getActivity()
349 @NonNull Intent intent, @Flags int flags, @Nullable Bundle options) { in getActivity() argument
351 String resolvedType = intent != null ? intent.resolveTypeIfNeeded( in getActivity()
354 intent.migrateExtraStreamToClipData(context); in getActivity()
355 intent.prepareToLeaveProcess(context); in getActivity()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt62 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 …]

12345678910>>...56