HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 326 - 350 of 4230) sorted by null

<<11121314151617181920>>

  /cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/
ErrorsTests.java 22 import android.content.Intent;
69 Intent intent = new Intent(); local
70 intent.setClass(mContext, ExceptionActivity.class);
71 mContext.startActivity(intent);
82 "Subject: Broadcast of Intent { act=android.intent.action.SCREEN_ON");
83 Intent intent = new Intent() local
96 Intent intent = new Intent(); local
    [all...]
  /developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
ReplyToMessageIntentService.java 19 import android.content.Intent;
56 protected void onHandleIntent(@Nullable Intent intent) {
58 if (intent != null) {
59 if (intent.hasExtra(Constants.EXTRA_CHAT)) {
60 String action = intent.getAction();
62 handleReply(getMessage(intent), extractChat(intent));
85 private Chat extractChat(Intent intent) {
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
StartedServiceMatcher.java 6 import android.content.Intent;
17 private final Intent expectedIntent;
21 public StartedServiceMatcher(Intent expectedIntent) {
40 * Check if the class of the intent and the keys of the intent's extras match
48 message = "null intent (did you mean to expect null?)";
55 Intent actualStartedIntent = shadowOf((ContextWrapper) actualContext).getNextStartedService();
65 // Test only that we are sending intent to the right service class
70 // Test that both intent extras have the same keys
87 public static Intent createIntent(Class<? extends Service> serviceClass, String extraKey, String extraValue)
88 Intent intent = createIntent(serviceClass); local
94 Intent intent = createIntent(serviceClass); local
110 Intent intent = new Intent(); local
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DeviceStateMonitorTest.java 30 import android.content.Intent;
81 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); local
82 intent.putExtra(ConnectivityManager.EXTRA_ACTIVE_TETHER, new ArrayList<>(asList("abc")));
83 mContext.sendBroadcast(intent);
91 intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
92 intent.putExtra(ConnectivityManager.EXTRA_ACTIVE_TETHER, new ArrayList<>());
93 mContext.sendBroadcast(intent);
106 Intent intent = new Intent(BatteryManager.ACTION_CHARGING); local
    [all...]
  /packages/apps/Camera2/tests/src/com/android/camera/stress/
ImageCapture.java 23 import android.content.Intent;
48 // Private intent extras.
50 "android.intent.extras.CAMERA_FACING";
94 Intent intent = new Intent(); local
96 intent.setClass(getInstrumentation().getTargetContext(), CameraActivity.class);
97 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
98 intent.putExtra(EXTRAS_CAMERA_FACING
108 Intent intent = new Intent(); local
    [all...]
VideoCapture.java 24 import android.content.Intent;
47 // Private intent extras which control the camera facing.
49 "android.intent.extras.CAMERA_FACING";
87 Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA); local
89 intent.setClass(getInstrumentation().getTargetContext(), CameraActivity.class);
90 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
91 intent.putExtra(EXTRAS_CAMERA_FACING
101 Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/vcard/
SelectAccountActivity.java 21 import android.content.Intent;
68 final Intent intent = new Intent(); local
69 intent.putExtra(ACCOUNT_NAME, account.name);
70 intent.putExtra(ACCOUNT_TYPE, account.type);
71 intent.putExtra(DATA_SET, account.dataSet);
72 setResult(RESULT_OK, intent);
87 final Intent intent = new Intent()
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/sync/
SyncOneTask.java 20 import android.content.Intent;
50 Intent intent = BaseTask.createIntent(context, SyncOneTask.class, phone); local
51 intent.putExtra(EXTRA_PHONE_ACCOUNT_HANDLE, phone);
52 intent.putExtra(EXTRA_SYNC_TYPE, OmtpVvmSyncService.SYNC_DOWNLOAD_ONE_TRANSCRIPTION);
53 intent.putExtra(EXTRA_VOICEMAIL, voicemail);
54 context.sendBroadcast(intent);
77 public Intent createRestartIntent() {
79 Intent intent = super.createRestartIntent() local
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/services/
FileOperations.java 28 import android.content.Intent;
64 Intent intent = createBaseIntent(context, newJobId, operation); local
69 context.startService(intent);
78 Intent intent = new Intent(activity, FileOperationService.class); local
79 intent.putExtra(EXTRA_CANCEL, true);
80 intent.putExtra(EXTRA_JOB_ID, jobId);
82 activity.startService(intent);
95 Intent intent = new Intent(context, FileOperationService.class); local
    [all...]
  /packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
ImageCapture.java 24 import android.content.Intent;
50 // Private intent extras.
52 "android.intent.extras.CAMERA_FACING";
97 Intent intent = new Intent(); local
99 intent.setClass(getInstrumentation().getTargetContext(), Camera.class);
100 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
101 intent.putExtra(EXTRAS_CAMERA_FACING
112 Intent intent = new Intent(); local
    [all...]
VideoCapture.java 25 import android.content.Intent;
49 // Private intent extras which control the camera facing.
51 "android.intent.extras.CAMERA_FACING";
91 Intent intent = new Intent(); local
93 intent.setClass(getInstrumentation().getTargetContext(), VideoCamera.class);
94 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
95 intent.putExtra(EXTRAS_CAMERA_FACING
106 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/beam/
BluetoothOppHandover.java 23 import android.content.Intent;
46 "android.nfc.handover.intent.action.HANDOVER_SEND";
49 "android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE";
99 Intent intent = new Intent(); local
100 intent.setPackage(mContext.getString(R.string.bluetooth_package));
102 intent.setType(mimeType);
103 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
110 Intent.FLAG_GRANT_READ_URI_PERMISSION)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionUtils.java 22 import android.content.Intent;
34 public static Intent getSuggestionIntent(SuggestionCursor suggestion, Bundle appSearchData) {
42 // Now build the Intent
43 Intent intent = new Intent(action); local
44 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
47 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
    [all...]
  /packages/services/Telephony/src/com/android/phone/
CallGatewayManager.java 19 import android.content.Intent;
46 * Intent extra to specify the package name of the gateway
57 * Intent extra to specify the URI of the provider to place the
61 * intent URL or in the EXTRA_PHONE_NUMBER extra.
87 * Intent parameter. If no such data exists, returns a Null-Object RawGatewayInfo.
88 * @param intent The intent from which to read gateway data.
91 public static RawGatewayInfo getRawGatewayInfo(Intent intent, String number) {
92 if (hasPhoneProviderExtras(intent)) {
    [all...]
  /frameworks/base/core/java/android/app/
KeyguardManager.java 26 import android.content.Intent;
65 * Intent used to prompt user for device credentials.
72 * Intent used to prompt user for device credentials.
79 * Intent used to prompt user for factory reset credentials.
117 * Get an intent to prompt the user to confirm credentials (pin, pattern or password)
119 * {@link android.app.Activity#startActivityForResult(Intent, int)} and check for
122 * @return the intent for launching the activity or null if no password is required.
124 public Intent createConfirmDeviceCredentialIntent(CharSequence title, CharSequence description) {
126 Intent intent = new Intent(ACTION_CONFIRM_DEVICE_CREDENTIAL)
205 Intent intent = new Intent(ACTION_CONFIRM_FRP_CREDENTIAL); local
    [all...]
  /frameworks/support/media-compat/java/android/support/v4/media/session/
MediaButtonReceiver.java 24 import android.content.Intent;
45 * &lt;intent-filter&gt;
46 * &lt;action android:name="android.intent.action.MEDIA_BUTTON" /&gt;
47 * &lt;/intent-filter&gt;
53 * to find a {@link Service} that can handle {@link Intent#ACTION_MEDIA_BUTTON}, and a
61 * A service can receive a key event by including an intent filter that handles
62 * {@link Intent#ACTION_MEDIA_BUTTON}:
65 * &lt;intent-filter&gt;
66 * &lt;action android:name="android.intent.action.MEDIA_BUTTON" /&gt;
67 * &lt;/intent-filter&gt
264 Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON); local
    [all...]
  /packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
LensPickerActivity.java 19 import android.content.Intent;
48 private Intent mLastLaunchedIntent;
77 Intent intent = getIntent(); local
78 String[] categories = intent.getStringArrayExtra(
80 String[] packages = intent.getStringArrayExtra(LensPickerConstants.EXTRA_FACET_PACKAGES);
81 String facetId = intent.getStringExtra(LensPickerConstants.EXTRA_FACET_ID);
89 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, rInfo,
94 Log.e(TAG, "Failed to get launch intent for package" + packageName);
117 private boolean isReclick(Intent intent, Intent oldIntent)
175 Intent intent = new Intent(); local
183 Intent intent = new Intent(); local
191 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Car/Messenger/src/com/android/car/messenger/
MessengerService.java 26 import android.content.Intent;
118 public int onStartCommand(Intent intent, int flags, int startId) {
120 Log.d(TAG, "Handling intent: " + intent);
124 // It may be restarted with null intent or one of the other intents e.g. REPLY, PLAY etc.
127 if (intent == null || ACTION_START.equals(intent.getAction())) {
132 if (!hasRequiredArgs(intent)) {
135 switch (intent.getAction())
    [all...]
  /packages/services/Car/TrustAgent/src/com/android/car/trust/
CarEnrolmentActivity.java 23 import android.content.Intent;
68 public void onReceive(Context context, Intent intent) {
69 intent.getPackage();
71 String action = intent.getAction();
77 boolean tokenActive = intent.getBooleanExtra(INTENT_EXTRA_TOKEN_STATUS, false);
80 final long handle = intent.getLongExtra(INTENT_EXTRA_TOKEN_HANDLE, -1);
106 final Intent intent = new Intent(this, CarEnrolmentService.class) local
221 Intent intent = new Intent(); local
234 Intent intent = new Intent(); local
240 Intent intent = new Intent(); local
    [all...]
  /cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
CertInstallerReceiver.java 21 import android.content.Intent;
68 public void onReceive(Context context, Intent intent) {
69 if (intent == null) {
73 String action = intent.getAction();
81 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA);
99 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA);
111 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA);
119 String alias = intent.getStringExtra(EXTRA_KEY_ALIAS);
120 String key = intent.getStringExtra(EXTRA_KEY_DATA)
149 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/password/
ChooseLockPasswordTest.java 24 import android.content.Intent;
72 Intent intent = new IntentBuilder(application) local
79 assertThat(intent.getBooleanExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, true))
82 assertThat(intent.getStringExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD))
85 assertThat(intent.getIntExtra(ChooseLockPassword.PASSWORD_MIN_KEY, 0))
88 assertThat(intent.getIntExtra(ChooseLockPassword.PASSWORD_MAX_KEY, 0))
91 assertThat(intent.getIntExtra(LockPatternUtils.PASSWORD_TYPE_KEY, 0))
94 assertThat(intent.getIntExtra(Intent.EXTRA_USER_ID, 0)
101 Intent intent = new IntentBuilder(application) local
    [all...]
  /cts/tests/app/app/src/android/app/stubs/
MockService.java 21 import android.content.Intent;
47 public IBinder onBind(Intent intent) {
60 public void onStart(Intent intent, int startId) {
61 super.onStart(intent, startId);
63 if (!intent.getBooleanExtra(EXTRA_NO_STOP, false)) {
126 Intent intent = new Intent(); local
    [all...]
  /cts/tests/leanbackjank/src/android/leanbackjank/cts/
CtsDeviceLeanback.java 18 import android.content.Intent;
68 Intent intent = new Intent(Intent.ACTION_MAIN); local
69 intent.setComponent(new ComponentName(APP_PACKAGE, CLASS));
72 intent.putExtra(IntentKeys.SCROLL_DELAY, PRE_SCROLL_DELAY_MILLIS);
73 intent.putExtra(IntentKeys.SCROLL_COUNT, SCROLL_COUNT);
74 intent.putExtra(IntentKeys.SCROLL_INTERVAL, SCROLL_INTERVAL_MILLIS);
75 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
    [all...]
  /frameworks/base/packages/Shell/src/com/android/shell/
BugreportReceiver.java 29 import android.content.Intent;
37 * {@link Intent#ACTION_SEND_MULTIPLE}.
53 public void onReceive(Context context, Intent intent) {
54 Log.d(TAG, "onReceive(): " + dumpIntent(intent));
56 cleanupOldFiles(this, intent, INTENT_BUGREPORT_FINISHED, MIN_KEEP_COUNT, MIN_KEEP_AGE);
58 // Delegate intent handling to service.
59 Intent serviceIntent = new Intent(context, BugreportProgressService.class);
60 serviceIntent.putExtra(EXTRA_ORIGINAL_INTENT, intent);
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
IntentBroadcaster.java 22 import android.content.Intent;
34 * for example broadcasts are always sticky, only the last intent for the slotId is rebroadcast,
40 private Map<Integer, Intent> mRebroadcastIntents = new HashMap<>();
45 public void onReceive(Context context, Intent intent) {
46 String action = intent.getAction();
47 if (action.equals(Intent.ACTION_USER_UNLOCKED)) {
53 Intent i = (Intent) pair.getValue();
56 logd("Rebroadcasting intent " + i.getAction() + "
    [all...]

Completed in 654 milliseconds

<<11121314151617181920>>