Home
last modified time | relevance | path

Searched refs:stateType (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorState.java29 SensorState(int stateType) { in SensorState() argument
30 mStateType = stateType; in SensorState()
34 SensorState(int stateType, long lastChange) { in SensorState() argument
35 mStateType = stateType; in SensorState()
44 boolean setState(int stateType) { in setState() argument
45 if (mStateType != stateType) { in setState()
46 mStateType = stateType; in setState()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTracker.java85 void onStateChange(int uid, String packageName, boolean start, long now, int stateType); in onStateChange() argument
107 static int stateTypeToIndex(int stateType) { in stateTypeToIndex() argument
108 return Integer.numberOfTrailingZeros(stateType); in stateTypeToIndex()
118 for (int stateType = Integer.highestOneBit(stateTypes); stateType != 0; in stateTypesToString()
119 stateType = Integer.highestOneBit(stateTypes)) { in stateTypesToString()
124 switch (stateType) { in stateTypesToString()
143 stateTypes &= ~stateType; in stateTypesToString()
156 boolean start, long now, int stateType) { in notifyListenersOnStateChange() argument
159 mStateListeners.get(i).onStateChange(uid, packageName, start, now, stateType); in notifyListenersOnStateChange()
DAppBatteryExemptionTracker.java112 public void onStateChange(int uid, String packageName, boolean start, long now, int stateType) { in onStateChange() argument
118 final int stateTypeIndex = stateTypeToIndex(stateType); in onStateChange()
140 if ((s & stateType) != 0) { in onStateChange()
145 pkgsStates.setValueAt(indexOfPkg, states | stateType); in onStateChange()
151 states &= ~stateType; in onStateChange()
156 if ((s & stateType) != 0) { in onStateChange()
DAppFGSTracker.java728 int stateType; in notifyListenersOnStateChangeIfNecessary() local
731 stateType = BaseAppStateDurationsTracker.STATE_TYPE_FGS_MEDIA_PLAYBACK; in notifyListenersOnStateChangeIfNecessary()
734 stateType = BaseAppStateDurationsTracker.STATE_TYPE_FGS_LOCATION; in notifyListenersOnStateChangeIfNecessary()
739 mTracker.notifyListenersOnStateChange(mUid, mPackageName, start, now, stateType); in notifyListenersOnStateChangeIfNecessary()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java157 private int state2Event(@StateType int stateType) { in state2Event() argument
159 return stateType; in state2Event()
162 private void updateState(@StateType int stateType, @StateStatus int stateValue) { in updateState() argument
163 final int event = state2Event(stateType); in updateState()
DSimulatedCommandsVerifier.java1354 public void sendDeviceState(int stateType, boolean state, Message result) { in sendDeviceState() argument
DSimulatedCommands.java2312 public void sendDeviceState(int stateType, boolean state, Message result) { in sendDeviceState() argument
2313 SimulatedCommandsVerifier.getInstance().sendDeviceState(stateType, state, result); in sendDeviceState()
DRILTest.java1368 int stateType = 1; in testSendDeviceState() local
1370 mRILUnderTest.sendDeviceState(stateType, state, obtainMessage()); in testSendDeviceState()
1372 mSerialNumberCaptor.capture(), eq(stateType), eq(state)); in testSendDeviceState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCommandInterface.java606 public void sendDeviceState(int stateType, boolean state, Message result) { in sendDeviceState() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandsInterface.java2311 void sendDeviceState(int stateType, boolean state, Message result); in sendDeviceState() argument
DRIL.java4403 public void sendDeviceState(int stateType, boolean state, Message result) { in sendDeviceState() argument
4413 + stateType + ":" + state); in sendDeviceState()
4417 modemProxy.sendDeviceState(rr.mSerial, stateType, state); in sendDeviceState()