/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
CarrierDefaultBroadcastReceiver.java | 20 import android.content.Intent; 29 public void onReceive(Context context, Intent intent) { 30 Log.d(TAG, "onReceive intent: " + intent.getAction()); 31 if (ProvisionObserver.isDeferredForProvision(context, intent)) { 35 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) { 39 List<Integer> actionList = CustomConfigLoader.loadCarrierActionList(context, intent); 42 CarrierActionUtils.applyCarrierAction(actionIdx, intent, context) [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
AnomalyDetectionReceiver.java | 22 import android.content.Intent; 35 public void onReceive(Context context, Intent intent) { 36 final long configUid = intent.getLongExtra(StatsManager.EXTRA_STATS_CONFIG_UID, -1); 37 final long configKey = intent.getLongExtra(StatsManager.EXTRA_STATS_CONFIG_KEY, -1); 38 final long subscriptionId = intent.getLongExtra(StatsManager.EXTRA_STATS_SUBSCRIPTION_ID, 40 Log.i(TAG, "Anomaly intent received. configUid = " + configUid + " configKey = " 43 final Bundle bundle = intent.getExtras(); 46 AnomalyDetectionJobService.scheduleAnomalyDetection(context, intent);
|
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkReceiver.java | 21 import android.content.Intent; 28 public void onReceive(Context context, Intent intent) { 29 String action = intent.getAction(); 30 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) { 32 intent = new Intent(intent); 33 intent.setClass(context, ImsFrameworkService.class); 34 if (context.startService(intent) == null) [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
MissedCallNotificationReceiver.java | 21 import android.content.Intent; 29 void onIntentReceived(Intent intent); 33 public void onReceive(Context context, Intent intent) { 34 sIntentListener.onIntentReceived(intent);
|
/cts/tests/framework/base/activitymanager/app/src/android/server/am/ |
TrampolineActivity.java | 19 import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP; 20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; 22 import android.content.Intent; 38 Intent intent = new Intent(this, SingleTaskActivity.class); local 39 intent.setFlags(FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_NEW_TASK); 41 startActivity(intent);
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
MockMissedCallNotificationReceiver.java | 22 import android.content.Intent; 28 void onIntentReceived(Intent intent); 34 public void onReceive(Context context, Intent intent) { 36 sIntentListener.onIntentReceived(intent);
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsReceiver.java | 21 import android.content.Intent; 26 public void onReceive(Context context, Intent intent) { 27 if (intent != null && intent.getAction().equals(Telephony.Sms.Intents.SMS_DELIVER_ACTION)) { 28 context.sendBroadcast(new Intent(SmsManagerTest.SMS_DELIVER_DEFAULT_APP_ACTION));
|
/developers/build/prebuilts/gradle/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/ |
MyReceiver.java | 20 import android.content.Intent; 27 public void onReceive(Context context, Intent intent) { 28 Log.i(TAG, "onReceive: " + intent); 29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
|
/developers/samples/android/system/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/ |
MyReceiver.java | 20 import android.content.Intent; 27 public void onReceive(Context context, Intent intent) { 28 Log.i(TAG, "onReceive: " + intent); 29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
|
/development/apps/SettingInjectorSample/src/com/example/android/injector/ |
UpdatingInjectorService.java | 19 import android.content.Intent; 39 Intent intent = new Intent(ACTION_INJECTED_SETTING_CHANGED); local 40 sendBroadcast(intent); 41 Log.d(TAG, "Broadcasting: " + intent);
|
/development/samples/ApiDemos/src/com/example/android/apis/media/ |
MediaPlayerDemo.java | 21 import android.content.Intent; 60 Intent intent = 61 new Intent(MediaPlayerDemo.this.getApplication(), 63 intent.putExtra(MEDIA, LOCAL_AUDIO); 64 startActivity(intent); 70 Intent intent = 71 new Intent(MediaPlayerDemo.this.getApplication(), 73 intent.putExtra(MEDIA, RESOURCES_AUDIO) [all...] |
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/ |
MyReceiver.java | 20 import android.content.Intent; 27 public void onReceive(Context context, Intent intent) { 28 Log.i(TAG, "onReceive: " + intent); 29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
|
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/ |
RespondService.java | 20 import android.content.Intent; 26 * This service handles the system intent ACTION_RESPOND_VIA_MESSAGE when we are the default SMS 37 protected void onHandleIntent(Intent intent) { 38 if (intent != null) { 41 TelephonyManager.ACTION_RESPOND_VIA_MESSAGE.equals(intent.getAction())) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
KeyboardShortcutsReceiver.java | 20 import android.content.Intent; 27 public void onReceive(Context context, Intent intent) { 28 if (Intent.ACTION_SHOW_KEYBOARD_SHORTCUTS.equals(intent.getAction())) { 30 } else if (Intent.ACTION_DISMISS_KEYBOARD_SHORTCUTS.equals(intent.getAction())) {
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
DemoModeController.java | 21 import android.content.Intent; 225 final Intent intent = new Intent("com.android.systemui.demo"); local 226 intent.putExtra("command", "exit"); 227 mContext.sendBroadcast(intent); 234 final Intent intent = new Intent("com.android.systemui.demo"); 235 intent.putExtra("command", "status") [all...] |
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
LayoutTestActivity.java | 20 import android.content.Intent; 29 Intent intent = getIntent(); local 30 if (!intent.hasExtra(EXTRA_LAYOUT_RESOURCE_ID)) { 32 "Intent extras must contain EXTRA_LAYOUT_RESOURCE_ID"); 34 int layoutId = intent.getIntExtra(EXTRA_LAYOUT_RESOURCE_ID, -1);
|
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
StorageStatusReceiver.java | 21 import android.content.Intent; 31 public void onReceive(final Context context, final Intent intent) { 32 if (Intent.ACTION_DEVICE_STORAGE_LOW.equals(intent.getAction())) { 34 } else if (Intent.ACTION_DEVICE_STORAGE_OK.equals(intent.getAction())) {
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollEnrolling.java | 19 import android.content.Intent; 27 protected Intent getFinishIntent() { 28 final Intent intent = new Intent(this, SetupFingerprintEnrollFinish.class); local 29 SetupWizardUtils.copySetupExtras(getIntent(), intent); local 30 return intent;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
EmlTempFileDeletionService.java | 21 import android.content.Intent; 38 protected void onHandleIntent(Intent intent) { 39 final String action = intent.getAction(); 40 if (Intent.ACTION_DELETE.equals(action)) { 41 final Uri uri = intent.getData();
|
/prebuilts/misc/common/android-support-test/espresso/ |
espresso_intents_release_no_deps.jar | |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
BlockChangeReceiver.java | 10 import android.content.Intent; 16 public void onReceive(Context context, Intent intent) { 20 if (ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED.equals(intent.getAction())) { 21 String id = intent.getStringExtra( 24 intent.getBooleanExtra(NotificationManager.EXTRA_BLOCKED_STATE, false)); 25 } else if (ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED.equals(intent.getAction())) { 26 String id = intent.getStringExtra(NotificationManager.EXTRA_NOTIFICATION_CHANNEL_ID); 28 intent.getBooleanExtra(NotificationManager.EXTRA_BLOCKED_STATE, false)); 29 } else if (ACTION_APP_BLOCK_STATE_CHANGED.equals(intent.getAction())) [all...] |
/cts/tests/app/src/android/app/cts/ |
Instrumentation_ActivityResultTest.java | 22 import android.content.Intent; 28 Intent intent = new Intent(); local 29 ActivityResult result = new ActivityResult(Activity.RESULT_OK, intent); 31 assertEquals(intent, result.getResultData()); 33 result = new ActivityResult(Activity.RESULT_CANCELED, intent);
|
/cts/tests/tests/net/appForApi23/src/android/net/cts/appForApi23/ |
ConnectivityReceiver.java | 20 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 31 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { 32 int networkType = intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, 0); 37 if (GET_WIFI_CONNECTIVITY_ACTION_COUNT.equals(intent.getAction())) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Intents.java | 22 import android.content.Intent; 37 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 38 intent.setType("audio/*"); 39 startActivity(Intent.createChooser(intent, "Select music")); 43 Intent intent = new Intent(Intent.ACTION_GET_CONTENT) local 49 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local [all...] |
LauncherShortcuts.java | 20 import android.content.Intent; 35 * 2. Any time the user clicks on an installed shortcut, an intent is sent. 40 * of an {@link android.content.Intent} that the launcher will use to create the shortcut. 47 * of the incoming {@link android.content.Intent}. 49 * In a real application, you would probably use the shortcut intent to display specific content 60 // Resolve the intent 62 final Intent intent = getIntent(); local 63 final String action = intent.getAction(); 65 // If the intent is a request to create a shortcut, we'll do that and exi 130 Intent intent = new Intent(); local [all...] |