Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java215 public synchronized void suggestExternalTime(@NonNull ExternalTimeSuggestion suggestion) { in suggestExternalTime() argument
220 + " suggestion=" + suggestion); in suggestExternalTime()
222 Objects.requireNonNull(suggestion); in suggestExternalTime()
224 final UnixEpochTime newUnixEpochTime = suggestion.getUnixEpochTime(); in suggestExternalTime()
226 if (!validateAutoSuggestionTime(newUnixEpochTime, suggestion)) { in suggestExternalTime()
230 mLastExternalSuggestion.set(suggestion); in suggestExternalTime()
232 String reason = "External time suggestion received: suggestion=" + suggestion; in suggestExternalTime()
237 public synchronized void suggestGnssTime(@NonNull GnssTimeSuggestion suggestion) { in suggestGnssTime() argument
242 + " suggestion=" + suggestion); in suggestGnssTime()
244 Objects.requireNonNull(suggestion); in suggestGnssTime()
[all …]
DTimeDetectorInternalImpl.java76 public boolean setManualTimeForDpm(@NonNull ManualTimeSuggestion suggestion) { in setManualTimeForDpm() argument
77 Objects.requireNonNull(suggestion); in setManualTimeForDpm()
80 return mTimeDetectorStrategy.suggestManualTime(userId, suggestion, false); in setManualTimeForDpm()
84 public void suggestNetworkTime(@NonNull NetworkTimeSuggestion suggestion) { in suggestNetworkTime() argument
85 Objects.requireNonNull(suggestion); in suggestNetworkTime()
87 mHandler.post(() -> mTimeDetectorStrategy.suggestNetworkTime(suggestion)); in suggestNetworkTime()
104 public void suggestGnssTime(@NonNull GnssTimeSuggestion suggestion) { in suggestGnssTime() argument
105 Objects.requireNonNull(suggestion); in suggestGnssTime()
107 mHandler.post(() -> mTimeDetectorStrategy.suggestGnssTime(suggestion)); in suggestGnssTime()
DTimeDetectorStrategy.java135 void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion suggestion); in suggestTelephonyTime() argument
146 boolean suggestManualTime(@UserIdInt int userId, @NonNull ManualTimeSuggestion suggestion, in suggestManualTime() argument
156 void suggestNetworkTime(@NonNull NetworkTimeSuggestion suggestion); in suggestNetworkTime() argument
179 void suggestGnssTime(@NonNull GnssTimeSuggestion suggestion); in suggestGnssTime() argument
182 void suggestExternalTime(@NonNull ExternalTimeSuggestion suggestion); in suggestExternalTime() argument
DTimeDetectorInternal.java62 boolean setManualTimeForDpm(@NonNull ManualTimeSuggestion suggestion); in setManualTimeForDpm() argument
71 void suggestNetworkTime(@NonNull NetworkTimeSuggestion suggestion); in suggestNetworkTime() argument
91 void suggestGnssTime(@NonNull GnssTimeSuggestion suggestion); in suggestGnssTime() argument
DTimeDetectorService.java317 public boolean setManualTime(@NonNull ManualTimeSuggestion suggestion) { in setManualTime() argument
319 Objects.requireNonNull(suggestion); in setManualTime()
328 userId, suggestion, bypassUserPolicyChecks); in setManualTime()
361 void suggestNetworkTime(@NonNull NetworkTimeSuggestion suggestion) { in suggestNetworkTime() argument
363 Objects.requireNonNull(suggestion); in suggestNetworkTime()
365 mHandler.post(() -> mTimeDetectorStrategy.suggestNetworkTime(suggestion)); in suggestNetworkTime()
451 NetworkTimeSuggestion suggestion = in setNetworkTimeForSystemClockForTests() local
453 suggestion.addDebugInfo("Injected for tests"); in setNetworkTimeForSystemClockForTests()
454 mTimeDetectorStrategy.suggestNetworkTime(suggestion); in setNetworkTimeForSystemClockForTests()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java438 @UserIdInt int userId, @NonNull ManualTimeZoneSuggestion suggestion,
444 + " suggestion=" + suggestion);
450 Objects.requireNonNull(suggestion);
452 String timeZoneId = suggestion.getZoneId();
453 String cause = "Manual time suggestion received: suggestion=" + suggestion;
469 mLatestManualSuggestion.set(suggestion);
477 @NonNull TelephonyTimeZoneSuggestion suggestion) {
482 + " suggestion=" + suggestion);
484 Objects.requireNonNull(suggestion);
487 int score = scoreTelephonySuggestion(suggestion);
[all …]
DLocationAlgorithmEvent.java61 @Nullable GeolocationTimeZoneSuggestion suggestion) { in LocationAlgorithmEvent() argument
63 mSuggestion = suggestion; in LocationAlgorithmEvent()
154 GeolocationTimeZoneSuggestion suggestion = null; in parseCommandLineArg() local
159 suggestion = GeolocationTimeZoneSuggestion.createUncertainSuggestion( in parseCommandLineArg()
162 suggestion = GeolocationTimeZoneSuggestion.createCertainSuggestion( in parseCommandLineArg()
167 LocationAlgorithmEvent event = new LocationAlgorithmEvent(algorithmStatus, suggestion); in parseCommandLineArg()
DTimeZoneDetectorService.java346 public boolean setManualTimeZone(@NonNull ManualTimeZoneSuggestion suggestion) { in setManualTimeZone() argument
356 userId, suggestion, bypassUserPolicyChecks); in setManualTimeZone()
363 public boolean suggestManualTimeZone(@NonNull ManualTimeZoneSuggestion suggestion) { in suggestManualTimeZone() argument
365 Objects.requireNonNull(suggestion); in suggestManualTimeZone()
372 userId, suggestion, bypassUserPolicyChecks); in suggestManualTimeZone()
379 public void suggestTelephonyTimeZone(@NonNull TelephonyTimeZoneSuggestion suggestion) { in suggestTelephonyTimeZone() argument
381 Objects.requireNonNull(suggestion); in suggestTelephonyTimeZone()
383 mHandler.post(() -> mTimeZoneDetectorStrategy.suggestTelephonyTimeZone(suggestion)); in suggestTelephonyTimeZone()
/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/services/tests/timetests/src/com/android/server/timezonedetector/
DLocationAlgorithmEventTest.java87 GeolocationTimeZoneSuggestion suggestion = in testParseCommandLineArg_noStatus() local
91 Arrays.asList("--suggestion", suggestion.toString())); in testParseCommandLineArg_noStatus()
98 GeolocationTimeZoneSuggestion suggestion = null; in testParseCommandLineArg_noSuggestion() local
100 ARBITRARY_LOCATION_ALGORITHM_STATUS, suggestion); in testParseCommandLineArg_noSuggestion()
109 GeolocationTimeZoneSuggestion suggestion = in testParseCommandLineArg_suggestionUncertain() local
112 ARBITRARY_LOCATION_ALGORITHM_STATUS, suggestion); in testParseCommandLineArg_suggestionUncertain()
125 GeolocationTimeZoneSuggestion suggestion = in testParseCommandLineArg_suggestionEmpty() local
129 ARBITRARY_LOCATION_ALGORITHM_STATUS, suggestion); in testParseCommandLineArg_suggestionEmpty()
142 GeolocationTimeZoneSuggestion suggestion = in testParseCommandLineArg_suggestionPresent() local
146 ARBITRARY_LOCATION_ALGORITHM_STATUS, suggestion); in testParseCommandLineArg_suggestionPresent()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java58 final Suggestion suggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_allFieldsShouldBeSet() local
65 assertThat(suggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_allFieldsShouldBeSet()
66 assertThat(suggestion.getTitle()).isEqualTo(TEST_TITLE); in buildSuggestion_allFieldsShouldBeSet()
67 assertThat(suggestion.getSummary()).isEqualTo(TEST_SUMMARY); in buildSuggestion_allFieldsShouldBeSet()
68 assertThat(suggestion.getIcon()).isEqualTo(mIcon); in buildSuggestion_allFieldsShouldBeSet()
69 assertThat(suggestion.getFlags()).isEqualTo(0); in buildSuggestion_allFieldsShouldBeSet()
70 assertThat(suggestion.getPendingIntent()).isEqualTo(mTestIntent); in buildSuggestion_allFieldsShouldBeSet()
/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()
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()
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()
/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.java142 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(tzId); in createManualTimeZoneSuggestion() local
143 suggestion.addDebugInfo(debugInfo); in createManualTimeZoneSuggestion()
144 return suggestion; in createManualTimeZoneSuggestion()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DFakeTimeDetectorStrategy.java86 public void suggestTelephonyTime(TelephonyTimeSuggestion suggestion) { in suggestTelephonyTime() argument
90 public boolean suggestManualTime(@UserIdInt int userId, ManualTimeSuggestion suggestion, in suggestManualTime() argument
96 public void suggestNetworkTime(NetworkTimeSuggestion suggestion) { in suggestNetworkTime() argument
113 public void suggestGnssTime(GnssTimeSuggestion suggestion) { in suggestGnssTime() argument
117 public void suggestExternalTime(ExternalTimeSuggestion suggestion) { in suggestExternalTime() argument
/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()
/frameworks/base/core/tests/timetests/src/android/app/timezonedetector/
DManualTimeZoneSuggestionTest.java68 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(ARBITRARY_ZONE_ID1); in testParcelable() local
69 assertRoundTripParcelable(suggestion); in testParcelable()
72 suggestion.addDebugInfo("This is debug info"); in testParcelable()
73 ManualTimeZoneSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
74 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
/frameworks/base/core/tests/timetests/src/android/app/timedetector/
DManualTimeSuggestionTest.java67 ManualTimeSuggestion suggestion = new ManualTimeSuggestion(ARBITRARY_TIME); in testParcelable() local
68 assertRoundTripParcelable(suggestion); in testParcelable()
71 suggestion.addDebugInfo("This is debug info"); in testParcelable()
72 ManualTimeSuggestion rtSuggestion = roundTripParcelable(suggestion); in testParcelable()
73 assertEquals(suggestion.getDebugInfo(), rtSuggestion.getDebugInfo()); in testParcelable()
/frameworks/base/core/java/android/service/timezone/
DTimeZoneProviderService.java205 public final void reportSuggestion(@NonNull TimeZoneProviderSuggestion suggestion) { in reportSuggestion() argument
207 reportSuggestionInternal(suggestion, providerStatus); in reportSuggestion()
217 public final void reportSuggestion(@NonNull TimeZoneProviderSuggestion suggestion, in reportSuggestion() argument
220 reportSuggestionInternal(suggestion, providerStatus); in reportSuggestion()
223 private void reportSuggestionInternal(@NonNull TimeZoneProviderSuggestion suggestion, in reportSuggestionInternal() argument
225 Objects.requireNonNull(suggestion); in reportSuggestionInternal()
234 SystemClock.elapsedRealtime(), suggestion, providerStatus); in reportSuggestionInternal()
DTimeZoneProviderEvent.java83 @Nullable TimeZoneProviderSuggestion suggestion, in TimeZoneProviderEvent() argument
88 mSuggestion = suggestion; in TimeZoneProviderEvent()
110 @NonNull TimeZoneProviderSuggestion suggestion, in createSuggestionEvent() argument
113 Objects.requireNonNull(suggestion), null, providerStatus); in createSuggestionEvent()
178 TimeZoneProviderSuggestion suggestion = in.readParcelable(
184 type, creationElapsedMillis, suggestion, failureCause, status);
/frameworks/base/core/tests/timetests/src/android/service/timezone/
DTimeZoneProviderEventTest.java75 TimeZoneProviderSuggestion suggestion = new TimeZoneProviderSuggestion.Builder() in createSuggestion() local
92 creationElapsedMillis, suggestion, reportedStatus); in createSuggestion()
96 assertEquals(suggestion, event.getSuggestion()); in createSuggestion()
103 creationElapsedMillis, suggestion, legacyStatus); in createSuggestion()
140 TimeZoneProviderSuggestion suggestion = new TimeZoneProviderSuggestion.Builder() in isEquivalentToAndEquals() local
145 creationElapsedMillis, suggestion, providerStatus); in isEquivalentToAndEquals()
303 TimeZoneProviderSuggestion suggestion = new TimeZoneProviderSuggestion.Builder() in testParcelable_suggestion() local
307 1111L, suggestion, ARBITRARY_TIME_ZONE_PROVIDER_STATUS); in testParcelable_suggestion()
313 TimeZoneProviderSuggestion suggestion = new TimeZoneProviderSuggestion.Builder() in testParcelable_suggestion_legacy() local
317 1111L, suggestion, null); in testParcelable_suggestion_legacy()
/frameworks/base/core/proto/android/app/
Dtime_zone_detector.proto30 optional GeolocationTimeZoneSuggestionProto suggestion = 1; field
60 * A generic-form time zone suggestion for metrics use. Required to be a superset of the
72 // The ordinals for time zone(s) in the suggestion. Always empty for
76 // The suggestion's time zone IDs (which relate to location) are obfuscated by
80 // answer "did these two suggestions agree?", "does the suggestion match the
86 // The actual time zone ID(s) in the suggestion. Similar to time_zone_ordinals

123