/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
D | ProximitySensorImplSingleTest.java | 68 assertNull(listener.mLastEvent); in testSingleListener() 71 assertFalse(listener.mLastEvent.getBelow()); in testSingleListener() 74 assertTrue(listener.mLastEvent.getBelow()); in testSingleListener() 91 assertNull(listenerA.mLastEvent); in testMultiListener() 92 assertNull(listenerB.mLastEvent); in testMultiListener() 95 assertFalse(listenerA.mLastEvent.getBelow()); in testMultiListener() 96 assertFalse(listenerB.mLastEvent.getBelow()); in testMultiListener() 100 assertTrue(listenerA.mLastEvent.getBelow()); in testMultiListener() 101 assertTrue(listenerB.mLastEvent.getBelow()); in testMultiListener() 119 assertNull(listenerA.mLastEvent); in testDuplicateListener() [all …]
|
D | ProximitySensorImplDualTest.java | 74 assertNull(listener.mLastEvent); in testInitiallyAbovePrimary() 78 assertNotNull(listener.mLastEvent); in testInitiallyAbovePrimary() 79 assertFalse(listener.mLastEvent.getBelow()); in testInitiallyAbovePrimary() 92 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAboveSecondary() 96 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAboveSecondary() 100 assertNotNull(listener.mLastEvent); in testInitiallyBelowPrimaryAboveSecondary() 101 assertFalse(listener.mLastEvent.getBelow()); in testInitiallyBelowPrimaryAboveSecondary() 114 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAndSecondary() 118 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAndSecondary() 122 assertNotNull(listener.mLastEvent); in testInitiallyBelowPrimaryAndSecondary() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 103 private MotionEvent mLastEvent; field in TouchExplorerTest 164 moveEachPointers(mLastEvent, p(10, 10)); in testOneFingerMove_shouldInjectHoverEvents() 165 send(mLastEvent); in testOneFingerMove_shouldInjectHoverEvents() 179 moveEachPointers(mLastEvent, p(0, 0)); in testOneFingerMoveWithExtraMoveEvents() 180 send(mLastEvent); in testOneFingerMoveWithExtraMoveEvents() 184 moveEachPointers(mLastEvent, p(10, 10)); in testOneFingerMoveWithExtraMoveEvents() 185 send(mLastEvent); in testOneFingerMoveWithExtraMoveEvents() 187 moveEachPointers(mLastEvent, p(0, 0)); in testOneFingerMoveWithExtraMoveEvents() 188 send(mLastEvent); in testOneFingerMoveWithExtraMoveEvents() 242 moveEachPointers(mLastEvent, p(0, 0), p(0, 0)); in testTwoFingerDragWithExtraMoveEvents() [all …]
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneManagerServiceState.java | 35 @Nullable private final LocationAlgorithmEvent mLastEvent; field in LocationTimeZoneManagerServiceState 42 mLastEvent = builder.mLastEvent; in LocationTimeZoneManagerServiceState() 54 return mLastEvent; in getLastEvent() 76 + ", mLastEvent=" + mLastEvent in toString() 86 private LocationAlgorithmEvent mLastEvent; field in LocationTimeZoneManagerServiceState.Builder 99 mLastEvent = Objects.requireNonNull(lastEvent); in setLastEvent()
|
D | LocationTimeZoneProviderController.java | 182 private LocationAlgorithmEvent mLastEvent; field in LocationTimeZoneProviderController 318 mLastEvent = event; in reportEvent() 678 ipw.println("mLastEvent=" + mLastEvent); in dump() 866 if (mLastEvent != null) { in getStateForTests() 867 builder.setLastEvent(mLastEvent); in getStateForTests()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | ProximitySensorImpl.java | 72 ThresholdSensorEvent mLastEvent; field in ProximitySensorImpl 282 mLastEvent = null; in unregisterInternal() 288 return isLoaded() && mLastEvent != null ? mLastEvent.getBelow() : null; in isNear() 297 if (mLastEvent != null) { in alertListeners() 298 ThresholdSensorEvent lastEvent = mLastEvent; // Listeners can null out mLastEvent. in alertListeners() 341 if (mLastEvent != null && event.getBelow() == mLastEvent.getBelow()) { in onSensorEvent() 349 mLastEvent = event; in onSensorEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | MagnificationGesturesObserver.java | 89 private MotionEvent mLastEvent; field in MagnificationGesturesObserver 151 mLastEvent); in notifyDetectionCancel() 174 if (mLastEvent == null) { in recycleLastEvent() 177 mLastEvent.recycle(); in recycleLastEvent() 178 mLastEvent = null; in recycleLastEvent() 183 mLastEvent = MotionEvent.obtain(event); in cacheDelayedMotionEvent()
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerServiceTestUtils.h | 73 mLastEvent({EventType::INVALID, 0}), mEventCount(0) {} in TestSystemCallback() 90 mLastEvent = {EventType::VIDEO_ON, uid}; in noteStartVideo() 95 mLastEvent = {EventType::VIDEO_OFF, uid}; in noteStopVideo() 100 mLastEvent = {EventType::VIDEO_RESET, 0}; in noteResetVideo() 105 mLastEvent = {enable ? EventType::CPUSET_ENABLE : EventType::CPUSET_DISABLE, 0}; in requestCpusetBoost() 111 EventType lastEventType() { return mLastEvent.type; } in lastEventType() 112 EventEntry lastEvent() { return mLastEvent; } in lastEvent() 118 EventEntry mLastEvent;
|
/frameworks/native/libs/input/ |
D | MotionPredictor.cpp | 143 if (mLastEvent && mLastEvent->getDeviceId() != event.getDeviceId()) { in record() 146 LOG(ERROR) << "Inconsistent event stream: last event is " << *mLastEvent << ", but " in record() 150 << mLastEvent->getDeviceId() << ", but received " << event; in record() 180 mLastEvent.reset(); in record() 219 if (!mLastEvent) { in record() 220 mLastEvent = MotionEvent(); in record() 222 mLastEvent->copyFrom(&event, /*keepHistory=*/false); in record() 257 LOG_ALWAYS_FATAL_IF(!mLastEvent); in predict() 258 const MotionEvent& event = *mLastEvent; in predict()
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | mediaresourcemanager_fuzzer.cpp | 86 TestSystemCallback() : mLastEvent({EventType::INVALID, 0}), mEventCount(0) {} in TestSystemCallback() 103 mLastEvent = {EventType::VIDEO_ON, uid}; in noteStartVideo() 108 mLastEvent = {EventType::VIDEO_OFF, uid}; in noteStopVideo() 113 mLastEvent = {EventType::VIDEO_RESET, 0}; in noteResetVideo() 118 mLastEvent = {enable ? EventType::CPUSET_ENABLE : EventType::CPUSET_DISABLE, 0}; in requestCpusetBoost() 124 EventType lastEventType() { return mLastEvent.type; } in lastEventType() 125 EventEntry lastEvent() { return mLastEvent; } in lastEvent() 131 EventEntry mLastEvent; member
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/ |
D | CellularIdentifierDisclosureNotifier.java | 306 private Instant mLastEvent; 314 mLastEvent = null; 329 mLastEvent = now; 358 return mLastEvent; 364 mLastEvent = null;
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeProximitySensor.java | 45 mLastEvent = event; in setLastEvent()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 141 public int mLastEvent; field in UsageStats 189 mLastEvent = stats.mLastEvent; in UsageStats() 673 dest.writeInt(mLastEvent); in writeToParcel() 728 stats.mLastEvent = in.readInt();
|
/frameworks/native/include/input/ |
D | MotionPredictor.h | 126 std::optional<MotionEvent> mLastEvent; variable
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 91 tempPackage.mLastEvent = stats.mLastEvent; in loadUsageStats() 101 tempPackageIndex.mLastEvent = stats.mLastEvent; in loadUsageStats() 115 stats.mLastEvent = in loadUsageStats() 341 usageStats.mLastEvent); in writeUsageStats()
|
D | UsageStatsXmlV1.java | 125 stats.mLastEvent = XmlUtils.readIntAttribute(parser, LAST_EVENT_ATTR); in loadUsageStats()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 175 RawEvent mLastEvent GUARDED_BY(mLock); 249 *outLastEvent = mLastEvent; in assertProcessWasCalled() 314 mLastEvent = rawEvent; in process()
|