/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | PlaybackControlSupportHelper.java | 110 public void onActionClicked(Action action) { in onActionClicked() argument 111 if (shouldDispatchAction(action)) { in onActionClicked() 112 dispatchAction(action); in onActionClicked() 115 super.onActionClicked(action); in onActionClicked() 121 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey() local 122 if (shouldDispatchAction(action)) { in onKey() 123 dispatchAction(action); in onKey() 130 private boolean shouldDispatchAction(Action action) { in shouldDispatchAction() argument 131 return action == mRepeatAction || action == mThumbsUpAction || action == mThumbsDownAction; in shouldDispatchAction() 134 private void dispatchAction(Action action) { in dispatchAction() argument [all …]
|
D | PlaybackControlHelper.java | 108 public void onActionClicked(Action action) { in onActionClicked() argument 109 if (shouldDispatchAction(action)) { in onActionClicked() 110 dispatchAction(action); in onActionClicked() 113 super.onActionClicked(action); in onActionClicked() 119 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey() local 120 if (shouldDispatchAction(action)) { in onKey() 121 dispatchAction(action); in onKey() 128 private boolean shouldDispatchAction(Action action) { in shouldDispatchAction() argument 129 return action == mRepeatAction || action == mThumbsUpAction || action == mThumbsDownAction; in shouldDispatchAction() 132 private void dispatchAction(Action action) { in dispatchAction() argument [all …]
|
D | GuidedStepActivity.java | 210 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 212 if (action.getId() == GuidedAction.ACTION_ID_CONTINUE) { in onGuidedActionClicked() 214 } else if (action.getId() == GuidedAction.ACTION_ID_CANCEL){ in onGuidedActionClicked() 255 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 256 if (action.getId() == GuidedAction.ACTION_ID_OK) { in onGuidedActionClicked() 273 public long onGuidedActionEditedAndProceed(GuidedAction action) { in onGuidedActionEditedAndProceed() argument 274 if (action.getId() == NEW_PAYMENT) { in onGuidedActionEditedAndProceed() 275 CharSequence editTitle = action.getEditTitle(); in onGuidedActionEditedAndProceed() 278 action.setDescription("Visa XXXX-XXXX-XXXX-" + editTitle); in onGuidedActionEditedAndProceed() 282 action.setDescription("Input credit card number"); in onGuidedActionEditedAndProceed() [all …]
|
D | GuidedStepSupportActivity.java | 212 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 214 if (action.getId() == GuidedAction.ACTION_ID_CONTINUE) { in onGuidedActionClicked() 216 } else if (action.getId() == GuidedAction.ACTION_ID_CANCEL){ in onGuidedActionClicked() 257 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 258 if (action.getId() == GuidedAction.ACTION_ID_OK) { in onGuidedActionClicked() 275 public long onGuidedActionEditedAndProceed(GuidedAction action) { in onGuidedActionEditedAndProceed() argument 276 if (action.getId() == NEW_PAYMENT) { in onGuidedActionEditedAndProceed() 277 CharSequence editTitle = action.getEditTitle(); in onGuidedActionEditedAndProceed() 280 action.setDescription("Visa XXXX-XXXX-XXXX-" + editTitle); in onGuidedActionEditedAndProceed() 284 action.setDescription("Input credit card number"); in onGuidedActionEditedAndProceed() [all …]
|
D | DetailsPresenterSelectionActivity.java | 115 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 116 if (action.getId() == ACTION_ID_SWITCH_LEGACY_ON) { in onGuidedActionClicked() 117 USE_LEGACY_PRESENTER = action.isChecked(); in onGuidedActionClicked() 118 } else if (action.getId() == ACTION_ID_SWITCH_LEGACY_OFF) { in onGuidedActionClicked() 119 USE_LEGACY_PRESENTER = !action.isChecked(); in onGuidedActionClicked()
|
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/wizard/ |
D | WizardNewPaymentStepFragment.java | 80 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 81 if (action.getId() == GuidedAction.ACTION_ID_OK) { in onGuidedActionClicked() 91 public long onGuidedActionEditedAndProceed(GuidedAction action) { in onGuidedActionEditedAndProceed() argument 96 if (action.getId() == ACTION_ID_CARD_NUMBER) { in onGuidedActionEditedAndProceed() 97 CharSequence cardNumber = action.getEditTitle(); in onGuidedActionEditedAndProceed() 107 action.setDescription(getString(R.string.wizard_example_visa, in onGuidedActionEditedAndProceed() 110 action.setDescription(getString(R.string.wizard_example_master, in onGuidedActionEditedAndProceed() 115 action.setDescription(getString(R.string.wizard_example_input_card)); in onGuidedActionEditedAndProceed() 118 action.setDescription(getString(R.string.wizard_example_input_credit_wrong)); in onGuidedActionEditedAndProceed() 122 } else if (action.getId() == ACTION_ID_PAYMENT_EXP) { in onGuidedActionEditedAndProceed() [all …]
|
D | WizardExample4thStepFragment.java | 50 GuidedAction action = new GuidedAction.Builder(getActivity()) in onCreateActions() local 55 actions.add(action); in onCreateActions() 56 action = new GuidedAction.Builder(getActivity()) in onCreateActions() 61 actions.add(action); in onCreateActions() 65 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 66 if (action.getId() == ACTION_ID_WATCH) { in onGuidedActionClicked() 71 } else if (action.getId() == ACTION_ID_LATER) { in onGuidedActionClicked()
|
D | WizardExample2ndStepFragment.java | 74 GuidedAction action = new GuidedAction.Builder(getActivity()) in onCreateActions() local 80 action.setEnabled(false); in onCreateActions() 81 actions.add(action); in onCreateActions() 83 action = new GuidedAction.Builder(getActivity()) in onCreateActions() 90 actions.add(action); in onCreateActions() 124 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked() argument 126 if (action.isChecked()) { in onSubGuidedActionClicked() 127 String payment = action.getTitle().toString(); in onSubGuidedActionClicked() 145 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 146 if (ACTION_ID_CONFIRM == action.getId()) { in onGuidedActionClicked()
|
D | WizardExample1stStepFragment.java | 46 GuidedAction action = new GuidedAction.Builder(getActivity()) in onCreateActions() local 53 actions.add(action); in onCreateActions() 54 action = new GuidedAction.Builder(getActivity()) in onCreateActions() 61 actions.add(action); in onCreateActions() 65 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 66 boolean rentHd = ACTION_ID_BUY_HD == action.getId(); in onGuidedActionClicked()
|
/development/tools/axl/ |
D | chewie.py | 92 thread, action = x[1], x[2] 93 if action == "Q": 96 elif action == "O": 101 elif action == "S": 107 elif action == "T": 111 elif action == "R": 117 elif action == 'U': 124 elif action == "D": 132 elif action == "B": 134 elif action == "HR":
|
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/dialog/ |
D | DialogExampleFragment.java | 46 GuidedAction action = new GuidedAction.Builder() in onCreateActions() local 49 actions.add(action); in onCreateActions() 50 action = new GuidedAction.Builder() in onCreateActions() 53 actions.add(action); in onCreateActions() 57 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked() argument 58 if (ACTION_ID_POSITIVE == action.getId()) { in onGuidedActionClicked()
|
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/ |
D | MessagingReceiver.java | 36 String action = intent == null ? null : intent.getAction(); in onReceive() local 40 if (Intents.SMS_DELIVER_ACTION.equals(action)) { in onReceive() 42 } else if (Intents.WAP_PUSH_DELIVER_ACTION.equals(action)) { in onReceive() 46 if (Intents.SMS_RECEIVED_ACTION.equals(action)) { in onReceive() 48 } else if (Intents.WAP_PUSH_RECEIVED_ACTION.equals(action)) { in onReceive()
|
/development/ndk/sources/android/ndk_helper/ |
D | gestureDetector.cpp | 53 int32_t action = AMotionEvent_getAction( motion_event ); in Detect() local 54 unsigned int flags = action & AMOTION_EVENT_ACTION_MASK; in Detect() 98 int32_t action = AMotionEvent_getAction( motion_event ); in Detect() local 99 unsigned int flags = action & AMOTION_EVENT_ACTION_MASK; in Detect() 153 int32_t action = AMotionEvent_getAction( event ); in Detect() local 154 uint32_t flags = action & AMOTION_EVENT_ACTION_MASK; in Detect() 165 int32_t iIndex = (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) in Detect() 180 int32_t index = (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) in Detect() 268 int32_t action = AMotionEvent_getAction( event ); in Detect() local 269 int32_t index = (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) in Detect() [all …]
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
D | BootBroadcastReceiver.java | 47 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()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectBroadcastReceiver.java | 58 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()
|
/development/samples/browseable/ActionBarCompat-Basic/ |
D | _index.jd | 9 displays action items. It covers inflating items from a menu resource, as well as adding 10 an item in code. Items that are not shown as action items on the Action Bar are 11 displayed in the action bar overflow.
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiDirectBroadcastReceiver.java | 60 String action = intent.getAction(); in onReceive() local 61 Log.d(WiFiServiceDiscoveryActivity.TAG, action); in onReceive() 62 if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)) { in onReceive() 83 .equals(action)) { in onReceive()
|
/development/samples/browseable/DoneBar/ |
D | _index.jd | 9 action bar that are well-suited for simple data entry scenarios. 11 In this presentation, a done bar replaces the action 14 action bar.
|
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
D | TimerNotificationService.java | 51 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()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | Card.java | 289 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 …]
|
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
D | ExampleBroadcastReceiver.java | 40 String action = intent.getAction(); in onReceive() local 41 if (action.equals(Intent.ACTION_TIMEZONE_CHANGED) in onReceive() 42 || action.equals(Intent.ACTION_TIME_CHANGED)) { in onReceive()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyTrackballEvent.java | 25 public MonkeyTrackballEvent(int action) { in MonkeyTrackballEvent() argument 26 super(MonkeyEvent.EVENT_TYPE_TRACKBALL, InputDevice.SOURCE_TRACKBALL, action); in MonkeyTrackballEvent()
|
D | MonkeyTouchEvent.java | 26 public MonkeyTouchEvent(int action) { in MonkeyTouchEvent() argument 27 super(MonkeyEvent.EVENT_TYPE_TOUCH, InputDevice.SOURCE_TOUCHSCREEN, action); in MonkeyTouchEvent()
|
D | MonkeyKeyEvent.java | 41 public MonkeyKeyEvent(int action, int keyCode) { in MonkeyKeyEvent() argument 42 this(-1, -1, action, keyCode, 0, 0, KeyCharacterMap.VIRTUAL_KEYBOARD, 0); in MonkeyKeyEvent() 45 public MonkeyKeyEvent(long downTime, long eventTime, int action, in MonkeyKeyEvent() argument 51 mAction = action; in MonkeyKeyEvent()
|
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/ |
D | VideoMediaPlayerGlue.java | 45 @Override public void onActionClicked(Action action) { in onActionClicked() argument 46 super.onActionClicked(action); in onActionClicked() 47 if (action == mClosedCaptioningAction) { in onActionClicked()
|