Home
last modified time | relevance | path

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

12345678910>>...39

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DLatencyTrackerTest.java209 mLatencyTracker.onActionStart(action);
210 mLatencyTracker.onActionEnd(action);
230 mLatencyTracker.onActionStart(action);
231 mLatencyTracker.onActionEnd(action);
245 mLatencyTracker.onActionEnd(action);
259 mLatencyTracker.onActionStart(action);
261 mLatencyTracker.onActionEnd(action);
282 mLatencyTracker.onActionEnd(action);
303 mLatencyTracker.onActionEnd(action);
326 mLatencyTracker.onActionEnd(action);
[all …]
/aosp14/system/core/init/
H A Daction_manager.cpp28 for (const auto& action : actions_) { in CheckAllCommands() local
29 failures += action->CheckAllCommands(); in CheckAllCommands()
40 actions_.emplace_back(std::move(action)); in AddAction()
61 action->AddCommand(std::move(func), {name}, 0); in QueueBuiltinAction()
63 event_queue_.emplace(action.get()); in QueueBuiltinAction()
64 actions_.emplace_back(std::move(action)); in QueueBuiltinAction()
72 for (const auto& action : actions_) { in ExecuteOneCommand() local
73 if (std::visit([&action](const auto& event) { return action->CheckEvent(event); }, in ExecuteOneCommand()
94 action->ExecuteOneCommand(current_command_); in ExecuteOneCommand()
103 if (action->oneshot()) { in ExecuteOneCommand()
[all …]
H A Dreboot_utils.cpp185 struct sigaction action; in InstallRebootSignalHandlers() local
186 memset(&action, 0, sizeof(action)); in InstallRebootSignalHandlers()
187 sigfillset(&action.sa_mask); in InstallRebootSignalHandlers()
188 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers()
201 action.sa_flags = SA_RESTART; in InstallRebootSignalHandlers()
202 sigaction(SIGABRT, &action, nullptr); in InstallRebootSignalHandlers()
203 sigaction(SIGBUS, &action, nullptr); in InstallRebootSignalHandlers()
204 sigaction(SIGFPE, &action, nullptr); in InstallRebootSignalHandlers()
205 sigaction(SIGILL, &action, nullptr); in InstallRebootSignalHandlers()
206 sigaction(SIGSEGV, &action, nullptr); in InstallRebootSignalHandlers()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DBroadcastWaiter.java52 final String key = action + userId; in getSemaphore()
65 private void registerBroadcastReceiver(String action) { in registerBroadcastReceiver() argument
69 if (action.equals(Intent.ACTION_MEDIA_MOUNTED)) { in registerBroadcastReceiver()
76 if (action.equals(intent.getAction())) { in registerBroadcastReceiver()
82 getSemaphore(action, userId).release(); in registerBroadcastReceiver()
99 if (!mActions.contains(action)) { in waitActionForUser()
125 for (String action : actions) { in runThenWaitForBroadcasts()
126 getSemaphore(action, userId).drainPermits(); in runThenWaitForBroadcasts()
129 for (String action : actions) { in runThenWaitForBroadcasts()
130 if (!waitActionForUser(action, userId)) { in runThenWaitForBroadcasts()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A 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
48 public void removeCallbacks(Runnable action) { in removeCallbacks() argument
55 if (actions[i].matches(action)) { in removeCallbacks()
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
116 this.action = action; in HandlerAction()
121 return otherAction == null && action == null in matches()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DDeviceSelectActionFromPlaybackTest.java251 action.setActionTimer(actionTimer); in createDeviceSelectActionFromPlayback()
252 return action; in createDeviceSelectActionFromPlayback()
265 action.start(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
285 action.start(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
311 action.start(); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
339 action.start(); in testDeviceSelect_DeviceInStandbyAfterTimeoutForReportPowerStatus_Cec14b()
368 action.start(); in testDeviceSelect_ReachmSetStreamPath_Cec14b()
396 action.start(); in testDeviceSelect_ReachmSetStreamPathDeviceInPowerOnStatus_Cec20()
419 action.start(); in testDeviceSelect_DeviceInPowerOnStatus_Cec20()
436 action.start(); in testDeviceSelect_DeviceInPowerUnknownStatus_Cec20()
[all …]
H A DDeviceSelectActionFromTvTest.java205 action.setActionTimer(actionTimer); in createDeviceSelectAction()
206 return action; in createDeviceSelectAction()
219 action.start(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
224 action.processCommand(REPORT_POWER_STATUS_ON); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
238 action.start(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
250 action.processCommand(REPORT_POWER_STATUS_ON); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
264 action.start(); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
291 action.start(); in testDeviceSelect_DeviceInStandbyAfterTimeoutForReportPowerStatus_Cec14b()
321 action.start(); in testDeviceSelect_DeviceInPowerOnStatus_Cec20()
337 action.start(); in testDeviceSelect_DeviceInPowerUnknownStatus_Cec20()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DLatencyTracker.java350 mActionPropertiesMap.put(action, new ActionProperties(action, in updateProperties()
534 onActionStart(action, null); in onActionStart()
545 if (!isEnabled(action)) { in onActionStart()
569 if (!isEnabled(action)) { in onActionEnd()
577 mSessions.delete(action); in onActionEnd()
599 mSessions.delete(action); in onActionCancel()
679 mAction = action; in Session()
742 @Action int action, in ActionProperties()
746 this.mAction = action; in ActionProperties()
858 public final int action; field in LatencyTracker.FrameworkStatsLogEvent
[all …]
H A DFunctionalUtils.java39 public static <T> Consumer<T> uncheckExceptions(ThrowingConsumer<T> action) { in uncheckExceptions() argument
40 return action; in uncheckExceptions()
46 public static <I, O> Function<I, O> uncheckExceptions(ThrowingFunction<I, O> action) { in uncheckExceptions() argument
47 return action; in uncheckExceptions()
53 public static Runnable uncheckExceptions(ThrowingRunnable action) { in uncheckExceptions() argument
54 return action; in uncheckExceptions()
60 public static <A, B> BiConsumer<A, B> uncheckExceptions(ThrowingBiConsumer<A, B> action) { in uncheckExceptions() argument
61 return action; in uncheckExceptions()
67 public static <T> Supplier<T> uncheckExceptions(ThrowingSupplier<T> action) { in uncheckExceptions() argument
68 return action; in uncheckExceptions()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DAuthDialogPanelInteractionDetectorTest.kt55 detector.enable(action)
57 verify(action).run()
62 detector.enable(action)
64 verify(action).run()
69 detector.enable(action)
71 verifyZeroInteractions(action)
76 detector.enable(action)
79 verifyZeroInteractions(action)
84 detector.enable(action)
87 verifyZeroInteractions(action)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
H A DControlActionCoordinatorImplTest.kt123 verify(coordinator).bouncerOrRun(action)
124 verify(action).invoke()
133 verify(coordinator).bouncerOrRun(action)
135 verify(action, never()).invoke()
138 reset(action)
140 verify(action, never()).invoke()
143 reset(action)
145 verify(action).invoke()
158 verify(action).invoke()
187 verify(action, never()).invoke()
[all …]
/aosp14/system/core/debuggerd/include/debuggerd/
H A Dhandler.h77 static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigaction* action) { in debuggerd_register_handlers() argument
84 sigaction(SIGABRT, action, nullptr); in debuggerd_register_handlers()
85 sigaction(SIGBUS, action, nullptr); in debuggerd_register_handlers()
86 sigaction(SIGFPE, action, nullptr); in debuggerd_register_handlers()
87 sigaction(SIGILL, action, nullptr); in debuggerd_register_handlers()
88 sigaction(SIGSEGV, action, nullptr); in debuggerd_register_handlers()
89 sigaction(SIGSTKFLT, action, nullptr); in debuggerd_register_handlers()
90 sigaction(SIGSYS, action, nullptr); in debuggerd_register_handlers()
91 sigaction(SIGTRAP, action, nullptr); in debuggerd_register_handlers()
94 sigaction(BIONIC_SIGNAL_DEBUGGER, action, nullptr); in debuggerd_register_handlers()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
H A DEventLogWriter.java39 MetricsLogger.action(logMaker); in visible()
48 MetricsLogger.action(logMaker); in hidden()
62 MetricsLogger.action(logMaker); in clicked()
80 MetricsLogger.action(logMaker); in changed()
92 MetricsLogger.action(logMaker); in action()
97 MetricsLogger.action(context, category, value); in action()
102 MetricsLogger.action(context, category, value); in action()
111 MetricsLogger.action(logMaker); in action()
115 public void action(int attribution, int action, int pageId, String key, int value) { in action() argument
116 final LogMaker logMaker = new LogMaker(action) in action()
[all …]
H A DMetricsFeatureProvider.java129 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() method in MetricsFeatureProvider
131 writer.action(context, category, taggedData); in action()
138 public void action(Context context, int category, String pkg) { in action() method in MetricsFeatureProvider
140 writer.action(context, category, pkg); in action()
147 public void action(int attribution, int action, int pageId, String key, int value) { in action() argument
149 writer.action(attribution, action, pageId, key, value); in action()
153 public void action(Context context, int category, int value) { in action() method in MetricsFeatureProvider
155 writer.action(context, category, value); in action()
159 public void action(Context context, int category, boolean value) { in action() method in MetricsFeatureProvider
161 writer.action(context, category, value); in action()
/aosp14/frameworks/base/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/
H A DBcSmartspaceDataPlugin.java197 if (action.getIntent() != null) { in startFromAction()
198 startIntent(v, action.getIntent(), showOnLockscreen); in startFromAction()
199 } else if (action.getPendingIntent() != null) { in startFromAction()
200 startPendingIntent(v, action.getPendingIntent(), showOnLockscreen); in startFromAction()
203 Log.w(TAG, "Could not launch intent for action: " + action, e); in startFromAction()
207 default void startFromAction(TapAction action, View v, boolean showOnLockscreen) { in startFromAction() argument
209 if (action.getIntent() != null) { in startFromAction()
210 startIntent(v, action.getIntent(), showOnLockscreen); in startFromAction()
211 } else if (action.getPendingIntent() != null) { in startFromAction()
212 startPendingIntent(v, action.getPendingIntent(), showOnLockscreen); in startFromAction()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileAdapterDelegate.java86 return super.performAccessibilityAction(host, action, args); in performAccessibilityAction()
88 if (action == AccessibilityNodeInfo.ACTION_CLICK) { in performAccessibilityAction()
91 } else if (action == MOVE_TO_POSITION_ID) { in performAccessibilityAction()
94 } else if (action == ADD_TO_POSITION_ID) { in performAccessibilityAction()
98 return super.performAccessibilityAction(host, action, args); in performAccessibilityAction()
125 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in addClickAction() local
128 info.addAction(action); in addClickAction()
134 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in maybeAddActionMoveToPosition() local
138 info.addAction(action); in maybeAddActionMoveToPosition()
145 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in maybeAddActionAddToPosition() local
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragDetectorTest.kt76 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
82 return@argThat it.action == MotionEvent.ACTION_UP && it.x == X && it.y == Y &&
90 return@argThat it.action == MotionEvent.ACTION_DOWN
95 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
103 return@argThat it.action == MotionEvent.ACTION_MOVE
108 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y &&
116 it.action == MotionEvent.ACTION_DOWN
122 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
145 it.action == MotionEvent.ACTION_DOWN
171 it.action == MotionEvent.ACTION_HOVER_ENTER
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/logging/
H A 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()
199 getLogger().action(category, value); in action()
204 public static void action(LogMaker content) { in action() method in MetricsLogger
[all …]
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/
H A DAnimatorExtensions.kt28 crossinline action: (animator: Animator) -> Unit
29 ): Animator.AnimatorListener = addListener(onEnd = action)
38 crossinline action: (animator: Animator) -> Unit
39 ): Animator.AnimatorListener = addListener(onStart = action)
48 crossinline action: (animator: Animator) -> Unit
49 ): Animator.AnimatorListener = addListener(onCancel = action)
57 crossinline action: (animator: Animator) -> Unit
58 ): Animator.AnimatorListener = addListener(onRepeat = action)
/aosp14/frameworks/base/core/java/com/android/internal/globalactions/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuItemAccessibilityDelegate.java96 public boolean performAccessibilityAction(View host, int action, Bundle args) { in performAccessibilityAction() argument
97 if (action == ACTION_ACCESSIBILITY_FOCUS) { in performAccessibilityAction()
101 if (action == ACTION_CLEAR_ACCESSIBILITY_FOCUS) { in performAccessibilityAction()
105 if (action == R.id.action_move_top_left) { in performAccessibilityAction()
110 if (action == R.id.action_move_top_right) { in performAccessibilityAction()
115 if (action == R.id.action_move_bottom_left) { in performAccessibilityAction()
120 if (action == R.id.action_move_bottom_right) { in performAccessibilityAction()
125 if (action == R.id.action_move_to_edge_and_hide) { in performAccessibilityAction()
130 if (action == R.id.action_move_out_edge_and_show) { in performAccessibilityAction()
135 if (action == R.id.action_remove_menu) { in performAccessibilityAction()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/res/raw/
H A Da11y_three_finger_swipe_down_gesture.log2 MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL…
3 MotionEvent { action=ACTION_POINTER_DOWN(1), actionButton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolT…
4 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL…
6 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=500.0, y[0]=696.0, toolType[0]=TOOL…
7 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=503.0, y[0]=699.0, toolType[0]=TOOL…
8 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=521.0, y[0]=728.0, toolType[0]=TOOL…
9 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=535.0, y[0]=765.0, toolType[0]=TOOL…
10 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=545.0, y[0]=795.0, toolType[0]=TOOL…
11 MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=555.0, y[0]=832.0, toolType[0]=TOOL…
28 MotionEvent { action=ACTION_POINTER_UP(0), actionButton=0, id[0]=1, x[0]=826.0, y[0]=1493.0, toolTy…
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
H A DTileAdapterDelegateTest.java71 if (action.getId() == MOVE_TO_POSITION_ID || action.getId() == ADD_TO_POSITION_ID in testInfoNoSpecialActionsWhenNoHolder()
73 fail("It should not have special action " + action.getId()); in testInfoNoSpecialActionsWhenNoHolder()
84 if (action.getId() == MOVE_TO_POSITION_ID || action.getId() == ADD_TO_POSITION_ID in testInfoNoSpecialActionsWhenCannotStartAccessibleAction()
136 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in testClickAddAction() local
138 assertThat(action.getLabel().toString()).contains(expectedString); in testClickAddAction()
152 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in testClickRemoveAction() local
154 assertThat(action.getLabel().toString()).contains(expectedString); in testClickRemoveAction()
167 AccessibilityNodeInfoCompat.AccessibilityActionCompat action = in testNoClickAction() local
169 assertThat(action).isNull(); in testNoClickAction()
257 AccessibilityNodeInfoCompat info, int action) { in getActionForId() argument
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/testdoubles/src/com/android/internal/util/
H A DFakeLatencyTracker.java78 for (int action : STATSD_ACTION) { in disableForAllActions()
79 Log.d(TAG, "disabling action=" + action + ", property=" + getNameOfAction( in disableForAllActions()
80 action).toLowerCase(Locale.ROOT) + ENABLE_SUFFIX); in disableForAllActions()
81 properties.put(getNameOfAction(action).toLowerCase(Locale.ROOT) + ENABLE_SUFFIX, in disableForAllActions()
89 public void forceEnabled(int action, int traceThresholdMillis) in forceEnabled() argument
107 new ActionProperties(action, true /* enabled */, 1 /* samplingInterval */, in forceEnabled()
114 return mLatenciesLogged.getOrDefault(action, Collections.emptyList()); in getEventsWrittenToFrameworkStats()
170 mLatenciesLogged.put(event.action, eventList); in onLogToFrameworkStats()
216 + " action=" + action + ", enabledState=" + enabledState); in waitForActionEnabledState()
221 Log.i(TAG, "verifying if last properties update contains action=" + action in waitForActionEnabledState()
[all …]

12345678910>>...39