Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DBmessageParser.java96 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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java197 for(CarPropertyConfig prop : props) { in onCreateView()
198 int propId = prop.getPropertyId(); in onCreateView()
201 Log.d(TAG, prop.toString()); in onCreateView()
206 configureOutsideTemp(v, prop); in onCreateView()
209 configureDualOn(v, prop); in onCreateView()
212 configureAcOn(v, prop); in onCreateView()
215 configureFanPosition(v, prop); in onCreateView()
218 configureFanSpeed(v, prop); in onCreateView()
221 configureTempSetpoint(v, prop); in onCreateView()
224 configureAutoModeOn(v, prop); in onCreateView()
[all …]
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py136 self._log.debug(" Getting config for propId=%d", cfg.prop)
137 self._vhal.getConfig(cfg.prop)
143 cfg.prop, str(cfg), str(rxMsg.config))
149 for prop in self._badProps:
150 self._log.debug(" Testing bad propId=%d", prop)
151 self._vhal.getConfig(prop)
157 cfg.prop, str(rxMsg.config))
186 self._log.debug(" Testing propId=%d, area=%d", cfg.prop, area)
189 self._vhal.getProperty(cfg.prop, area)
197 cfg.prop, area)
[all …]
Dvhal_emulator.py147 def getConfig(self, prop): argument
153 propGet = cmd.prop.add()
154 propGet.prop = prop
165 def getProperty(self, prop, area_id): argument
171 propGet = cmd.prop.add()
172 propGet.prop = prop
184 def setProperty(self, prop, area_id, value): argument
194 propValue.prop = prop
199 valType = self._propToType[prop]
201 raise ValueError('propId is invalid:', prop)
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DPropertyHalServiceBase.java101 public void setProperty(CarPropertyValue prop) { in setProperty() argument
102 int halPropId = managerToHalPropId(prop.getPropertyId()); in setProperty()
105 + toHexString(prop.getPropertyId())); in setProperty()
107 VehiclePropValue halProp = toVehiclePropValue(prop, halPropId); in setProperty()
122 for (Integer prop : mProps.keySet()) { in init()
123 mVehicleHal.subscribeProperty(this, prop); in init()
133 for (Integer prop : mProps.keySet()) { in release()
134 mVehicleHal.unsubscribeProperty(this, prop); in release()
151 int mgrPropId = halToManagerPropId(p.prop); in takeSupportedProperties()
160 mProps.put(p.prop, config); in takeSupportedProperties()
[all …]
DDiagnosticHalService.java92 switch (propConfig.prop) { in getTokenForProperty()
94 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
95 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty()
100 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
101 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty()
106 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
107 return propConfig.prop; in getTokenForProperty()
109 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
110 return propConfig.prop; in getTokenForProperty()
163 final boolean isFreezeFrame = value.prop == VehicleProperty.OBD2_FREEZE_FRAME; in createCarDiagnosticEvent()
[all …]
DSensorHalService.java106 int sensor = mManagerToHalPropIdMap.getManagerPropId(halProperty.prop); in getTokenForProperty()
154 int property = v.prop; in createCarSensorEvent()
192 protected float fixSamplingRateForProperty(VehiclePropConfig prop, int carSensorManagerRate) { in fixSamplingRateForProperty() argument
193 switch (prop.changeMode) { in fixSamplingRateForProperty()
201 rate = prop.maxSampleRate; in fixSamplingRateForProperty()
212 if (rate > prop.maxSampleRate) { in fixSamplingRateForProperty()
213 rate = prop.maxSampleRate; in fixSamplingRateForProperty()
215 if (rate < prop.minSampleRate) { in fixSamplingRateForProperty()
216 rate = prop.minSampleRate; in fixSamplingRateForProperty()
DInfoHalService.java56 switch (p.prop) { in takeSupportedProperties()
58 readPropertyToBundle(p.prop, CarInfoManager.BASIC_INFO_KEY_MANUFACTURER); in takeSupportedProperties()
61 readPropertyToBundle(p.prop, CarInfoManager.BASIC_INFO_KEY_MODEL); in takeSupportedProperties()
64 readPropertyToBundle(p.prop, CarInfoManager.BASIC_INFO_KEY_MODEL_YEAR); in takeSupportedProperties()
73 private void readPropertyToBundle(int prop, String key) { in readPropertyToBundle() argument
76 value = mHal.get(String.class, prop); in readPropertyToBundle()
86 logUnexpectedEvent(v.prop); in handleHalEvents()
DVehicleHal.java213 mAllProperties.put(p.prop, p); in init()
227 mPropertyHandlers.append(p.prop, service); in init()
412 propValue.prop = propertyId; in get()
485 writer.println(String.format("property 0x%x", config.prop)); in dumpProperties()
495 HalServiceBase service = mPropertyHandlers.get(v.prop); in onPropertyEvent()
498 + toHexString(v.prop)); in onPropertyEvent()
503 VehiclePropertyEventInfo info = mEventLog.get(v.prop); in onPropertyEvent()
506 mEventLog.put(v.prop, info); in onPropertyEvent()
550 .append("Property:0x").append(toHexString(config.prop)) in dump()
629 mPropValue.prop = propId; in VehiclePropValueSetter()
[all …]
DSensorHalServiceBase.java65 + " 0x" + toHexString(halProperty.prop) + in takeSupportedProperties()
117 mHal.subscribeProperty(this, config.prop, fixSamplingRateForProperty(config, rate)); in requestSensorStart()
128 mHal.unsubscribeProperty(this, config.prop); in requestSensorStop()
142 return mHal.get(config.prop); in getCurrentSensorVehiclePropValue()
144 Log.e(TAG, "property not ready 0x" + toHexString(config.prop), e); in getCurrentSensorVehiclePropValue()
157 protected abstract float fixSamplingRateForProperty(VehiclePropConfig prop, in fixSamplingRateForProperty() argument
DHalClient.java76 public void unsubscribe(int prop) throws RemoteException { in unsubscribe() argument
77 mVehicle.unsubscribe(mInternalCallback, prop); in unsubscribe()
93 propValue.prop, propValue.areaId)); in setValue()
97 throw new PropertyTimeoutException(propValue.prop); in setValue()
103 + "code: %d", propValue.prop, propValue.areaId, status)); in setValue()
115 int propId = requestedPropValue.prop; in getValue()
DAudioHalService.java373 requestedStreamVolume.prop = VehicleProperty.AUDIO_VOLUME; in getStreamVolume()
575 if (AUDIO_STREAM_STATE == config.prop) { in init()
578 mVehicleHal.subscribeProperty(this, config.prop, 0, subsribeFlag); in init()
596 mVehicleHal.unsubscribeProperty(this, config.prop); in release()
606 switch (p.prop) { in takeSupportedProperties()
614 mProperties.put(p.prop, p); in takeSupportedProperties()
655 value.prop = AUDIO_PARAMETERS; in setAudioParameters()
672 requested.prop = AUDIO_PARAMETERS; in getAudioParameters()
691 switch (v.prop) { in dispatchEventToListener()
DCarPropertyUtils.java45 Class<?> clazz = getJavaClass(halValue.prop & VehiclePropertyType.MASK); in toCarPropertyValue()
68 vehicleProp.prop = halPropId; in toVehiclePropValue()
103 int areaType = getVehicleAreaType(p.prop & VehicleArea.MASK); in toCarPropertyConfig()
105 Class<?> clazz = getJavaClass(p.prop & VehiclePropertyType.MASK); in toCarPropertyConfig()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java68 mPropertyHandlerMap.put(config.prop, handler); in addProperty()
69 mConfigs.put(config.prop, config); in addProperty()
78 List<IVehicleCallback> callbacks = mSubscribers.get(value.prop); in injectEvent()
79 assertNotNull("Injecting event failed for property: " + value.prop in injectEvent()
113 for (Integer prop : props) { in getPropConfigs()
114 VehiclePropConfig config = mConfigs.get(prop); in getPropConfigs()
126 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(requestedPropValue.prop); in get()
136 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propValue.prop); in set()
236 assertEquals(mConfig.prop, value.prop); in onPropertySet()
243 assertEquals(mConfig.prop, value.prop); in onPropertyGet()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManagerBase.java172 public boolean getBooleanProperty(int prop, int area) throws CarNotConnectedException { in getBooleanProperty() argument
173 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); in getBooleanProperty()
183 public float getFloatProperty(int prop, int area) throws CarNotConnectedException { in getFloatProperty() argument
184 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); in getFloatProperty()
194 public int getIntProperty(int prop, int area) throws CarNotConnectedException { in getIntProperty() argument
195 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); in getIntProperty()
246 public void setBooleanProperty(int prop, int area, boolean val) in setBooleanProperty() argument
248 setProperty(Boolean.class, prop, area, val); in setBooleanProperty()
251 public void setFloatProperty(int prop, int area, float val) throws CarNotConnectedException { in setFloatProperty() argument
252 setProperty(Float.class, prop, area, val); in setFloatProperty()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java15 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/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java84 DeviceProperties prop = mDevices.get(Utils.getAddressStringFromByte(address)); in getDevice() local
85 if (prop == null) in getDevice()
87 return prop.getDevice(); in getDevice()
92 DeviceProperties prop = new DeviceProperties(); in addDeviceProperties() local
93 prop.mDevice = mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties()
94 prop.mAddress = address; in addDeviceProperties()
96 DeviceProperties pv = mDevices.put(key, prop); in addDeviceProperties()
103 if (device.getAddress().equals(deleteKey)) return prop; in addDeviceProperties()
109 return prop; in addDeviceProperties()
262 DeviceProperties prop = getDeviceProperties(device); in sendUuidIntent() local
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DLocalHvacPropertyService.java99 public CarPropertyValue getProperty(int prop, int zone) throws RemoteException {
100 return new CarPropertyValue(prop, zone, mProperties.get(new Pair(prop, zone)));
104 public void setProperty(CarPropertyValue prop) throws RemoteException {
105 mProperties.put(new Pair(prop.getPropertyId(), prop.getAreaId()), prop.getValue());
108 … new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, prop));
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarVendorExtensionManagerTest.java236 if (propValue.prop == CUSTOM_BYTES_PROP_ID_1) { in set()
240 mValues.put(propValue.prop, propValue); in set()
246 if (!isVendorProperty(requestedPropValue.prop)) { in get()
251 result.prop = requestedPropValue.prop; in get()
254 if (requestedPropValue.prop == CUSTOM_BYTES_PROP_ID_2 && mBytes != null) { in get()
260 VehiclePropValue existingValue = mValues.get(requestedPropValue.prop); in get()
270 private boolean isVendorProperty(int prop) { in isVendorProperty() argument
271 return VehiclePropertyGroup.VENDOR == (prop & VehiclePropertyGroup.VENDOR); in isVendorProperty()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java1030 public final String prop; field in BluetoothPbapVcardManager.VCardFilter.FilterBit
1034 FilterBit(int pos, String prop, boolean onlyCheckV21, boolean excludeForV21) { in FilterBit() argument
1036 this.prop = prop; in FilterBit()
1077 if (bit.prop.equals(currentProp)) { in apply()
1124 public final String prop; field in BluetoothPbapVcardManager.PropertySelector.PropertyMask
1126 PropertyMask(int pos, String prop) { in PropertyMask() argument
1128 this.prop = prop; in PropertyMask()
1148 private boolean checkprop(String vcard, String prop) { in checkprop() argument
1154 if (prop.equals(currentProp)) { in checkprop()
1155 Log.d(TAG, "bit.prop.equals current prop :" + prop); in checkprop()
[all …]
/packages/apps/Terminal/src/com/android/terminal/
DTerminalCallbacks.java33 public int setTermPropBoolean(int prop, boolean value) { in setTermPropBoolean() argument
37 public int setTermPropInt(int prop, int value) { in setTermPropInt() argument
41 public int setTermPropString(int prop, String value) { in setTermPropString() argument
45 public int setTermPropColor(int prop, int red, int green, int blue) { in setTermPropColor() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DStatusFragment.java263 LinkProperties prop = cm.getActiveLinkProperties(); in getDefaultIpAddresses() local
264 return formatIpAddresses(prop); in getDefaultIpAddresses()
267 private static String formatIpAddresses(LinkProperties prop) { in formatIpAddresses() argument
268 if (prop == null) return null; in formatIpAddresses()
269 Iterator<InetAddress> iter = prop.getAllAddresses().iterator(); in formatIpAddresses()
/packages/services/Car/evs/app/
DEvsStateControl.cpp28 inline constexpr VehiclePropertyType getPropType(VehicleProperty prop) { in getPropType() argument
30 static_cast<int32_t>(prop) in getPropType()
50 mGearValue.prop = static_cast<int32_t>(VehicleProperty::GEAR_SELECTION); in EvsStateControl()
51 mTurnSignalValue.prop = static_cast<int32_t>(VehicleProperty::TURN_SIGNAL_STATE); in EvsStateControl()
/packages/services/Car/service/src/com/android/car/
DCarPropertyServiceBase.java184 public CarPropertyValue getProperty(int prop, int zone) { in getProperty() argument
186 return mHal.getProperty(prop, zone); in getProperty()
190 public void setProperty(CarPropertyValue prop) { in setProperty() argument
192 mHal.setProperty(prop); in setProperty()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp975 bt_property_t prop; in setAdapterPropertyNative() local
976 prop.type = (bt_property_type_t)type; in setAdapterPropertyNative()
977 prop.len = env->GetArrayLength(value); in setAdapterPropertyNative()
978 prop.val = val; in setAdapterPropertyNative()
980 int ret = sBluetoothInterface->set_adapter_property(&prop); in setAdapterPropertyNative()
1042 bt_property_t prop; in setDevicePropertyNative() local
1043 prop.type = (bt_property_type_t)type; in setDevicePropertyNative()
1044 prop.len = env->GetArrayLength(value); in setDevicePropertyNative()
1045 prop.val = val; in setDevicePropertyNative()
1048 &prop); in setDevicePropertyNative()

123