Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java261 rv.setTextViewTextSize(R.id.clock, COMPLEX_UNIT_PX, sizes.mClockFontSizePx); in relayoutWidget()
404 final TextClock clock = (TextClock) sizer.findViewById(R.id.clock); in measure() local
410 clock.setText(getLongestTimeString(clock)); in measure()
411 clock.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mClockFontSizePx); in measure()
428 measuredSizes.mMeasuredTextClockWidthPx = clock.getMeasuredWidth(); in measure()
429 measuredSizes.mMeasuredTextClockHeightPx = clock.getMeasuredHeight(); in measure()
442 private static CharSequence getLongestTimeString(TextClock clock) { in getLongestTimeString() argument
443 final CharSequence format = clock.is24HourModeEnabled() in getLongestTimeString()
444 ? clock.getFormat24Hour() in getLongestTimeString()
445 : clock.getFormat12Hour(); in getLongestTimeString()
DDigitalAppWidgetProvider.kt374 rv.setTextViewTextSize(R.id.clock, COMPLEX_UNIT_PX, sizes.mClockFontSizePx.toFloat()) in <lambda>()
473 val clock: TextClock = sizer.findViewById(R.id.clock) as TextClock in <lambda>() constant
479 clock.setText(getLongestTimeString(clock)) in <lambda>()
480 clock.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mClockFontSizePx.toFloat()) in <lambda>()
498 measuredSizes.mMeasuredTextClockWidthPx = clock.getMeasuredWidth() in <lambda>()
499 measuredSizes.mMeasuredTextClockHeightPx = clock.getMeasuredHeight() in <lambda>()
512 private fun getLongestTimeString(clock: TextClock): CharSequence { in <lambda>()
513 val format: CharSequence = if (clock.is24HourModeEnabled()) { in <lambda>()
514 clock.getFormat24Hour() in <lambda>()
516 clock.getFormat12Hour() in <lambda>()
DDigitalAppWidgetCityViewsFactory.kt188 private fun hide(clock: RemoteViews, clockId: Int, labelId: Int, dayId: Int) { in hide()
189 clock.setViewVisibility(dayId, View.INVISIBLE) in hide()
190 clock.setViewVisibility(clockId, View.INVISIBLE) in hide()
191 clock.setViewVisibility(labelId, View.INVISIBLE) in hide()
DDigitalAppWidgetCityViewsFactory.java208 private void hide(RemoteViews clock, int clockId, int labelId, int dayId) {
209 clock.setViewVisibility(dayId, View.INVISIBLE);
210 clock.setViewVisibility(clockId, View.INVISIBLE);
211 clock.setViewVisibility(labelId, View.INVISIBLE);
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java337 public static void refreshAlarm(Context context, View clock) { in refreshAlarm() argument
338 final TextView nextAlarmIconView = (TextView) clock.findViewById(R.id.nextAlarmIcon); in refreshAlarm()
339 final TextView nextAlarmView = (TextView) clock.findViewById(R.id.nextAlarm); in refreshAlarm()
358 public static void setClockIconTypeface(View clock) { in setClockIconTypeface() argument
359 final TextView nextAlarmIconView = (TextView) clock.findViewById(R.id.nextAlarmIcon); in setClockIconTypeface()
366 public static void updateDate(String dateSkeleton, String descriptionSkeleton, View clock) { in updateDate() argument
367 final TextView dateDisplay = (TextView) clock.findViewById(R.id.date); in updateDate()
389 public static void setTimeFormat(TextClock clock, boolean includeSeconds) { in setTimeFormat() argument
390 if (clock != null) { in setTimeFormat()
392 clock.setFormat12Hour(get12ModeFormat(0.4f /* amPmRatio */, includeSeconds)); in setTimeFormat()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/
DClockFacePickerActivity.java23 import com.android.customization.model.clock.BaseClockManager;
24 import com.android.customization.model.clock.Clockface;
25 import com.android.customization.model.clock.ContentProviderClockProvider;
26 import com.android.customization.picker.clock.ClockFragment;
27 import com.android.customization.picker.clock.ClockFragment.ClockFragmentHost;
DCustomizationPickerActivity.java39 import com.android.customization.model.clock.ClockManager;
40 import com.android.customization.model.clock.Clockface;
41 import com.android.customization.model.clock.ContentProviderClockProvider;
52 import com.android.customization.picker.clock.ClockFragment;
53 import com.android.customization.picker.clock.ClockFragment.ClockFragmentHost;
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java49 Context context, Uri channelUri, ProgramInfo program, Clock clock) { in populatePrograms() argument
50 populatePrograms(context, channelUri, program, clock, PROGRAM_INSERT_DURATION_MS); in populatePrograms()
57 Clock clock, in populatePrograms() argument
59 long currentTimeMs = clock.currentTimeMillis(); in populatePrograms()
137 Context context, String inputId, Clock clock, long durationMs) { in updateProgramForAllChannelsOf() argument
144 context, TvContract.buildChannelUri(channelId), programInfo, clock, durationMs); in updateProgramForAllChannelsOf()
/packages/apps/ThemePicker/src/com/android/customization/module/
DStatsLogUserEventLogger.java26 import com.android.customization.model.clock.Clockface;
108 public void logClockSelected(Clockface clock) { in logClockSelected() argument
111 Objects.hashCode(clock.getId()), in logClockSelected()
116 public void logClockApplied(Clockface clock) { in logClockApplied() argument
119 Objects.hashCode(clock.getId()), in logClockApplied()
DThemesUserEventLogger.java18 import com.android.customization.model.clock.Clockface;
32 void logClockSelected(Clockface clock); in logClockSelected() argument
34 void logClockApplied(Clockface clock); in logClockApplied() argument
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DAlarmItemViewHolder.java52 public final TextTime clock; field in AlarmItemViewHolder
60 clock = (TextTime) itemView.findViewById(R.id.digital_clock); in AlarmItemViewHolder()
89 itemView.setContentDescription(clock.getText() + " " + alarm.getLabelOrDefault(context)); in onBindItemView()
99 clock.setTime(alarm.hour, alarm.minutes); in bindClock()
100 clock.setAlpha(alarm.enabled ? CLOCK_ENABLED_ALPHA : CLOCK_DISABLED_ALPHA); in bindClock()
DAlarmItemViewHolder.kt39 val clock: TextTime = itemView.findViewById(R.id.digital_clock) in <lambda>() constant
62 itemView.setContentDescription(clock.text.toString() + " " + in <lambda>()
73 clock.setTime(alarm.hour, alarm.minutes) in <lambda>()
74 clock.alpha = if (alarm.enabled) CLOCK_ENABLED_ALPHA else CLOCK_DISABLED_ALPHA in <lambda>()
DCollapsedAlarmViewHolder.kt65 clock.setOnClickListener { _ -> in <lambda>()
157 clock.visibility = View.VISIBLE in <lambda>()
169 clock.visibility = View.INVISIBLE in <lambda>()
219 clock.visibility = View.VISIBLE in <lambda>()
DCollapsedAlarmViewHolder.java86 clock.setOnClickListener(new View.OnClickListener() { in CollapsedAlarmViewHolder()
172 clock.setVisibility(View.VISIBLE); in onAnimateChange()
184 clock.setVisibility(View.INVISIBLE); in createExpandingAnimator()
234 clock.setVisibility(View.VISIBLE); in createCollapsingAnimator()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DBaseTask.java61 private static Clock clock = new Clock(); field in BaseTask
126 return clock.getTimeMillis(); in getTimeMillis()
223 static void setClockForTesting(Clock clock) { in setClockForTesting() argument
224 BaseTask.clock = clock; in setClockForTesting()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogAdapter.java65 private final Clock clock; field in NewCallLogAdapter
88 Clock clock, in NewCallLogAdapter() argument
92 this.clock = clock; in NewCallLogAdapter()
134 long currentTimeMillis = clock.currentTimeMillis(); in setCardAndHeaderPositions()
201 clock, in onCreateViewHolder()
DNewCallLogViewHolder.java69 private final Clock clock; field in NewCallLogViewHolder
79 Clock clock, in NewCallLogViewHolder() argument
96 this.clock = clock; in NewCallLogViewHolder()
123 secondaryTextView.setText(CallLogEntryText.buildSecondaryTextForEntries(activity, clock, row)); in displayRow()
149 CallLogEntryDescriptions.buildDescriptionForEntry(activity, clock, row)); in configA11yForRow()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/clock/
DClockManagerTest.java16 package com.android.customization.model.clock;
57 Clockface clock = new Clockface.Builder().setId(CLOCK_ID).build(); in testApply() local
59 mManager.apply(clock, new Callback() { in testApply()
74 verify(mLogger).logClockApplied(clock); in testApply()
DBaseClockManagerTest.java16 package com.android.customization.model.clock;
63 Clockface clock = new Clockface.Builder().setId(id).build(); in testApply() local
65 mManager.apply(clock, new Callback() { in testApply()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java97 Context context, Clock clock, CoalescedRow row) { in buildSecondaryTextForEntries() argument
99 buildSecondaryTextListForEntries(context, clock, row, /* abbreviateDateTime = */ true)); in buildSecondaryTextForEntries()
138 Context context, Clock clock, CoalescedRow row, boolean abbreviateDateTime) { in buildSecondaryTextListForEntries() argument
143 context, clock.currentTimeMillis(), row.getTimestamp(), abbreviateDateTime)); in buildSecondaryTextListForEntries()
159 context, clock.currentTimeMillis(), row.getTimestamp(), abbreviateDateTime)); in buildSecondaryTextListForEntries()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DVoicemailEntryText.java67 Context context, Clock clock, VoicemailEntry voicemailEntry) { in buildSecondaryVoicemailText() argument
68 return secondaryTextPrefix(context, clock, voicemailEntry); in buildSecondaryVoicemailText()
72 Context context, Clock clock, VoicemailEntry voicemailEntry) { in secondaryTextPrefix() argument
84 clock.currentTimeMillis(), in secondaryTextPrefix()
DNewVoicemailViewHolder.java63 private final Clock clock; field in NewVoicemailViewHolder
71 View view, Clock clock, NewVoicemailViewHolderListener newVoicemailViewHolderListener) { in NewVoicemailViewHolder() argument
82 this.clock = clock; in NewVoicemailViewHolder()
131 VoicemailEntryText.buildSecondaryVoicemailText(context, clock, voicemailEntryOfViewHolder)); in bindViewHolderValuesFromAdapter()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java136 StorageManagementJobProvider provider, Context context, Clock clock) { in maybeDisableDueToPolicy() argument
148 final long currentTime = clock.currentTimeMillis(); in maybeDisableDueToPolicy()
173 void setClock(Clock clock) { in setClock() argument
174 mClock = clock; in setClock()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DInputTaskScheduler.java125 Clock clock) { in InputTaskScheduler() argument
134 clock, in InputTaskScheduler()
147 Clock clock, in InputTaskScheduler() argument
157 mClock = clock; in InputTaskScheduler()
170 Clock clock) { in InputTaskScheduler()
428 Clock clock); in createRecordingTask() argument
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java158 public final void loadData(FakeClock clock, FakeEpgReader epgReader) { in loadData() argument
159 clock.setBootTimeMillis(getStartTimeMs() + TimeUnit.HOURS.toMillis(-12)); in loadData()
160 clock.setCurrentTimeMillis(getStartTimeMs()); in loadData()

123