Home
last modified time | relevance | path

Searched refs:TimeZoneProviderResult (Results 1 – 6 of 6) sorted by relevance

/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DTimeZoneProviderResult.java31 public final class TimeZoneProviderResult { class
54 private static final TimeZoneProviderResult UNCERTAIN_RESULT =
55 new TimeZoneProviderResult(RESULT_TYPE_UNCERTAIN, null, null);
66 private TimeZoneProviderResult(@ResultType int type, in TimeZoneProviderResult() method in TimeZoneProviderResult
75 public static TimeZoneProviderResult createSuggestion( in createSuggestion()
77 return new TimeZoneProviderResult(RESULT_TYPE_SUGGESTION, in createSuggestion()
82 public static TimeZoneProviderResult createUncertain() { in createUncertain()
87 public static TimeZoneProviderResult createPermanentFailure(@NonNull Throwable cause) { in createPermanentFailure()
88 return new TimeZoneProviderResult(RESULT_TYPE_PERMANENT_FAILURE, null, in createPermanentFailure()
131 TimeZoneProviderResult that = (TimeZoneProviderResult) o; in equals()
DOfflineLocationTimeZoneDelegate.java148 private final ReferenceWithHistory<TimeZoneProviderResult> mLastTimeZoneProviderResult =
459 TimeZoneProviderResult result = TimeZoneProviderResult.createUncertain(); in onInitializationTimeout()
499 TimeZoneProviderResult result = in sendTimeZoneCertainResultIfNeeded()
500 TimeZoneProviderResult.createSuggestion(suggestion); in sendTimeZoneCertainResultIfNeeded()
508 TimeZoneProviderResult lastResult = mLastTimeZoneProviderResult.get(); in sendTimeZoneUncertainResultIfNeeded()
519 lastResult.getType() != TimeZoneProviderResult.RESULT_TYPE_UNCERTAIN) { in sendTimeZoneUncertainResultIfNeeded()
520 TimeZoneProviderResult result = TimeZoneProviderResult.createUncertain(); in sendTimeZoneUncertainResultIfNeeded()
530 TimeZoneProviderResult result = TimeZoneProviderResult.createPermanentFailure(cause); in sendPermanentFailureResult()
536 @NonNull TimeZoneProviderResult result, in reportTimeZoneProviderResultInternal()
DEnvironment.java234 void reportTimeZoneProviderResult(@NonNull TimeZoneProviderResult result); in reportTimeZoneProviderResult()
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DOfflineLocationTimeZoneProviderService.java26 import com.android.timezone.location.provider.core.TimeZoneProviderResult;
67 @NonNull TimeZoneProviderResult timeZoneProviderResult) { in reportTimeZoneProviderEvent()
69 case TimeZoneProviderResult.RESULT_TYPE_SUGGESTION: { in reportTimeZoneProviderEvent()
73 case TimeZoneProviderResult.RESULT_TYPE_UNCERTAIN: { in reportTimeZoneProviderEvent()
77 case TimeZoneProviderResult.RESULT_TYPE_PERMANENT_FAILURE: { in reportTimeZoneProviderEvent()
DEnvironmentImpl.java47 import com.android.timezone.location.provider.core.TimeZoneProviderResult;
142 @NonNull private final Consumer<TimeZoneProviderResult> mResultConsumer;
152 @NonNull Consumer<TimeZoneProviderResult> resultConsumer) { in EnvironmentImpl()
448 public void reportTimeZoneProviderResult(@NonNull TimeZoneProviderResult result) {
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegateTest.java20 import static com.android.timezone.location.provider.core.TimeZoneProviderResult.RESULT_TYPE_SUGGES…
192 private TimeZoneProviderResult mLastResultReported;
242 public void reportTimeZoneProviderResult(@NonNull TimeZoneProviderResult result) {