Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java80 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingNonMovingState()
90 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_NoSpeedRange()
101 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_SingleSpeedRange()
112 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, slow.getActiveRestrictions()); in testParsingMovingState_MultiSpeedRange()
116 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, fast.getActiveRestrictions()); in testParsingMovingState_MultiSpeedRange()
146 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, moving.getActiveRestrictions()); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
151 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
156 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, parked.getActiveRestrictions()); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
DCarDrivingRestrictionsTest.java142 assertThat(restrictions.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_MOVING); in testDrivingStateChange()
158 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChange()
243 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChangeForMalformedInputs()
305 + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarUxRestrictionsManagerTest.java69 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in getRestrictions_noRestrictionsSet_noRestrictionsPresent()
77 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in setUxRestrictions_restrictionsRegistered()
87 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in clearUxRestrictions_restrictionsCleared()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java102 assertThat(parkedRestrictions.getActiveRestrictions()) in testUnspecifiedDrivingStateUsesDefaultRestriction()
107 assertThat(movingRestrictions.getActiveRestrictions()) in testUnspecifiedDrivingStateUsesDefaultRestriction()
555 assertThat(restrictions.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_NO_VIDEO); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
580 assertThat(baseline.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_NO_VIDEO); in testSetUxRestrictions_PassengerMode()
594 assertThat(passenger.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_NO_VIDEO); in testGetUxRestrictions_WithUndefinedMode_FallbackToBaseline()
613 assertThat(passenger.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_NO_VIDEO); in testPassengerMode_GetMovingWhenNotDefined_FallbackToBaseline()
638 assertThat(baseline.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_NO_VIDEO); in testPassengerMode_GetSpeedOutsideDefinedRange_FallbackToBaseline()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictions.java254 public int getActiveRestrictions() { in getActiveRestrictions() method in CarUxRestrictions
352 mActiveRestrictions = uxRestrictions.getActiveRestrictions(); in CarUxRestrictions()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java164 + Integer.toHexString(restrictions.getActiveRestrictions()) in updateUxRText()
166 + Integer.toBinaryString(restrictions.getActiveRestrictions())); in updateUxRText()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java833 mCurrentUxRestrictions.get(port).getActiveRestrictions(), in handleDispatchUxRestrictionsLocked()
834 uxRestrictions.getActiveRestrictions())); in handleDispatchUxRestrictionsLocked()
1094 oldRestrictions.getActiveRestrictions(), newRestrictions.getActiveRestrictions(), in addTransitionLogLocked()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java258 && (mCarUxRestrictions.getActiveRestrictions() in getItemCount()
413 return mCarUxRestrictions != null && (mCarUxRestrictions.getActiveRestrictions() in shouldRestrictMessagePreview()
DCarHeadsUpNotificationManager.java568 (restrictions.getActiveRestrictions() in onUxRestrictionsChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java93 return (carUxRestrictions.getActiveRestrictions() in isNoSetup()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java157 return (uxr == null) || ((uxr.getActiveRestrictions() & restrictionFlags) != 0); in isRestricted()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java380 when(mCarUxRestrictionsMock.getActiveRestrictions()).thenReturn( in onBindViewHolder_messageWithRestriction_shouldNotThrowError()
414 when(mCarUxRestrictionsMock.getActiveRestrictions()).thenReturn( in onBindViewHolder_messageInGroupWithRestriction_shouldNotThrowError()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java137 (restrictions.getActiveRestrictions()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiRecyclerView.java524 if ((carUxRestrictions.getActiveRestrictions() in onRestrictionsChanged()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1389 + " : " + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
/packages/services/Car/car-lib/api/
Dcurrent.txt378 …ndroid.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo public int getActiveRestrictions();