Home
last modified time | relevance | path

Searched refs:firstToken (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DAnrTracker_test.cpp37 ASSERT_EQ(tracker.firstToken(), nullptr); in TEST()
87 ASSERT_EQ(nullptr, tracker.firstToken()); in TEST()
101 ASSERT_EQ(token2, tracker.firstToken()); in TEST()
116 ASSERT_TRUE(token1 == tracker.firstToken() || token2 == tracker.firstToken()); in TEST()
132 ASSERT_EQ(token1, tracker.firstToken()); in TEST()
152 ASSERT_EQ(nullptr, tracker.firstToken()); in TEST()
157 ASSERT_EQ(nullptr, tracker.firstToken()); in TEST()
162 ASSERT_EQ(nullptr, tracker.firstToken()); in TEST()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java120 int firstToken = src.readInt(); in readHistoryDelta() local
121 int deltaTimeToken = firstToken & BatteryStatsHistory.DELTA_TIME_MASK; in readHistoryDelta()
125 Slog.i(TAG, "READ DELTA: firstToken=0x" + Integer.toHexString(firstToken) in readHistoryDelta()
148 if ((firstToken & BatteryStatsHistory.DELTA_BATTERY_LEVEL_FLAG) != 0) { in readHistoryDelta()
163 if ((firstToken & BatteryStatsHistory.DELTA_STATE_FLAG) != 0) { in readHistoryDelta()
165 cur.states = (firstToken & BatteryStatsHistory.DELTA_STATE_MASK) | (stateInt in readHistoryDelta()
194 cur.states = (firstToken & BatteryStatsHistory.DELTA_STATE_MASK) | (cur.states in readHistoryDelta()
198 if ((firstToken & BatteryStatsHistory.DELTA_STATE2_FLAG) != 0) { in readHistoryDelta()
206 if ((firstToken & BatteryStatsHistory.DELTA_WAKELOCK_FLAG) != 0) { in readHistoryDelta()
226 if ((firstToken & BatteryStatsHistory.DELTA_EVENT_FLAG) != 0) { in readHistoryDelta()
[all …]
DBatteryStatsHistory.java2048 int firstToken = deltaTimeToken | (cur.states & BatteryStatsHistory.DELTA_STATE_MASK); in writeHistoryDelta() local
2064 firstToken |= BatteryStatsHistory.DELTA_BATTERY_LEVEL_FLAG; in writeHistoryDelta()
2069 firstToken |= BatteryStatsHistory.DELTA_STATE_FLAG; in writeHistoryDelta()
2087 firstToken |= BatteryStatsHistory.DELTA_STATE2_FLAG; in writeHistoryDelta()
2090 firstToken |= BatteryStatsHistory.DELTA_WAKELOCK_FLAG; in writeHistoryDelta()
2093 firstToken |= BatteryStatsHistory.DELTA_EVENT_FLAG; in writeHistoryDelta()
2098 firstToken |= BatteryStatsHistory.DELTA_BATTERY_CHARGE_FLAG; in writeHistoryDelta()
2100 dest.writeInt(firstToken); in writeHistoryDelta()
2102 Slog.i(TAG, "WRITE DELTA: firstToken=0x" + Integer.toHexString(firstToken) in writeHistoryDelta()
/frameworks/native/services/inputflinger/dispatcher/
DAnrTracker.h42 const sp<IBinder>& firstToken() const;
DAnrTracker.cpp65 const sp<IBinder>& AnrTracker::firstToken() const { in firstToken() function in android::inputdispatcher::AnrTracker
DInputDispatcher.cpp1068 std::shared_ptr<Connection> connection = getConnectionLocked(mAnrTracker.firstToken()); in processAnrsLocked()
/frameworks/base/core/java/android/util/
DJsonReader.java337 JsonToken firstToken = nextValue(); in peek() local
342 return firstToken; in peek()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java1140 IBinder firstToken = mock(IBinder.class); in vibrate_withOngoingLowerImportanceExternalVibration_cancelsOngoingVibration() local
1144 controller, firstToken); in vibrate_withOngoingLowerImportanceExternalVibration_cancelsOngoingVibration()
1886 IBinder firstToken = mock(IBinder.class); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration() local
1892 firstController, firstToken); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration()
1917 verify(firstToken).linkToDeath(any(), eq(0)); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration()
1918 verify(firstToken).unlinkToDeath(any(), eq(0)); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java1595 final long firstToken = Binder.clearCallingIdentity(); in createVirtualDisplayInternal() local
1616 Binder.restoreCallingIdentity(firstToken); in createVirtualDisplayInternal()