/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | BmessageParser.java | 96 for (Property prop : props) { in expected() 100 sb.append(prop); in expected() 108 Property prop; in parse() local 116 prop = mParser.next(); in parse() 117 if (!prop.equals(BEGIN_BMSG)) { in parse() 121 prop = parseProperties(); in parse() 123 while (prop.equals(BEGIN_VCARD)) { in parse() 127 prop = extractVcard(vcard); in parse() 133 if (!prop.equals(BEGIN_BENV)) { in parse() 137 prop = parseEnvelope(1); in parse() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | UserHalHelperTest.java | 259 int prop = 1; in testCreatePropRequest_withType() local 263 VehiclePropValue propRequest = UserHalHelper.createPropRequest(prop, requestId, in testCreatePropRequest_withType() 270 assertThat(propRequest.prop).isEqualTo(prop); in testCreatePropRequest_withType() 276 int prop = 1; in testCreatePropRequest() local 279 VehiclePropValue propRequest = UserHalHelper.createPropRequest(prop, requestId); in testCreatePropRequest() 285 assertThat(propRequest.prop).isEqualTo(prop); in testCreatePropRequest() 351 VehiclePropValue prop = new VehiclePropValue(); in testAddUserInfo_nullCurrentUser() local 353 assertThrows(NullPointerException.class, () -> UserHalHelper.addUserInfo(prop, null)); in testAddUserInfo_nullCurrentUser() 474 assertWithMessage("wrong prop on %s", propValue).that(propValue.prop) in testUserIdentificationGetRequestToVehiclePropValue_ok() 488 VehiclePropValue prop = new VehiclePropValue(); in testToUserIdentificationResponse_invalidPropType() local [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 212 for (CarPropertyConfig prop : mCarPropertyConfigs) { in onCreateView() 213 int propId = prop.getPropertyId(); in onCreateView() 216 Log.d(TAG, prop.toString()); in onCreateView() 221 configureOutsideTemp(mHvacView, prop); in onCreateView() 224 configureDualOn(mHvacView, prop); in onCreateView() 227 configureAcOn(mHvacView, prop); in onCreateView() 230 configureFanPosition(mHvacView, prop); in onCreateView() 233 configureFanSpeed(mHvacView, prop); in onCreateView() 236 configureTempSetpoint(mHvacView, prop); in onCreateView() 239 configureAutoModeOn(mHvacView, prop); in onCreateView() [all …]
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | UserHalHelper.java | 228 public static VehiclePropValue createPropRequest(int prop, int requestId, int requestType) { in createPropRequest() argument 229 VehiclePropValue propRequest = createPropRequest(prop, requestId); in createPropRequest() 239 public static VehiclePropValue createPropRequest(int prop, int requestId) { in createPropRequest() argument 241 propRequest.prop = prop; in createPropRequest() 334 @NonNull VehiclePropValue prop) { in toUserIdentificationResponse() 335 Objects.requireNonNull(prop, "prop cannot be null"); in toUserIdentificationResponse() 336 checkArgument(prop.prop == USER_IDENTIFICATION_ASSOCIATION_PROPERTY, in toUserIdentificationResponse() 337 "invalid prop on %s", prop); in toUserIdentificationResponse() 339 assertMinimumSize(prop, 4); in toUserIdentificationResponse() 341 int requestId = prop.value.int32Values.get(0); in toUserIdentificationResponse() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | DiagnosticHalService.java | 137 .append(toHexString(vp.prop)) in takeProperties() 157 switch (propConfig.prop) { in getTokenForProperty() 159 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty() 160 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty() 165 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty() 166 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty() 171 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty() 172 return propConfig.prop; in getTokenForProperty() 174 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty() 180 "clearing of freeze frames. assuming it does not.", propConfig.prop)); in getTokenForProperty() [all …]
|
D | PropertyHalService.java | 152 int mgrPropId = halToManagerPropId(p.prop); in getPropertyList() 232 public void setProperty(CarPropertyValue prop) { in setProperty() argument 233 int halPropId = managerToHalPropId(prop.getPropertyId()); in setProperty() 236 + toHexString(prop.getPropertyId())); in setProperty() 244 propConfig = mHalPropIdToVehiclePropConfig.get(prop.getPropertyId()); in setProperty() 247 halProp = toMixedVehiclePropValue(prop, halPropId, configArray); in setProperty() 249 halProp = toVehiclePropValue(prop, halPropId); in setProperty() 339 if (mPropIds.isSupportedProperty(p.prop)) { in takeProperties() 341 mHalPropIdToVehiclePropConfig.put(p.prop, p); in takeProperties() 344 Log.d(TAG, "takeSupportedProperties: " + toHexString(p.prop)); in takeProperties() [all …]
|
D | VehicleHal.java | 180 Log.i(CarLog.TAG_HAL, "Add config for prop:" + Integer.toHexString(p.prop) in fetchAllPropConfigs() 183 mAllProperties.put(p.prop, p); in fetchAllPropConfigs() 213 for (int prop : supportedProps) { in init() 214 VehiclePropConfig config = mAllProperties.get(prop); in init() 218 mPropertyHandlers.append(prop, service); in init() 418 propValue.prop = propertyId; in get() 506 writer.println(String.format("property 0x%x", config.prop)); in dumpProperties() 516 HalServiceBase service = mPropertyHandlers.get(v.prop); in onPropertyEvent() 519 + toHexString(v.prop)); in onPropertyEvent() 524 VehiclePropertyEventInfo info = mEventLog.get(v.prop); in onPropertyEvent() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarPropertyManagerTest.java | 434 firstFakeValueDriveSide.prop = CUSTOM_SEAT_INT_PROP_1; in testOnChangeEventWithSameAreaId() 439 secFakeValueDriveSide.prop = CUSTOM_SEAT_INT_PROP_1; in testOnChangeEventWithSameAreaId() 464 fakeValueDriveSide.prop = CUSTOM_SEAT_INT_PROP_2; in testOnChangeEventWithDifferentAreaId() 470 fakeValuePsgSide.prop = CUSTOM_SEAT_INT_PROP_2; in testOnChangeEventWithDifferentAreaId() 488 userHalPropertiesTest("getProperty()", (prop) -> in testUserHal_getProperty() 489 mManager.getProperty(prop, /* areaId= */ 0)); in testUserHal_getProperty() 494 userHalPropertiesTest("getBooleanProperty()", (prop) -> in testUserHal_getBooleanProperty() 495 mManager.getBooleanProperty(prop, /* areaId= */ 0)); in testUserHal_getBooleanProperty() 500 userHalPropertiesTest("getIntProperty()", (prop) -> in testUserHal_getIntProperty() 501 mManager.getIntProperty(prop, /* areaId= */ 0)); in testUserHal_getIntProperty() [all …]
|
D | CarVendorExtensionManagerTest.java | 300 if (propValue.prop == CUSTOM_BYTES_PROP_ID_1) { in set() 304 mValues.put(propValue.prop, propValue); in set() 310 if (!isVendorProperty(requestedPropValue.prop)) { in get() 315 result.prop = requestedPropValue.prop; in get() 318 if (requestedPropValue.prop == CUSTOM_BYTES_PROP_ID_2 && mBytes != null) { in get() 325 VehiclePropValue existingValue = mValues.get(requestedPropValue.prop); in get() 335 private boolean isVendorProperty(int prop) { in isVendorProperty() argument 336 return VehiclePropertyGroup.VENDOR == (prop & VehiclePropertyGroup.VENDOR); in isVendorProperty()
|
/packages/services/Car/tools/emulator/ |
D | vhal_emulator_test.py | 170 self._log.debug(" Getting config for propId=0x%X", cfg.prop) 171 self._vhal.getConfig(cfg.prop) 177 cfg.prop, str(cfg), str(rxMsg.config)) 183 for prop in self._badProps: 184 self._log.debug(" Testing bad propId=0x%X", prop) 185 self._vhal.getConfig(prop) 191 cfg.prop, str(rxMsg.config)) 209 if cfg.prop in self._skipProps: 211 self._log.warning(" Skipping propId=0x%X", cfg.prop) 225 self._log.debug(" Testing propId=0x%X, area=0x%X", cfg.prop, area) [all …]
|
D | vhal_emulator.py | 170 def getConfig(self, prop): argument 176 propGet = cmd.prop.add() 177 propGet.prop = prop 188 def getProperty(self, prop, area_id): argument 194 propGet = cmd.prop.add() 195 propGet.prop = prop 207 def setProperty(self, prop, area_id, value, status=VehicleHalProto_pb2.AVAILABLE): argument 218 propValue.prop = prop 224 valType = self._propToType[prop] 226 raise ValueError('propId is invalid:', prop) [all …]
|
D | user_action_generator.py | 124 def _adjustContinuousProperty(self, prop, begin, end, listener): argument 129 config = self.configs[prop] 140 listener.handle(prop, area, value, propDesc[prop]) 143 def _setProperty(self, prop, value, listener): argument 147 config = self.configs[prop] 149 listener.handle(prop, area, value, propDesc[prop])
|
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 70 mPropertyHandlerMap.put(config.prop, handler); in addProperty() 71 mConfigs.put(config.prop, config); in addProperty() 97 List<IVehicleCallback> callbacks = mSubscribers.get(value.prop); in injectEvent() 98 assertNotNull("Injecting event failed for property: " + value.prop in injectEvent() 103 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(value.prop); in injectEvent() 145 for (Integer prop : props) { in getPropConfigs() 146 VehiclePropConfig config = mConfigs.get(prop); in getPropConfigs() 158 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(requestedPropValue.prop); in get() 168 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propValue.prop); in set() 277 assertEquals(mConfig.prop, value.prop); in onPropertySet() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 322 for (int prop : propertyIds) { in unregisterCallback() 323 doUnregisterListenerLocked(callback, prop); in unregisterCallback() 504 public boolean getBooleanProperty(int prop, int area) { in getBooleanProperty() argument 505 checkSupportedProperty(prop); in getBooleanProperty() 506 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); in getBooleanProperty() 519 public float getFloatProperty(int prop, int area) { in getFloatProperty() argument 520 checkSupportedProperty(prop); in getFloatProperty() 521 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); in getFloatProperty() 533 public int getIntProperty(int prop, int area) { in getIntProperty() argument 534 checkSupportedProperty(prop); in getIntProperty() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 15 ICalendar.Property prop = new ICalendar.Property("prop1", "value1"); in testAddParameter() local 16 assertEquals(0, prop.getParameterNames().size()); in testAddParameter() 17 prop.addParameter(new ICalendar.Parameter("param1", "foo")); in testAddParameter() 18 assertEquals(1, prop.getParameterNames().size()); in testAddParameter() 19 prop.addParameter(new ICalendar.Parameter("param1", "bar")); in testAddParameter() 20 assertEquals(1, prop.getParameterNames().size()); in testAddParameter() 21 prop.addParameter(new ICalendar.Parameter("param2", "baaz")); in testAddParameter() 22 assertEquals(2, prop.getParameterNames().size()); in testAddParameter() 23 prop.addParameter(new ICalendar.Parameter("param1", "quux")); in testAddParameter() 24 assertEquals(2, prop.getParameterNames().size()); in testAddParameter() [all …]
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalJsonReader.java | 72 int prop = rawEvent.getInt(JSON_FIELD_PROP); in getEvent() local 76 switch (prop & VehiclePropertyType.MASK) { in getEvent() 78 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 81 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 84 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 87 return new CarPropertyValue<>(prop, areaId, in getEvent() 91 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 96 VehiclePropValueBuilder builder = VehiclePropValueBuilder.newBuilder(prop); in getEvent() 106 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 110 + toHexString(prop & VehiclePropertyType.MASK) in getEvent()
|
/packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | CarArgumentMatchers.java | 56 public static VehiclePropValue isProperty(int prop) { in isProperty() argument 57 return argThat(new PropertyIdMatcher(prop)); in isProperty() 63 public static VehiclePropValue isPropertyWithValues(int prop, int...values) { in isPropertyWithValues() argument 64 return argThat(new PropertyIdMatcher(prop, values)); in isPropertyWithValues() 128 private PropertyIdMatcher(int prop) { in PropertyIdMatcher() argument 129 this(prop, null); in PropertyIdMatcher() 132 private PropertyIdMatcher(int prop, int[] values) { in PropertyIdMatcher() argument 133 mProp = prop; in PropertyIdMatcher() 140 if (argument.prop != mProp) { in matches()
|
/packages/services/Car/surround_view/service-impl/ |
D | AnimationModuleTests.cpp | 252 .prop = 0x0200 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 266 .prop = 0x0200 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 280 .prop = 0x0201 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 294 .prop = 0x0201 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 308 .prop = 0x0300 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 322 .prop = 0x0300 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 336 .prop = 0x0301 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 350 .prop = 0x0301 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 364 .prop = 0x0400 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() 378 .prop = 0x0400 | VehiclePropertyGroup::SYSTEM | VehiclePropertyType::INT32 | in TEST() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MultiValueUpdateListener.java | 37 FloatProp prop = mAllProperties.get(i); in onAnimationUpdate() local 38 float time = Math.max(0, currentPlayTime - prop.mDelay); in onAnimationUpdate() 39 float newPercent = Math.min(1f, time / prop.mDuration); in onAnimationUpdate() 40 newPercent = prop.mInterpolator.getInterpolation(newPercent); in onAnimationUpdate() 41 prop.value = prop.mEnd * newPercent + prop.mStart * (1 - newPercent); in onAnimationUpdate()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 747 VehiclePropValue prop = propCaptor.getValue(); in testPostSwitchResponse_HalCalledWithCorrectProp() local 748 assertHalSetSwitchUserRequest(prop, SwitchUserMessageType.ANDROID_POST_SWITCH, mUser10); in testPostSwitchResponse_HalCalledWithCorrectProp() 861 VehiclePropValue prop = propCaptor.getValue(); in testLegacyUserSwitch_HalCalledWithCorrectProp() local 862 assertHalSetSwitchUserRequest(prop, SwitchUserMessageType.LEGACY_ANDROID_SWITCH, in testLegacyUserSwitch_HalCalledWithCorrectProp() 1078 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testGetUserAssociation_invalidResponse() 1100 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testGetUserAssociation_wrongNumberOfAssociationsOnResponse() 1118 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testGetUserAssociation_typesOnResponseMismatchTypesOnRequest() 1134 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testGetUserAssociation_requestIdMismatch() 1150 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testGetUserAssociation_ok() 1267 propResponse.prop = USER_IDENTIFICATION_ASSOCIATION; in testSetUserAssociation_responseWithWrongRequestId() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/test/util/ |
D | VehicleHalTestingHelper.java | 30 public static VehiclePropConfig newConfig(int prop) { in newConfig() argument 32 config.prop = prop; in newConfig() 41 public static VehiclePropConfig newSubscribableConfig(int prop) { in newSubscribableConfig() argument 42 VehiclePropConfig config = newConfig(prop); in newSubscribableConfig()
|
/packages/services/Car/watchdog/server/sysprop/api/ |
D | libwatchdog_properties-current.txt | 3 prop { 9 prop { 15 prop { 21 prop { 27 prop {
|
D | libwatchdog_properties-latest.txt | 3 prop { 9 prop { 15 prop { 21 prop { 27 prop {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 83 DeviceProperties prop = getDeviceProperties(device); in handleMessage() local 84 sendUuidIntent(device, prop); in handleMessage() 175 DeviceProperties prop = mDevices.get(Utils.getAddressStringFromByte(address)); in getDevice() local 176 if (prop == null) { in getDevice() 179 return prop.getDevice(); in getDevice() 185 DeviceProperties prop = new DeviceProperties(); in addDeviceProperties() local 186 prop.mDevice = sAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties() 187 prop.mAddress = address; in addDeviceProperties() 189 DeviceProperties pv = mDevices.put(key, prop); in addDeviceProperties() 197 return prop; in addDeviceProperties() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarPropertyService.java | 90 public CarPropertyValue getProperty(int prop, int zone) throws RemoteException { in getProperty() argument 91 return mValues.get(PropKey.of(prop, zone)); in getProperty() 95 public void setProperty(CarPropertyValue prop, ICarPropertyEventListener listener) in setProperty() argument 97 mValues.put(PropKey.of(prop), prop); in setProperty() local 98 mValuesSet.add(prop); in setProperty() 99 sendEvent(prop); in setProperty()
|