Home
last modified time | relevance | path

Searched refs:numEvents (Results 1 – 16 of 16) sorted by relevance

/frameworks/native/libs/sensor/
DSensorEventQueue.cpp62 ASensorEvent const* events, size_t numEvents) { in write() argument
63 return BitTube::sendObjects(tube, events, numEvents); in write()
66 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read() argument
76 size_t count = min(numEvents, mAvailable); in read()
/frameworks/native/libs/sensor/include/sensor/
DSensorEventQueue.h75 ASensorEvent const* events, size_t numEvents);
77 ssize_t read(ASensorEvent* events, size_t numEvents);
/frameworks/base/core/java/android/service/autofill/
DFillEventHistory.java138 int numEvents = mEvents.size(); in writeToParcel() local
139 for (int i = 0; i < numEvents; i++) { in writeToParcel()
779 final int numEvents = parcel.readInt();
780 for (int i = 0; i < numEvents; i++) {
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp291 sensors_event_t const* buffer, size_t numEvents, in sendEvents() argument
302 while (i<numEvents) { in sendEvents()
355 } while ((i<numEvents) && ((buffer[i].sensor == sensor_handle && in sendEvents()
363 count = numEvents; in sendEvents()
365 sanitizedBuffer.reset(new sensors_event_t[numEvents]); in sendEvents()
367 for (size_t i = 0; i < numEvents; i++) { in sendEvents()
/frameworks/base/services/core/java/com/android/server/power/
DWakeLockLog.java189 int numEvents = 0; in dump() local
194 numEvents++; in dump()
218 numEvents++; in dump()
229 pw.println(" Events: " + numEvents + ", Time-Resets: " + numResets); in dump()
/frameworks/base/services/tests/servicestests/src/com/android/server/criticalevents/
DCriticalEventLogTest.java659 private void createTestFileWithEvents(int numEvents) throws Exception { in createTestFileWithEvents() argument
661 log.events = new CriticalEventProto[numEvents]; in createTestFileWithEvents()
662 long startTimeMs = START_TIME_MS - (numEvents * 1000L); in createTestFileWithEvents()
664 for (int i = 0; i < numEvents; i++) { in createTestFileWithEvents()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayMapperTest.java359 int numEvents = allEvents.size(); in testDisplayDeviceAddAndRemove_withDisplayManagement() local
362 events.add(allEvents.get(numEvents - 2)); in testDisplayDeviceAddAndRemove_withDisplayManagement()
363 events.add(allEvents.get(numEvents - 1)); in testDisplayDeviceAddAndRemove_withDisplayManagement()
367 LogicalDisplay displayRemoved = displays.get(numEvents - 2); in testDisplayDeviceAddAndRemove_withDisplayManagement()
368 assertThat(displays.get(numEvents - 1)).isEqualTo(displayRemoved); in testDisplayDeviceAddAndRemove_withDisplayManagement()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp436 ssize_t numEvents; in handleEvent() local
438 numEvents = mBootAnimation->mDisplayEventReceiver->getEvents(buffer, kBufferSize); in handleEvent()
439 for (size_t i = 0; i < static_cast<size_t>(numEvents); i++) { in handleEvent()
466 } while (numEvents > 0); in handleEvent()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java741 final int numEvents = cachedEvents.events == null ? 0 : cachedEvents.events.size(); in queryEarliestEventsForPackage() local
742 if ((numEvents == 0 in queryEarliestEventsForPackage()
743 || cachedEvents.events.get(numEvents - 1).getEventType() != eventType) in queryEarliestEventsForPackage()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskFragmentOrganizerController.java1099 final int numEvents = pendingEvents.size(); in dispatchPendingEvents() local
1101 for (int i = 0; i < numEvents; i++) { in dispatchPendingEvents()
/frameworks/native/services/inputflinger/tests/
DCursorInputMapper_test.cpp1097 constexpr static int32_t numEvents = in TEST_F() local
1099 for (int i = 0; i < numEvents; i++) { in TEST_F()
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp2164 int numEvents = epoll_wait(epoll_fd, events, 1, 1000); in run_server() local
2165 if (numEvents < 0) { in run_server()
2171 if (numEvents > 0) { in run_server()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityWindowManager.java988 final int numEvents = events.size(); in sendEventsForChangedWindowsLocked() local
989 for (int i = 0; i < numEvents; i++) { in sendEventsForChangedWindowsLocked()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java1226 int numEvents = mEventHistory.getEvents().size(); in dumpLocked() local
1227 for (int i = 0; i < numEvents; i++) { in dumpLocked()
/frameworks/base/core/java/android/app/
DAppOpsManager.java3914 int numEvents = mAccessEvents.size(); in collectKeys() local
3915 for (int i = 0; i < numEvents; i++) { in collectKeys()
3921 int numEvents = mRejectEvents.size(); in collectKeys() local
3922 for (int i = 0; i < numEvents; i++) { in collectKeys()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java4529 public void createFakeHistoryEvents(long numEvents) { in createFakeHistoryEvents() argument
4532 for(long i = 0; i < numEvents; i++) { in createFakeHistoryEvents()