Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 142) sorted by relevance

123456

/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/
DAppLinkActivity.java57 AppLinkHelper.AppLinkAction action = AppLinkHelper.extractAction(uri); in onCreate() local
58 switch (action.getAction()) { in onCreate()
60 play((AppLinkHelper.PlaybackAction) action); in onCreate()
63 browse((AppLinkHelper.BrowseAction) action); in onCreate()
66 throw new IllegalArgumentException("Invalid Action " + action); in onCreate()
70 private void browse(AppLinkHelper.BrowseAction action) { in browse() argument
72 MockDatabase.findSubscriptionByName(this, action.getSubscriptionName()); in browse()
74 Log.e(TAG, "Invalid subscription " + action.getSubscriptionName()); in browse()
77 Toast.makeText(this, action.getSubscriptionName(), Toast.LENGTH_LONG).show(); in browse()
82 private void play(AppLinkHelper.PlaybackAction action) { in play() argument
[all …]
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/
DSimplePlaybackTransportControlGlue.java69 public void onActionClicked(Action action) { in onActionClicked() argument
70 if (shouldDispatchAction(action)) { in onActionClicked()
71 dispatchAction(action, getPrimaryActionsAdapter()); in onActionClicked()
72 dispatchAction(action, getSecondaryActionsAdapter()); in onActionClicked()
75 super.onActionClicked(action); in onActionClicked()
91 Action action = getControlsRow().getActionForKeyCode(adapter, keyEvent.getKeyCode()); in dispatchAction() local
92 if (shouldDispatchAction(action)) { in dispatchAction()
93 dispatchAction(action, adapter); in dispatchAction()
99 private boolean shouldDispatchAction(Action action) { in shouldDispatchAction() argument
100 return action == mRepeatAction || action == mThumbsUpAction || action == mThumbsDownAction; in shouldDispatchAction()
[all …]
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
DViewExt.kt34 action: (View) -> Unit in showSnackbar()
36 showSnackbar(context.getString(msgId), length, context.getString(actionMessageId), action) in showSnackbar()
43 action: (View) -> Unit in showSnackbar()
48 action(this) in showSnackbar()
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
DViewExt.kt34 action: (View) -> Unit in showSnackbar()
36 showSnackbar(context.getString(msgId), length, context.getString(actionMessageId), action) in showSnackbar()
43 action: (View) -> Unit in showSnackbar()
48 action(this) in showSnackbar()
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/
DBootBroadcastReceiver.java47 String action = intent.getAction(); in onReceive() local
48 Log.i(TAG, "Received action: " + action + ", user unlocked: " + UserManagerCompat in onReceive()
51 bootCompleted = Intent.ACTION_LOCKED_BOOT_COMPLETED.equals(action); in onReceive()
53 bootCompleted = Intent.ACTION_BOOT_COMPLETED.equals(action); in onReceive()
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/
DBootBroadcastReceiver.java47 String action = intent.getAction(); in onReceive() local
48 Log.i(TAG, "Received action: " + action + ", user unlocked: " + UserManagerCompat in onReceive()
51 bootCompleted = Intent.ACTION_LOCKED_BOOT_COMPLETED.equals(action); in onReceive()
53 bootCompleted = Intent.ACTION_BOOT_COMPLETED.equals(action); in onReceive()
/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/
DWiFiDirectBroadcastReceiver.java58 String action = intent.getAction(); in onReceive() local
59 if (WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION.equals(action)) { in onReceive()
72 } else if (WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.equals(action)) { in onReceive()
82 } else if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)) { in onReceive()
103 } else if (WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION.equals(action)) { in onReceive()
/developers/samples/android/deprecated/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/
DTimerNotificationService.java51 String action = intent.getAction(); in onHandleIntent() local
52 if (Constants.ACTION_SHOW_ALARM.equals(action)) { in onHandleIntent()
54 } else if (Constants.ACTION_DELETE_ALARM.equals(action)) { in onHandleIntent()
56 } else if (Constants.ACTION_RESTART_ALARM.equals(action)) { in onHandleIntent()
59 throw new IllegalStateException("Undefined constant used: " + action); in onHandleIntent()
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/
DTimerNotificationService.java51 String action = intent.getAction(); in onHandleIntent() local
52 if (Constants.ACTION_SHOW_ALARM.equals(action)) { in onHandleIntent()
54 } else if (Constants.ACTION_DELETE_ALARM.equals(action)) { in onHandleIntent()
56 } else if (Constants.ACTION_RESTART_ALARM.equals(action)) { in onHandleIntent()
59 throw new IllegalStateException("Undefined constant used: " + action); in onHandleIntent()
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DCard.java289 for (CardAction action : mCardActions) { in setActionVisibility()
290 if (action.id == actionId && action.actionView != null) { in setActionVisibility()
291 action.actionView.setVisibility(visibilityFlag); in setActionVisibility()
354 for (CardAction action : mCardActions) { in createShallowClone()
355 cloneCard.mCardActions.add(action.createShallowClone()); in createShallowClone()
368 for (CardAction action : mCardActions) { in prepareForConfigurationChange()
369 action.actionView = null; in prepareForConfigurationChange()
550 for (final CardAction action : mCard.mCardActions) { in initializeActionViews()
553 switch (action.type) { in initializeActionViews()
566 action.actionView = inflater.inflate(useActionLayout, actionArea, false); in initializeActionViews()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCard.java.ftl55 // description, zero to many action buttons, and zero or 1 progress indicators.
85 * designate the action as positive, negative (ok/cancel, for instance), or neutral.
267 * Adds an action to this card during build time.
282 * Toggles the visibility of a card action.
289 for (CardAction action : mCardActions) {
290 if (action.id == actionId && action.actionView != null) {
291 action.actionView.setVisibility(visibilityFlag);
298 * Toggles visibility of the action area of this Card through an animation.
304 return this; // Card does not have an action area
308 // Show the action area
[all …]
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/
DPlaybackOverlayFragment.java189 public void onActionClicked(Action action) { in setupRows()
190 if (action.getId() == mPlayPauseAction.getId()) { in setupRows()
202 } else if (action.getId() == mSkipNextAction.getId()) { in setupRows()
204 } else if (action.getId() == mSkipPreviousAction.getId()) { in setupRows()
206 } else if (action.getId() == mFastForwardAction.getId()) { in setupRows()
208 } else if (action.getId() == mRewindAction.getId()) { in setupRows()
211 if (action instanceof PlaybackControlsRow.MultiAction) { in setupRows()
212 ((PlaybackControlsRow.MultiAction) action).nextIndex(); in setupRows()
213 notifyChanged(action); in setupRows()
294 private void notifyChanged(Action action) { in notifyChanged() argument
[all …]
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java106 final int action = ev.getActionMasked(); in onInterceptTouchEvent() local
107 if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { in onInterceptTouchEvent()
/developers/build/prebuilts/gradle/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java106 final int action = ev.getActionMasked(); in onInterceptTouchEvent() local
107 if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { in onInterceptTouchEvent()
/developers/build/prebuilts/gradle/ElevationBasic/Application/src/main/java/com/example/android/elevationbasic/
DElevationBasicFragment.java55 int action = motionEvent.getActionMasked(); in onCreateView()
57 switch (action) { in onCreateView()
/developers/samples/android/ui/views/Elevation/ElevationBasic/Application/src/main/java/com/example/android/elevationbasic/
DElevationBasicFragment.java55 int action = motionEvent.getActionMasked(); in onCreateView()
57 switch (action) { in onCreateView()
/developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
DActionsPresets.java93 NotificationCompat.Action action = new NotificationCompat.Action.Builder( in apply() local
100 builder.addAction(action); in apply()
117 NotificationCompat.Action action = new NotificationCompat.Action.Builder( in apply() local
124 wearableOptions.addAction(action); in apply()
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
DActionsPresets.java93 NotificationCompat.Action action = new NotificationCompat.Action.Builder( in apply() local
100 builder.addAction(action); in apply()
117 NotificationCompat.Action action = new NotificationCompat.Action.Builder( in apply() local
124 wearableOptions.addAction(action); in apply()
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/
DUtilityService.java97 String action = intent != null ? intent.getAction() : null; in onHandleIntent() local
98 if (ACTION_CLEAR_NOTIFICATION.equals(action)) { in onHandleIntent()
100 } else if (ACTION_CLEAR_REMOTE_NOTIFICATIONS.equals(action)) { in onHandleIntent()
102 } else if (ACTION_START_DEVICE_ACTIVITY.equals(action)) { in onHandleIntent()
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/
DUtilityService.java97 String action = intent != null ? intent.getAction() : null; in onHandleIntent() local
98 if (ACTION_CLEAR_NOTIFICATION.equals(action)) { in onHandleIntent()
100 } else if (ACTION_CLEAR_REMOTE_NOTIFICATIONS.equals(action)) { in onHandleIntent()
102 } else if (ACTION_START_DEVICE_ACTIVITY.equals(action)) { in onHandleIntent()
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-Basic/
DREADME.md6 which displays action items. It covers inflating items from a menu resource,
12 Android 3.0 introduced the “action bar” control, a toolbar that is expected
15 Using the action bar offers your users a familiar interface across applications
18 Instantiating an action bar can be done by using the [ActionBar][1] API provided
28 Once this is done, action items will be created for any options menu items that
/developers/build/prebuilts/gradle/ActionBarCompat-Basic/
DREADME.md6 which displays action items. It covers inflating items from a menu resource,
12 Android 3.0 introduced the “action bar” control, a toolbar that is expected
15 Using the action bar offers your users a familiar interface across applications
18 Instantiating an action bar can be done by using the [ActionBar][1] API provided
28 Once this is done, action items will be created for any options menu items that
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/
DSampleMediaRouteProvider.java286 String action = intent.getAction(); in onControlRequest() local
289 if (action.equals(MediaControlIntent.ACTION_PLAY)) { in onControlRequest()
291 } else if (action.equals(MediaControlIntent.ACTION_ENQUEUE)) { in onControlRequest()
293 } else if (action.equals(MediaControlIntent.ACTION_REMOVE)) { in onControlRequest()
295 } else if (action.equals(MediaControlIntent.ACTION_SEEK)) { in onControlRequest()
297 } else if (action.equals(MediaControlIntent.ACTION_GET_STATUS)) { in onControlRequest()
299 } else if (action.equals(MediaControlIntent.ACTION_PAUSE)) { in onControlRequest()
301 } else if (action.equals(MediaControlIntent.ACTION_RESUME)) { in onControlRequest()
303 } else if (action.equals(MediaControlIntent.ACTION_STOP)) { in onControlRequest()
305 } else if (action.equals(MediaControlIntent.ACTION_START_SESSION)) { in onControlRequest()
[all …]
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/
DSampleMediaRouteProvider.java286 String action = intent.getAction(); in onControlRequest() local
289 if (action.equals(MediaControlIntent.ACTION_PLAY)) { in onControlRequest()
291 } else if (action.equals(MediaControlIntent.ACTION_ENQUEUE)) { in onControlRequest()
293 } else if (action.equals(MediaControlIntent.ACTION_REMOVE)) { in onControlRequest()
295 } else if (action.equals(MediaControlIntent.ACTION_SEEK)) { in onControlRequest()
297 } else if (action.equals(MediaControlIntent.ACTION_GET_STATUS)) { in onControlRequest()
299 } else if (action.equals(MediaControlIntent.ACTION_PAUSE)) { in onControlRequest()
301 } else if (action.equals(MediaControlIntent.ACTION_RESUME)) { in onControlRequest()
303 } else if (action.equals(MediaControlIntent.ACTION_STOP)) { in onControlRequest()
305 } else if (action.equals(MediaControlIntent.ACTION_START_SESSION)) { in onControlRequest()
[all …]
/developers/samples/android/ui/views/EffectiveNavigation/app/src/androidTest/java/com/example/android/effectivenavigation/
DCollectionDemoActivityTest.java20 import static android.support.test.espresso.action.ViewActions.click;
21 import static android.support.test.espresso.action.ViewActions.swipeLeft;

123456