Home
last modified time | relevance | path

Searched refs:TelephonyTimeSuggestion (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/timedetector/
DTelephonyTimeSuggestionTest.java34 TelephonyTimeSuggestion.Builder builder1 = new TelephonyTimeSuggestion.Builder(SLOT_INDEX); in testEquals()
36 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
40 TelephonyTimeSuggestion.Builder builder2 = new TelephonyTimeSuggestion.Builder(SLOT_INDEX); in testEquals()
42 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
43 TelephonyTimeSuggestion two = builder2.build(); in testEquals()
50 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
56 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
57 TelephonyTimeSuggestion two = builder2.build(); in testEquals()
62 TelephonyTimeSuggestion.Builder builder3 = in testEquals()
63 new TelephonyTimeSuggestion.Builder(SLOT_INDEX + 1); in testEquals()
[all …]
/frameworks/base/core/java/android/app/timedetector/
DTelephonyTimeSuggestion.java53 public final class TelephonyTimeSuggestion implements Parcelable { class
56 public static final @NonNull Parcelable.Creator<TelephonyTimeSuggestion> CREATOR =
57 new Parcelable.Creator<TelephonyTimeSuggestion>() {
58 public TelephonyTimeSuggestion createFromParcel(Parcel in) {
59 return TelephonyTimeSuggestion.createFromParcel(in);
62 public TelephonyTimeSuggestion[] newArray(int size) {
63 return new TelephonyTimeSuggestion[size];
71 private TelephonyTimeSuggestion(Builder builder) { in TelephonyTimeSuggestion() method in TelephonyTimeSuggestion
77 private static TelephonyTimeSuggestion createFromParcel(Parcel in) { in createFromParcel()
79 TelephonyTimeSuggestion suggestion = new TelephonyTimeSuggestion.Builder(slotIndex) in createFromParcel()
[all …]
DITimeDetectorService.aidl21 import android.app.timedetector.TelephonyTimeSuggestion;
39 void suggestTelephonyTime(in TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime()
DTelephonyTimeSuggestion.aidl19 parcelable TelephonyTimeSuggestion;
DTimeDetector.java53 void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime()
DTimeDetectorImpl.java43 public void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java27 import android.app.timedetector.TelephonyTimeSuggestion;
72 TelephonyTimeSuggestion timeSuggestion = in testSuggestTelephonyTime_autoTimeEnabled()
89 TelephonyTimeSuggestion timeSuggestion = in testSuggestTelephonyTime_emptySuggestionIgnored()
108 TelephonyTimeSuggestion timeSuggestion1 = in testSuggestTelephonyTime_systemClockThreshold()
126 TelephonyTimeSuggestion timeSuggestion2 = mScript.generateTelephonyTimeSuggestion( in testSuggestTelephonyTime_systemClockThreshold()
136 TelephonyTimeSuggestion timeSuggestion3 = mScript.generateTelephonyTimeSuggestion( in testSuggestTelephonyTime_systemClockThreshold()
165 TelephonyTimeSuggestion slotIndex2TimeSuggestion = in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing()
182 TelephonyTimeSuggestion slotIndex1TimeSuggestion = in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing()
200 TelephonyTimeSuggestion slotIndex2TimeSuggestion = in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing()
215 TelephonyTimeSuggestion slotIndex2TimeSuggestion = in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing()
[all …]
DTimeDetectorServiceTest.java33 import android.app.timedetector.TelephonyTimeSuggestion;
86 TelephonyTimeSuggestion timeSuggestion = createTelephonyTimeSuggestion(); in testSuggestTelephonyTime_withoutPermission()
102 TelephonyTimeSuggestion timeSuggestion = createTelephonyTimeSuggestion(); in testSuggestTelephonyTime()
202 private static TelephonyTimeSuggestion createTelephonyTimeSuggestion() { in createTelephonyTimeSuggestion()
205 return new TelephonyTimeSuggestion.Builder(slotIndex) in createTelephonyTimeSuggestion()
223 private TelephonyTimeSuggestion mLastTelephonySuggestion;
234 public void suggestTelephonyTime(TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime()
266 void verifySuggestTelephonyTimeCalled(TelephonyTimeSuggestion expectedSuggestion) { in verifySuggestTelephonyTimeCalled()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java25 import android.app.timedetector.TelephonyTimeSuggestion;
118 private final ArrayMapWithHistory<Integer, TelephonyTimeSuggestion> mSuggestionBySlotIndex =
167 public synchronized void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestTelephonyTime()
240 @NonNull TelephonyTimeSuggestion suggestion) { in validateAndStoreTelephonySuggestion()
249 TelephonyTimeSuggestion previousSuggestion = mSuggestionBySlotIndex.get(slotIndex); in validateAndStoreTelephonySuggestion()
307 TelephonyTimeSuggestion bestTelephonySuggestion = findBestTelephonySuggestion(); in doAutoTimeDetection()
336 private TelephonyTimeSuggestion findBestTelephonySuggestion() { in findBestTelephonySuggestion()
369 TelephonyTimeSuggestion bestSuggestion = null; in findBestTelephonySuggestion()
373 TelephonyTimeSuggestion candidateSuggestion = mSuggestionBySlotIndex.valueAt(i); in findBestTelephonySuggestion()
410 long elapsedRealtimeMillis, @NonNull TelephonyTimeSuggestion timeSuggestion) { in scoreTelephonySuggestion()
[all …]
DTimeDetectorStrategy.java23 import android.app.timedetector.TelephonyTimeSuggestion;
81 void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSuggestion); in suggestTelephonyTime()
DTimeDetectorService.java24 import android.app.timedetector.TelephonyTimeSuggestion;
97 public void suggestTelephonyTime(@NonNull TelephonyTimeSuggestion timeSignal) { in suggestTelephonyTime()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineImplTest.java36 import android.app.timedetector.TelephonyTimeSuggestion;
60 private static final TelephonyTimeSuggestion EMPTY_TIME_SUGGESTION =
137 TelephonyTimeSuggestion expectedTimeSuggestion = in test_countryThenNitz()
172 TelephonyTimeSuggestion expectedTimeSuggestion = in test_nitzThenCountry()
210 TelephonyTimeSuggestion expectedTimeSuggestion = in test_emptyCountryString_countryReceivedFirst()
245 TelephonyTimeSuggestion expectedTimeSuggestion = in test_emptyCountryStringUsTime_nitzReceivedFirst()
286 TelephonyTimeSuggestion expectedPreFlightTimeSuggestion = in test_airplaneModeClearsState()
357 TelephonyTimeSuggestion expectedPostFlightTimeSuggestion = in test_airplaneModeClearsState()
385 TelephonyTimeSuggestion expectedInitialTimeSuggestion = in test_handleNetworkUnavailableClearsNetworkState()
441 TelephonyTimeSuggestion expectedFinalTimeSuggestion = in test_handleNetworkUnavailableClearsNetworkState()
[all …]
DNitzStateMachineTestSupport.java21 import android.app.timedetector.TelephonyTimeSuggestion;
271 static TelephonyTimeSuggestion createEmptyTimeSuggestion(int slotIndex) { in createEmptyTimeSuggestion()
272 return new TelephonyTimeSuggestion.Builder(slotIndex) in createEmptyTimeSuggestion()
277 static TelephonyTimeSuggestion createTimeSuggestionFromNitzSignal( in createTimeSuggestionFromNitzSignal()
279 return new TelephonyTimeSuggestion.Builder(slotIndex) in createTimeSuggestionFromNitzSignal()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeServiceHelper.java20 import android.app.timedetector.TelephonyTimeSuggestion;
41 void suggestDeviceTime(@NonNull TelephonyTimeSuggestion suggestion); in suggestDeviceTime()
DTimeServiceHelperImpl.java21 import android.app.timedetector.TelephonyTimeSuggestion;
66 public void suggestDeviceTime(@NonNull TelephonyTimeSuggestion timeSuggestion) { in suggestDeviceTime()
DNitzStateMachineImpl.java21 import android.app.timedetector.TelephonyTimeSuggestion;
314 TelephonyTimeSuggestion.Builder builder = in doTimeDetection()
315 new TelephonyTimeSuggestion.Builder(mSlotIndex); in doTimeDetection()