Home
last modified time | relevance | path

Searched refs:getRoute (Results 1 – 25 of 54) 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;
80 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withRoute_routeGetsInserted()
96 assertThat(records.get(0).getRoute()).isNull(); in insertRecords_withClientId_withoutRoute_routeGetsDeleted()
112 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withUpdatedRoute_routeGetsUpdated()
128 assertThat(records.get(0).getRoute()).isEqualTo(updatedSessionWithRoute.getRoute()); in insertRecords_withClientId_withAddedRoute_routeGetsInserted()
145 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withHigherVersionId_routeGetsUpdated()
162 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithUpdatedRoute.getRoute()); in insertRecords_withClientId_withSameVersionId_routeGetsUpdated()
180 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withClientId_withLowerVersionId_routeDoesNotGetUpdated()
196 assertThat(records.get(0).getRoute()).isNull(); in updateRecords_withoutRoute_routeGetsDeleted()
213 assertThat(records.get(0).getRoute()).isEqualTo(updatedSessionWithRoute.getRoute()); in updateRecords_withRoute_routeGetsInserted()
[all …]
DReadExerciseRoutesPermissionTest.java79 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOtherAppRoute()
94 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
117 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()) in readRecords_usingFilters_mixedOwnAndOtherAppSession()
118 .isEqualTo(otherAppSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
120 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
136 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_canAccessOtherAppRoute()
152 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
177 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()) in readRecords_usingIds_mixedOwnAndOtherAppSession()
178 .isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
180 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
[all …]
DExerciseRouteReadTest.java82 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_cannotAccessOtherAppRoute()
97 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
120 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
122 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
138 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_cannotAccessOtherAppRoute()
154 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
179 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingIds_mixedOwnAndOtherAppSession()
181 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
203 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_cannotAccessOtherAppRoute()
225 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in getChangelogs_canAccessOwnRoute()
[all …]
DExerciseRouteBackgroundReadTest.java109 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_cannotAccessOtherAppRoute()
124 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOwnRoute()
148 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
150 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingFilters_mixedOwnAndOtherAppSession()
166 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_cannotAccessOtherAppRoute()
183 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingIds_canAccessOwnRoute()
208 assertThat(idToRecordMap.get(otherAppSessionId).getRoute()).isNull(); in readRecords_usingIds_mixedOwnAndOtherAppSession()
210 assertThat(idToRecordMap.get(ownSessionId).getRoute()).isEqualTo(ownSession.getRoute()); in readRecords_usingIds_mixedOwnAndOtherAppSession()
233 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_cannotAccessOtherAppRoute()
256 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in getChangelogs_canAccessOwnRoute()
[all …]
DExerciseRouteNoReadWritePermissionTest.java108 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withSameClientId_withoutRoute_routeDoesNotGetDeleted()
135 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in insertRecords_withSameClientId_updatedRoute_throws_routeDoesNotGetUpdated()
160 assertThat(records.get(0).getRoute()).isNull(); in insertRecords_withSameClientId_addedRoute_throws_routeDoesNotGetAdded()
178 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in updateRecords_withoutRoute_routeDoesNotGetDeleted()
203 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in updateRecords_withUpdatedRoute_throws_routeDoesNotGetUpdated()
229 assertThat(records.get(0).getRoute()).isNull(); in updateRecords_withAddedRoute_throws_routeDoesNotGetAdded()
250 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_canAccessOwnRoute()
272 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_canAccessOwnRoute()
300 assertThat(records.get(0).getRoute()).isNull(); in getChangelogs_canAccessOwnRoute()
DReadExerciseRoutePermissionTest.java83 assertThat(records.get(0).getRoute()).isEqualTo(sessionWithRoute.getRoute()); in readRecords_usingFilters_canAccessOtherAppRoute()
103 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in readRecords_usingIds_canAccessOtherAppRoute()
128 assertThat(records.get(0).getRoute()).isEqualTo(otherAppSession.getRoute()); in getChangelogs_canAccessOtherAppRoute()
DExerciseRouteManageHealthDataTest.java83 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingFilters_canNotAccessOtherAppRoute()
103 assertThat(records.get(0).getRoute()).isNull(); in readRecords_usingIds_canNotAccessOtherAppRoute()
128 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/android/healthconnect/internal/datatypes/
DExerciseSessionInternalTest.java97 if (internal.getRoute() == null) { in assertFieldsAreEqual()
98 assertThat(external.getRoute()).isNull(); in assertFieldsAreEqual()
100 ExerciseRoute convertedRoute = internal.getRoute().toExternalRoute(); in assertFieldsAreEqual()
101 assertThat(external.getRoute().getRouteLocations()) in assertFieldsAreEqual()
103 assertThat(external.getRoute()).isEqualTo(convertedRoute); in assertFieldsAreEqual()
162 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/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/fitness/
DFitnessRecordReadHelperTest.java716 assertThat(idToSessionMap.get(fooUuid).getRoute()).isNull(); in readRecordsByIds_onlyWriteRoutePermission_doesNotReturnRoutesOfOtherApps()
717 assertThat(idToSessionMap.get(barUuid).getRoute()).isNull(); in readRecordsByIds_onlyWriteRoutePermission_doesNotReturnRoutesOfOtherApps()
718 assertThat(idToSessionMap.get(ownUuid).getRoute()).isEqualTo(ownSession.getRoute()); in readRecordsByIds_onlyWriteRoutePermission_doesNotReturnRoutesOfOtherApps()
747 assertThat(returnedRecord.getRoute()).isNull(); in readRecordsByIds_unknownApp_doesNotReturnRoute()
772 assertThat(returnedRecord.getRoute()).isEqualTo(session.getRoute()); in readRecordsByIds_unknownApp_withReadRoutePermission_returnsRoute()
816 assertThat(idToSessionMap.get(fooUuid).getRoute()).isNull(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
817 assertThat(idToSessionMap.get(barUuid).getRoute()).isNull(); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
818 assertThat(idToSessionMap.get(ownUuid).getRoute()).isEqualTo(ownSession.getRoute()); in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
856 assertThat(returnedRecord.getRoute()).isNull(); in readRecordsAndPageToken_byFilters_unknownApp_doesNotReturnRoute()
893 assertThat(returnedRecord.getRoute()).isEqualTo(session.getRoute()); in readRecordsAndPageToken_byFilters_withReadRoutePermission_returnsRoute()
/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.java136 if (requestedRoute == currentAudioState.getRoute()) { in isCurrentEndpointRequestedEndpoint()
296 if (state.getRoute() == CallAudioState.ROUTE_STREAMING) { in createAvailableCallEndpoints()
316 if (state.getRoute() == route && device.equals(activeDevice)) { in createAvailableCallEndpoints()
327 if (state.getRoute() == route) { in createAvailableCallEndpoints()
384 if (oldState.getRoute() != newState.getRoute()) { in isEndpointChanged()
387 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()
1852 mCurrentCallAudioState.getRoute(), in updateSystemMuteState()
1870 mIsMuted, mCurrentCallAudioState.getRoute(), mAvailableRoutes, in updateInternalCallAudioState()
2091 setSpeakerphoneOn(initState.getRoute() == CallAudioState.ROUTE_SPEAKER); in reinitialize()
2096 transitionTo(mRouteCodeToQuiescentState.get(initState.getRoute())); in reinitialize()
2105 if ((mAvailableRoutes & currentState.getRoute()) == 0) { in updateRouteForForegroundCall()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditor.java65 String route = ApnEditPageProvider.INSTANCE.getRoute(EDIT_URL, uri, subId); in maybeRedirectToNewPage()
72 String route = ApnEditPageProvider.INSTANCE.getRoute( in maybeRedirectToNewPage()
/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.kt91 fun getRoute(packageName: String, userId: Int): String = "$name/$packageName/$userId" in <lambda>() method
108 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/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/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseSessionRecordTest.java113 assertThat(record.getRoute()).isNull(); in testExerciseSession_buildSession_buildCorrectObject()
182 assertThat(record.getRoute()).isEqualTo(route); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
213 assertThat(insertedRecord.getRoute()).isNotNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
222 assertThat(insertedRecord.getRoute()).isNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
371 assertThat(readRecord.getRoute()).isEqualTo(insertedRecord.getRoute()); in testRead_insertAndReadByIdOne_recordsAreEqual()
910 ExerciseRoute route = record.getRoute(); in assertRoute()
/packages/apps/Dialer/java/com/android/incallui/audioroute/
DAudioRouteSelectorDialogFragment.java106 (audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) in onCreateView()
161 } else if (audioState.getRoute() == itemRoute) { in initItem()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetailsTop.java41 String route = AppInfoSettingsProvider.INSTANCE.getRoute(packageName, getUserId()); in onCreate()

123