Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsDeadKeys.java54 final EventList events = new EventList() in testDeadCircumflexSimple() local
58 for (final Event event : events) { in testDeadCircumflexSimple()
67 final EventList events = new EventList() in testDeadCircumflexBackspace() local
72 for (final Event event : events) { in testDeadCircumflexBackspace()
81 final EventList events = new EventList() in testDeadCircumflexFeedback() local
84 for (final Event event : events) { in testDeadCircumflexFeedback()
94 final EventList events = new EventList() in testDeadDiaeresisSpace() local
102 for (final Event event : events) { in testDeadDiaeresisSpace()
113 final EventList events = new EventList() in testDeadAcuteLetterBackspace() local
117 for (final Event event : events) { in testDeadAcuteLetterBackspace()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DLifecycleObserverCodeInspector.java24 import com.android.settingslib.core.lifecycle.events.OnAttach;
25 import com.android.settingslib.core.lifecycle.events.OnCreate;
26 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
27 import com.android.settingslib.core.lifecycle.events.OnDestroy;
28 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
29 import com.android.settingslib.core.lifecycle.events.OnPause;
30 import com.android.settingslib.core.lifecycle.events.OnPrepareOptionsMenu;
31 import com.android.settingslib.core.lifecycle.events.OnResume;
32 import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
33 import com.android.settingslib.core.lifecycle.events.OnStart;
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java117 private UsageEvents getUsageEvents(List<Event> events) { in getUsageEvents() argument
118 UsageEvents usageEvents = new UsageEvents(events, new String[] {PKG1, PKG2}); in getUsageEvents()
136 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_onlyNotificationEvents() local
141 events.add(good); in testGetAggregatedUsageEvents_onlyNotificationEvents()
146 events.add(bad); in testGetAggregatedUsageEvents_onlyNotificationEvents()
148 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_onlyNotificationEvents()
158 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_multipleEventsAgg() local
163 events.add(good); in testGetAggregatedUsageEvents_multipleEventsAgg()
168 events.add(good1); in testGetAggregatedUsageEvents_multipleEventsAgg()
170 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_multipleEventsAgg()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceControllerTest.java171 List<Event> events = new ArrayList<>(); in display_showRecents() local
176 events.add(app); in display_showRecents()
181 events.add(app1); in display_showRecents()
186 events.add(app2); in display_showRecents()
200 events); in display_showRecents()
219 List<Event> events = new ArrayList<>(); in display_showRecentsWithInstantApp() local
224 events.add(app); in display_showRecentsWithInstantApp()
229 events.add(app1); in display_showRecentsWithInstantApp()
231 new String[] {"com.foo.bar", "com.foo.barinstant"}, events); in display_showRecentsWithInstantApp()
274 List<Event> events = new ArrayList<>(); in display_showRecents_formatSummary() local
[all …]
DNotificationBackendTest.java97 List<UsageEvents.Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_multipleEventsAgg() local
103 events.add(good); in testGetAggregatedUsageEvents_multipleEventsAgg()
109 events.add(good2); in testGetAggregatedUsageEvents_multipleEventsAgg()
115 events.add(good1); in testGetAggregatedUsageEvents_multipleEventsAgg()
120 backend.recordAggregatedUsageEvents(getUsageEvents(events), appRow); in testGetAggregatedUsageEvents_multipleEventsAgg()
133 private UsageEvents getUsageEvents(List<UsageEvents.Event> events) { in getUsageEvents() argument
134 UsageEvents usageEvents = new UsageEvents(events, new String[] {"pkg"}); in getUsageEvents()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java145 UsageEvents events = null; in getAggregatedUsageEvents() local
147 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents()
152 if (events != null) { in getAggregatedUsageEvents()
154 while (events.hasNextEvent()) { in getAggregatedUsageEvents()
155 events.getNextEvent(event); in getAggregatedUsageEvents()
181 UsageEvents events = null; in getAggregatedUsageEvents() local
183 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
188 if (events != null) { in getAggregatedUsageEvents()
190 while (events.hasNextEvent()) { in getAggregatedUsageEvents()
191 events.getNextEvent(event); in getAggregatedUsageEvents()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java143 UsageEvents events = null; in getAggregatedUsageEvents() local
145 events = mUsageStatsManager.queryEventsForUser( in getAggregatedUsageEvents()
150 if (events != null) { in getAggregatedUsageEvents()
152 while (events.hasNextEvent()) { in getAggregatedUsageEvents()
153 events.getNextEvent(event); in getAggregatedUsageEvents()
179 UsageEvents events = null; in getAggregatedUsageEvents() local
181 events = mUsageStatsManager.queryEventsForPackageForUser( in getAggregatedUsageEvents()
186 if (events != null) { in getAggregatedUsageEvents()
188 while (events.hasNextEvent()) { in getAggregatedUsageEvents()
189 events.getNextEvent(event); in getAggregatedUsageEvents()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DSmartActionsHelperTest.java332 List<TextClassifierEvent> events = argumentCaptor.getAllValues(); in testOnSuggestedReplySent() local
333 assertTextClassifierEvent(events.get(0), TextClassifierEvent.TYPE_ACTIONS_GENERATED); in testOnSuggestedReplySent()
334 assertTextClassifierEvent(events.get(1), TextClassifierEvent.TYPE_SMART_ACTION); in testOnSuggestedReplySent()
335 float[] scores = events.get(1).getScores(); in testOnSuggestedReplySent()
378 List<TextClassifierEvent> events = argumentCaptor.getAllValues(); in testOnNotificationDirectReply() local
379 assertTextClassifierEvent(events.get(0), TextClassifierEvent.TYPE_ACTIONS_GENERATED); in testOnNotificationDirectReply()
380 assertTextClassifierEvent(events.get(1), TextClassifierEvent.TYPE_MANUAL_REPLY); in testOnNotificationDirectReply()
394 List<TextClassifierEvent> events = argumentCaptor.getAllValues(); in testOnNotificationExpansionChanged() local
395 assertTextClassifierEvent(events.get(0), TextClassifierEvent.TYPE_ACTIONS_GENERATED); in testOnNotificationExpansionChanged()
396 assertTextClassifierEvent(events.get(1), TextClassifierEvent.TYPE_ACTIONS_SHOWN); in testOnNotificationExpansionChanged()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventLoader.java129 public ArrayList<Event> events; field in EventLoader.LoadEventsRequest
133 public LoadEventsRequest(int id, int startDay, int numDays, ArrayList<Event> events, in LoadEventsRequest() argument
138 this.events = events; in LoadEventsRequest()
144 Event.loadEvents(eventLoader.mContext, events, startDay, in processRequest()
239 public void loadEventsInBackground(final int numDays, final ArrayList<Event> events, in loadEventsInBackground() argument
249 events, successCallback, cancelCallback); in loadEventsInBackground()
DEvent.java223 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days, in loadEvents() argument
233 events.clear(); in loadEvents()
272 buildEventsFromCursor(events, cEvents, context, startDay, endDay); in loadEvents()
273 buildEventsFromCursor(events, cAllday, context, startDay, endDay); in loadEvents()
342 ArrayList<Event> events, Cursor cEvents, Context context, int startDay, int endDay) { in buildEventsFromCursor() argument
343 if (cEvents == null || events == null) { in buildEventsFromCursor()
365 events.add(e); in buildEventsFromCursor()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java125 public void listenForPhoneState(BluetoothDevice device, int events) { in listenForPhoneState() argument
128 if (events == PhoneStateListener.LISTEN_NONE) { in listenForPhoneState()
131 mDeviceEventMap.put(device, events); in listenForPhoneState()
146 int events = getTelephonyEventsToListen(); in startListenForPhoneState() local
147 if (events == PhoneStateListener.LISTEN_NONE) { in startListenForPhoneState()
157 Log.i(TAG, "startListenForPhoneState(), subId=" + subId + ", enabled_events=" + events); in startListenForPhoneState()
159 mTelephonyManager.listen(mPhoneStateListener, events); in startListenForPhoneState()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java356 @NonNull Set<@KeyEventNum Integer> events, in addKeyEventHandler()
358 addKeyEventHandler(events, null, eventHandler); in addKeyEventHandler()
381 @NonNull Set<@KeyEventNum Integer> events, in addKeyEventHandler()
385 for (int event : events) { in addKeyEventHandler()
430 BitSet events = new BitSet(); in updateHandledEventsLocked() local
433 events.or(record.mSubscribedEvents); in updateHandledEventsLocked()
436 if (events.equals(mHandledEvents)) { in updateHandledEventsLocked()
442 if (!events.isEmpty()) { in updateHandledEventsLocked()
443 Log.d(TAG, "Registering handler with system for " + events); in updateHandledEventsLocked()
444 byte[] eventMask = events.toByteArray(); in updateHandledEventsLocked()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/
DSingleMessageHandler.java49 List<EventType> events = (List<EventType>) msg.obj; in handleMessage() local
50 events.forEach(new Consumer<EventType>() { in handleMessage()
61 public void sendEvents(List<EventType> events) { in sendEvents() argument
62 mHandler.sendMessage(mHandler.obtainMessage(mHandledMessageWhat, events)); in sendEvents()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
DSettingsIntelligenceLogWriterTest.java55 List<SettingsLog> events = new ArrayList<>(); in serialize_hasSizeOne_returnCorrectData() local
56 events.add(event); in serialize_hasSizeOne_returnCorrectData()
59 final byte[] data = SettingsIntelligenceLogWriter.serialize(events); in serialize_hasSizeOne_returnCorrectData()
71 assertThat(events.size()).isEqualTo(size); in serialize_hasSizeOne_returnCorrectData()
/packages/apps/Settings/src/com/android/settings/gestures/
DGesturePreferenceController.java30 import com.android.settingslib.core.lifecycle.events.OnCreate;
31 import com.android.settingslib.core.lifecycle.events.OnPause;
32 import com.android.settingslib.core.lifecycle.events.OnResume;
33 import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DGesturePreferenceController.java30 import com.android.settingslib.core.lifecycle.events.OnCreate;
31 import com.android.settingslib.core.lifecycle.events.OnPause;
32 import com.android.settingslib.core.lifecycle.events.OnResume;
33 import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiMasterSwitchPreferenceController.java30 import com.android.settingslib.core.lifecycle.events.OnPause;
31 import com.android.settingslib.core.lifecycle.events.OnResume;
32 import com.android.settingslib.core.lifecycle.events.OnStart;
33 import com.android.settingslib.core.lifecycle.events.OnStop;
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiMasterSwitchPreferenceController.java30 import com.android.settingslib.core.lifecycle.events.OnPause;
31 import com.android.settingslib.core.lifecycle.events.OnResume;
32 import com.android.settingslib.core.lifecycle.events.OnStart;
33 import com.android.settingslib.core.lifecycle.events.OnStop;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DDeferredMetricsWriter.java77 final List<DevicePolicyEvent> events = Arrays.stream(devicePolicyEventLoggers) in doInBackground() local
81 writeDevicePolicyEventsToStream(events, mOutputStream); in doInBackground()
87 List<DevicePolicyEvent> events, OutputStream outputStream) { in writeDevicePolicyEventsToStream() argument
88 for (DevicePolicyEvent event : events) { in writeDevicePolicyEventsToStream()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java129 public void setEvents(int firstJulianDay, int numDays, ArrayList<Event> events) { in setEvents() argument
137 mEvents = events; in setEvents()
147 if (events == null || events.size() == 0) { in setEvents()
157 for (Event event : events) { in setEvents()
179 Log.d(TAG, "Processed " + events.size() + " events."); in setEvents()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java356 UsageEvents events = null; in recordAggregatedUsageEvents() local
358 events = sUsageStatsManager.queryEventsForPackageForUser( in recordAggregatedUsageEvents()
363 recordAggregatedUsageEvents(events, appRow); in recordAggregatedUsageEvents()
366 protected void recordAggregatedUsageEvents(UsageEvents events, AppRow appRow) { in recordAggregatedUsageEvents() argument
369 if (events != null) { in recordAggregatedUsageEvents()
371 while (events.hasNextEvent()) { in recordAggregatedUsageEvents()
372 events.getNextEvent(event); in recordAggregatedUsageEvents()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java207 List<CarPropertyEvent> events = new LinkedList<CarPropertyEvent>(); in registerListener() local
214 events.add(event); in registerListener()
222 events.add(event); in registerListener()
227 listener.onEvent(events); in registerListener()
361 public void onPropertyChange(List<CarPropertyEvent> events) { in onPropertyChange() argument
365 for (CarPropertyEvent event : events) { in onPropertyChange()
DCarDiagnosticService.java154 private void processDiagnosticData(List<CarDiagnosticEvent> events) { in processDiagnosticData() argument
161 for (CarDiagnosticEvent event : events) { in processDiagnosticData()
198 public void onDiagnosticEvents(List<CarDiagnosticEvent> events) { in onDiagnosticEvents() argument
199 processDiagnosticData(events); in onDiagnosticEvents()
551 void dispatchDiagnosticUpdate(List<CarDiagnosticEvent> events) { in dispatchDiagnosticUpdate() argument
552 if (events.size() != 0 && mActive) { in dispatchDiagnosticUpdate()
554 mListener.onDiagnosticEvents(events); in dispatchDiagnosticUpdate()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/
DTmaMediaItemReader.java94 JSONArray events = getArray(json, Keys.EVENTS); in fromJson() local
95 int eventsCount = (events != null) ? events.length() : 0; in fromJson()
98 mediaEvents.add(mMediaEventReader.fromJson(events.getJSONObject(i))); in fromJson()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java373 UsageEvents events = null; in recordAggregatedUsageEvents() local
375 events = sUsageStatsManager.queryEventsForPackageForUser( in recordAggregatedUsageEvents()
380 recordAggregatedUsageEvents(events, appRow); in recordAggregatedUsageEvents()
383 protected void recordAggregatedUsageEvents(UsageEvents events, AppRow appRow) { in recordAggregatedUsageEvents() argument
386 if (events != null) { in recordAggregatedUsageEvents()
388 while (events.hasNextEvent()) { in recordAggregatedUsageEvents()
389 events.getNextEvent(event); in recordAggregatedUsageEvents()

12345678910>>...16