Home
last modified time | relevance | path

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

12345678910>>...31

/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.java416 public void postCallback(int callbackType, Runnable action, Object token) { in postCallback() argument
417 postCallbackDelayed(callbackType, action, token, 0); in postCallback()
436 Runnable action, Object token, long delayMillis) { in postCallbackDelayed() argument
437 if (action == null) { in postCallbackDelayed()
444 postCallbackDelayedInternal(callbackType, action, token, delayMillis); in postCallbackDelayed()
448 Object action, Object token, long delayMillis) { in postCallbackDelayedInternal() argument
451 + ", action=" + action + ", token=" + token in postCallbackDelayedInternal()
458 mCallbackQueues[callbackType].addCallbackLocked(dueTime, action, token); in postCallbackDelayedInternal()
463 Message msg = mHandler.obtainMessage(MSG_DO_SCHEDULE_CALLBACK, action); in postCallbackDelayedInternal()
485 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/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/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/logging/
DMetricsLogger.java130 public void action(int category) { in action() method in MetricsLogger
137 public void action(int category, int value) { in action() method in MetricsLogger
144 public void action(int category, boolean value) { in action() method in MetricsLogger
151 public void action(int category, String pkg) { in action() method in MetricsLogger
186 public static void action(Context context, int category) { in action() method in MetricsLogger
187 getLogger().action(category); in action()
192 public static void action(Context context, int category, int value) { in action() method in MetricsLogger
193 getLogger().action(category, value); in action()
198 public static void action(Context context, int category, boolean value) { in action() method in MetricsLogger
199 getLogger().action(category, value); in action()
[all …]
/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.java1023 String action = intent.getAction(); in onReceive() local
1025 if (ACTION_PASSWORD_CHANGED.equals(action)) { in onReceive()
1027 } else if (ACTION_PASSWORD_FAILED.equals(action)) { in onReceive()
1029 } else if (ACTION_PASSWORD_SUCCEEDED.equals(action)) { in onReceive()
1031 } else if (ACTION_DEVICE_ADMIN_ENABLED.equals(action)) { in onReceive()
1033 } else if (ACTION_DEVICE_ADMIN_DISABLE_REQUESTED.equals(action)) { in onReceive()
1039 } else if (ACTION_DEVICE_ADMIN_DISABLED.equals(action)) { in onReceive()
1041 } else if (ACTION_PASSWORD_EXPIRING.equals(action)) { in onReceive()
1043 } else if (ACTION_PROFILE_PROVISIONING_COMPLETE.equals(action)) { in onReceive()
1045 } 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/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/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/base/telephony/java/android/telephony/ims/stub/
DImsUtImplBase.java85 public int updateCallBarring(int cbType, int action, String[] barrList) throws
87 return ImsUtImplBase.this.updateCallBarring(cbType, action, barrList);
91 public int updateCallForward(int action, int condition, String number, int serviceClass,
93 return ImsUtImplBase.this.updateCallForward(action, condition, number, serviceClass,
134 public int updateCallBarringForServiceClass(int cbType, int action,
137 cbType, action, barrList, serviceClass);
248 public int updateCallBarring(int cbType, int action, String[] barrList) { in updateCallBarring() argument
255 public int updateCallBarringForServiceClass(int cbType, int action, String[] barrList, in updateCallBarringForServiceClass() argument
263 public int updateCallForward(int action, int condition, String number, int serviceClass, in updateCallForward() argument
/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/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/base/core/java/com/android/internal/widget/
DRecyclerViewAccessibilityDelegate.java43 public boolean performAccessibilityAction(View host, int action, Bundle args) { in performAccessibilityAction() argument
44 if (super.performAccessibilityAction(host, action, args)) { in performAccessibilityAction()
48 return mRecyclerView.getLayoutManager().performAccessibilityAction(action, args); in performAccessibilityAction()
95 public boolean performAccessibilityAction(View host, int action, Bundle args) {
96 if (super.performAccessibilityAction(host, action, args)) {
101 .performAccessibilityActionForItem(host, action, args);
/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.java168 void addProfileHandler(String action, Handler handler) { in addProfileHandler() argument
169 mHandlerMap.put(action, handler); in addProfileHandler()
170 mProfileIntentFilter.addAction(action); in addProfileHandler()
253 void addHandler(String action, Handler handler) { in addHandler() argument
254 mHandlerMap.put(action, handler); in addHandler()
255 mAdapterIntentFilter.addAction(action); in addHandler()
261 String action = intent.getAction(); in onReceive() local
265 Handler handler = mHandlerMap.get(action); in onReceive()
453 String action = intent.getAction(); in onReceive() local
454 if (action == null) { in onReceive()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DStatsLogCompat.java30 public static void write(int action, int srcState, int dstState, byte [] extension, in write() argument
32 StatsLog.write(19, action, srcState, dstState, extension, in write()
42 public static void write(int action, int colorPackageHash, in write() argument
46 StatsLog.write(179, action, colorPackageHash, in write()
DMetricsLoggerCompat.java31 public void action(int category) { in action() method in MetricsLoggerCompat
32 mMetricsLogger.action(category); in action()
35 public void action(int category, int value) { in action() method in MetricsLoggerCompat
36 mMetricsLogger.action(category, value); in action()
/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTesterFailBringUpAll.java57 String action = intent.getAction();
58 if (DBG) log("sIntentReceiver.onReceive: action=" + action);
59 if (action.equals(mActionFailBringUp)) {
61 } else if (action.equals(mPhone.getActionDetached())) {
67 } else if (action.equals(mPhone.getActionAttached())) {
73 if (DBG) log("onReceive: unknown action=" + action);

12345678910>>...31