Home
last modified time | relevance | path

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

123

/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteWriteTest.java25 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getRoute;
79 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withRoute_routeGetsInserted()
95 assertThat(records.get(0).getRoute()).isNull(); in insertRecords_withClientId_withoutRoute_routeGetsDeleted()
111 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withUpdatedRoute_routeGetsUpdated()
127 assertThat(records.get(0).getRoute()).isEqualTo(updatedSessionWithRoute.getRoute()); in insertRecords_withClientId_withAddedRoute_routeGetsInserted()
144 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withHigherVersionId_routeGetsUpdated()
161 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withSameVersionId_routeGetsUpdated()
179 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withClientId_withLowerVersionId_routeDoesNotGetUpdated()
195 assertThat(records.get(0).getRoute()).isNull(); in updateRecords_withoutRoute_routeGetsDeleted()
212 assertThat(records.get(0).getRoute()).isEqualTo(updatedSessionWithRoute.getRoute()); in updateRecords_withRoute_routeGetsInserted()
[all …]
DReadExerciseRoutesPermissionTest.java78 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOtherAppRoute()
93 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
116 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()) in readRecords_usingFilters_mixedOwnAndOtherAppSession()
117 .isEqualTo(otherAppSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
119 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
135 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_canAccessOtherAppRoute()
151 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
176 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()) in readRecords_usingIds_mixedOwnAndOtherAppSession()
177 .isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
179 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
[all …]
DExerciseRouteReadTest.java81 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_cannotAccessOtherAppRoute()
96 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
119 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
121 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
137 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_cannotAccessOtherAppRoute()
153 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
178 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingIds_mixedOwnAndOtherAppSession()
180 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
202 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_cannotAccessOtherAppRoute()
224 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in getChangelogs_canAccessOwnRoute()
[all …]
DExerciseRouteBackgroundReadTest.java88 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_cannotAccessOtherAppRoute()
103 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
127 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
129 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
145 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_cannotAccessOtherAppRoute()
162 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
187 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingIds_mixedOwnAndOtherAppSession()
189 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
212 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_cannotAccessOtherAppRoute()
235 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in getChangelogs_canAccessOwnRoute()
[all …]
DExerciseRouteNoReadWritePermissionTest.java107 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withSameClientId_withoutRoute_routeDoesNotGetDeleted()
134 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withSameClientId_updatedRoute_throws_routeDoesNotGetUpdated()
159 assertThat(records.get(0).getRoute()).isNull(); in insertRecords_withSameClientId_addedRoute_throws_routeDoesNotGetAdded()
177 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in updateRecords_withoutRoute_routeDoesNotGetDeleted()
202 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in updateRecords_withUpdatedRoute_throws_routeDoesNotGetUpdated()
228 assertThat(records.get(0).getRoute()).isNull(); in updateRecords_withAddedRoute_throws_routeDoesNotGetAdded()
249 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_canAccessOwnRoute()
271 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_canAccessOwnRoute()
299 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_canAccessOwnRoute()
DExerciseRouteReadAllFeatureOffTest.java81 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_canNotAccessOtherAppRoute()
96 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
112 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_canNotAccessOtherAppRoute()
128 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
151 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_canNotAccessOtherAppRoute()
174 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in getChangelogs_canAccessOwnRoute()
DReadExerciseRoutePermissionTest.java82 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOtherAppRoute()
102 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_canAccessOtherAppRoute()
127 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in getChangelogs_canAccessOtherAppRoute()
DExerciseRouteManageHealthDataTest.java82 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_canNotAccessOtherAppRoute()
102 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_canNotAccessOtherAppRoute()
127 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_canNotAccessOtherAppRoute()
DExerciseRouteTestHelper.java87 return getExerciseSession(metadata, startTime, getRoute(startTime)); in getExerciseSessionWithRoute()
114 static ExerciseRoute getRoute(Instant startTime) { in getRoute() method in ExerciseRouteTestHelper
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DTransactionManagerExerciseRoutesTest.java113 assertThat(idToSessionMap.get(fooUuid).getRoute()).isNull(); in readRecordsByIds_doesNotReturnRoutesOfOtherApps()
114 assertThat(idToSessionMap.get(barUuid).getRoute()).isNull(); in readRecordsByIds_doesNotReturnRoutesOfOtherApps()
115 assertThat(idToSessionMap.get(ownUuid).getRoute()).isEqualTo(ownSession.getRoute()); in readRecordsByIds_doesNotReturnRoutesOfOtherApps()
143 assertThat(returnedRecord.getRoute()).isNull(); in readRecordsByIds_unknownApp_doesNotReturnRoute()
168 assertThat(returnedRecord.getRoute()).isNull(); in readRecordsByIds_nullPackageName_doesNotReturnRoute()
193 assertThat(returnedRecord.getRoute()).isEqualTo(session.getRoute()); in readRecordsByIds_unknownApp_withReadRoutePermission_returnsRoute()
233 assertThat(idToSessionMap.get(fooUuid).getRoute()).isNull(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
234 assertThat(idToSessionMap.get(barUuid).getRoute()).isNull(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
235 assertThat(idToSessionMap.get(ownUuid).getRoute()).isEqualTo(ownSession.getRoute()); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
269 assertThat(returnedRecord.getRoute()).isNull(); in readRecordsAndPageToken_byFilters_unknownApp_doesNotReturnRoute()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseSessionInternalTest.java94 if (internal.getRoute() == null) { in assertFieldsAreEqual()
95 assertThat(external.getRoute()).isNull(); in assertFieldsAreEqual()
97 ExerciseRoute convertedRoute = internal.getRoute().toExternalRoute(); in assertFieldsAreEqual()
98 assertThat(external.getRoute().getRouteLocations()) in assertFieldsAreEqual()
100 assertThat(external.getRoute()).isEqualTo(convertedRoute); in assertFieldsAreEqual()
159 assertThat(internal.getRoute()).isEqualTo(internal2.getRoute()); in assertFieldsAreEqual()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DAudioSelectMenu.java71 } else if (audioState.getRoute() == itemRoute) { in initItem()
81 bluetoothButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH); in setAudioState()
82 speakerButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_SPEAKER); in setAudioState()
83 headsetButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_WIRED_HEADSET); in setAudioState()
84 earpieceButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_EARPIECE); in setAudioState()
/packages/apps/Dialer/java/com/android/incallui/speakerbuttonlogic/
DSpeakerButtonInfo.java51 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in SpeakerButtonInfo()
56 } else if ((audioState.getRoute() & CallAudioState.ROUTE_SPEAKER) in SpeakerButtonInfo()
61 } else if ((audioState.getRoute() & CallAudioState.ROUTE_WIRED_HEADSET) in SpeakerButtonInfo()
73 isChecked = audioState.getRoute() == CallAudioState.ROUTE_SPEAKER; in SpeakerButtonInfo()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSpeakerButtonController.java79 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in setAudioState()
83 } else if ((audioState.getRoute() & CallAudioState.ROUTE_SPEAKER) in setAudioState()
87 } else if ((audioState.getRoute() & CallAudioState.ROUTE_WIRED_HEADSET) in setAudioState()
97 isChecked = audioState.getRoute() == CallAudioState.ROUTE_SPEAKER; in setAudioState()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java85 int newRoute = callAudioState.getRoute(); // start out with existing route in onWiredHeadsetPluggedInChanged()
235 if (this.callAudioState.getRoute() == CallAudioState.ROUTE_SPEAKER) { in setSystemAudioState()
237 } else if (this.callAudioState.getRoute() == CallAudioState.ROUTE_EARPIECE in setSystemAudioState()
238 || this.callAudioState.getRoute() == CallAudioState.ROUTE_WIRED_HEADSET) { in setSystemAudioState()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseSessionRecord.java155 public ExerciseRoute getRoute() { in getRoute() method in ExerciseSessionRecord
202 && Objects.equals(getRoute(), that.getRoute()) in equals()
215 getRoute(), in hashCode()
453 if (getRoute() != null) { in toRecordInternal()
454 recordInternal.setRoute(getRoute().toRouteInternal()); in toRecordInternal()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallEndpointController.java134 if (requestedRoute == currentAudioState.getRoute()) { in isCurrentEndpointRequestedEndpoint()
294 if (state.getRoute() == CallAudioState.ROUTE_STREAMING) { in createAvailableCallEndpoints()
314 if (state.getRoute() == route && device.equals(activeDevice)) { in createAvailableCallEndpoints()
325 if (state.getRoute() == route) { in createAvailableCallEndpoints()
382 if (oldState.getRoute() != newState.getRoute()) { in isEndpointChanged()
385 if (newState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) { in isEndpointChanged()
DCallAudioRouteStateMachine.java1633 if ((initState.getRoute() & getCurrentCallSupportedRoutes()) == 0) { in initialize()
1635 " routes are: %d", initState.getRoute(), getCurrentCallSupportedRoutes()); in initialize()
1661 setInitialState(mRouteCodeToQuiescentState.get(initState.getRoute())); in initialize()
1848 mCurrentCallAudioState.getRoute(), in updateSystemMuteState()
1866 mIsMuted, mCurrentCallAudioState.getRoute(), mAvailableRoutes, in updateInternalCallAudioState()
2087 setSpeakerphoneOn(initState.getRoute() == CallAudioState.ROUTE_SPEAKER); in reinitialize()
2092 transitionTo(mRouteCodeToQuiescentState.get(initState.getRoute())); in reinitialize()
2101 if ((mAvailableRoutes & currentState.getRoute()) == 0) { in updateRouteForForegroundCall()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DExerciseRouteDisabledFeatureTest.java78 assertThat(insertedRecord.getRoute()).isNotNull(); in testReadRoute_insertAndRead_routeIsNotAvailable()
85 assertThat(readRecord.getRoute()).isNull(); in testReadRoute_insertAndRead_routeIsNotAvailable()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppCreateButton.kt30 import com.android.settings.spa.app.appinfo.AppInfoSettingsProvider.getRoute
69 navController.navigate(getRoute(app.packageName, cloneBackend.cloneUserId), in createButton()
DAppInfoSettings.kt89 fun getRoute(packageName: String, userId: Int): String = "$name/$packageName/$userId" in <lambda>() method
106 context.startSpaActivity(getRoute(packageName, UserHandle.getUserId(uid))) in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/network/
DSimOnboardingPageProvider.kt75 override val onClick = navigator(getRoute(-1)) in buildInjectEntry()
84 fun getRoute( in getRoute() method
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseSessionRecordTest.java110 assertThat(record.getRoute()).isNull(); in testExerciseSession_buildSession_buildCorrectObject()
179 assertThat(record.getRoute()).isEqualTo(route); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
210 assertThat(insertedRecord.getRoute()).isNotNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
219 assertThat(insertedRecord.getRoute()).isNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
368 assertThat(readRecord.getRoute()).isEqualTo(insertedRecord.getRoute()); in testReadById_insertAndReadByIdOne_recordsAreEqual()
884 ExerciseRoute route = record.getRoute(); in assertRoute()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeInCallUI.java182 switch (cas.getRoute()) { in updateCallAudioState()
197 routeText = "unknown: " + cas.getRoute(); in updateCallAudioState()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DExerciseSessionRecordHelper.java206 if (record.getRoute() != null) { in getChildTableUpsertRequests()
208 ExerciseRouteRecordHelper.getRouteUpsertRequests(record.getRoute())); in getChildTableUpsertRequests()
345 if (session.getRoute() != null && !isExerciseRouteFeatureEnabled()) { in checkRecordOperationsAreEnabled()
355 if (session.getRoute() != null) { in getRequiredExtraWritePermissions()

123