Home
last modified time | relevance | path

Searched refs:getActiveRestrictions (Results 1 – 17 of 17) 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.java141 assertThat(restrictions.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_MOVING); in testDrivingStateChange()
157 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChange()
232 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChangeForMalformedInputs()
293 + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java99 assertEquals(parkedRestrictions.getActiveRestrictions(), UX_RESTRICTIONS_FULLY_RESTRICTED); in testUnspecifiedDrivingStateUsesDefaultRestriction()
103 assertEquals(movingRestrictions.getActiveRestrictions(), UX_RESTRICTIONS_FULLY_RESTRICTED); in testUnspecifiedDrivingStateUsesDefaultRestriction()
580 assertEquals(UX_RESTRICTIONS_NO_VIDEO, restrictions.getActiveRestrictions()); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
604 assertEquals(UX_RESTRICTIONS_NO_VIDEO, baseline.getActiveRestrictions()); in testSetUxRestrictions_PassengerMode()
618 assertEquals(UX_RESTRICTIONS_NO_VIDEO, passenger.getActiveRestrictions()); in testGetUxRestrictions_WithUndefinedMode_FallbackToBaseline()
637 assertEquals(UX_RESTRICTIONS_NO_VIDEO, passenger.getActiveRestrictions()); in testPassengerMode_GetMovingWhenNotDefined_FallbackToBaseline()
662 assertEquals(UX_RESTRICTIONS_NO_VIDEO, baseline.getActiveRestrictions()); 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/service/src/com/android/car/
DCarUxRestrictionsManagerService.java831 mCurrentUxRestrictions.get(port).getActiveRestrictions(), in handleDispatchUxRestrictions()
832 uxRestrictions.getActiveRestrictions())); in handleDispatchUxRestrictions()
1054 oldRestrictions.getActiveRestrictions(), newRestrictions.getActiveRestrictions(), in addTransitionLog()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java140 + Integer.toHexString(restrictions.getActiveRestrictions()) in updateUxRText()
142 + Integer.toBinaryString(restrictions.getActiveRestrictions())); in updateUxRText()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java397 && (mCarUxRestrictions.getActiveRestrictions() in getItemCount()
541 return mCarUxRestrictions != null && (mCarUxRestrictions.getActiveRestrictions() in shouldRestrictMessagePreview()
DCarHeadsUpNotificationManager.java764 (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-apps-common/src/com/android/car/apps/common/
DCarUxRestrictionsUtil.java136 return (uxr == null) || ((uxr.getActiveRestrictions() & restrictionFlags) != 0); in isRestricted()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java135 return (uxr == null) || ((uxr.getActiveRestrictions() & restrictionFlags) != 0); in isRestricted()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java364 when(mCarUxRestrictionsMock.getActiveRestrictions()).thenReturn( in onBindViewHolder_messageWithRestriction_shouldNotThrowError()
398 when(mCarUxRestrictionsMock.getActiveRestrictions()).thenReturn( in onBindViewHolder_messageInGroupWithRestriction_shouldNotThrowError()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiRecyclerView.java386 if ((carUxRestrictions.getActiveRestrictions() in onRestrictionsChanged()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java137 (restrictions.getActiveRestrictions()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedRecyclerView.java311 if ((carUxRestrictions.getActiveRestrictions() in updateCarUxRestrictions()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1352 + " : " + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
/packages/services/Car/car-lib/api/
Dcurrent.txt299 …ndroid.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo public int getActiveRestrictions();