Home
last modified time | relevance | path

Searched refs:mEvents (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/core/java/com/android/server/connectivity/
DMetricsLoggerService.java87 private final ArrayDeque<ConnectivityMetricsEvent> mEvents = new ArrayDeque<>(); field in MetricsLoggerService
118 while (mEvents.size() >= MAX_NUMBER_OF_EVENTS) { in addEvent()
119 mEvents.removeFirst(); in addEvent()
122 mEvents.addLast(e); in addEvent()
170 synchronized (mEvents) { in dump()
171 pw.println("Number of events: " + mEvents.size()); in dump()
173 if (mEvents.size() > 0) { in dump()
176 (System.currentTimeMillis() - mEvents.peekFirst().timestamp) in dump()
182 for (ConnectivityMetricsEvent e : mEvents) { in dump()
192 for (ConnectivityMetricsEvent e : mEvents) { in dump()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/
DWifiNanSessionState.java43 private int mEvents; field in WifiNanSessionState
56 mEvents = events; in WifiNanSessionState()
140 if (mListener != null && (mEvents & WifiNanSessionListener.LISTEN_PUBLISH_FAIL) != 0) { in onPublishFail()
152 && (mEvents & WifiNanSessionListener.LISTEN_PUBLISH_TERMINATED) != 0) { in onPublishTerminated()
169 && (mEvents & WifiNanSessionListener.LISTEN_SUBSCRIBE_FAIL) != 0) { in onSubscribeFail()
181 && (mEvents & WifiNanSessionListener.LISTEN_SUBSCRIBE_TERMINATED) != 0) { in onSubscribeTerminated()
192 && (mEvents & WifiNanSessionListener.LISTEN_MESSAGE_SEND_SUCCESS) != 0) { in onMessageSendSuccess()
203 && (mEvents & WifiNanSessionListener.LISTEN_MESSAGE_SEND_FAIL) != 0) { in onMessageSendFail()
219 if (mListener != null && (mEvents & WifiNanSessionListener.LISTEN_MATCH) != 0) { in onMatch()
239 && (mEvents & WifiNanSessionListener.LISTEN_MESSAGE_RECEIVED) != 0) { in onMessageReceived()
[all …]
DWifiNanClientState.java39 private int mEvents; field in WifiNanClientState
48 mEvents = events; in WifiNanClientState()
108 if (mListener != null && (mEvents & WifiNanEventListener.LISTEN_CONFIG_COMPLETED) != 0) { in onConfigCompleted()
118 if (mListener != null && (mEvents & WifiNanEventListener.LISTEN_CONFIG_FAILED) != 0) { in onConfigFailed()
128 if (mListener != null && (mEvents & WifiNanEventListener.LISTEN_NAN_DOWN) != 0) { in onNanDown()
142 if (mListener != null && (mEvents & WifiNanEventListener.LISTEN_IDENTITY_CHANGED) != 0) { in onInterfaceAddressChange()
156 if (mListener != null && (mEvents & WifiNanEventListener.LISTEN_IDENTITY_CHANGED) != 0) { in onClusterChange()
174 pw.println(" mEvents: " + mEvents); in dump()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java74 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS); field in UsageLogActivity.Adapter
82 if (mEvents.size() == MAX_EVENTS) { in update()
83 mEvents.popLast(); in update()
85 mEvents.addFirst(event); in update()
96 return mEvents.size(); in getCount()
101 return mEvents.get(position); in getItem()
/frameworks/av/media/mtp/
DMtpDeviceInfo.cpp33 mEvents(NULL), in MtpDeviceInfo()
48 delete mEvents; in ~MtpDeviceInfo()
76 mEvents = packet.getAUInt16(); in read()
77 if (!mEvents) return false; in read()
DMtpDeviceInfo.h34 UInt16List* mEvents; variable
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java71 ArrayDeque<Event> mEvents = new ArrayDeque<Event>(); field in TrustArchive
108 if (mEvents.size() >= HISTORY_LIMIT) { in addEvent()
109 mEvents.removeFirst(); in addEvent()
111 mEvents.addLast(e); in addEvent()
117 Iterator<Event> iter = mEvents.descendingIterator(); in dump()
/frameworks/native/services/surfaceflinger/
DMessageQueue.cpp96 mEvents = eventThread->createEventConnection(); in setEventThread()
97 mEventTube = mEvents->getDataChannel(); in setEventThread()
138 mEvents->requestNextVsync(); in invalidate()
DMessageQueue.h83 sp<IDisplayEventConnection> mEvents; variable
/frameworks/base/core/java/android/os/
DMessageQueue.java232 if (record != null && record.mEvents == events) { in updateOnFileDescriptorEventListenerLocked()
248 record.mEvents = events; in updateOnFileDescriptorEventListenerLocked()
253 record.mEvents = 0; in updateOnFileDescriptorEventListenerLocked()
271 oldWatchedEvents = record.mEvents; in dispatchEvents()
295 record.mEvents = newWatchedEvents; in dispatchEvents()
861 public int mEvents; field in MessageQueue.FileDescriptorRecord
868 mEvents = events; in FileDescriptorRecord()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java1138 private final List<MotionEvent> mEvents = new ArrayList<MotionEvent>(); field in TouchExplorer.SendHoverEnterAndMoveDelayed
1153 mEvents.add(MotionEvent.obtain(event)); in addEvent()
1170 final int eventCount = mEvents.size(); in clear()
1172 mEvents.remove(i).recycle(); in clear()
1187 if (!mEvents.isEmpty()) { in run()
1189 sendMotionEvent(mEvents.get(0), MotionEvent.ACTION_HOVER_ENTER, in run()
1197 final int eventCount = mEvents.size(); in run()
1199 sendMotionEvent(mEvents.get(i), MotionEvent.ACTION_HOVER_MOVE, in run()
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp263 assert(deviceInfo->mEvents); in android_mtp_MtpDevice_get_device_info()
265 const size_t size = deviceInfo->mEvents->size(); in android_mtp_MtpDevice_get_device_info()
274 elements[i] = deviceInfo->mEvents->itemAt(i); in android_mtp_MtpDevice_get_device_info()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp335 List<RawEvent> mEvents; member in android::FakeEventHub
456 mEvents.push_back(event); in enqueueEvent()
464 ASSERT_EQ(size_t(0), mEvents.size()) in assertQueueIsEmpty()
568 if (mEvents.empty()) { in getEvents()
572 *buffer = *mEvents.begin(); in getEvents()
573 mEvents.erase(mEvents.begin()); in getEvents()