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

1 2 3 4 5 67 8 91011>>

  /developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/
InitializeChannelsReceiver.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
32 Log.d(TAG, "onReceive(): " + intent);
  /developers/samples/android/ui/views/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/
Sample.kt 19 import android.content.Intent
21 class Sample(var titleResId: Int, var descriptionResId: Int, var intent: Intent)
  /development/samples/ApiDemos/src/com/example/android/apis/app/
AppUpdateSspReceiver.java 21 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
30 String msg = "Ssp update received: " + intent.getData();
IntentActivityFlags.java 10 import android.content.Intent;
18 * Example of various Intent flags to modify the activity stack.
35 * This creates an array of Intent objects representing the back stack
39 private Intent[] buildIntentsToViewsLists() {
44 Intent[] intents = new Intent[3];
47 // This is a convenient way to make the proper Intent to launch and
49 intents[0] = Intent.makeRestartActivityTask(new ComponentName(this,
52 Intent intent = new Intent(Intent.ACTION_MAIN) local
    [all...]
  /development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
ShortcutReceiver.java 21 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 Log.i(TAG, "Received: " + intent);
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DeviceShutdown.java 33 import android.content.Intent;
47 public void onReceive(Context context, Intent intent) {
48 logger.debug("onReceive() in PresencePolling, intent: " +
49 intent + ", context: " + context);
  /external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
MainActivity.java 3 import android.content.Intent;
18 Intent intent = new Intent(this, SkQPActivity.class); local
19 startActivity(intent);
  /external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
MainActivity.java 3 import android.content.Intent;
18 Intent intent = new Intent(this, SkQPActivity.class); local
19 startActivity(intent);
  /external/volley/src/main/java/com/android/volley/
AuthFailureError.java 19 import android.content.Intent;
24 /** An intent that can be used to resolve this exception. (Brings up the password dialog.) */
25 private Intent mResolutionIntent;
29 public AuthFailureError(Intent intent) {
30 mResolutionIntent = intent;
45 public Intent getResolutionIntent() {
  /cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
MyForegroundService.java 26 import android.content.Intent;
44 public IBinder onBind(Intent intent) {
49 public int onStartCommand(Intent intent, int flags, int startId) {
50 Log.v(TAG, "MyForegroundService.onStartCommand(): " + intent);
55 switch (intent.getFlags()) {
61 Common.notifyNetworkStateObserver(this, intent);
68 Log.wtf(TAG, "Invalid flag on intent " + intent);
    [all...]
  /cts/tests/app/app/src/android/app/stubs/
IntentServiceStub.java 20 import android.content.Intent;
68 protected void onHandleIntent(Intent intent) {
72 String action = intent.getAction();
74 accumulator += intent.getIntExtra(ISS_VALUE, 0);
83 public IBinder onBind(Intent intent) {
107 public void onStart(Intent intent, int startId) {
111 super.onStart(intent, startId)
    [all...]
  /cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/
MyFactory.java 23 import android.content.Intent;
37 public Activity instantiateActivity(ClassLoader cl, String className, Intent intent)
42 return super.instantiateActivity(cl, className, intent);
46 public BroadcastReceiver instantiateReceiver(ClassLoader cl, String className, Intent intent)
51 return super.instantiateReceiver(cl, className, intent);
64 public Service instantiateService(ClassLoader cl, String className, Intent intent)
69 return super.instantiateService(cl, className, intent);
    [all...]
  /cts/tests/tests/opengl/src/android/opengl/cts/
EglConfigCtsActivity.java 20 import android.content.Intent;
64 Intent intent = getIntent(); local
65 if (intent != null) {
66 return intent.getIntExtra(CONFIG_ID_EXTRA, 0);
73 Intent intent = getIntent(); local
74 if (intent != null) {
75 return intent.getIntExtra(CONTEXT_CLIENT_VERSION_EXTRA, 0);
  /developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationIntentReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (intent.getAction().equals(ACTION_EXAMPLE)) {
43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE);
44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent);
54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) {
56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {
  /developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /developers/build/prebuilts/gradle/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
ComplicationToggleReceiver.java 22 import android.content.Intent;
35 public void onReceive(Context context, Intent intent) {
36 Bundle extras = intent.getExtras();
53 * Returns a pending intent, suitable for use as a tap intent, that causes a complication to be
58 Intent intent = new Intent(context, ComplicationToggleReceiver.class); local
59 intent.putExtra(EXTRA_PROVIDER_COMPONENT, provider)
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
ListenerService.java 19 import android.content.Intent;
46 Intent intent = DetailActivity.getLaunchIntent(this, attractionName); local
47 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
48 startActivity(intent);
54 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local
    [all...]
  /developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationIntentReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (intent.getAction().equals(ACTION_EXAMPLE)) {
43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE);
44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent);
54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) {
56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {
  /developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
ComplicationToggleReceiver.java 22 import android.content.Intent;
35 public void onReceive(Context context, Intent intent) {
36 Bundle extras = intent.getExtras();
53 * Returns a pending intent, suitable for use as a tap intent, that causes a complication to be
58 Intent intent = new Intent(context, ComplicationToggleReceiver.class); local
59 intent.putExtra(EXTRA_PROVIDER_COMPONENT, provider)
    [all...]
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
ListenerService.java 19 import android.content.Intent;
46 Intent intent = DetailActivity.getLaunchIntent(this, attractionName); local
47 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
48 startActivity(intent);
54 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local
    [all...]
  /development/apps/CustomLocale/src/com/android/customlocale2/
CustomLocaleReceiver.java 22 import android.content.Intent;
33 * $ adb shell am broadcast -a com.android.intent.action.SET_LOCALE \
34 * --es com.android.intent.extra.LOCALE en_US
42 /** Intent action that triggers this receiver. */
43 public static final String ACTION_SET_LOCALE = "com.android.intent.action.SET_LOCALE";
45 public static final String EXTRA_LOCALE = "com.android.intent.extra.LOCALE";
48 public void onReceive(Context context, Intent intent) {
50 if (intent == null || ! ACTION_SET_LOCALE.equals(intent.getAction())) {
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
ShareContent.java 21 import android.content.Intent;
42 Intent intent = new Intent(Intent.ACTION_SEND);
43 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
52 intent.setType("image/jpeg");
53 intent.putExtra(Intent.EXTRA_STREAM, uri)
    [all...]
  /development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
MultiClientInputMethod.java 20 import android.content.Intent;
76 public IBinder onBind(Intent intent) {
78 Log.v(TAG, "onBind intent=" + intent);
80 return mDelegate.onBind(intent);
84 public boolean onUnbind(Intent intent) {
86 Log.v(TAG, "onUnbind intent=" + intent);
    [all...]
  /development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
NotificationIntentReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (intent.getAction().equals(ACTION_EXAMPLE)) {
43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE);
44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent);
54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) {
56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {

Completed in 995 milliseconds

1 2 3 4 5 67 8 91011>>