Home
last modified time | relevance | path

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

12345678910>>...32

/frameworks/base/core/java/android/view/
DHandlerActionQueue.java32 public void post(Runnable action) { in post() argument
33 postDelayed(action, 0); in post()
36 public void postDelayed(Runnable action, long delayMillis) { in postDelayed() argument
37 final HandlerAction handlerAction = new HandlerAction(action, delayMillis); in postDelayed()
48 public void removeCallbacks(Runnable action) { in removeCallbacks() argument
55 if (actions[i].matches(action)) { in removeCallbacks()
85 handler.postDelayed(handlerAction.action, handlerAction.delay); in executeActions()
101 return mActions[index].action; in getRunnable()
112 final Runnable action; field in HandlerActionQueue.HandlerAction
115 public HandlerAction(Runnable action, long delay) { in HandlerAction() argument
[all …]
DChoreographer.java418 public void postCallback(int callbackType, Runnable action, Object token) { in postCallback() argument
419 postCallbackDelayed(callbackType, action, token, 0); in postCallback()
439 Runnable action, Object token, long delayMillis) { in postCallbackDelayed() argument
440 if (action == null) { in postCallbackDelayed()
447 postCallbackDelayedInternal(callbackType, action, token, delayMillis); in postCallbackDelayed()
451 Object action, Object token, long delayMillis) { in postCallbackDelayedInternal() argument
454 + ", action=" + action + ", token=" + token in postCallbackDelayedInternal()
461 mCallbackQueues[callbackType].addCallbackLocked(dueTime, action, token); in postCallbackDelayedInternal()
466 Message msg = mHandler.obtainMessage(MSG_DO_SCHEDULE_CALLBACK, action); in postCallbackDelayedInternal()
489 public void removeCallbacks(int callbackType, Runnable action, Object token) { in removeCallbacks() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DMetricsFeatureProvider.java85 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() method in MetricsFeatureProvider
87 writer.action(context, category, taggedData); in action()
94 public void action(Context context, int category, String pkg) { in action() method in MetricsFeatureProvider
96 writer.action(context, category, pkg); in action()
103 public void action(int attribution, int action, int pageId, String key, int value) { in action() method in MetricsFeatureProvider
105 writer.action(attribution, action, pageId, key, value); in action()
109 public void action(Context context, int category, int value) { in action() method in MetricsFeatureProvider
111 writer.action(context, category, value); in action()
115 public void action(Context context, int category, boolean value) { in action() method in MetricsFeatureProvider
117 writer.action(context, category, value); in action()
[all …]
DEventLogWriter.java37 MetricsLogger.action(logMaker); in visible()
46 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() method in EventLogWriter
54 MetricsLogger.action(logMaker); in action()
58 public void action(Context context, int category, int value) { in action() method in EventLogWriter
59 MetricsLogger.action(context, category, value); in action()
63 public void action(Context context, int category, boolean value) { in action() method in EventLogWriter
64 MetricsLogger.action(context, category, value); in action()
68 public void action(Context context, int category, String pkg) { in action() method in EventLogWriter
73 MetricsLogger.action(logMaker); in action()
77 public void action(int attribution, int action, int pageId, String key, int value) { in action() method in EventLogWriter
[all …]
DLogWriter.java39 void action(Context context, int category, Pair<Integer, Object>... taggedData); in action() method
44 void action(Context context, int category, int value); in action() method
49 void action(Context context, int category, boolean value); in action() method
54 void action(Context context, int category, String pkg); in action() method
59 void action(int attribution, int action, int pageId, String key, int value); in action() argument
/frameworks/base/core/java/com/android/internal/util/
DLatencyTracker.java132 public void onActionStart(int action) { in onActionStart() argument
136 Trace.asyncTraceBegin(Trace.TRACE_TAG_APP, NAMES[action], 0); in onActionStart()
137 mStartRtc.put(action, SystemClock.elapsedRealtime()); in onActionStart()
145 public void onActionEnd(int action) { in onActionEnd() argument
150 long startRtc = mStartRtc.get(action, -1); in onActionEnd()
154 mStartRtc.delete(action); in onActionEnd()
155 Trace.asyncTraceEnd(Trace.TRACE_TAG_APP, NAMES[action], 0); in onActionEnd()
156 logAction(action, (int)(endRtc - startRtc)); in onActionEnd()
165 public static void logAction(int action, int duration) { in logAction() argument
166 Log.i(TAG, "action=" + action + " latency=" + duration); in logAction()
[all …]
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java134 public void action(int category) { in action() method in MetricsLogger
141 public void action(int category, int value) { in action() method in MetricsLogger
148 public void action(int category, boolean value) { in action() method in MetricsLogger
155 public void action(int category, String pkg) { in action() method in MetricsLogger
190 public static void action(Context context, int category) { in action() method in MetricsLogger
191 getLogger().action(category); in action()
196 public static void action(Context context, int category, int value) { in action() method in MetricsLogger
197 getLogger().action(category, value); in action()
202 public static void action(Context context, int category, boolean value) { in action() method in MetricsLogger
203 getLogger().action(category, value); in action()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DClassifierData.java53 int action = event.getActionMasked(); in update() local
54 if (action == MotionEvent.ACTION_DOWN) { in update()
66 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL in update()
67 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) { in update()
77 int action = event.getActionMasked(); in cleanUp() local
80 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL in cleanUp()
81 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) { in cleanUp()
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsAdapter.java52 final Action action = mItems.get(i); in getCount() local
54 if (keyguardShowing && !action.showDuringKeyguard()) { in getCount()
57 if (!deviceProvisioned && !action.showBeforeProvisioning()) { in getCount()
82 final Action action = mItems.get(i); in getItem() local
83 if (keyguardShowing && !action.showDuringKeyguard()) { in getItem()
86 if (!deviceProvisioned && !action.showBeforeProvisioning()) { in getItem()
90 return action; in getItem()
109 Action action = getItem(position); in getView() local
110 return action.create(mContext, convertView, parent, LayoutInflater.from(mContext)); in getView()
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java105 final String action = intent.getAction(); in onReceive() local
106 if (action.equals(Intent.ACTION_SCREEN_ON) in onReceive()
107 || action.equals(Intent.ACTION_DREAMING_STOPPED) in onReceive()
108 || action.equals(Intent.ACTION_DOCK_ACTIVE)) { in onReceive()
109 if (action.equals(Intent.ACTION_DOCK_ACTIVE)) { in onReceive()
121 Slog.v(TAG,"exiting idle : " + action); in onReceive()
130 } else if (action.equals(Intent.ACTION_SCREEN_OFF) in onReceive()
131 || action.equals(Intent.ACTION_DREAMING_STARTED) in onReceive()
132 || action.equals(Intent.ACTION_DOCK_IDLE)) { in onReceive()
136 if (action.equals(Intent.ACTION_DOCK_IDLE)) { in onReceive()
[all …]
DCarIdlenessTracker.java93 final String action = intent.getAction(); in onReceive() local
94 logIfDebug("Received action: " + action); in onReceive()
97 if (action.equals(ACTION_FORCE_IDLE)) { in onReceive()
100 } else if (action.equals(ACTION_UNFORCE_IDLE)) { in onReceive()
103 } else if (action.equals(Intent.ACTION_SCREEN_ON)) { in onReceive()
106 } else if (action.equals(ACTION_GARAGE_MODE_ON)) { in onReceive()
110 } else if (action.equals(ACTION_GARAGE_MODE_OFF)) { in onReceive()
114 } else if (action.equals(ActivityManagerService.ACTION_TRIGGER_IDLE)) { in onReceive()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java1027 String action = intent.getAction(); in onReceive() local
1029 if (ACTION_PASSWORD_CHANGED.equals(action)) { in onReceive()
1031 } else if (ACTION_PASSWORD_FAILED.equals(action)) { in onReceive()
1033 } else if (ACTION_PASSWORD_SUCCEEDED.equals(action)) { in onReceive()
1035 } else if (ACTION_DEVICE_ADMIN_ENABLED.equals(action)) { in onReceive()
1037 } else if (ACTION_DEVICE_ADMIN_DISABLE_REQUESTED.equals(action)) { in onReceive()
1043 } else if (ACTION_DEVICE_ADMIN_DISABLED.equals(action)) { in onReceive()
1045 } else if (ACTION_PASSWORD_EXPIRING.equals(action)) { in onReceive()
1047 } else if (ACTION_PROFILE_PROVISIONING_COMPLETE.equals(action)) { in onReceive()
1049 } else if (ACTION_CHOOSE_PRIVATE_KEY_ALIAS.equals(action)) { in onReceive()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java67 action -> Long.bitCount(action.mSerializationFlag) != 1); in testStandardActions_serializationFlagIsValid()
80 action -> Integer.bitCount(action.getId()) == 1 in testStandardActions_serializationFlagIsValid()
81 && action.getId() <= AccessibilityNodeInfo.LAST_LEGACY_STANDARD_ACTION in testStandardActions_serializationFlagIsValid()
82 && action.getId() != action.mSerializationFlag); in testStandardActions_serializationFlagIsValid()
108 for (AccessibilityAction action : AccessibilityAction.sStandardActions) { in testStandardActions_allComeThroughParceling()
110 nodeWithAction.addAction(action); in testStandardActions_allComeThroughParceling()
111 assertThat(nodeWithAction.getActionList(), hasItem(action)); in testStandardActions_allComeThroughParceling()
117 assertThat(unparceledNode.getActionList(), hasItem(action)); in testStandardActions_allComeThroughParceling()
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsUtImplBase.java157 public int updateCallBarring(int cbType, int action, String[] barrList) throws
159 return ImsUtImplBase.this.updateCallBarring(cbType, action, barrList);
163 public int updateCallForward(int action, int condition, String number, int serviceClass,
165 return ImsUtImplBase.this.updateCallForward(action, condition, number, serviceClass,
206 public int updateCallBarringForServiceClass(int cbType, int action,
209 cbType, action, barrList, serviceClass);
213 public int updateCallBarringWithPassword(int cbType, int action, String[] barrList,
216 cbType, action, barrList, serviceClass, password);
327 public int updateCallBarring(@CallBarringMode int cbType, int action, String[] barrList) { in updateCallBarring() argument
334 public int updateCallBarringForServiceClass(@CallBarringMode int cbType, int action, in updateCallBarringForServiceClass() argument
[all …]
/frameworks/base/tools/bit/
Dmain.cpp223 void SetCurrentAction(TestAction* action);
317 TestResults::SetCurrentAction(TestAction* action) in SetCurrentAction() argument
319 m_currentAction = action; in SetCurrentAction()
992 TestAction action; in run_phases() local
993 action.packageName = apk.package; in run_phases()
994 action.runner = apk.runner; in run_phases()
995 action.target = target; in run_phases()
996 testActions.push_back(action); in run_phases()
999 ActivityAction action; in run_phases() local
1000 action.packageName = apk.package; in run_phases()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp31 static std::string motionActionToString(int32_t action) { in motionActionToString() argument
33 switch (action & AMOTION_EVENT_ACTION_MASK) { in motionActionToString()
45 return StringPrintf("%" PRId32, action); in motionActionToString()
48 static std::string keyActionToString(int32_t action) { in keyActionToString() argument
50 switch (action) { in keyActionToString()
58 return StringPrintf("%" PRId32, action); in keyActionToString()
117 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t flags, in KeyEntry() argument
124 action(action), in KeyEntry()
145 deviceId, source, displayId, keyActionToString(action).c_str(), flags, in appendDescription()
161 int32_t displayId, uint32_t policyFlags, int32_t action, in MotionEntry() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierActionAgent.java89 final String action = intent.getAction();
91 if (TelephonyIntents.ACTION_SIM_STATE_CHANGED.equals(action)){
233 private RegistrantList getRegistrantsFromAction(int action) { in getRegistrantsFromAction() argument
234 switch (action) { in getRegistrantsFromAction()
242 loge("Unsupported action: " + action); in getRegistrantsFromAction()
247 private Boolean getCarrierActionEnabled(int action) { in getCarrierActionEnabled() argument
248 switch (action) { in getCarrierActionEnabled()
256 loge("Unsupported action: " + action); in getCarrierActionEnabled()
267 public void registerForCarrierAction(int action, Handler h, int what, Object obj, in registerForCarrierAction() argument
269 Boolean carrierAction = getCarrierActionEnabled(action); in registerForCarrierAction()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h60 static void synthesizeButtonKey(InputReaderContext* context, int32_t action, nsecs_t when, in synthesizeButtonKey() argument
64 if ((action == AKEY_EVENT_ACTION_DOWN && !(lastButtonState & buttonState) && in synthesizeButtonKey()
66 (action == AKEY_EVENT_ACTION_UP && (lastButtonState & buttonState) && in synthesizeButtonKey()
69 policyFlags, action, 0, keyCode, 0, context->getGlobalMetaState(), when); in synthesizeButtonKey()
74 static void synthesizeButtonKeys(InputReaderContext* context, int32_t action, nsecs_t when, in synthesizeButtonKeys() argument
78 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
81 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevice.java352 for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) { in dispatchMessageToAction()
354 boolean result = action.processCommand(message); in dispatchMessageToAction()
575 static void injectKeyEvent(long time, int action, int keycode, int repeat) { in injectKeyEvent() argument
580 action, in injectKeyEvent()
745 void addAndStartAction(final HdmiCecFeatureAction action) { in addAndStartAction() argument
747 mActions.add(action); in addAndStartAction()
749 Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action); in addAndStartAction()
752 action.start(); in addAndStartAction()
759 for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) { in startQueuedActions()
760 if (!action.started()) { in startQueuedActions()
[all …]
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp245 for (auto& action : input_actions) { in InitializeInputs() local
246 assert(action != nullptr); in InitializeInputs()
247 action->activate(ir_builder.getInputBuilder()); in InitializeInputs()
825 Action action; in TranslateArguments() local
838 action.reset(new mcld::ScriptAction( in TranslateArguments()
840 actions.push_back(std::move(action)); in TranslateArguments()
842 action.reset(new mcld::ContextAction(0x0)); in TranslateArguments()
843 actions.push_back(std::move(action)); in TranslateArguments()
845 action.reset(new mcld::MemoryAreaAction(0x0, in TranslateArguments()
847 actions.push_back(std::move(action)); in TranslateArguments()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java166 void addProfileHandler(String action, Handler handler) { in addProfileHandler() argument
167 mHandlerMap.put(action, handler); in addProfileHandler()
168 mProfileIntentFilter.addAction(action); in addProfileHandler()
236 void addHandler(String action, Handler handler) { in addHandler() argument
237 mHandlerMap.put(action, handler); in addHandler()
238 mAdapterIntentFilter.addAction(action); in addHandler()
244 String action = intent.getAction(); in onReceive() local
248 Handler handler = mHandlerMap.get(action); in onReceive()
426 String action = intent.getAction(); in onReceive() local
427 if (action == null) { in onReceive()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetProvider.java60 String action = intent.getAction(); in onReceive() local
61 if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { in onReceive()
69 } else if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) { in onReceive()
75 } else if (AppWidgetManager.ACTION_APPWIDGET_OPTIONS_CHANGED.equals(action)) { in onReceive()
84 } else if (AppWidgetManager.ACTION_APPWIDGET_ENABLED.equals(action)) { in onReceive()
86 } else if (AppWidgetManager.ACTION_APPWIDGET_DISABLED.equals(action)) { in onReceive()
88 } else if (AppWidgetManager.ACTION_APPWIDGET_RESTORED.equals(action)) { in onReceive()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java92 String action = "test_action"; in reportChooserSelection() local
94 UsageStats packageStats = initStats(packageName, action, annotation, initialCount); in reportChooserSelection()
95 UsageStats oneClickStats = initStats(packageName, action, annotation, 1); in reportChooserSelection()
116 long beforeReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection()
117 mController.updateChooserCounts(packageName, UserHandle.USER_CURRENT, action); in reportChooserSelection()
118 long afterReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection()
122 private UsageStats initStats(String packageName, String action, in initStats() argument
127 chooserCounts.put(action, counts); in initStats()
146 UsageStatsManager usm, String packageName, String action, String annotation) { in getCount() argument
154 || packageStats.mChooserCounts.get(action) == null) { in getCount()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1975 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, args.action); in testDPadKeyRotation()
1981 ASSERT_EQ(AKEY_EVENT_ACTION_UP, args.action); in testDPadKeyRotation()
2012 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, args.action); in TEST_F()
2026 ASSERT_EQ(AKEY_EVENT_ACTION_UP, args.action); in TEST_F()
2041 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, args.action); in TEST_F()
2056 ASSERT_EQ(AKEY_EVENT_ACTION_UP, args.action); in TEST_F()
2071 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, args.action); in TEST_F()
2086 ASSERT_EQ(AKEY_EVENT_ACTION_UP, args.action); in TEST_F()
2216 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, args.action); in TEST_F()
2224 ASSERT_EQ(AKEY_EVENT_ACTION_UP, args.action); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadActivity.java171 String action = getIntent().getAction(); in onCreate() local
174 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
177 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
182 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
186 } else if (LIFECYCLE_FINISH_CREATE.equals(action)) { in onCreate()
194 } else if (LIFECYCLE_FINISH_START.equals(action)) { in onCreate()
227 String action = getIntent().getAction(); in onResume() local
231 if (LAUNCH.equals(action)) { in onResume()
238 } else if (FORWARD_RESULT.equals(action)) { in onResume()
243 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
[all …]

12345678910>>...32