HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 1 - 25 of 4825) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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(RuntimeEnvironment.application, 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 = new Intent("roboaction", Uri.parse("http:\/\/www.robolectric.org"), RuntimeEnvironment.application, Activity.class); local
406 Intent intent = new Intent(); local
444 Intent intent = new Intent("FOO"); local
453 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.toInsecureString(),
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...]
  /tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/
DeviceSetupIntentReceiver.java 21 import android.content.Intent;
34 private final Intent intent = new Intent(); field in class:DeviceSetupIntentReceiver
37 public void onReceive(Context context, Intent intent) {
38 if (DEVICE_SETUP_INTENT.equals(intent.getAction())) {
40 intent.setClass(context, DeviceSetupService.class);
41 context.startService(intent);
42 } else if (Intent.ACTION_POWER_DISCONNECTED.equals(intent.getAction()))
    [all...]
  /cts/tests/framework/base/activitymanager/app_base/src/android/server/am/
LaunchingActivity.java 21 import android.content.Intent;
24 * Activity that launches another activities when new intent is received.
31 final Intent intent = getIntent(); local
32 if (savedInstanceState == null && intent != null) {
33 ActivityLauncher.launchActivityFromExtras(this, intent.getExtras());
38 protected void onNewIntent(Intent intent) {
39 super.onNewIntent(intent);
40 ActivityLauncher.launchActivityFromExtras(this, intent.getExtras())
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
Wallpaper.java 19 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(this, CropImage.class);
41 intent.setData(imageToUse);
42 formatIntent(intent);
43 startActivityForResult(intent, CROP_DONE);
45 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null) 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...]
  /external/robolectric/v1/src/main/java/android/content/
TestIntentSender.java 4 public Intent intent; field in class:TestIntentSender
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
TestBroadcastReceiver.java 5 import android.content.Intent;
9 public Intent intent; field in class:TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) {
14 this.intent = intent;
  /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;
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStoreIntentsTest.java 19 import android.content.Intent;
32 public void assertCanBeHandled(Intent intent) {
34 .getPackageManager().queryIntentActivities(intent, 0);
36 assertTrue("No ResolveInfo found for " + intent.toString(),
41 Intent intent = new Intent(Intent.ACTION_PICK); local
42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
47 Intent intent = new Intent(Intent.ACTION_PICK); local
53 Intent intent = new Intent(Intent.ACTION_PICK); local
59 Intent intent = new Intent(Intent.ACTION_VIEW); local
65 Intent intent = new Intent(Intent.ACTION_VIEW); local
81 Intent intent = new Intent(Intent.ACTION_VIEW); local
99 Intent intent = new Intent(Intent.ACTION_VIEW); local
117 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /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/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java 22 import android.content.Intent;
45 * Assert target intent can be handled by at least one Activity.
46 * @param intent - the Intent will be handled.
48 private void assertCanBeHandled(final Intent intent) {
50 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
52 // one or more activity can handle this intent.
57 * Assert target intent is not resolved by a filter with priority greater than 0.
58 * @param intent - the Intent will be handled
79 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
89 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
99 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
110 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
121 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
133 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
145 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
157 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
168 Intent intent = new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS); local
179 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS); local
190 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_SETTINGS); local
201 Intent intent = new Intent(TelecomManager.ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS); local
213 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); local
246 Intent intent = new Intent(Intent.ACTION_VIEW); local
256 Intent intent = new Intent(Intent.ACTION_VIEW); local
263 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); local
271 Intent intent = new Intent(AlarmClock.ACTION_SET_TIMER); local
277 Intent intent = new Intent(AlarmClock.ACTION_SHOW_ALARMS); local
285 Intent intent = new Intent(AlarmClock.ACTION_SHOW_TIMERS); local
290 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
297 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
304 Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); local
311 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
318 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
IntentTest.java 16 import android.content.Intent;
37 Intent intent = new Intent(); local
38 assertSame(intent, intent.putExtra("foo", "bar"));
39 assertEquals("bar", intent.getExtras().get("foo"));
44 Intent intent = new Intent(); local
52 Intent intent = new Intent(); local
60 Intent intent = new Intent(); local
68 Intent intent = new Intent(); local
76 Intent intent = new Intent(); local
87 Intent intent = new Intent(); local
98 Intent intent = new Intent(); local
109 Intent intent = new Intent(); local
118 Intent intent = new Intent(); local
129 Intent intent = new Intent(); local
145 Intent intent = new Intent(); local
154 Intent intent = new Intent(); local
163 Intent intent = new Intent(); local
171 Intent intent = new Intent(); local
178 Intent intent = new Intent(); local
188 Intent intent = new Intent(); local
197 Intent intent = new Intent(); local
206 Intent intent = new Intent(); local
217 Intent intent = new Intent(); local
228 Intent intent = new Intent(new Activity(), getClass()); local
234 Intent intent = new Intent(); local
242 Intent intent = new Intent(); local
251 Intent intent = new Intent(); local
276 Intent intent = new Intent(); local
377 Intent intent = new Intent(); local
387 Intent intent = new Intent(); local
397 Intent intent = new Intent(new Activity(), getClass()); local
410 Intent intent = new Intent("action"); local
    [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/tests/framework/base/activitymanager/app/src/android/server/am/
LaunchAssistantActivityIntoAssistantStack.java 23 import android.content.Intent;
31 final Intent intent = getIntent(); local
32 if (isTranslucent(intent)) {
33 TranslucentAssistantActivity.launchActivityIntoAssistantStack(this, intent.getExtras());
40 private static boolean isTranslucent(Intent intent) {
41 return intent.hasExtra(EXTRA_ASSISTANT_IS_TRANSLUCENT)
42 && Boolean.valueOf(intent.getStringExtra(EXTRA_ASSISTANT_IS_TRANSLUCENT));
  /frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
ActivityStarter.java 18 import android.content.Intent;
31 void startPendingIntentDismissingKeyguard(PendingIntent intent);
32 void startActivity(Intent intent, boolean dismissShade);
33 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade);
34 void startActivity(Intent intent, boolean dismissShade, Callback callback);
35 void postStartActivityDismissingKeyguard(Intent intent, int delay)
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
BatteryTestUtils.java 19 import android.content.Intent;
24 public static Intent getChargingIntent() {
32 public static Intent getDischargingIntent() {
40 public static Intent getCustomBatteryIntent(int plugged, int level, int scale, int status) {
41 Intent intent = new Intent(); local
42 intent.putExtra(BatteryManager.EXTRA_PLUGGED, plugged);
43 intent.putExtra(BatteryManager.EXTRA_LEVEL, level);
44 intent.putExtra(BatteryManager.EXTRA_SCALE, scale)
    [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...]
  /frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
CustomTabsIntentTest.java 25 import android.content.Intent;
47 Intent intent = customTabsIntent.intent; local
48 assertNotNull(intent);
51 assertEquals(Intent.ACTION_VIEW, intent.getAction());
52 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
54 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
56 assertNull(intent.getComponent())
62 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; local
71 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent; 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...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
PrivilegedCellBroadcastReceiver.java 20 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
32 onReceiveWithPrivilege(context, intent, true);
  /packages/apps/Dialer/java/com/android/dialer/blockreportspam/
ShowBlockReportSpamDialogNotifier.java 20 import android.content.Intent;
40 Intent intent = new Intent(); local
41 intent.setAction(
45 intent, ShowBlockReportSpamDialogReceiver.EXTRA_DIALOG_INFO, blockReportSpamDialogInfo);
47 LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
55 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Email/src/com/android/email2/ui/
CreateShortcutActivityEmail.java 26 import android.content.Intent;
35 Intent intent = getIntent(); local
37 intent.setClass(this, FolderSelectionActivity.class);
38 intent.setFlags(
39 Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_FORWARD_RESULT);
40 intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
41 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT
    [all...]

Completed in 1542 milliseconds

1 2 3 4 5 6 7 8 91011>>