Searched refs:action (Results 1 - 25 of 116) sorted by relevance

12345

/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProvider.java55 String action = intent.getAction();
56 if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
65 else if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) {
72 else if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) {
75 else if (AppWidgetManager.ACTION_APPWIDGET_DISABLED.equals(action)) {
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
H A DTestAppWidgetProvider.java37 String action = intent.getAction();
40 if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) {
43 else if (AppWidgetManager.ACTION_APPWIDGET_DISABLED.equals(action)) {
46 else if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/
H A DTestAppWidgetProvider.java34 String action = intent.getAction();
37 if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) {
40 else if (AppWidgetManager.ACTION_APPWIDGET_DISABLED.equals(action)) {
43 else if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java59 * This is the primary action that a device administrator must implement to be
69 = "android.app.action.DEVICE_ADMIN_ENABLED";
82 = "android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED";
97 * that this action will be
103 = "android.app.action.DEVICE_ADMIN_DISABLED";
119 = "android.app.action.ACTION_PASSWORD_CHANGED";
135 = "android.app.action.ACTION_PASSWORD_FAILED";
147 = "android.app.action.ACTION_PASSWORD_SUCCEEDED";
258 * convenience callbacks for each action.
262 String action
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DExternalMediaFormatActivity.java47 String action = intent.getAction();
48 Log.d("ExternalMediaFormatActivity", "got action " + action);
50 if (action == Intent.ACTION_MEDIA_REMOVED ||
51 action == Intent.ACTION_MEDIA_CHECKING ||
52 action == Intent.ACTION_MEDIA_MOUNTED ||
53 action == Intent.ACTION_MEDIA_SHARED) {
/frameworks/base/services/java/com/android/server/status/
H A DDateView.java39 String action = intent.getAction();
40 if (action.equals(Intent.ACTION_TIME_TICK)
41 || action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
H A DStatusBarPolicy.java348 String action = intent.getAction();
349 if (action.equals(Intent.ACTION_TIME_TICK)) {
352 else if (action.equals(Intent.ACTION_TIME_CHANGED)) {
355 else if (action.equals(Intent.ACTION_BATTERY_CHANGED)) {
358 else if (action.equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
361 else if (action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
369 else if (action.equals(Intent.ACTION_ALARM_CHANGED)) {
372 else if (action.equals(Intent.ACTION_SYNC_STATE_CHANGED)) {
375 else if (action.equals(Intent.ACTION_BATTERY_LOW)) {
378 else if (action
[all...]
/frameworks/base/core/java/android/text/method/
H A DLinkMovementMethod.java43 if (action(CLICK, widget, buffer)) {
54 if (action(UP, widget, buffer)) {
63 if (action(DOWN, widget, buffer)) {
72 if (action(UP, widget, buffer)) {
81 if (action(DOWN, widget, buffer)) {
88 private boolean action(int what, TextView widget, Spannable buffer) { method in class:LinkMovementMethod
195 int action = event.getAction();
197 if (action == MotionEvent.ACTION_UP ||
198 action == MotionEvent.ACTION_DOWN) {
215 if (action
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DPackageMonitor.java196 String action = intent.getAction();
197 if (Intent.ACTION_PACKAGE_ADDED.equals(action)) {
223 } else if (Intent.ACTION_PACKAGE_REMOVED.equals(action)) {
246 } else if (Intent.ACTION_PACKAGE_CHANGED.equals(action)) {
259 } else if (Intent.ACTION_QUERY_PACKAGE_RESTART.equals(action)) {
266 } else if (Intent.ACTION_PACKAGE_RESTARTED.equals(action)) {
271 } else if (Intent.ACTION_UID_REMOVED.equals(action)) {
273 } else if (Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(action)) {
284 } else if (Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action)) {
/frameworks/policies/base/mid/com/android/internal/policy/impl/
H A DGlobalActions.java70 * @param powerManager used to turn the screen off (the lock action).
217 final Action action = mItems.get(i);
219 if (mKeyguardShowing && !action.showDuringKeyguard()) {
222 if (!mDeviceProvisioned && !action.showBeforeProvisioning()) {
234 final Action action = mItems.get(i);
235 if (mKeyguardShowing && !action.showDuringKeyguard()) {
238 if (!mDeviceProvisioned && !action.showBeforeProvisioning()) {
242 return action;
259 Action action = getItem(position);
260 return action
[all...]
/frameworks/base/core/java/android/view/
H A DKeyEvent.java257 * for old applications, but still do the appropriate action when
267 * event and should not perform the action normally associated with the
269 * action for a key until it receives an up or the long press timeout has
289 * press action was executed while it was down.
397 * @param action Action code: either {@link #ACTION_DOWN},
401 public KeyEvent(int action, int code) { argument
402 mAction = action;
414 * @param action Action code: either {@link #ACTION_DOWN},
420 public KeyEvent(long downTime, long eventTime, int action, argument
424 mAction = action;
443 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState) argument
469 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int device, int scancode) argument
499 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int device, int scancode, int flags) argument
616 KeyEvent(KeyEvent origEvent, int action) argument
637 changeAction(KeyEvent event, int action) argument
[all...]
H A DScaleGestureDetector.java165 final int action = event.getAction();
169 switch (action & MotionEvent.ACTION_MASK) {
256 int id = (((action & MotionEvent.ACTION_POINTER_INDEX_MASK)
265 switch (action & MotionEvent.ACTION_MASK) {
271 int id = (((action & MotionEvent.ACTION_POINTER_INDEX_MASK)
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLaunchpadActivity.java171 String action = getIntent().getAction();
174 if (LIFECYCLE_BASIC.equals(action)) {
177 } else if (LIFECYCLE_SCREEN.equals(action)) {
182 } else if (LIFECYCLE_DIALOG.equals(action)) {
186 } else if (LIFECYCLE_FINISH_CREATE.equals(action)) {
194 } else if (LIFECYCLE_FINISH_START.equals(action)) {
227 String action = getIntent().getAction();
231 if (LAUNCH.equals(action)) {
238 } else if (FORWARD_RESULT.equals(action)) {
243 } else if (BAD_PARCELABLE.equals(action)) {
438 makeBroadcastIntent(String action) argument
[all...]
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DGlobalActions.java279 final Action action = mItems.get(i);
281 if (mKeyguardShowing && !action.showDuringKeyguard()) {
284 if (!mDeviceProvisioned && !action.showBeforeProvisioning()) {
306 final Action action = mItems.get(i);
307 if (mKeyguardShowing && !action.showDuringKeyguard()) {
310 if (!mDeviceProvisioned && !action.showBeforeProvisioning()) {
314 return action;
331 Action action = getItem(position);
332 return action.create(mContext, convertView, parent, LayoutInflater.from(mContext));
351 * @return whether this action shoul
[all...]
H A DKeyguardUpdateMonitor.java224 final String action = intent.getAction();
225 if (DEBUG) Log.d(TAG, "received broadcast " + action);
227 if (Intent.ACTION_TIME_TICK.equals(action)
228 || Intent.ACTION_TIME_CHANGED.equals(action)
229 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)) {
231 } else if (SPN_STRINGS_UPDATED_ACTION.equals(action)) {
235 } else if (Intent.ACTION_BATTERY_CHANGED.equals(action)) {
244 } else if (TelephonyIntents.ACTION_SIM_STATE_CHANGED.equals(action)) {
248 } else if (AudioManager.RINGER_MODE_CHANGED_ACTION.equals(action)) {
251 } else if (TelephonyManager.ACTION_PHONE_STATE_CHANGED.equals(action)) {
[all...]
/frameworks/base/core/java/android/widget/
H A DViewFlipper.java72 final String action = intent.getAction();
73 if (Intent.ACTION_SCREEN_OFF.equals(action)) {
76 } else if (Intent.ACTION_USER_PRESENT.equals(action)) {
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java110 String action = intent.getAction();
111 String title = action;
116 if (Intent.ACTION_BATTERY_CHANGED.equals(action)) {
/frameworks/base/core/java/android/view/inputmethod/
H A DInputConnection.java216 * Have the editor perform an action it has said it can do.
218 * @param editorAction This must be one of the action constants for
228 * Perform a context menu action on the field. The given id may be one of:
310 * @param action Name of the command to be performed. This <em>must</em>
318 public boolean performPrivateCommand(String action, Bundle data); argument
H A DInputMethodSession.java136 * @param action Name of the command to be performed. This <em>must</em>
141 public void appPrivateCommand(String action, Bundle data); argument
H A DInputConnectionWrapper.java114 public boolean performPrivateCommand(String action, Bundle data) { argument
115 return mTarget.performPrivateCommand(action, data);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DPhoneStateIntentReceiver.java186 String action = intent.getAction();
189 if (TelephonyIntents.ACTION_SIGNAL_STRENGTH_CHANGED.equals(action)) {
196 } else if (TelephonyManager.ACTION_PHONE_STATE_CHANGED.equals(action)) {
208 } else if (TelephonyIntents.ACTION_SERVICE_STATE_CHANGED.equals(action)) {
/frameworks/base/core/java/com/android/internal/view/
H A DIInputMethodSession.aidl48 void appPrivateCommand(String action, in Bundle data);
/frameworks/base/cmds/keystore/
H A Dkeystore.c224 * performing an action. The number of parameters required by each action is
225 * fixed and defined in a table. If the return value of an action is positive,
420 static struct action { struct
454 struct action *action = actions; local
460 while (action->code && action->code != code) {
461 ++action;
463 if (!action
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java223 int action = event.getAction();
225 //Log.i("Pointer", "Motion: action=0x" + Integer.toHexString(action)
238 if (action == MotionEvent.ACTION_DOWN) {
253 if ((action&MotionEvent.ACTION_MASK) == MotionEvent.ACTION_POINTER_DOWN) {
254 final int index = (action&MotionEvent.ACTION_POINTER_INDEX_MASK)
273 mCurDown = action != MotionEvent.ACTION_UP
274 && action != MotionEvent.ACTION_CANCEL;
314 if ((action&MotionEvent.ACTION_MASK) == MotionEvent.ACTION_POINTER_UP) {
315 final int index = (action
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java87 String action = intent.getAction();
88 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
126 String action = intent.getAction();
128 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
130 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
138 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {

Completed in 544 milliseconds

12345