Searched refs:listenMode (Results 1 – 8 of 8) sorted by relevance
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/ |
D | Mode.java | 129 Mode(@ModeEnum int modeEnum, @NonNull PiiLoggable entryCause, @ListenModeEnum int listenMode, in Mode() argument 132 mListenMode = validateListenModeEnum(modeEnum, listenMode); in Mode() 197 static String prettyPrintListenModeEnum(@ListenModeEnum int listenMode) { in prettyPrintListenModeEnum() argument 198 switch (listenMode) { in prettyPrintListenModeEnum() 206 return listenMode + " (Unknown)"; in prettyPrintListenModeEnum() 218 @ModeEnum int modeEnum, @ListenModeEnum int listenMode) { in validateListenModeEnum() argument 220 if (listenMode != LOCATION_LISTEN_MODE_ACTIVE in validateListenModeEnum() 221 && listenMode != LOCATION_LISTEN_MODE_PASSIVE) { in validateListenModeEnum() 225 if (listenMode != LOCATION_LISTEN_MODE_NA) { in validateListenModeEnum() 229 return listenMode; in validateListenModeEnum()
|
D | LocationListeningAccountant.java | 73 public final int listenMode; field in LocationListeningAccountant.ListeningInstruction 79 public ListeningInstruction(@ListenModeEnum int listenMode, @NonNull Duration duration) { in ListeningInstruction() argument 80 this.listenMode = listenMode; in ListeningInstruction() 93 return listenMode == that.listenMode in equals() 99 return Objects.hash(listenMode, duration); in hashCode() 105 + "listenMode=" + listenMode in toString()
|
D | Environment.java | 91 @ListenModeEnum int listenMode, in LocationListeningResult() 96 mListenMode = listenMode; in LocationListeningResult()
|
D | MetricsReporter.java | 32 @ListenModeEnum int listenMode, in reportLocationListeningCompletedEvent()
|
D | OfflineLocationTimeZoneDelegate.java | 638 if (nextModeInstruction.listenMode == LOCATION_LISTEN_MODE_PASSIVE) { in startNextLocationListening() 648 MODE_STARTED, entryCause, nextModeInstruction.listenMode, listeningCancellable); in startNextLocationListening()
|
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/ |
D | RealLocationListeningAccountantTest.java | 130 assertEquals(LOCATION_LISTEN_MODE_PASSIVE, instruction.listenMode); in getNextListeningInstruction_noActiveBudget_noLastLocationResult() 141 assertEquals(LOCATION_LISTEN_MODE_ACTIVE, instruction2.listenMode); in getNextListeningInstruction_noActiveBudget_noLastLocationResult() 158 assertEquals(LOCATION_LISTEN_MODE_ACTIVE, instruction.listenMode); in getNextListeningInstruction_withSmallActiveBudget_noLastLocationResult() 176 assertEquals(LOCATION_LISTEN_MODE_ACTIVE, instruction.listenMode); in getNextListeningInstruction_withLargeActiveBudget_noLastLocationResult() 218 assertEquals(LOCATION_LISTEN_MODE_PASSIVE, instruction.listenMode); in doLastKnownLocationResultTest() 261 assertEquals(LOCATION_LISTEN_MODE_PASSIVE, instruction.listenMode); 296 assertEquals(LOCATION_LISTEN_MODE_ACTIVE, instruction.listenMode);
|
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/ |
D | OfflineLocationTimeZoneDelegateTest.java | 109 activeInstruction.listenMode, activeInstruction.duration); in locationFoundImmediately() 132 passiveInstruction.listenMode, passiveInstruction.duration); in locationFoundImmediately() 165 activeInstruction.listenMode, activeInstruction.duration); in locationNotFoundImmediately() 179 passiveInstruction.listenMode, passiveInstruction.duration); in locationNotFoundImmediately()
|
/packages/modules/GeoTZ/apex/com.android.geotz/src/main/java/com/android/geotz/ |
D | MetricsReporterImpl.java | 28 public void reportLocationListeningCompletedEvent(@ListenModeEnum int listenMode, in reportLocationListeningCompletedEvent() argument
|