Home
last modified time | relevance | path

Searched refs:StringUtil (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/UnifiedEmail/tests/src/com/google/android/mail/common/base/
DStringUtilTest.java27 final String unescaped1 = StringUtil.unescapeHTML("😽"); in testUnescapeHtml()
31 final String unescaped2 = StringUtil.unescapeHTML("😽"); in testUnescapeHtml()
35 final String unescaped3 = StringUtil.unescapeHTML("&#D83D;"); in testUnescapeHtml()
39 final String unescaped4 = StringUtil.unescapeHTML("&#D83D;&#DE3D;"); in testUnescapeHtml()
43 final String unescaped5 = StringUtil.unescapeHTML("α"); in testUnescapeHtml()
47 final String unescaped6 = StringUtil.unescapeHTML("Α"); in testUnescapeHtml()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DPowerUsageSummary.java50 import com.android.settingslib.utils.StringUtil;
299 mScreenUsagePref.setSubtitle(StringUtil.formatElapsedTime(getContext(), in refreshUi()
319 StringUtil.formatElapsedTime(getContext(), mBatteryInfo.averageTimeToDischarge, in updateLastFullChargePreference()
326 StringUtil.formatRelativeTime(getContext(), lastFullChargeTime, in updateLastFullChargePreference()
DAdvancedPowerUsageDetail.java53 import com.android.settingslib.utils.StringUtil;
253 StringUtil.formatElapsedTime(context, foregroundTimeMs, false))); in initPreference()
256 StringUtil.formatElapsedTime(context, backgroundTimeMs, false))); in initPreference()
DRestrictedAppDetails.java49 import com.android.settingslib.utils.StringUtil;
177 StringUtil.formatRelativeTime(context, now - timestamp, false))); in refreshUi()
DBatteryInfo.java38 import com.android.settingslib.utils.StringUtil;
254 CharSequence timeString = StringUtil.formatElapsedTime(context, in updateBatteryInfoCharging()
DBatteryAppListPreferenceController.java55 import com.android.settingslib.utils.StringUtil;
344 StringUtil.formatElapsedTime(mContext, usageTimeMs, false); in setUsageSummary()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java57 import com.android.settingslib.utils.StringUtil;
329 mScreenUsagePref.setSubtitle(StringUtil.formatElapsedTime(getContext(), in refreshUi()
349 StringUtil.formatElapsedTime(getContext(), mBatteryInfo.averageTimeToDischarge, in updateLastFullChargePreference()
356 StringUtil.formatRelativeTime(getContext(), lastFullChargeTime, in updateLastFullChargePreference()
DAdvancedPowerUsageDetail.java53 import com.android.settingslib.utils.StringUtil;
253 StringUtil.formatElapsedTime(context, foregroundTimeMs, false))); in initPreference()
256 StringUtil.formatElapsedTime(context, backgroundTimeMs, false))); in initPreference()
DRestrictedAppDetails.java49 import com.android.settingslib.utils.StringUtil;
177 StringUtil.formatRelativeTime(context, now - timestamp, false))); in refreshUi()
DBatteryInfo.java40 import com.android.settingslib.utils.StringUtil;
257 CharSequence timeString = StringUtil.formatElapsedTime(context, in updateBatteryInfoCharging()
DBatteryAppListPreferenceController.java55 import com.android.settingslib.utils.StringUtil;
344 StringUtil.formatElapsedTime(mContext, usageTimeMs, false); in setUsageSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DHighUsageAdapter.java33 import com.android.settingslib.utils.StringUtil;
83 … holder.appTime.setText(StringUtil.formatElapsedTime(mContext, app.screenOnTimeMs, false)); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/location/
DRecentLocationAccessPreferenceController.java34 import com.android.settingslib.utils.StringUtil;
104 .setSummary(StringUtil.formatRelativeTime(mContext, in updateRecentApps()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppsPreferenceController.java41 import com.android.settingslib.utils.StringUtil;
161 .setSummary(StringUtil.formatRelativeTime(mContext, in createAppEntity()
DAppStateNotificationBridge.java37 import com.android.settingslib.utils.StringUtil;
108 return StringUtil.formatRelativeTime( in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRecentAppsPreferenceController.java41 import com.android.settingslib.utils.StringUtil;
161 .setSummary(StringUtil.formatRelativeTime(mContext, in createAppEntity()
DAppStateNotificationBridge.java37 import com.android.settingslib.utils.StringUtil;
108 return StringUtil.formatRelativeTime( in getSummary()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java40 import com.android.settingslib.utils.StringUtil;
173 pref.setSummary(StringUtil.formatRelativeTime(mContext, in displayRecentApps()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java42 import com.android.settingslib.utils.StringUtil;
213 updateTime = StringUtil.formatElapsedTime(getContext(), in getCarrierInfoText()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java46 import com.android.settingslib.utils.StringUtil;
263 pref.setSummary(StringUtil.formatRelativeTime(mContext, in displayRecentApps()
DNotificationBackend.java47 import com.android.settingslib.utils.StringUtil;
423 return StringUtil.formatRelativeTime( in getSentSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreference.java46 import com.android.settingslib.utils.StringUtil;
320 updateTime = StringUtil.formatElapsedTime(
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java46 import com.android.settingslib.utils.StringUtil;
320 updateTime = StringUtil.formatElapsedTime(
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java45 import com.android.settingslib.utils.StringUtil;
406 return StringUtil.formatRelativeTime( in getSentSummary()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DHighUsageAdapter.java33 import com.android.settingslib.utils.StringUtil;

12