Home
last modified time | relevance | path

Searched refs:TimeZoneInfo (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java80 protected Intent prepareResultData(TimeZoneInfo selectedTimeZoneInfo) { in prepareResultData()
87 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos()
116 public List<TimeZoneInfo> getRegionTimeZoneInfo(Collection<String> timeZoneIds) { in getRegionTimeZoneInfo()
117 final TimeZoneInfo.Formatter formatter = new TimeZoneInfo.Formatter(getLocale(), in getRegionTimeZoneInfo()
119 final TreeSet<TimeZoneInfo> timeZoneInfos = in getRegionTimeZoneInfo()
135 static class TimeZoneInfoComparator implements Comparator<TimeZoneInfo> {
146 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare()
DBaseTimeZoneInfoPicker.java64 final TimeZoneInfo timeZoneInfo = item.mTimeZoneInfo; in onListItemClick()
69 protected Intent prepareResultData(TimeZoneInfo selectedTimeZoneInfo) { in prepareResultData()
73 public abstract List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData); in getAllTimeZoneInfos()
77 public ZoneAdapter(Context context, List<TimeZoneInfo> timeZones, in ZoneAdapter()
86 List<TimeZoneInfo> timeZones, Locale locale) { in createTimeZoneInfoItems()
92 for (TimeZoneInfo timeZone : timeZones) { in createTimeZoneInfoItems()
101 private final TimeZoneInfo mTimeZoneInfo;
107 private TimeZoneInfoItem(long itemId, TimeZoneInfo timeZoneInfo, Resources resources, in TimeZoneInfoItem()
117 private static String createTitle(TimeZoneInfo timeZoneInfo) { in createTitle()
DTimeZoneInfo.java31 public class TimeZoneInfo { class
41 public TimeZoneInfo(Builder builder) { in TimeZoneInfo() method in TimeZoneInfo
119 public TimeZoneInfo build() { in build()
123 return new TimeZoneInfo(this); in build()
142 public TimeZoneInfo format(String timeZoneId) { in format()
151 public TimeZoneInfo format(TimeZone timeZone) { in format()
157 return new TimeZoneInfo.Builder(timeZone) in format()
DFixedOffsetPicker.java52 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos()
60 private List<TimeZoneInfo> loadFixedOffsets() { in loadFixedOffsets()
61 final TimeZoneInfo.Formatter formatter = new TimeZoneInfo.Formatter(getLocale(), in loadFixedOffsets()
63 final List<TimeZoneInfo> timeZoneInfos = new ArrayList<>(); in loadFixedOffsets()
DTimeZoneInfoPreferenceController.java40 private TimeZoneInfo mTimeZoneInfo;
60 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo()
64 private CharSequence formatOffsetAndName(TimeZoneInfo item) { in formatOffsetAndName()
82 private CharSequence formatInfo(TimeZoneInfo item) { in formatInfo()
DFixedOffsetPreferenceController.java27 private TimeZoneInfo mTimeZoneInfo;
49 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo()
53 public TimeZoneInfo getTimeZoneInfo() { in getTimeZoneInfo()
DRegionZonePreferenceController.java28 private TimeZoneInfo mTimeZoneInfo;
54 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo()
58 public TimeZoneInfo getTimeZoneInfo() { in getTimeZoneInfo()
DTimeZoneSettings.java80 private TimeZoneInfo.Formatter mTimeZoneInfoFormatter;
104 mTimeZoneInfoFormatter = new TimeZoneInfo.Formatter(mLocale, new Date()); in createPreferenceControllers()
212 final TimeZoneInfo tzInfo = tzId == null ? null : mTimeZoneInfoFormatter.format(tzId); in setDisplayedTimeZoneInfo()
/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/
DRegionZonePickerTest.java26 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
44 TimeZoneInfo timeZone1 = formatter.format("Pacific/Honolulu"); in compareTimeZoneInfo_matchGmtOrder()
45 TimeZoneInfo timeZone2 = formatter.format("America/Los_Angeles"); in compareTimeZoneInfo_matchGmtOrder()
46 TimeZoneInfo timeZone3 = formatter.format("America/Indiana/Marengo"); in compareTimeZoneInfo_matchGmtOrder()
47 TimeZoneInfo timeZone4 = formatter.format("America/New_York"); in compareTimeZoneInfo_matchGmtOrder()
53 List<TimeZoneInfo> list = Arrays.asList(timeZone4, timeZone2, timeZone3, timeZone1); in compareTimeZoneInfo_matchGmtOrder()
DTimeZoneInfoTest.java23 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
39 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in testFormat()
53 TimeZoneInfo timeZoneInfo = formatter.format("Australia/Lord_Howe"); in getGmtOffset_zoneLordHowe_correctGmtOffset()
DTimeZoneInfoPreferenceControllerTest.java29 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
41 private TimeZoneInfo mTimeZoneInfo;
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DBaseTimeZoneInfoPickerTest.java84 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos()
85 TimeZoneInfo zone1 = new TimeZoneInfo.Builder( in getAllTimeZoneInfos()
93 TimeZoneInfo zone2 = new TimeZoneInfo.Builder( in getAllTimeZoneInfos()
DFixedOffsetPreferenceControllerTest.java44 TimeZoneInfo fixedOffsetZone = new TimeZoneInfo.Builder( in updateState_GmtMinus8_matchTimeZoneSummary()
57 TimeZoneInfo fixedOffsetZone = new TimeZoneInfo.Builder( in updateState_Utc_matchTimeZoneSummary()
DRegionZonePreferenceControllerTest.java44 TimeZoneInfo tzInfo = new TimeZoneInfo.Builder( in updateState_matchTimeZoneName()
DFixedOffsetPickerTest.java56 List<TimeZoneInfo> infos = picker.getAllTimeZoneInfos(new TimeZoneData(mFinder)); in getAllTimeZoneInfos_containsUtcAndGmtZones()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java50 import com.android.timezonepicker.TimeZoneInfo;
390 public void onTimeZoneSet(TimeZoneInfo tzi) { in onTimeZoneSet()