/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowIntentTest.java | 13 import android.content.Intent; 38 Intent intent = new Intent(); local 39 intent.setClassName(context, TEST_ACTIVITY_CLASS_NAME); 40 ActivityInfo activityInfo = intent.resolveActivityInfo(packageManager, PackageManager.GET_ACTIVITIES); 46 Intent intent = new Intent(); local 47 assertEquals(intent.getExtras(), null) 52 Intent intent = new Intent(); local 59 Intent intent = new Intent(); local 67 Intent intent = new Intent(); local 75 Intent intent = new Intent(); local 83 Intent intent = new Intent(); local 91 Intent intent = new Intent(); local 102 Intent intent = new Intent(); local 113 Intent intent = new Intent(); local 122 Intent intent = new Intent(); local 132 Intent intent = new Intent(); local 141 Intent intent = new Intent(); local 152 Intent intent = new Intent(); local 168 Intent intent = new Intent(); local 177 Intent intent = new Intent(); local 186 Intent intent = new Intent(); local 194 Intent intent = new Intent(); local 201 Intent intent = new Intent(); local 211 Intent intent = new Intent(); local 220 Intent intent = new Intent(); local 229 Intent intent = new Intent(); local 238 Intent intent = new Intent(); local 248 Intent intent = new Intent(); local 258 Intent intent = new Intent(ApplicationProvider.getApplicationContext(), getClass()); local 264 Intent intent = new Intent(); local 272 Intent intent = new Intent(); local 281 Intent intent = new Intent(); local 306 Intent intent = new Intent(); local 356 Intent intent = new Intent(); local 363 Intent intent = new Intent(); local 370 Intent intent = new Intent(); local 376 Intent intent = new Intent(); local 386 Intent intent = new Intent(); local 396 Intent intent = local 411 Intent intent = new Intent(); local 449 Intent intent = new Intent("FOO"); local 458 Intent intent = new Intent(); local [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/ |
IntentBuilders.java | 22 import android.content.Intent; 37 public static Intent buildTriggerServiceIntent() { 38 Intent intent = new Intent(); local 39 intent.setComponent(Constants.TRIGGER_SERVICE_COMPONENT_NAME); 40 return intent; 44 * Builds an intent that will launch a script in the background. 48 * @return the intent that will launch the script 50 public static Intent buildStartInBackgroundIntent(File script) 52 Intent intent = new Intent(); local 68 Intent intent = new Intent(); local 84 Intent intent = new Intent(); local 102 Intent intent = new Intent(); local 120 Intent intent = new Intent(); local 137 Intent intent = new Intent(); local 153 final Intent intent = buildTriggerServiceIntent(); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContractIntentsTest.java | 19 import android.content.Intent; 31 public void assertCanBeHandled(Intent intent) { 33 .getPackageManager().queryIntentActivities(intent, 0); 35 assertTrue("No ResolveInfo found for " + intent.toString(), 40 Intent intent = new Intent(Intent.ACTION_VIEW); local 41 intent.setData(ContactsContract.Contacts.CONTENT_URI) 46 Intent intent = new Intent(Intent.ACTION_PICK); local 52 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
NfcTest.java | 19 import android.content.Intent; 31 Intent intent = getTextShareIntent(); local 32 assertFalse("Nfc beam activity should not be resolved", isNfcBeamActivityResolved(intent)); 36 Intent intent = getTextShareIntent(); local 37 assertTrue("Nfc beam activity should be resolved", isNfcBeamActivityResolved(intent)); 40 private Intent getTextShareIntent() { 41 Intent intent = new Intent() local [all...] |
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
StubActivity.java | 21 import android.content.Intent; 24 public static Intent createLaunchIntent(Context context) { 25 final Intent intent = new Intent(); local 26 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 27 intent.setClass(context, StubActivity.class); 28 return intent;
|
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/ |
MessagingReceiver.java | 20 import android.content.Intent; 35 public void onReceive(Context context, Intent intent) { 36 String action = intent == null ? null : intent.getAction(); 41 handleIncomingSms(context, intent); 43 handleIncomingMms(context, intent); 47 handleIncomingSms(context, intent); 49 handleIncomingMms(context, intent); 54 private void handleIncomingSms(Context context, Intent intent) [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
LockTaskUtilityActivity.java | 20 import android.content.Intent; 38 protected void onNewIntent(Intent intent) { 39 super.onNewIntent(intent); 40 handleIntent(intent); 46 sendLocalBroadcast(new Intent(CREATE_ACTION)); 52 sendLocalBroadcast(new Intent(DESTROY_ACTION)); 58 sendLocalBroadcast(new Intent(RESUME_ACTION)); 64 sendLocalBroadcast(new Intent(PAUSE_ACTION)); 68 private void handleIntent(Intent intent) [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
PolicyTransparencyTest.java | 20 import android.content.Intent; 35 Intent intent = mDevicePolicyManager.createAdminSupportIntent( local 37 assertNotNull(intent); 39 (ComponentName) intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN)); 41 intent.getStringExtra(DevicePolicyManager.EXTRA_RESTRICTION)); 44 intent = mDevicePolicyManager.createAdminSupportIntent( 46 assertNull(intent); 52 Intent intent = mDevicePolicyManager.createAdminSupportIntent local 76 Intent intent = mDevicePolicyManager.createAdminSupportIntent(restriction); local [all...] |
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/src/com/android/cts/norestart/ |
NoRestartActivity.java | 22 import android.content.Intent; 38 protected void onNewIntent(Intent intent) { 39 super.onNewIntent(intent); 45 final Intent intent = new Intent("com.android.cts.norestart.BROADCAST"); local 46 intent.putExtra("CREATE_COUNT", mCreateCount); 47 intent.putExtra("NEW_INTENT_COUNT", mNewIntentCount); 48 sendBroadcast(intent); [all...] |
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
LaunchAssistantActivityIntoAssistantStack.java | 22 import android.content.Intent; 30 final Intent intent = getIntent(); local 31 if (isTranslucent(intent)) { 32 TranslucentAssistantActivity.launchActivityIntoAssistantStack(this, intent.getExtras()); 39 private static boolean isTranslucent(Intent intent) { 40 return intent.hasExtra(EXTRA_ASSISTANT_IS_TRANSLUCENT) 41 && Boolean.valueOf(intent.getStringExtra(EXTRA_ASSISTANT_IS_TRANSLUCENT));
|
/cts/tests/tests/content/src/android/content/cts/ |
AvailableIntentsTest.java | 25 import android.content.Intent; 52 * Assert target intent can be handled by at least one Activity. 53 * @param intent - the Intent will be handled. 55 private void assertCanBeHandled(final Intent intent) { 57 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); 59 // one or more activity can handle this intent. 64 * Assert target intent is not resolved by a filter with priority greater than 0. 65 * @param intent - the Intent will be handled 86 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 96 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 106 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local 117 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local 128 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local 140 Intent intent = new Intent(Intent.ACTION_CALL, uri); local 152 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local 164 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local 175 Intent intent = new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS); local 186 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS); local 197 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_SETTINGS); local 208 Intent intent = new Intent(TelecomManager.ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS); local 220 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); local 253 Intent intent = new Intent(Intent.ACTION_VIEW); local 263 Intent intent = new Intent(Intent.ACTION_VIEW); local 270 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); local 278 Intent intent = new Intent(AlarmClock.ACTION_SHOW_ALARMS); local 283 Intent intent = new Intent(AlarmClock.ACTION_DISMISS_ALARM); local 288 Intent intent = new Intent(AlarmClock.ACTION_SNOOZE_ALARM); local 294 Intent intent = new Intent(AlarmClock.ACTION_SET_TIMER); local 303 Intent intent = new Intent(AlarmClock.ACTION_SHOW_TIMERS); local 308 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local 315 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local 322 Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); local 329 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 336 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 425 Intent intent = new Intent(Settings.ACTION_PROCESS_WIFI_EASY_CONNECT_URI); local 432 Intent intent = new Intent(Settings.ACTION_REQUEST_SET_AUTOFILL_SERVICE) local 442 Intent intent = new Intent(Settings.ACTION_NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS) local 455 Intent intent = new Intent(Settings.ACTION_VOICE_INPUT_SETTINGS); local [all...] |
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
DelegatedScopesReceiverActivity.java | 25 import android.content.Intent; 52 public void onReceive(Context context, Intent intent) { 53 if (ACTION_APPLICATION_DELEGATION_SCOPES_CHANGED.equals(intent.getAction())) { 54 handleIntent(intent); 66 protected void onNewIntent(Intent intent) { 67 super.onNewIntent(intent); 68 handleIntent(intent); 86 private void handleIntent(Intent intent) 99 Intent intent = new Intent(); local 106 Intent intent = new Intent(); local [all...] |
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
LocalIntentSender.java | 22 import android.content.Intent; 34 private static final BlockingQueue<Intent> sIntentSenderResults = new LinkedBlockingQueue<>(); 37 public void onReceive(Context context, Intent intent) { 38 Log.i(TAG, "Received intent " + prettyPrint(intent)); 39 sIntentSenderResults.add(intent); 47 Intent intent = new Intent(context, LocalIntentSender.class) local 56 Intent intent = sIntentSenderResults.take(); local [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
LauncherUtils.java | 32 import android.content.Intent; 52 Intent intent = new Intent(context, PollingService.class); local 53 return (context.startService(intent) != null); 64 Intent intent = new Intent(context, PollingService.class); local 65 return context.stopService(intent); 71 Intent intent = new Intent(context, EABService.class) local 78 Intent intent = new Intent(context, EABService.class); local [all...] |
/cts/tests/framework/base/windowmanager/appDisplaySize/src/android/server/wm/displaysize/ |
SmallestWidthActivity.java | 23 import android.content.Intent; 28 protected void onNewIntent(final Intent intent) { 29 super.onNewIntent(intent); 31 if (intent.hasExtra(EXTRA_LAUNCH_ANOTHER_ACTIVITY)) { 32 startActivity(new Intent().setComponent(ComponentName.unflattenFromString( 33 intent.getStringExtra(EXTRA_LAUNCH_ANOTHER_ACTIVITY))));
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityReceiver.java | 20 import android.content.Intent; 31 public void onReceive(Context context, Intent intent) { 36 intent.setClass(context, UtilityService.class); 37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED); 38 startWakefulService(context, intent);
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityReceiver.java | 20 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 37 intent.setClass(context, UtilityService.class); 38 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED); 39 startWakefulService(context, intent);
|
/development/samples/MultiWindow/src/com/example/android/multiwindow/ |
LaunchingAdjacentActivity.java | 20 import android.content.Intent; 53 Intent intent = new Intent("android.settings.SETTINGS"); local 54 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK 55 | Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT); 56 startActivity(intent); 60 Intent intent = newAdjacentActivityIntent() local 66 Intent intent = newAdjacentActivityIntent(); local 72 Intent intent = newAdjacentActivityIntent(); local 82 Intent intent = new Intent(this, LaunchingAdjacentActivity.class); local [all...] |
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
UtilityReceiver.java | 20 import android.content.Intent; 31 public void onReceive(Context context, Intent intent) { 36 intent.setClass(context, UtilityService.class); 37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED); 38 startWakefulService(context, intent);
|
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/ |
SecureActivity.java | 20 import android.content.Intent; 32 Intent intent = new Intent(); local 33 intent.setClass(this, PolicySetupActivity.class); 34 intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | 35 Intent.FLAG_ACTIVITY_CLEAR_TASK); 36 startActivity(intent);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
SetNewPasswordComplexityTest.java | 4 import android.content.Intent; 22 Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD); 23 intent.putExtra(DevicePolicyManager.EXTRA_PASSWORD_COMPLEXITY, 25 startActivity(intent); 29 Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD); 30 intent.putExtra(DevicePolicyManager.EXTRA_PASSWORD_COMPLEXITY [all...] |
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
ImeCommandReceiver.java | 21 import android.content.Intent; 29 * {@link ImeCommandConstants#ACTION_IME_COMMAND} intent receiver. 38 * Callback method for {@link ImeCommandConstants#COMMAND_COMMIT_TEXT} intent. 46 * Callback method for {@link ImeCommandConstants#COMMAND_SWITCH_INPUT_METHOD} intent. 53 * Callback method for {@link ImeCommandConstants#COMMAND_REQUEST_HIDE_SELF} intent. 66 public void onReceive(Context context, Intent intent) { 67 final String command = intent.getStringExtra(ImeCommandConstants.EXTRA_COMMAND); 74 final CharSequence text = getCharSequence1(intent); 75 final int newCursorPosition = getInt1(intent); [all...] |
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/ |
MessagingService.java | 20 import android.content.Intent; 42 protected void onHandleIntent(Intent intent) { 43 if (intent != null) { 44 String intentAction = intent.getAction(); 49 MessagingReceiver.completeWakefulIntent(intent); 54 MessagingReceiver.completeWakefulIntent(intent);
|
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/ |
StoragedTest.java | 19 import android.content.Intent; 44 Intent intent = new Intent(); local 45 intent.setClass(mContext, SimpleIOActivity.class); 46 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 47 Intent.FLAG_ACTIVITY_NEW_TASK); 48 mContext.startActivity(intent); 54 Intent intent = new Intent() local [all...] |
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
MyReceiver.java | 22 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 33 Log.i(TAG, "onReceive: " + intent); 34 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) { 38 } else if (ACTION_PIN_REQUEST_ACCEPTED.equals(intent.getAction())) { 45 final Intent intent = new Intent(ACTION_PIN_REQUEST_ACCEPTED) local [all...] |