Home
last modified time | relevance | path

Searched refs:deviceState (Results 1 – 12 of 12) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactory.java55 @NonNull Context context, @NonNull DeviceState deviceState) { in create() argument
57 Objects.requireNonNull(deviceState); in create()
61 createIgnoreNitzPropertyCheck(deviceState), in create()
63 createBogusElapsedRealtimeCheck(context, deviceState), in create()
67 createRateLimitCheck(deviceState), in create()
99 @NonNull DeviceState deviceState) { in createIgnoreNitzPropertyCheck()
101 boolean ignoreNitz = deviceState.getIgnoreNitz(); in createIgnoreNitzPropertyCheck()
121 @NonNull Context context, @NonNull DeviceState deviceState) { in createBogusElapsedRealtimeCheck() argument
135 long elapsedRealtime = deviceState.elapsedRealtime(); in createBogusElapsedRealtimeCheck()
176 public static TrivalentPredicate createRateLimitCheck(@NonNull DeviceState deviceState) {
[all …]
DNitzStateMachineImpl.java135 DeviceState deviceState = new DeviceStateImpl(phone); in createInstance() local
138 new TimeZoneSuggesterImpl(deviceState, timeZoneLookupHelper); in createInstance()
141 NitzSignalInputFilterPredicateFactory.create(phone.getContext(), deviceState); in createInstance()
DTimeZoneSuggesterImpl.java50 @NonNull DeviceState deviceState, @NonNull TimeZoneLookupHelper timeZoneLookupHelper) { in TimeZoneSuggesterImpl()
51 mDeviceState = Objects.requireNonNull(deviceState); in TimeZoneSuggesterImpl()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java95 CachedDeviceState.Readonly deviceState = in correctlyReportsScreenInteractive() local
99 assertThat(deviceState.isScreenInteractive()).isFalse(); in correctlyReportsScreenInteractive()
103 assertThat(deviceState.isScreenInteractive()).isTrue(); in correctlyReportsScreenInteractive()
106 assertThat(deviceState.isScreenInteractive()).isFalse(); in correctlyReportsScreenInteractive()
109 assertThat(deviceState.isScreenInteractive()).isTrue(); in correctlyReportsScreenInteractive()
118 CachedDeviceState.Readonly deviceState = in correctlyReportsCharging() local
122 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging()
126 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging()
131 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging()
136 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DBinderCallsStatsPerfTest.java67 CachedDeviceState deviceState = new CachedDeviceState(false, false); in setUp() local
68 mBinderCallsStats.setDeviceState(deviceState.getReadonlyClient()); in setUp()
/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java65 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState() argument
70 mDeviceState = deviceState; in setDeviceState()
71 mBatteryStopwatch = deviceState.createTimeOnBatteryStopwatch(); in setDeviceState()
DBinderCallsStats.java107 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState() argument
111 mDeviceState = deviceState; in setDeviceState()
112 mBatteryStopwatch = deviceState.createTimeOnBatteryStopwatch(); in setDeviceState()
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java267 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase() local
269 mBinderCallsStats.setDeviceState(deviceState); in onBootPhase()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java286 public CaptureCollector(int maxInFlight, CameraDeviceState deviceState) { in CaptureCollector() argument
296 mDeviceState = deviceState; in CaptureCollector()
DRequestThreadManager.java1011 CameraDeviceState deviceState) { in RequestThreadManager() argument
1017 mDeviceState = checkNotNull(deviceState, "deviceState must not be null"); in RequestThreadManager()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java531 TestableLooperStats(int samplingInterval, int sizeCap, CachedDeviceState deviceState) { in TestableLooperStats() argument
536 if (deviceState != null) { in TestableLooperStats()
537 setDeviceState(deviceState.getReadonlyClient()); in TestableLooperStats()
DBinderCallsStatsTest.java765 TestBinderCallsStats(CachedDeviceState deviceState) { in TestBinderCallsStats() argument
782 if (deviceState != null) { in TestBinderCallsStats()
783 setDeviceState(deviceState.getReadonlyClient()); in TestBinderCallsStats()