/cts/hostsidetests/ui/appB/src/android/taskswitching/appb/ |
AppBActivity.java | 20 import android.content.Intent; 59 Intent intent = new Intent(TASKSWITCHING_INTENT); 60 sendBroadcast(intent);
|
/cts/tests/app/app/src/android/app/stubs/ |
ActivityManagerMemoryClassTestActivity.java | 19 import android.content.Intent; 38 Intent intent = getIntent(); local 40 intent.getIntExtra(ActivityManagerMemoryClassLaunchActivity.MEMORY_CLASS_EXTRA, -1);
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
WaitForBroadcast.java | 21 import android.content.Intent; 33 Intent mReceivedIntent; 36 @Override public void onReceive(Context context, Intent intent) { 38 mReceivedIntent = intent; 59 public Intent doWait(long timeout) {
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
WelcomeActivity.java | 20 import android.content.Intent; 54 final Intent intent = getIntent(); local 55 final String message = intent.getStringExtra(EXTRA_MESSAGE);
|
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/ |
MainInteractionService.java | 21 import android.content.Intent; 28 private Intent mIntent; 38 public int onStartCommand(Intent intent, int flags, int startId) { 40 mIntent = intent; 48 Log.wtf(TAG, "Can't start session because either intent is null or onReady() "
|
/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
LifecycleActivity.java | 22 import android.content.Intent; 38 public void onReceive(Context context, Intent intent) { 39 String action = intent.getAction(); 40 if (action.equals("android.intent.action.hide_lifecycle_activity")) { 46 filter.addAction("android.intent.action.hide_lifecycle_activity"); 54 sendBroadcast(new Intent("android.intent.action.lifecycle_hasResumed")); 62 sendBroadcast(new Intent("android.intent.action.lifecycle_hasFocus")) [all...] |
ScreenshotActivity.java | 20 import android.content.Intent; 46 Intent intent = new Intent(Utils.APP_3P_HASRESUMED); local 47 sendBroadcast(intent);
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
BaseService.java | 21 import android.content.Intent; 39 public IBinder onBind(Intent intent) { 40 Log.d(TAG, "onBind " + intent);
|
/cts/tests/tests/media/src/android/media/cts/ |
ScannerNotificationReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (intent.getAction().equals(mAction)) {
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoReceiveSmsPermissionTest.java | 23 import android.content.Intent; 110 new Intent(APP_SPECIFIC_SMS_RECEIVED_ACTION), PendingIntent.FLAG_ONE_SHOT); 126 assertTrue("App specific SMS intent not triggered", receiver.isAppSpecificSmsReceived()); 131 new Intent(MESSAGE_SENT_ACTION), PendingIntent.FLAG_ONE_SHOT); 133 new Intent(MESSAGE_STATUS_RECEIVED_ACTION), PendingIntent.FLAG_ONE_SHOT); 160 public void onReceive(Context context, Intent intent) { 161 if (TELEPHONY_SMS_RECEIVED.equals(intent.getAction())) { 164 } else if (MESSAGE_STATUS_RECEIVED_ACTION.equals(intent.getAction())) { 166 } else if (MESSAGE_SENT_ACTION.equals(intent.getAction())) [all...] |
ProtectedBroadcastsTest.java | 19 import android.content.Intent; 27 Intent.ACTION_SCREEN_OFF, 28 Intent.ACTION_SCREEN_ON, 29 Intent.ACTION_USER_PRESENT, 30 Intent.ACTION_TIME_TICK, 31 Intent.ACTION_TIMEZONE_CHANGED, 32 Intent.ACTION_BOOT_COMPLETED, 33 Intent.ACTION_PACKAGE_INSTALL, 34 Intent.ACTION_PACKAGE_ADDED, 35 Intent.ACTION_PACKAGE_REPLACED 94 Intent intent = new Intent(action); local [all...] |
/cts/tests/tests/preference/src/android/preference/cts/ |
PreferenceActivityTest.java | 21 import android.content.Intent; 45 Intent intent = new Intent(mActivity, PreferenceCtsActivity.class); local 46 mActivity.addPreferencesFromIntent(intent);
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
MainInteractionService.java | 22 import android.content.Intent; 29 private Intent mIntent; 39 public int onStartCommand(Intent intent, int flags, int startId) { 40 mIntent = intent; 49 Log.wtf(TAG, "Can't start session because either intent is null or onReady() "
|
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
WebViewSignInActivity.java | 19 import android.content.Intent; 34 public static Intent getStartActivityIntent(Context context) { 35 Intent intent = new Intent(context, WebViewSignInActivity.class); local 36 return intent;
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
StandardAutoCompleteSignInActivity.kt | 19 import android.content.Intent 77 val intent = WelcomeActivity.getStartActivityIntent(this@StandardAutoCompleteSignInActivity) 78 startActivity(intent) 116 fun getStartActivityIntent(context: Context): Intent { 117 val intent = Intent(context, StandardAutoCompleteSignInActivity::class.java) 118 return intent
|
/developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/ |
BootBroadcastReceiver.java | 25 import android.content.Intent; 33 * <li>Intent.ACTION_BOOT_COMPLETED</li> 34 * <li>Intent.ACTION_LOCKED_BOOT_COMPLETED</li> 37 * To receive the Intent.ACTION_LOCKED_BOOT_COMPLETED broadcast, the receiver needs to have 45 public void onReceive(Context context, Intent intent) { 47 String action = intent.getAction(); 51 bootCompleted = Intent.ACTION_LOCKED_BOOT_COMPLETED.equals(action); 53 bootCompleted = Intent.ACTION_BOOT_COMPLETED.equals(action);
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
WebViewSignInActivity.java | 19 import android.content.Intent; 34 public static Intent getStartActivityIntent(Context context) { 35 Intent intent = new Intent(context, WebViewSignInActivity.class); local 36 return intent;
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
StandardAutoCompleteSignInActivity.kt | 19 import android.content.Intent 77 val intent = WelcomeActivity.getStartActivityIntent(this@StandardAutoCompleteSignInActivity) 78 startActivity(intent) 116 fun getStartActivityIntent(context: Context): Intent { 117 val intent = Intent(context, StandardAutoCompleteSignInActivity::class.java) 118 return intent
|
/developers/samples/android/notification/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/ |
BootBroadcastReceiver.java | 25 import android.content.Intent; 33 * <li>Intent.ACTION_BOOT_COMPLETED</li> 34 * <li>Intent.ACTION_LOCKED_BOOT_COMPLETED</li> 37 * To receive the Intent.ACTION_LOCKED_BOOT_COMPLETED broadcast, the receiver needs to have 45 public void onReceive(Context context, Intent intent) { 47 String action = intent.getAction(); 51 bootCompleted = Intent.ACTION_LOCKED_BOOT_COMPLETED.equals(action); 53 bootCompleted = Intent.ACTION_BOOT_COMPLETED.equals(action);
|
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
MockIncomingMessageReceiver.java | 22 import android.content.Intent; 53 public void onReceive(Context context, Intent intent) { 54 Log.d(TAG, "onReceive(): " + intent); 57 String chatId = intent.getStringExtra(Constants.EXTRA_CHAT); 58 String messageId = intent.getStringExtra(Constants.EXTRA_MESSAGE); 124 Intent intent = new Intent(context, ReplyToMessageIntentService.class); local 125 intent.setAction(Constants.ACTION_REPLY) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ReceiveResult.java | 24 import android.content.Intent; 109 Intent data) { 146 Intent intent = new Intent(ReceiveResult.this, SendResult.class); 147 startActivityForResult(intent, GET_CODE);
|
/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
BootBroadcastReceiver.java | 25 import android.content.Intent; 33 * <li>Intent.ACTION_BOOT_COMPLETED</li> 34 * <li>Intent.ACTION_LOCKED_BOOT_COMPLETED</li> 37 * To receive the Intent.ACTION_LOCKED_BOOT_COMPLETED broadcast, the receiver needs to have 45 public void onReceive(Context context, Intent intent) { 47 String action = intent.getAction(); 51 bootCompleted = Intent.ACTION_LOCKED_BOOT_COMPLETED.equals(action); 53 bootCompleted = Intent.ACTION_BOOT_COMPLETED.equals(action);
|