HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 251 - 275 of 2364) sorted by null

<<11121314151617181920>>

  /developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
MainActivity.java 21 import android.content.Intent;
48 protected void onNewIntent(Intent intent) {
49 handleIntent(intent);
53 * Assuming this activity was started with a new intent, process the incoming information and
55 * @param intent
57 private void handleIntent(Intent intent) {
58 // Special processing of the incoming intent only occurs if the if the action specified
59 // by the intent is ACTION_SEARCH
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarNavigation.java 20 import android.content.Intent;
44 if (getIntent().hasCategory(Intent.CATEGORY_SAMPLE_CODE)) {
52 Intent intent = new Intent(this, ActionBarNavigationTarget.class); local
53 startActivity(intent);
57 Intent intent = new Intent(this, ActionBarNavigationTarget.class); local
58 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT)
    [all...]
Forwarding.java 24 import android.content.Intent;
78 Intent intent = new Intent();
79 intent.setClass(Forwarding.this, ForwardTarget.class);
80 startActivity(intent);
  /development/samples/ToyVpn/src/com/example/android/toyvpn/
ToyVpnClient.java 20 import android.content.Intent;
47 Intent intent = VpnService.prepare(this); local
48 if (intent != null) {
49 startActivityForResult(intent, 0);
56 protected void onActivityResult(int request, int result, Intent data) {
59 Intent intent = new Intent(this, ToyVpnService.class) local
63 startService(intent);
    [all...]
  /development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
MainActivity.java 21 import android.content.Intent;
48 protected void onNewIntent(Intent intent) {
49 handleIntent(intent);
53 * Assuming this activity was started with a new intent, process the incoming information and
55 * @param intent
57 private void handleIntent(Intent intent) {
58 // Special processing of the incoming intent only occurs if the if the action specified
59 // by the intent is ACTION_SEARCH
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowNfcAdapter.java 19 private PendingIntent intent; field in class:ShadowNfcAdapter
42 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) {
44 this.intent = intent;
59 return intent;
  /frameworks/base/core/java/android/app/
KeyguardManager.java 19 import android.content.Intent;
38 * Intent used to prompt user for device credentials.
59 * Get an intent to prompt the user to confirm credentials (pin, pattern or password)
61 * {@link android.app.Activity#startActivityForResult(Intent, int)} and check for
64 * @return the intent for launching the activity or null if no password is required.
66 public Intent createConfirmDeviceCredentialIntent(CharSequence title, CharSequence description) {
68 Intent intent = new Intent(ACTION_CONFIRM_DEVICE_CREDENTIAL);
69 intent.putExtra(EXTRA_TITLE, title)
    [all...]
  /frameworks/base/services/core/java/com/android/server/
MasterClearReceiver.java 21 import android.content.Intent;
32 public void onReceive(final Context context, final Intent intent) {
33 if (intent.getAction().equals(Intent.ACTION_REMOTE_INTENT)) {
34 if (!"google.com".equals(intent.getStringExtra("from"))) {
40 final boolean shutdown = intent.getBooleanExtra("shutdown", false);
41 final String reason = intent.getStringExtra(Intent.EXTRA_REASON);
  /frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
RsBenchTest.java 21 import android.content.Intent;
52 Intent intent = new Intent(Intent.ACTION_MAIN); local
53 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
54 intent.setClassName("com.android.perftest", "com.android.perftest.RsBench");
55 intent.setData(data);
56 mAct = (RsBench) mInst.startActivitySync(intent);
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DcFailBringUp.java 19 import android.content.Intent;
24 * saves the parameters from a action_fail_bringup intent. See
50 // Get the Extra Intent parameters
51 void saveParameters(Intent intent, String s) {
52 if (DBG) log(s + ".saveParameters: action=" + intent.getAction());
53 mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER);
55 intent.getIntExtra(FAIL_CAUSE, DEFAULT_FAIL_CAUSE.getErrorCode()));
57 intent.getIntExtra(SUGGESTED_RETRY_TIME, DEFAULT_SUGGESTED_RETRY_TIME);
  /frameworks/support/v4/java/android/support/v4/content/
WakefulBroadcastReceiver.java 22 import android.content.Intent;
44 * starts. The intent that is passed with
53 * completeWakefulIntent(intent)}. The intent it passes as a parameter
54 * is the same intent that the {@link WakefulBroadcastReceiver} originally
67 * Do a {@link android.content.Context#startService(android.content.Intent)
69 * This will modify the Intent to hold an extra identifying the wake lock;
71 * Service.onStartCommand}, it should pass back the Intent it receives there to
72 * {@link #completeWakefulIntent(android.content.Intent)} in order to release
76 * @param intent The Intent with which to start the service, as pe
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
GattDebugUtils.java 19 import android.content.Intent;
78 static boolean handleDebugAction(GattService svc, Intent intent) {
81 String action = intent.getAction();
105 boolean bEnable = intent.getBooleanExtra(EXTRA_ENABLE, true);
109 String address = intent.getStringExtra(EXTRA_ADDRESS);
110 int type = intent.getIntExtra(EXTRA_TYPE, 2 /* LE device */);
111 int addr_type = intent.getIntExtra(EXTRA_ADDR_TYPE, 0 /* Static */);
118 UUID uuid = getUuidExtra(intent);
119 int type = intent.getIntExtra(EXTRA_TYPE, 1 /* All services */)
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
MovieView.java 23 import android.content.Intent;
47 Intent intent = getIntent(); local
48 mControl = new MovieViewControl(rootView, this, intent.getData()) {
56 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) {
57 int orientation = intent.getIntExtra(
64 mFinishOnCompletion = intent.getBooleanExtra(
  /packages/apps/Settings/src/com/android/settings/
CreateShortcut.java 20 import android.content.Intent;
32 protected Intent getTargetIntent() {
33 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null);
35 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
41 Intent shortcutIntent = intentForPosition(position);
42 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
43 Intent intent = new Intent() local
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
BluetoothPairingRequest.java 22 import android.content.Intent;
33 public void onReceive(Context context, Intent intent) {
34 String action = intent.getAction();
39 // convert broadcast intent into activity intent (same action string)
41 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
42 int type = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT,
44 Intent pairingIntent = new Intent();
    [all...]
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
VoiceDialerReceiver.java 21 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
32 if (false) Log.d(TAG, "onReceive " + intent);
35 String action = intent.getAction();
36 String host = intent.getData() != null ? intent.getData().getHost() : null;
39 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
44 else if (Intent.ACTION_PACKAGE_ADDED.equals(action) ||
45 Intent.ACTION_PACKAGE_CHANGED.equals(action) |
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
SettingsActivity.java 22 import android.content.Intent;
53 public Intent getIntent() {
54 final Intent intent = super.getIntent(); local
55 final String fragment = intent.getStringExtra(EXTRA_SHOW_FRAGMENT);
57 intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
59 intent.putExtra(EXTRA_NO_HEADERS, true);
60 return intent;
  /packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/
TestDialerActivity.java 4 import android.content.Intent;
37 protected void onNewIntent(Intent intent) {
38 super.onNewIntent(intent);
43 Intent intent = getIntent(); local
44 if (intent != null) {
45 mNumberView.setText(intent.getDataString());
  /cts/tests/app/src/android/app/cts/
LaunchpadActivity.java 23 import android.content.Intent;
78 public void activityFinished(int resultCode, Intent data, RuntimeException where);
140 private Intent mData = new Intent().setAction("No result received");
282 final Intent intent = getIntent(); local
283 intent.setFlags(0);
284 intent.setComponent((ComponentName) intent.getParcelableExtra("component"));
285 startActivityForResult(intent, LAUNCHED_RESULT)
288 final Intent intent = getIntent(); local
294 final Intent intent = getIntent(); local
373 final Intent intent = getIntent(); local
378 final Intent intent = getIntent(); local
384 final Intent intent = getIntent(); local
390 final Intent intent = getIntent(); local
484 final Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local
489 final Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local
507 final Intent intent = new Intent(action, null); local
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
LaunchpadActivity.java 23 import android.content.Intent;
78 public void activityFinished(int resultCode, Intent data, RuntimeException where);
140 private Intent mData = new Intent().setAction("No result received");
282 final Intent intent = getIntent(); local
283 intent.setFlags(0);
284 intent.setComponent((ComponentName) intent.getParcelableExtra("component"));
285 startActivityForResult(intent, LAUNCHED_RESULT)
288 final Intent intent = getIntent(); local
294 final Intent intent = getIntent(); local
373 final Intent intent = getIntent(); local
378 final Intent intent = getIntent(); local
384 final Intent intent = getIntent(); local
390 final Intent intent = getIntent(); local
484 final Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local
489 final Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local
507 final Intent intent = new Intent(action, null); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
BleAdvertiserHardwareScanFilterActivity.java 26 import android.content.Intent;
48 Intent intent = new Intent(BleAdvertiserHardwareScanFilterActivity.this,
50 intent.putExtra(BleAdvertiserService.EXTRA_COMMAND,
52 startService(intent);
66 Intent intent = new Intent(BleAdvertiserHardwareScanFilterActivity.this,
68 intent.putExtra(BleAdvertiserService.EXTRA_COMMAND
115 Intent intent = new Intent(BleAdvertiserHardwareScanFilterActivity.this, local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
WidgetCtsService.java 20 import android.content.Intent;
34 public RemoteViewsFactory onGetViewFactory(Intent intent) {
35 return new CtsRemoteViewsFactory(this.getApplicationContext(), intent);
46 public CtsRemoteViewsFactory(Context context, Intent intent) {
  /cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
IntentSenderActivity.java 17 package com.android.cts.intent.sender;
20 import android.content.Intent;
31 public final Intent data;
33 public Result(int resultCode, Intent data) {
40 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
50 public Intent getResult(Intent intent) throws Exception {
51 startActivityForResult(intent, 42);
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/recipeassistant/
MainActivity.java 20 import android.content.Intent;
37 Intent intent = new Intent(getApplicationContext(), RecipeActivity.class); local
38 intent.putExtra(Constants.RECIPE_NAME_TO_LOAD, itemName);
39 startActivity(intent);
  /development/apps/BluetoothDebug/src/com/android/bluetoothdebug/
DebugReceiver.java 27 import android.content.Intent;
46 public void onReceive(Context context, Intent intent) {
47 Log.d(TAG, shorten(intent.getAction()));
49 Bundle bundle = intent.getExtras();

Completed in 376 milliseconds

<<11121314151617181920>>