Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java50 WifiNetworkSuggestion suggestion = new WifiNetworkSuggestion.Builder() in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction() local
55 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
56 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
58 assertTrue(suggestion.isAppInteractionRequired); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
59 assertFalse(suggestion.isUserInteractionRequired); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
61 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
62 assertEquals(-1, suggestion.wifiConfiguration.priority); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
63 assertFalse(suggestion.isUserAllowedToManuallyConnect); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
64 assertTrue(suggestion.isInitialAutoJoinEnabled); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
75 WifiNetworkSuggestion suggestion = new WifiNetworkSuggestion.Builder() in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction() local
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java202 public synchronized void suggestManualTimeZone(@NonNull ManualTimeZoneSuggestion suggestion) { in suggestManualTimeZone() argument
203 Objects.requireNonNull(suggestion); in suggestManualTimeZone()
205 String timeZoneId = suggestion.getZoneId(); in suggestManualTimeZone()
206 String cause = "Manual time suggestion received: suggestion=" + suggestion; in suggestManualTimeZone()
212 @NonNull TelephonyTimeZoneSuggestion suggestion) { in suggestTelephonyTimeZone()
214 Slog.d(LOG_TAG, "Telephony suggestion received. newSuggestion=" + suggestion); in suggestTelephonyTimeZone()
216 Objects.requireNonNull(suggestion); in suggestTelephonyTimeZone()
219 int score = scoreTelephonySuggestion(suggestion); in suggestTelephonyTimeZone()
221 new QualifiedTelephonyTimeZoneSuggestion(suggestion, score); in suggestTelephonyTimeZone()
224 mSuggestionBySlotIndex.put(suggestion.getSlotIndex(), scoredSuggestion); in suggestTelephonyTimeZone()
[all …]
DTimeZoneDetectorShellCommand.java53 TelephonyTimeZoneSuggestion suggestion = null; in runSuggestTelephonyTimeZone() local
57 suggestion = TelephonyTimeZoneSuggestion.parseCommandLineArg(this); in runSuggestTelephonyTimeZone()
63 if (suggestion == null) { in runSuggestTelephonyTimeZone()
67 mInterface.suggestTelephonyTimeZone(suggestion); in runSuggestTelephonyTimeZone()
68 pw.println("Suggestion " + suggestion + " injected."); in runSuggestTelephonyTimeZone()
79 ManualTimeZoneSuggestion suggestion = null; in runSuggestManualTimeZone() local
83 suggestion = ManualTimeZoneSuggestion.parseCommandLineArg(this); in runSuggestManualTimeZone()
89 if (suggestion == null) { in runSuggestManualTimeZone()
93 mInterface.suggestManualTimeZone(suggestion); in runSuggestManualTimeZone()
94 pw.println("Suggestion " + suggestion + " injected."); in runSuggestManualTimeZone()
DTimeZoneDetectorStrategy.java42 void suggestManualTimeZone(@NonNull ManualTimeZoneSuggestion suggestion); in suggestManualTimeZone() argument
51 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()
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/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java131 public synchronized void suggestManualTime(@NonNull ManualTimeSuggestion suggestion) { in suggestManualTime() argument
132 final TimestampedValue<Long> newUtcTime = suggestion.getUtcTime(); in suggestManualTime()
134 if (!validateSuggestionTime(newUtcTime, suggestion)) { in suggestManualTime()
138 String cause = "Manual time suggestion received: suggestion=" + suggestion; in suggestManualTime()
240 @NonNull TelephonyTimeSuggestion suggestion) { in validateAndStoreTelephonySuggestion()
241 TimestampedValue<Long> newUtcTime = suggestion.getUtcTime(); in validateAndStoreTelephonySuggestion()
242 if (!validateSuggestionTime(newUtcTime, suggestion)) { in validateAndStoreTelephonySuggestion()
248 int slotIndex = suggestion.getSlotIndex(); in validateAndStoreTelephonySuggestion()
257 + ", suggestion=" + suggestion); in validateAndStoreTelephonySuggestion()
268 + " suggestion=" + suggestion); in validateAndStoreTelephonySuggestion()
[all …]
/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.java38 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(tzId); in createManualTimeZoneSuggestion() local
39 suggestion.addDebugInfo(debugInfo); in createManualTimeZoneSuggestion()
40 return suggestion; in createManualTimeZoneSuggestion()
/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
DNitzStateMachineImpl.java286 TelephonyTimeZoneSuggestion suggestion = mTimeZoneSuggester.getTimeZoneSuggestion( in doTimeZoneDetection() local
288 suggestion.addDebugInfo("Detection reason=" + reason); in doTimeZoneDetection()
292 + ", nitzSignal=" + nitzSignal + ", suggestion=" + suggestion in doTimeZoneDetection()
295 mTimeServiceHelper.maybeSuggestDeviceTimeZone(suggestion); in doTimeZoneDetection()
/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/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkSuggestionStoreData.java213 WifiNetworkSuggestion suggestion = extSuggestion.wns; in serializeNetworkSuggestion() local
220 out, suggestion.wifiConfiguration, encryptionUtil); in serializeNetworkSuggestion()
223 if (suggestion.wifiConfiguration.enterpriseConfig != null in serializeNetworkSuggestion()
224 && suggestion.wifiConfiguration.enterpriseConfig.getEapMethod() in serializeNetworkSuggestion()
229 out, suggestion.wifiConfiguration.enterpriseConfig, encryptionUtil); in serializeNetworkSuggestion()
232 if (suggestion.passpointConfiguration != null) { in serializeNetworkSuggestion()
235 suggestion.passpointConfiguration); in serializeNetworkSuggestion()
241 suggestion.isAppInteractionRequired); in serializeNetworkSuggestion()
243 suggestion.isUserInteractionRequired); in serializeNetworkSuggestion()
245 suggestion.isUserAllowedToManuallyConnect); in serializeNetworkSuggestion()
[all …]
DWifiShellCommand.java496 WifiNetworkSuggestion suggestion = buildSuggestion(pw); in onCommand() local
498 Arrays.asList(suggestion), SHELL_PACKAGE_NAME, null); in onCommand()
505 WifiNetworkSuggestion suggestion = suggestions.stream() in onCommand() local
509 if (suggestion == null) { in onCommand()
514 Arrays.asList(suggestion), SHELL_PACKAGE_NAME); in onCommand()
528 for (WifiNetworkSuggestion suggestion : suggestions) { in onCommand()
531 suggestion.getWifiConfiguration())) { in onCommand()
534 suggestion.getWifiConfiguration())) { in onCommand()
537 suggestion.getWifiConfiguration())) { in onCommand()
540 suggestion.getWifiConfiguration())) { in onCommand()
[all …]
/frameworks/base/core/java/android/app/timedetector/
DNetworkTimeSuggestion.java70 NetworkTimeSuggestion suggestion = new NetworkTimeSuggestion(utcTime); in createFromParcel() local
73 suggestion.mDebugInfo = debugInfo; in createFromParcel()
74 return suggestion; in createFromParcel()
DTelephonyTimeSuggestion.java79 TelephonyTimeSuggestion suggestion = new TelephonyTimeSuggestion.Builder(slotIndex) in createFromParcel() local
85 suggestion.addDebugInfo(debugInfo); in createFromParcel()
87 return suggestion; in createFromParcel()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImplTest.java209 TelephonyTimeZoneSuggestion suggestion = in testTogglingAutoTimeZoneDetection() local
211 script.suggestTelephonyTimeZone(suggestion); in testTogglingAutoTimeZoneDetection()
219 new QualifiedTelephonyTimeZoneSuggestion(suggestion, testCase.expectedScore); in testTogglingAutoTimeZoneDetection()
231 script.verifyTimeZoneSetAndReset(suggestion); in testTogglingAutoTimeZoneDetection()
622 Script verifyTimeZoneSetAndReset(TelephonyTimeZoneSuggestion suggestion) { in verifyTimeZoneSetAndReset() argument
623 mFakeTimeZoneDetectorStrategyCallback.assertTimeZoneSet(suggestion.getZoneId()); in verifyTimeZoneSetAndReset()
628 Script verifyTimeZoneSetAndReset(ManualTimeZoneSuggestion suggestion) { in verifyTimeZoneSetAndReset() argument
629 mFakeTimeZoneDetectorStrategyCallback.assertTimeZoneSet(suggestion.getZoneId()); in verifyTimeZoneSetAndReset()

12