Home
last modified time | relevance | path

Searched refs:ClockInfo (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockInfoTest.java53 ClockInfo info = ClockInfo.builder().setName(name).build(); in testGetName()
60 ClockInfo info = ClockInfo.builder().setTitle(() -> title).build(); in testGetTitle()
67 ClockInfo info = ClockInfo.builder().setId(id).build(); in testGetId()
73 ClockInfo info = ClockInfo.builder().setThumbnail(mMockSupplier).build(); in testGetThumbnail()
80 ClockInfo info = ClockInfo.builder().setPreview(mMockSupplier).build(); in testGetPreview()
DClockOptionsProviderTest.java60 private Supplier<List<ClockInfo>> mMockSupplier;
61 private List<ClockInfo> mClocks;
118 mClocks.add(ClockInfo.builder() in testQuery_listOptions()
123 mClocks.add(ClockInfo.builder() in testQuery_listOptions()
160 mClocks.add(ClockInfo.builder() in testOpenFile_preview()
176 mClocks.add(ClockInfo.builder() in testOpenFile_thumbnail()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockOptionsProvider.java68 private final Supplier<List<ClockInfo>> mClocksSupplier;
75 ClockOptionsProvider(Supplier<List<ClockInfo>> clocksSupplier) { in ClockOptionsProvider()
102 List<ClockInfo> clocks = mClocksSupplier.get(); in query()
104 ClockInfo clock = clocks.get(i); in query()
141 ClockInfo clock = null; in openFile()
142 List<ClockInfo> clocks = mClocksSupplier.get(); in openFile()
156 private Uri createThumbnailUri(ClockInfo clock) { in createThumbnailUri()
165 private Uri createPreviewUri(ClockInfo clock) { in createPreviewUri()
DClockInfo.java25 final class ClockInfo { class
33 private ClockInfo(String name, Supplier<String> title, String id, in ClockInfo() method in ClockInfo
88 public ClockInfo build() { in build()
89 return new ClockInfo(mName, mTitle, mId, mThumbnail, mPreview); in build()
DClockManager.java190 List<ClockInfo> getClockInfos() { in getClockInfos()
281 private final List<ClockInfo> mClockInfo = new ArrayList<>();
312 List<ClockInfo> getInfo() { in getInfo()
324 mClockInfo.add(ClockInfo.builder() in addClockPlugin()