Home
last modified time | relevance | path

Searched refs:Clock (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/core/java/android/os/
DBestClock.java21 import java.time.Clock;
38 private final Clock[] clocks;
40 public BestClock(ZoneId zone, Clock... clocks) { in BestClock()
47 for (Clock clock : clocks) { in millis()
DSystemClock.java26 import java.time.Clock;
179 public static @NonNull Clock uptimeMillisClock() { in uptimeMillisClock()
189 public static @NonNull Clock uptimeClock() { in uptimeClock()
212 public static @NonNull Clock elapsedRealtimeClock() {
308 public static @NonNull Clock currentNetworkTimeClock() {
DSimpleClock.java19 import java.time.Clock;
24 public abstract class SimpleClock extends Clock {
37 public Clock withZone(ZoneId zone) { in withZone()
/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java215 public static final class Clock implements Parcelable { class in RadioMetadata
228 public static final Parcelable.Creator<Clock> CREATOR
229 = new Parcelable.Creator<Clock>() {
230 public Clock createFromParcel(Parcel in) {
231 return new Clock(in);
234 public Clock[] newArray(int size) {
235 return new Clock[size];
239 public Clock(long utcEpochSeconds, int timezoneOffsetMinutes) { in Clock() method in RadioMetadata.Clock
244 private Clock(Parcel in) { in Clock() method in RadioMetadata.Clock
378 public Clock getClock(String key) { in getClock()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DJobStatusTest.java32 import java.time.Clock;
43 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
45 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
47 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DConnectivityControllerTest.java61 import java.time.Clock;
88 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
90 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
92 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java24 import com.android.systemui.statusbar.policy.Clock;
50 Clock.CLOCK_SECONDS); in onAttached()
65 } else if (Clock.CLOCK_SECONDS.equals(key)) { in onTuningChanged()
86 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPData.java20 import com.android.server.wifi.Clock;
38 private final Clock mClock;
42 public ANQPData(Clock clock, Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in ANQPData()
DPasspointObjectFactory.java23 import com.android.server.wifi.Clock;
82 public AnqpCache makeAnqpCache(Clock clock) { in makeAnqpCache()
93 public ANQPRequestManager makeANQPRequestManager(PasspointEventHandler handler, Clock clock) { in makeANQPRequestManager()
DAnqpCache.java20 import com.android.server.wifi.Clock;
39 private Clock mClock;
43 public AnqpCache(Clock clock) { in AnqpCache()
DANQPRequestManager.java22 import com.android.server.wifi.Clock;
40 private final Clock mClock;
98 public ANQPRequestManager(PasspointEventHandler handler, Clock clock) { in ANQPRequestManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java25 import com.android.server.wifi.Clock;
43 WifiScannerImpl create(Context context, Looper looper, Clock clock); in create()
51 public WifiScannerImpl create(Context context, Looper looper, Clock clock) {
DHalWifiScannerImpl.java26 import com.android.server.wifi.Clock;
48 WifiMonitor wifiMonitor, Looper looper, Clock clock) { in HalWifiScannerImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConnectedScore.java35 final Clock mClock;
44 public ConnectedScore(Clock clock) { in ConnectedScore()
DSelfRecovery.java51 private final Clock mClock;
54 public SelfRecovery(WifiController wifiController, Clock clock) { in SelfRecovery()
DClock.java23 public class Clock { class
DAggressiveConnectedScore.java31 public AggressiveConnectedScore(ScoringParams scoringParams, Clock clock) { in AggressiveConnectedScore()
/frameworks/base/core/tests/coretests/src/android/util/
DRecurrenceRuleTest.java23 import java.time.Clock;
33 static Clock sOriginalClock;
48 RecurrenceRule.sClock = Clock.fixed(instant, ZoneId.systemDefault()); in setClock()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPDataTest.java26 import com.android.server.wifi.Clock;
44 @Mock Clock mClock;
DAnqpCacheTest.java27 import com.android.server.wifi.Clock;
45 @Mock Clock mClock;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/car/
DCarQsFragmentTest.java32 import com.android.systemui.statusbar.policy.Clock;
59 .replace(Clock.class, View.class) in initDependencies()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTracker.java33 import java.time.Clock;
65 private final Clock mElapsedRealtimeClock;
98 Clock elapsedRealtimeClock = SystemClock.elapsedRealtimeClock(); in create()
110 PackageTracker(Clock elapsedRealtimeClock, ConfigHelper configHelper, in PackageTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java64 public class Clock extends TextView implements DemoMode, Tunable, CommandQueue.Callbacks, class
102 public Clock(Context context) { in Clock() method in Clock
106 public Clock(Context context, AttributeSet attrs) { in Clock() method in Clock
110 public Clock(Context context, AttributeSet attrs, int defStyle) { in Clock() method in Clock
114 R.styleable.Clock, in Clock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSFragmentTest.java37 import com.android.systemui.statusbar.policy.Clock;
73 .replace(Clock.class, View.class) in addLeakCheckDependencies()
/frameworks/base/core/java/android/util/
DRecurrenceRule.java28 import java.time.Clock;
50 public static Clock sClock = Clock.systemDefaultZone();

1234