/frameworks/base/core/java/android/view/ |
H A D | InputEventConsistencyVerifier.java | 205 final int action = event.getAction(); 209 switch (action) { 241 problem("Invalid action " + KeyEvent.actionToString(action) 267 final int action = event.getAction(); 270 switch (action) { 295 problem("Invalid action " + MotionEvent.actionToString(action) 327 final int action = event.getAction(); 328 final boolean newStream = action [all...] |
H A D | KeyEvent.java | 67 * with the special action {@link #ACTION_MULTIPLE} that either specifies 1133 * for old applications, but still do the appropriate action when 1143 * event and should not perform the action normally associated with the 1145 * action for a key until it receives an up or the long press timeout has 1165 * press action was executed while it was down. 1315 * @param action Action code: either {@link #ACTION_DOWN}, 1319 public KeyEvent(int action, int code) { argument 1320 mAction = action; 1333 * @param action Action code: either {@link #ACTION_DOWN}, 1339 public KeyEvent(long downTime, long eventTime, int action, argument 1363 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState) argument 1390 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode) argument 1420 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument 1452 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument 1554 obtain(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source, String characters) argument 1666 KeyEvent(KeyEvent origEvent, int action) argument 1688 changeAction(KeyEvent event, int action) argument 2856 actionToString(int action) argument [all...] |
H A D | DragEvent.java | 33 * an action type that indicates the state of the drag and drop operation. This allows a View 35 * For example, a View can react to the {@link #ACTION_DRAG_ENTERED} action type by 40 * is called a drag shadow. Several action types reflect the position of the drag shadow relative 208 * The View can also react to this action by changing its appearance. 272 private void init(int action, float x, float y, ClipDescription description, ClipData data, argument 274 mAction = action; 289 public static DragEvent obtain(int action, float x, float y, Object localState, argument 296 ev.init(action, x, y, description, data, dragAndDropPermissions, localState, 308 ev.init(action, x, y, description, data, dragAndDropPermissions, localState, result); 321 * Inspect the action valu [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | Metrics.java | 217 // The historgram includes action triggered from menu or invoked by keyboard shortcut. 327 // Log the launch action. 328 logHistogram(context, COUNT_LAUNCH_ACTION, toMetricsAction(state.action)); 331 switch (state.action) { 373 * @param trigger type of action that opened the drawer 591 MetricsLogger.action(activity, MetricsEvent 593 MetricsLogger.action(activity, MetricsEvent 597 MetricsLogger.action(activity, MetricsEvent 599 MetricsLogger.action(activity, MetricsEvent 603 MetricsLogger.action(activit 808 toMetricsAction(int action) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 424 final int action = event.getAction(); 431 logCoords(type, action, i, mTempCoords, id, event); 437 logCoords(type, action, i, mTempCoords, id, event); 441 private void logCoords(String type, int action, int index, argument 446 switch (action & MotionEvent.ACTION_MASK) { 463 if (index == ((action & MotionEvent.ACTION_POINTER_INDEX_MASK) 471 if (index == ((action & MotionEvent.ACTION_POINTER_INDEX_MASK) 491 prefix = Integer.toString(action); 527 final int action = event.getAction(); 530 if (action [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | ExploreByTouchHelper.java | 219 final int action = event.getAction(); 220 if (action != KeyEvent.ACTION_UP) { 476 * Performs a click action on the keyboard focused virtual view, if any. 478 * @return {@code true} if the click action was performed successfully or 490 * You should call this method after performing a user action that normally 870 boolean performAction(int virtualViewId, int action, Bundle arguments) { argument 873 return performActionForHost(action, arguments); 875 return performActionForChild(virtualViewId, action, arguments); 879 private boolean performActionForHost(int action, Bundle arguments) { argument 880 return ViewCompat.performAccessibilityAction(mHost, action, argument 883 performActionForChild(int virtualViewId, int action, Bundle arguments) argument 1217 onPerformActionForVirtualView( int virtualViewId, int action, Bundle arguments) argument 1237 performAction(int virtualViewId, int action, Bundle arguments) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | NotificationCompatImplBase.java | 93 "setShowActionsInCompactView: action %d out of bounds (max %d)", 97 final NotificationCompatBase.Action action = actions.get(actionsToShowInCompact[i]); 98 final RemoteViews button = generateMediaActionButton(context, action); 160 NotificationCompatBase.Action action) { 161 final boolean tombstone = (action.getActionIntent() == null); 164 button.setImageViewResource(R.id.action0, action.getIcon()); 166 button.setOnClickPendingIntent(R.id.action0, action.getActionIntent()); 169 button.setContentDescription(R.id.action0, action.getTitle()); 214 NotificationCompat.Action action) { 215 final boolean tombstone = (action 159 generateMediaActionButton(Context context, NotificationCompatBase.Action action) argument 213 generateActionButton(Context context, NotificationCompat.Action action) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
H A D | PowerNotificationWarnings.java | 187 private PendingIntent pendingBroadcast(String action) { argument 189 0, new Intent(action), 0, UserHandle.CURRENT); 192 private static Intent settings(String action) { argument 193 return new Intent(action).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK 324 final String action = intent.getAction(); 325 Slog.i(TAG, "Received " + action); 326 if (action.equals(ACTION_SHOW_BATTERY_SETTINGS)) { 329 } else if (action.equals(ACTION_START_SAVER)) { 332 } else if (action.equals(ACTION_DISMISSED_WARNING)) {
|
H A D | PowerUI.java | 144 String action = intent.getAction(); 145 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { 200 } else if (Intent.ACTION_SCREEN_OFF.equals(action)) { 202 } else if (Intent.ACTION_SCREEN_ON.equals(action)) { 204 } else if (Intent.ACTION_USER_SWITCHED.equals(action)) {
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
H A D | WifiClientTest.java | 55 String action = intent.getAction(); 56 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 73 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 76 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { 79 } else if (action.equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvRecordingClient.java | 207 * @param action The name of the private command to send. This <em>must</em> be a scoped name, 212 public void sendAppPrivateCommand(@NonNull String action, Bundle data) { argument 213 if (TextUtils.isEmpty(action)) { 214 throw new IllegalArgumentException("action cannot be null or an empty string"); 217 mSession.sendAppPrivateCommand(action, data); 219 Log.w(TAG, "sendAppPrivateCommand - session not yet created (action \"" + action 221 mPendingAppPrivateCommands.add(Pair.create(action, data));
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | RangeTest.java | 156 private static <T, T2> void assertAction(String action, T object, T2 expected, argument 158 assertEquals("Expected " + object + " " + action + " to be ", 162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, argument 164 String expectedMessage = expected ? action : ("not " + action);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | HumanInteractionClassifier.java | 140 int action = event.getActionMasked(); 141 if (action == MotionEvent.ACTION_UP) { 182 int action = event.getActionMasked(); 183 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BatteryControllerImpl.java | 110 final String action = intent.getAction(); 111 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { 125 } else if (action.equals(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED)) { 127 } else if (action.equals(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING)) { 129 } else if (action.equals(ACTION_LEVEL_TEST)) {
|
H A D | UserInfoController.java | 81 final String action = intent.getAction(); 82 if (Intent.ACTION_USER_SWITCHED.equals(action)) { 91 final String action = intent.getAction(); 92 if (ContactsContract.Intents.ACTION_PROFILE_CHANGED.equals(action) || 93 Intent.ACTION_USER_INFO_CHANGED.equals(action)) {
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HotplugDetectionAction.java | 28 * Feature action that handles hot-plug detection mechanism. 29 * Hot-plug event is initiated by timer after device discovery action. 217 // Sending <Give Physical Address> will initiate new device action. 245 DeviceSelectAction action = actions.get(0); 246 if (action.getTargetAddress() == address) { 253 for (OneTouchRecordAction action : actions) { 254 if (action.getRecorderAddress() == address) { 255 removeAction(action);
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
H A D | BatteryController.java | 163 final String action = intent.getAction(); 164 if (Intent.ACTION_BATTERY_LOW.equals(action)) { 169 // If we get this action, the battery is discharging => it isn't plugged in so 173 } else if (Intent.ACTION_BATTERY_OKAY.equals(action)) { 180 } else if (BatteryManager.ACTION_CHARGING.equals(action)) { 187 } else if (BatteryManager.ACTION_DISCHARGING.equals(action)) {
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | DetailsFragment.java | 90 public void onActionClicked(Action action) { 91 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 93 if (action.getId() == ACTION_BUY) { 102 } else if (action.getId() == ACTION_RENT) { 109 } else if (action.getId() == ACTION_PLAY) {
|
H A D | DetailsSupportFragment.java | 92 public void onActionClicked(Action action) { 93 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 95 if (action.getId() == ACTION_BUY) { 104 } else if (action.getId() == ACTION_RENT) { 111 } else if (action.getId() == ACTION_PLAY) {
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | DetailsFragment.java | 90 public void onActionClicked(Action action) { 91 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 93 if (action.getId() == ACTION_BUY) { 102 } else if (action.getId() == ACTION_RENT) { 109 } else if (action.getId() == ACTION_PLAY) {
|
H A D | DetailsSupportFragment.java | 92 public void onActionClicked(Action action) { 93 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 95 if (action.getId() == ACTION_BUY) { 104 } else if (action.getId() == ACTION_RENT) { 111 } else if (action.getId() == ACTION_PLAY) {
|
/frameworks/support/v13/java/android/support/v13/view/inputmethod/ |
H A D | InputConnectionCompat.java | 89 public boolean performPrivateCommand(String action, Bundle data) { 90 if (BaseInputContentInfoCompatImpl.handlePerformPrivateCommand(action, data, 94 return super.performPrivateCommand(action, data); 100 @Nullable String action, 103 if (!TextUtils.equals(COMMIT_CONTENT_ACTION, action)) { 99 handlePerformPrivateCommand( @ullable String action, @NonNull Bundle data, @NonNull OnCommitContentListener onCommitContentListener) argument
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityNodeInfo.java | 269 * Action to set the selection. Performing this action with no arguments 305 * Action that sets the text of the node. Performing the action without argument, using <code> 306 * null</code> or empty {@link CharSequence} will clear the text. This action will also put the 435 "android.view.accessibility.action.ARGUMENT_ROW_INT"; 449 "android.view.accessibility.action.ARGUMENT_COLUMN_INT"; 463 "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"; 1012 * Adds an action that can be performed on the node. 1014 * To add a standard action use the static constants on {@link AccessibilityAction}. 1015 * To add a custom action create a new {@link AccessibilityAction} by passing in a 1016 * resource id from your application as the action i 1031 addAction(AccessibilityAction action) argument 1037 addActionUnchecked(AccessibilityAction action) argument 1066 addAction(int action) argument 1092 removeAction(int action) argument 1112 removeAction(AccessibilityAction action) argument 1310 performAction(int action) argument 1333 performAction(int action, Bundle arguments) argument 3065 isDefaultLegacyStandardAction(AccessibilityAction action) argument 3098 getActionSymbolicName(int action) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AdapterViewFlipper.java | 86 final String action = intent.getAction(); 87 if (Intent.ACTION_SCREEN_OFF.equals(action)) { 90 } else if (Intent.ACTION_USER_PRESENT.equals(action)) {
|
H A D | ForwardingListener.java | 124 * It may be overridden to perform another action, like clicking the 142 * action. 271 final int action = srcEvent.getActionMasked(); 272 final boolean keepForwarding = action != MotionEvent.ACTION_UP 273 && action != MotionEvent.ACTION_CANCEL;
|