Home
last modified time | relevance | path

Searched refs:suggestion (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java246 @NonNull GeolocationTimeZoneSuggestion suggestion) { in suggestGeolocationTimeZone()
252 + " newSuggestion=" + suggestion); in suggestGeolocationTimeZone()
254 Objects.requireNonNull(suggestion); in suggestGeolocationTimeZone()
263 mLatestGeoLocationSuggestion.set(suggestion); in suggestGeolocationTimeZone()
271 String reason = "New geolocation time zone suggested. suggestion=" + suggestion; in suggestGeolocationTimeZone()
277 @UserIdInt int userId, @NonNull ManualTimeZoneSuggestion suggestion) { in suggestManualTimeZone() argument
282 + " suggestion=" + suggestion); in suggestManualTimeZone()
288 Objects.requireNonNull(suggestion); in suggestManualTimeZone()
290 String timeZoneId = suggestion.getZoneId(); in suggestManualTimeZone()
291 String cause = "Manual time suggestion received: suggestion=" + suggestion; in suggestManualTimeZone()
[all …]
DTimeZoneDetectorStrategy.java100 void suggestGeolocationTimeZone(@NonNull GeolocationTimeZoneSuggestion suggestion); in suggestGeolocationTimeZone() argument
106 @UserIdInt int userId, @NonNull ManualTimeZoneSuggestion suggestion); in suggestManualTimeZone() argument
115 void suggestTelephonyTimeZone(@NonNull TelephonyTimeZoneSuggestion suggestion); in suggestTelephonyTimeZone() argument
/frameworks/base/core/java/android/service/settings/suggestions/
DSuggestionService.java51 public void dismissSuggestion(Suggestion suggestion) { in onBind() argument
55 onSuggestionDismissed(suggestion); in onBind()
59 public void launchSuggestion(Suggestion suggestion) { in onBind() argument
63 onSuggestionLaunched(suggestion); in onBind()
77 public abstract void onSuggestionDismissed(Suggestion suggestion);
83 public abstract void onSuggestionLaunched(Suggestion suggestion);
DISuggestionService.aidl19 void dismissSuggestion(in Suggestion suggestion) = 2; field
25 void launchSuggestion(in Suggestion suggestion) = 3; field
/frameworks/base/core/tests/coretests/src/android/app/timedetector/
DNetworkTimeSuggestionTest.java58 NetworkTimeSuggestion suggestion = new NetworkTimeSuggestion(ARBITRARY_TIME); in testParcelable() local
59 assertRoundTripParcelable(suggestion); in testParcelable()
62 suggestion.addDebugInfo("This is debug info"); in testParcelable()
63 NetworkTimeSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
64 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
DGnssTimeSuggestionTest.java58 GnssTimeSuggestion suggestion = new GnssTimeSuggestion(ARBITRARY_TIME); in testParcelable() local
59 assertRoundTripParcelable(suggestion); in testParcelable()
62 suggestion.addDebugInfo("This is debug info"); in testParcelable()
63 GnssTimeSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
64 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
DManualTimeSuggestionTest.java58 ManualTimeSuggestion suggestion = new ManualTimeSuggestion(ARBITRARY_TIME); in testParcelable() local
59 assertRoundTripParcelable(suggestion); in testParcelable()
62 suggestion.addDebugInfo("This is debug info"); in testParcelable()
63 ManualTimeSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
64 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java57 final Suggestion suggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_allFieldsShouldBeSet() local
64 assertThat(suggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_allFieldsShouldBeSet()
65 assertThat(suggestion.getTitle()).isEqualTo(TEST_TITLE); in buildSuggestion_allFieldsShouldBeSet()
66 assertThat(suggestion.getSummary()).isEqualTo(TEST_SUMMARY); in buildSuggestion_allFieldsShouldBeSet()
67 assertThat(suggestion.getIcon()).isEqualTo(mIcon); in buildSuggestion_allFieldsShouldBeSet()
68 assertThat(suggestion.getFlags()).isEqualTo(0); in buildSuggestion_allFieldsShouldBeSet()
69 assertThat(suggestion.getPendingIntent()).isEqualTo(mTestIntent); in buildSuggestion_allFieldsShouldBeSet()
DMockSuggestionService.java44 public void onSuggestionDismissed(Suggestion suggestion) { in onSuggestionDismissed() argument
49 public void onSuggestionLaunched(Suggestion suggestion) { in onSuggestionLaunched() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionController.java117 public void dismissSuggestions(Suggestion suggestion) { in dismissSuggestions() argument
119 Log.w(TAG, "SuggestionController not ready, cannot dismiss " + suggestion.getId()); in dismissSuggestions()
123 mRemoteService.dismissSuggestion(suggestion); in dismissSuggestions()
129 public void launchSuggestion(Suggestion suggestion) { in launchSuggestion() argument
131 Log.w(TAG, "SuggestionController not ready, cannot launch " + suggestion.getId()); in launchSuggestion()
136 mRemoteService.launchSuggestion(suggestion); in launchSuggestion()
DSuggestionControllerMixinCompat.java136 public void dismissSuggestion(Suggestion suggestion) { in dismissSuggestion() argument
137 mSuggestionController.dismissSuggestions(suggestion); in dismissSuggestion()
140 public void launchSuggestion(Suggestion suggestion) { in launchSuggestion() argument
141 mSuggestionController.launchSuggestion(suggestion); in launchSuggestion()
DSuggestionControllerMixin.java137 public void dismissSuggestion(Suggestion suggestion) { in dismissSuggestion() argument
138 mSuggestionController.dismissSuggestions(suggestion); in dismissSuggestion()
141 public void launchSuggestion(Suggestion suggestion) { in launchSuggestion() argument
142 mSuggestionController.launchSuggestion(suggestion); in launchSuggestion()
/frameworks/base/core/java/android/app/timezonedetector/
DManualTimeZoneSuggestion.java66 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(zoneId); in createFromParcel() local
69 suggestion.mDebugInfo = debugInfo; in createFromParcel()
70 return suggestion; in createFromParcel()
148 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(zoneId); in parseCommandLineArg() local
149 suggestion.addDebugInfo("Command line injection"); in parseCommandLineArg()
150 return suggestion; in parseCommandLineArg()
DTimeZoneDetector.java119 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(tzId); in createManualTimeZoneSuggestion() local
120 suggestion.addDebugInfo(debugInfo); in createManualTimeZoneSuggestion()
121 return suggestion; in createManualTimeZoneSuggestion()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java235 public synchronized boolean suggestManualTime(@NonNull ManualTimeSuggestion suggestion) { in suggestManualTime() argument
236 final TimestampedValue<Long> newUnixEpochTime = suggestion.getUnixEpochTime(); in suggestManualTime()
238 if (!validateSuggestionTime(newUnixEpochTime, suggestion)) { in suggestManualTime()
242 String cause = "Manual time suggestion received: suggestion=" + suggestion; in suggestManualTime()
372 @NonNull TelephonyTimeSuggestion suggestion) { in storeTelephonySuggestion()
373 TimestampedValue<Long> newUnixEpochTime = suggestion.getUnixEpochTime(); in storeTelephonySuggestion()
375 int slotIndex = suggestion.getSlotIndex(); in storeTelephonySuggestion()
384 + ", suggestion=" + suggestion); in storeTelephonySuggestion()
395 + " suggestion=" + suggestion); in storeTelephonySuggestion()
401 mSuggestionBySlotIndex.put(slotIndex, suggestion); in storeTelephonySuggestion()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImpl.java75 TelephonyTimeZoneSuggestion suggestion; in getTimeZoneSuggestion() local
77 suggestion = overridingSuggestion; in getTimeZoneSuggestion()
80 suggestion = createEmptySuggestion(slotIndex, in getTimeZoneSuggestion()
84 suggestion = createEmptySuggestion(slotIndex, "getTimeZoneSuggestion:" in getTimeZoneSuggestion()
91 suggestion = createEmptySuggestion(slotIndex, in getTimeZoneSuggestion()
95 suggestion = findTimeZoneFromNetworkCountryCode( in getTimeZoneSuggestion()
105 suggestion = findTimeZoneForTestNetwork(slotIndex, nitzSignal); in getTimeZoneSuggestion()
108 suggestion = findTimeZoneFromCountryAndNitz( in getTimeZoneSuggestion()
115 Objects.requireNonNull(suggestion); in getTimeZoneSuggestion()
117 return suggestion; in getTimeZoneSuggestion()
DTimeServiceHelper.java41 void suggestDeviceTime(@NonNull TelephonyTimeSuggestion suggestion); in suggestDeviceTime() argument
52 void maybeSuggestDeviceTimeZone(@NonNull TelephonyTimeZoneSuggestion suggestion); in maybeSuggestDeviceTimeZone() argument
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/
DManualTimeZoneSuggestionTest.java60 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(ARBITRARY_ZONE_ID1); in testParcelable() local
61 assertRoundTripParcelable(suggestion); in testParcelable()
64 suggestion.addDebugInfo("This is debug info"); in testParcelable()
65 ManualTimeZoneSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
66 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DLocationTimeZoneProviderController.java308 GeolocationTimeZoneSuggestion suggestion = createUncertainSuggestion( in stopProviders() local
311 makeSuggestion(suggestion, STATE_UNCERTAIN); in stopProviders()
401 GeolocationTimeZoneSuggestion suggestion = createUncertainSuggestion( in alterProvidersStartedStateIfRequired() local
406 makeSuggestion(suggestion, STATE_FAILED); in alterProvidersStartedStateIfRequired()
540 GeolocationTimeZoneSuggestion suggestion = createUncertainSuggestion( in handleProviderFailedStateChange() local
545 makeSuggestion(suggestion, STATE_FAILED); in handleProviderFailedStateChange()
676 private void makeSuggestion(@NonNull GeolocationTimeZoneSuggestion suggestion, in makeSuggestion() argument
678 debugLog("makeSuggestion: suggestion=" + suggestion); in makeSuggestion()
679 mCallback.suggest(suggestion); in makeSuggestion()
680 mLastSuggestion = suggestion; in makeSuggestion()
[all …]
DLocationTimeZoneProviderControllerCallbackImpl.java37 void suggest(@NonNull GeolocationTimeZoneSuggestion suggestion) { in suggest() argument
42 timeZoneDetector.suggestGeolocationTimeZone(suggestion); in suggest()
/frameworks/base/core/java/android/service/timezone/
DTimeZoneProviderEvent.java77 @Nullable TimeZoneProviderSuggestion suggestion, in TimeZoneProviderEvent() argument
81 mSuggestion = suggestion; in TimeZoneProviderEvent()
88 @NonNull TimeZoneProviderSuggestion suggestion) { in createSuggestionEvent() argument
90 Objects.requireNonNull(suggestion), null); in createSuggestionEvent()
143 TimeZoneProviderSuggestion suggestion =
147 type, creationElapsedMillis, suggestion, failureCause);
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImplTest.java300 TelephonyTimeZoneSuggestion suggestion = in testTogglingAutoDetection_autoTelephony() local
302 script.simulateTelephonyTimeZoneSuggestion(suggestion); in testTogglingAutoDetection_autoTelephony()
310 new QualifiedTelephonyTimeZoneSuggestion(suggestion, testCase.expectedScore); in testTogglingAutoDetection_autoTelephony()
322 script.verifyTimeZoneChangedAndReset(suggestion); in testTogglingAutoDetection_autoTelephony()
663 GeolocationTimeZoneSuggestion suggestion = in testGeoSuggestion_oneZone() local
671 script.simulateGeolocationTimeZoneSuggestion(suggestion) in testGeoSuggestion_oneZone()
672 .verifyTimeZoneChangedAndReset(suggestion); in testGeoSuggestion_oneZone()
675 assertEquals(suggestion, mTimeZoneDetectorStrategy.getLatestGeolocationSuggestion()); in testGeoSuggestion_oneZone()
749 mTimeZoneDetectorStrategy.getLatestTelephonySuggestion(SLOT_INDEX1).suggestion); in testChangingGeoDetectionEnabled()
1103 GeolocationTimeZoneSuggestion suggestion = in createCertainGeolocationSuggestion() local
[all …]
/frameworks/base/core/proto/android/app/
Dtime_zone_detector.proto35 * A generic-form time zone suggestion for metrics use. Required to be a superset of the
47 // The ordinals for time zone(s) in the suggestion. Always empty for
51 // The suggestion's time zone IDs (which relate to location) are obfuscated by
55 // answer "did these two suggestions agree?", "does the suggestion match the
61 // The actual time zone ID(s) in the suggestion. Similar to time_zone_ordinals
/frameworks/base/core/java/android/app/timedetector/
DGnssTimeSuggestion.java71 GnssTimeSuggestion suggestion = new GnssTimeSuggestion(unixEpochTime); in createFromParcel() local
75 suggestion.mDebugInfo = debugInfo; in createFromParcel()
76 return suggestion; in createFromParcel()
DManualTimeSuggestion.java71 ManualTimeSuggestion suggestion = new ManualTimeSuggestion(unixEpochTime); in createFromParcel() local
75 suggestion.mDebugInfo = debugInfo; in createFromParcel()
76 return suggestion; in createFromParcel()

12