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

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
VoiceSearch.java 21 import android.content.Intent;
51 protected Intent createVoiceSearchIntent() {
52 return new Intent(RecognizerIntent.ACTION_WEB_SEARCH);
56 Intent intent = createVoiceSearchIntent(); local
58 resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
66 public Intent createVoiceWebSearchIntent(Bundle appData) {
68 Intent intent = createVoiceSearchIntent();
69 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DataClearer.java 24 import android.content.Intent;
60 Intent intent = new Intent(Intent.ACTION_DEFAULT); local
61 intent.setClassName(mAppInfo.getPackageName(), spaceManagementActivityName);
62 activity.startActivityForResult(intent, requestId);
86 Intent intent = new Intent(); local
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DialogActivity.java 25 import android.content.Intent;
113 public static Intent createIntent(Context context, String title,
120 public static Intent createIntent(Context context, String title,
123 Intent intent = new Intent(context, DialogActivity.class); local
124 intent.putExtra(EXTRA_DIALOG_TITLE, title);
125 intent.putExtra(EXTRA_DIALOG_BREADCRUMB, breadcrumb);
126 intent.putExtra(EXTRA_DIALOG_DESCRIPTION, description);
127 intent.putExtra(EXTRA_DIALOG_IMAGE_URI, imageUri)
144 Intent intent = new Intent(context, activityClass); local
159 Intent intent = new Intent(context, activityClass); local
248 Intent intent = action.getIntent(); local
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
InputsCustomLabelActivity.java 22 import android.content.Intent;
57 Intent intent = getIntent(); local
58 mId = intent.getStringExtra(KEY_ID);
60 intent.getStringExtra(KEY_LABEL));
69 Intent intent = new Intent(); local
70 intent.putExtra(KEY_ID, mId);
71 intent.putExtra(KEY_LABEL, name)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
RobolectricPackageManager.java 11 import android.content.Intent;
23 private Map<Intent, List<ResolveInfo>> resolveList = new HashMap<Intent, List<ResolveInfo>>();
76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) {
77 return queryIntent(intent, flags);
81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) {
82 return queryIntent(intent, flags);
86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags)
    [all...]
  /frameworks/base/core/java/android/app/
PendingIntent.java 23 import android.content.Intent;
40 * A description of an Intent and target action to perform with it. Instances
50 * almost always, for example, the base Intent you supply should have the component
59 * same kind of PendingIntent (same operation, same Intent action, data,
69 * parts of the Intent that are used for matching are the same ones defined
70 * by {@link Intent#filterEquals(Intent) Intent.filterEquals}. If you use two
71 * Intent objects that are equivalent as per
72 * {@link Intent#filterEquals(Intent) Intent.filterEquals}, then you will ge
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
GalleryActivity.java 23 import android.content.Intent;
78 Intent intent = getIntent(); local
79 String action = intent.getAction();
81 if (Intent.ACTION_GET_CONTENT.equalsIgnoreCase(action)) {
82 startGetContent(intent);
83 } else if (Intent.ACTION_PICK.equalsIgnoreCase(action)) {
84 // We do NOT really support the PICK intent. Handle it as
86 // in the intent here.
88 String type = Utils.ensureNotNull(intent.getType())
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ReadableUriExtraToClipDataTest.java 21 import android.content.Intent;
54 public void onReceive(Context context, Intent intent) {
83 Intent intent = new Intent(Intent.ACTION_SEND); local
84 intent.setComponent(new ComponentName(getContext(), ReadableFileReceiverActivity.class));
85 intent.putExtra(Intent.EXTRA_STREAM, mTestFileUris.get(0))
95 Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); local
    [all...]
  /device/sample/apps/LeanbackCustomizer/src/com/android/leanbacklauncher/partnercustomizer/
PartnerReceiver.java 26 import android.content.Intent;
79 public void onReceive(Context context, Intent intent) {
87 String action = intent.getAction();
88 if (Intent.ACTION_PACKAGE_ADDED.equals(action)||
89 Intent.ACTION_PACKAGE_REMOVED.equals(action)) {
90 postNotification(getPackageName(intent));
92 mRowCutoff = intent.getIntExtra(EXTRA_ROW_WRAPPING_CUTOFF, 0);
130 Intent intent = mPkgMan.getLeanbackLaunchIntentForPackage(pkgName) local
156 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
NetInitiatedActivity.java 23 import android.content.Intent;
50 // Received ID from intent, -1 when no notification is in progress
59 public void onReceive(Context context, Intent intent) {
60 if (DEBUG) Log.d(TAG, "NetInitiatedReceiver onReceive: " + intent.getAction());
61 if (intent.getAction() == GpsNetInitiatedHandler.ACTION_NI_VERIFY) {
62 handleNIVerify(intent);
87 final Intent intent = getIntent(); local
90 p.mTitle = intent.getStringExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TITLE)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
IntentTile.java 22 import android.content.Intent;
35 public static final String PREFIX = "intent(";
54 throw new IllegalArgumentException("Bad intent tile spec: " + spec);
58 throw new IllegalArgumentException("Empty intent tile spec action");
84 final Intent intent = Intent.parseUri(mOnClickUri, Intent.URI_INTENT_SCHEME); local
85 mContext.sendBroadcastAsUser(intent, new UserHandle(mCurrentUserId));
88 Log.w(TAG, "Error sending click intent", t)
    [all...]
  /packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
ImsFrameworkApp.java 22 import android.content.Intent;
44 // Broadcast receiver for telephony intent broadcasts
54 // Register for telephony intent broadcasts
56 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED);
69 public void onReceive(Context context, Intent intent) {
70 String action = intent.getAction();
72 if (action.equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)) {
74 Log.d(TAG, "- state: " + intent.getBooleanExtra(Phone.STATE_KEY, false));
77 Log.d(TAG, "- apnName: " + intent.getStringExtra(Phone.DATA_APN_KEY))
    [all...]
  /development/samples/AppNavigation/src/com/example/android/appnavigation/app/
AppNavHomeActivity.java 20 import android.content.Intent;
47 startActivity(info.intent);
51 Intent intent = new Intent(Intent.ACTION_MAIN, null); local
52 intent.setPackage(getPackageName());
53 intent.addCategory(Intent.CATEGORY_SAMPLE_CODE);
56 List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0)
78 Intent intent; field in class:AppNavHomeActivity.SampleInfo
    [all...]
  /development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
AppNavHomeActivity.java 20 import android.content.Intent;
47 startActivity(info.intent);
51 Intent intent = new Intent(Intent.ACTION_MAIN, null); local
52 intent.setPackage(getPackageName());
53 intent.addCategory(Intent.CATEGORY_SAMPLE_CODE);
56 List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0)
78 Intent intent; field in class:AppNavHomeActivity.SampleInfo
    [all...]
  /external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/
InvalidationControllerTest.java 11 import android.content.Intent;
63 Intent intent = mContext.getStartedIntent(0); local
64 validateIntentComponent(intent);
72 Intent intent = mContext.getStartedIntent(0); local
73 validateIntentComponent(intent);
74 assertEquals(1, intent.getExtras().size());
75 assertTrue(intent.hasExtra(InvalidationIntentProtocol.EXTRA_STOP));
76 assertTrue(intent.getBooleanExtra(InvalidationIntentProtocol.EXTRA_STOP, false))
86 Intent intent = mContext.getStartedIntent(0); local
106 Intent intent = mContext.getStartedIntent(0); local
165 Intent intent = mContext.getStartedIntent(0); local
193 Intent intent = mContext.getStartedIntent(0); local
301 Intent intent = mContext.getStartedIntent(0); local
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
StartedMatcher.java 6 import android.content.Intent;
14 private final Intent expectedIntent;
18 public StartedMatcher(Intent expectedIntent) {
39 message = "null intent (did you mean to expect null?)";
46 Intent actualStartedIntent = shadowOf((ContextWrapper) actualContext).getNextStartedActivity();
67 public static Intent createIntent(Class<? extends Activity> activityClass, String extraKey, String extraValue) {
68 Intent intent = createIntent(activityClass); local
69 intent.putExtra(extraKey, extraValue);
70 return intent;
74 Intent intent = createIntent(activityClass); local
85 Intent intent = new Intent(); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/activity/
LocalService.java 20 import android.content.Intent;
52 public void onStart(Intent intent, int startId) {
53 //Log.i("LocalService", "onStart: " + intent);
54 if (intent.getExtras() != null) {
55 mReportObject = intent.getExtras().getIBinder(ServiceTest.REPORT_OBJ_NAME);
87 public IBinder onBind(Intent intent) {
88 Log.i("LocalService", "onBind: " + intent);
93 public boolean onUnbind(Intent intent)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppHandoverReceiver.java 22 import android.content.Intent;
34 public void onReceive(Context context, Intent intent) {
35 String action = intent.getAction();
41 (BluetoothDevice)intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
43 if (D) Log.d(TAG, "No device attached to handover intent.");
47 String type = intent.getType();
48 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
59 String mimeType = intent.getType()
    [all...]
  /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
CameraTest.java 24 import android.content.Intent;
43 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); local
44 intent.setClass(getInstrumentation().getTargetContext(), VideoCamera.class);
45 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
46 intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file://"
49 getInstrumentation().startActivitySync(intent).finish();
64 Intent intent = new Intent() local
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/handover/
BluetoothOppHandover.java 22 import android.content.Intent;
47 "android.nfc.handover.intent.action.HANDOVER_SEND";
50 "android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE";
100 Intent intent = new Intent(); local
101 intent.setPackage("com.android.bluetooth");
103 intent.setType(mimeType);
104 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
111 Intent.FLAG_GRANT_READ_URI_PERMISSION)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
ContactPhotoUtils.java 20 import android.content.Intent;
98 * @param intent The intent to add extras to.
102 public static void addGalleryIntentExtras(Intent intent, Uri croppedPhotoUri, int photoSize) {
103 intent.putExtra("crop", "true");
104 intent.putExtra("scale", true);
105 intent.putExtra("scaleUpIfNeeded", true);
106 intent.putExtra("aspectX", 1);
107 intent.putExtra("aspectY", 1)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DeviceAdminTestReceiver.java 23 import android.content.Intent;
33 * Setup cross-profile intent filter after successful provisioning.
39 public void onProfileProvisioningComplete(Context context, Intent intent) {
40 Log.d(TAG, "Provisioning complete intent received");
48 // Setup cross-profile intent filter to allow communications between the two versions of CtsVerifier
63 Intent intent = new Intent(context, ByodHelperActivity.class); local
64 intent.setAction(ByodHelperActivity.ACTION_PROFILE_PROVISIONED)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sample/
SampleTestActivity.java 22 import android.content.Intent;
72 * Creates a temporary file containing the test string and then issues the intent to share it.
88 // Create the share intent.
89 Intent intent = new Intent(); local
90 intent.setAction(Intent.ACTION_SEND);
91 intent.setType("text/plain");
92 intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file))
    [all...]
  /cts/hostsidetests/theme/app/src/android/theme/app/
CaptureActivity.java 20 import android.content.Intent;
52 Intent intent = new Intent(this, HoloDeviceActivity.class); local
53 intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
54 intent.putExtra(HoloDeviceActivity.EXTRA_THEME, mCurrentTheme);
55 intent.putExtra(HoloDeviceActivity.EXTRA_LAYOUT, mCurrentLayout);
56 startActivityForResult(intent, REQUEST_CODE);
60 protected void onActivityResult(int requestCode, int resultCode, Intent data)
    [all...]
  /developers/build/prebuilts/gradle/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...]

Completed in 2066 milliseconds

1 2 3 4 5 6 7 8 91011>>