HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 76 - 100 of 1677) sorted by null

1 2 34 5 6 7 8 91011>>

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
EnterprisePrivacyInfoOnlyTestActivity.java 19 import android.content.Intent;
42 final Intent intent = getIntent(); local
43 if (!intent.hasExtra(EXTRA_ID)
44 || !intent.hasExtra(EXTRA_TITLE)
45 || !intent.hasExtra(EXTRA_INFO)) {
47 "Intent must have EXTRA_ID, EXTRA_TITLE & EXTRA_INFO");
50 mTestId = intent.getStringExtra(EXTRA_ID);
51 setTitle(intent.getIntExtra(EXTRA_TITLE, -1));
54 info.setText(intent.getIntExtra(EXTRA_INFO, -1))
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
SetPolicyActivity.java 22 import android.content.Intent;
46 // Overriding this method in case another intent is sent to this activity before finish()
48 public void onNewIntent(Intent intent) {
49 super.onNewIntent(intent);
50 handleIntent(intent);
61 private void handleIntent(Intent intent) {
64 String command = intent.getStringExtra(EXTRA_COMMAND);
68 String restrictionKey = intent.getStringExtra(EXTRA_RESTRICTION_KEY)
    [all...]
  /cts/tests/app/src/android/app/cts/
NewDocumentTest.java 25 import android.content.Intent;
35 final Intent intent = new Intent(); local
36 intent.setClass(getContext(), NewDocumentTestActivity.class);
37 intent.setData(TEST_URI);
38 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
41 getContext().startActivity(intent);
46 getContext().startActivity(intent);
    [all...]
  /cts/tests/openglperf2/src/android/opengl2/cts/reference/
GLReferenceActivity.java 17 import android.content.Intent;
40 Intent intent = getIntent(); local
41 mNumFrames = intent.getIntExtra(GLActivityIntentKeys.INTENT_EXTRA_NUM_FRAMES, 0);
42 mTimeout = intent.getIntExtra(GLActivityIntentKeys.INTENT_EXTRA_TIMEOUT, 0);
45 intent = new Intent(this, GLGameActivity.class);
46 intent.putExtra(GLActivityIntentKeys.INTENT_EXTRA_NUM_FRAMES, mNumFrames);
47 intent.putExtra(GLActivityIntentKeys.INTENT_EXTRA_TIMEOUT, mTimeout);
48 startActivityForResult(intent, GAME_ACTIVITY_CODE)
    [all...]
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
PersistService.java 31 import android.content.Intent;
80 public int onStartCommand(Intent intent, int flags, int startId) {
81 if(intent == null) {
85 if(RcsPresence.ACTION_PRESENCE_CHANGED.equals(intent.getAction())) {
88 msg.obj = intent;
91 } else if(RcsPresence.ACTION_PUBLISH_STATE_CHANGED.equals(intent.getAction())) {
94 msg.obj = intent;
98 logger.debug("unknown intent=" + intent);
133 Intent intent = (Intent)msg.obj; local
173 Intent intent = new Intent(RcsPresence.ACTION_PRESENCE_CHANGED); local
184 Intent intent = new Intent(RcsPresence.ACTION_PRESENCE_CHANGED); local
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsContract_QuickContactsTest.java 22 import android.content.Intent;
49 public void startActivity(Intent intent) {
50 testCallback(intent);
53 public void startActivityAsUser(Intent intent, UserHandle user) {
54 testCallback(intent);
57 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) {
58 testCallback(intent);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
ReportViewerActivity.java 20 import android.content.Intent;
33 Intent intent = getIntent(); local
34 if (intent != null) {
35 String reportContents = intent.getStringExtra(EXTRA_REPORT_CONTENTS);
  /cts/hostsidetests/backup/SuccessNotificationApp/src/android/cts/backup/successnotificationapp/
SuccessNotificationReceiver.java 21 import android.content.Intent;
24 private static final String BACKUP_FINISHED_ACTION = "android.intent.action.BACKUP_FINISHED";
28 public void onReceive(Context context, Intent intent) {
29 if (!BACKUP_FINISHED_ACTION.equals(intent.getAction())) {
32 final String packageName = intent.getStringExtra(BACKUP_FINISHED_PACKAGE_EXTRA);
  /cts/tests/app/app/src/android/app/stubs/
FragmentResultActivity.java 19 import android.content.Intent;
34 Intent intent = new Intent(); local
35 intent.putExtra(EXTRA_RESULT_CONTENT, result);
36 setResult(resultCode, intent);
  /cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
FreeformActivity.java 19 import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
24 import android.content.Intent;
32 final Intent intent = new Intent(this, TestActivity.class); local
33 intent.setFlags(FLAG_ACTIVITY_CLEAR_TASK | FLAG_ACTIVITY_NEW_TASK);
37 this.startActivity(intent, options.toBundle());
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/accounts/common/src/android/accounts/cts/common/
TestAuthenticatorActivity.java 21 import android.content.Intent;
29 Intent intent = getIntent(); local
30 AccountAuthenticatorResponse response = intent.getParcelableExtra(Fixtures.KEY_CALLBACK);
31 Intent result = intent.getParcelableExtra(Fixtures.KEY_RESULT);
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountAuthenticatorDummyActivity.java 6 import android.content.Intent;
11 * behavior of {@link AccountManager} when authenticator returns intent.
18 Intent intent = getIntent(); local
19 AccountAuthenticatorResponse response = intent.getParcelableExtra(Fixtures.KEY_CALLBACK);
20 Intent result = intent.getParcelableExtra(Fixtures.KEY_RESULT);
  /cts/tests/tests/content/src/android/content/cts/
MockService.java 20 import android.content.Intent;
38 public IBinder onBind(Intent intent) {
47 public void onStart(Intent intent, int startId) {
48 super.onStart(intent, startId);
  /cts/tests/tests/telecom/src/android/telecom/cts/
NewOutgoingCallBroadcastReceiver.java 5 import android.content.Intent;
9 * Broadcast receiver for {@link Intent#ACTION_NEW_OUTGOING_CALL}.
16 public void onReceive(Context context, Intent intent) {
17 if (Intent.ACTION_NEW_OUTGOING_CALL.equals(intent.getAction())) {
19 sReceivedPhoneNumber = intent.getData();
  /developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SampleMediaButtonReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) {
43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
  /developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local
32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
  /developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local
32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
  /developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SampleMediaButtonReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) {
43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
  /developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
ListsItem.java 20 import android.content.Intent;
36 Intent intent = new Intent(context, mClass); local
37 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
39 context.startActivity(intent);
  /development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
MessageReceiver.java 20 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 if (intent.getAction()
31 String newPackage = intent.getStringExtra("android.intent.extra.PACKAGE_NAME");
  /development/samples/StackWidget/src/com/example/android/stackwidget/
StackWidgetProvider.java 23 import android.content.Intent;
48 public void onReceive(Context context, Intent intent) {
50 if (intent.getAction().equals(TOAST_ACTION)) {
51 int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
53 int viewIndex = intent.getIntExtra(EXTRA_ITEM, 0);
56 super.onReceive(context, intent);
64 // Here we setup the intent which points to the StackViewService which will
66 Intent intent = new Intent(context, StackWidgetService.class) local
    [all...]
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
UrlIntentListener.java 20 import android.content.Intent;
34 final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); local
35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
37 context.startActivity(intent);
  /development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
SampleMediaButtonReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) {
43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
  /development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
NotificationUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local
32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,

Completed in 995 milliseconds

1 2 34 5 6 7 8 91011>>