Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 71) 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.java212 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/service/src/com/android/car/hal/
DDiagnosticHalService.java125 .append(toHexString(vp.prop)) in takeSupportedProperties()
147 switch (propConfig.prop) { in getTokenForProperty()
149 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
150 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty()
155 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
156 mVehiclePropertyToConfig.put(propConfig.prop, propConfig); in getTokenForProperty()
161 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
162 return propConfig.prop; in getTokenForProperty()
164 mDiagnosticCapabilities.setSupported(propConfig.prop); in getTokenForProperty()
170 "clearing of freeze frames. assuming it does not.", propConfig.prop)); in getTokenForProperty()
[all …]
DPropertyHalService.java189 public void setProperty(CarPropertyValue prop) { in setProperty() argument
190 int halPropId = managerToHalPropId(prop.getPropertyId()); in setProperty()
193 + toHexString(prop.getPropertyId())); in setProperty()
195 VehiclePropValue halProp = toVehiclePropValue(prop, halPropId); in setProperty()
265 for (Integer prop : mSubscribedPropIds) { in release()
266 mVehicleHal.unsubscribeProperty(this, prop); in release()
283 if (mPropIds.isSupportedProperty(p.prop)) { in takeSupportedProperties()
284 CarPropertyConfig config = CarPropertyUtils.toCarPropertyConfig(p, p.prop); in takeSupportedProperties()
286 mProps.put(p.prop, config); in takeSupportedProperties()
288 Log.d(TAG, "takeSupportedProperties: " + toHexString(p.prop)); in takeSupportedProperties()
[all …]
DVehicleHal.java151 mAllProperties.put(p.prop, p); in init()
165 mPropertyHandlers.append(p.prop, service); in init()
324 propValue.prop = propertyId; in get()
414 writer.println(String.format("property 0x%x", config.prop)); in dumpProperties()
424 HalServiceBase service = mPropertyHandlers.get(v.prop); in onPropertyEvent()
427 + toHexString(v.prop)); in onPropertyEvent()
432 VehiclePropertyEventInfo info = mEventLog.get(v.prop); in onPropertyEvent()
435 mEventLog.put(v.prop, info); in onPropertyEvent()
519 VehiclePropValue value = get(config.prop); in dumpPropertyValueByConfig()
523 + toHexString(config.prop) + ", areaId: 0"); in dumpPropertyValueByConfig()
[all …]
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()
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py170 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 …]
Dvhal_emulator.py170 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 …]
Duser_action_generator.py124 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/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java70 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/
DCarPropertyManager.java247 for (int prop : propertyIds) { in unregisterCallback()
248 doUnregisterListenerLocked(callback, prop); in unregisterCallback()
377 public boolean getBooleanProperty(int prop, int area) { in getBooleanProperty() argument
378 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); in getBooleanProperty()
388 public float getFloatProperty(int prop, int area) { in getFloatProperty() argument
389 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); in getFloatProperty()
399 public int getIntProperty(int prop, int area) { in getIntProperty() argument
400 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); in getIntProperty()
411 public int[] getIntArrayProperty(int prop, int area) { in getIntArrayProperty() argument
412 CarPropertyValue<Integer[]> carProp = getProperty(Integer[].class, prop, area); in getIntArrayProperty()
[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/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalJsonReader.java72 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/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMultiValueUpdateListener.java37 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_test/src/com/android/car/
DCarVendorExtensionManagerTest.java300 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/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java83 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/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java1103 public final String prop; field in BluetoothPbapVcardManager.VCardFilter.FilterBit
1107 FilterBit(int pos, String prop, boolean onlyCheckV21, boolean excludeForV21) { in FilterBit() argument
1109 this.prop = prop; in FilterBit()
1158 if (bit.prop.equals(currentProp)) { in apply()
1205 public final String prop; field in BluetoothPbapVcardManager.PropertySelector.PropertyMask
1207 PropertyMask(int pos, String prop) { in PropertyMask() argument
1209 this.prop = prop; in PropertyMask()
1228 private boolean checkprop(String vcard, String prop) { in checkprop() argument
1234 if (prop.equals(currentProp)) { in checkprop()
1235 Log.d(TAG, "bit.prop.equals current prop :" + prop); in checkprop()
[all …]
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java90 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) throws RemoteException { in setProperty() argument
96 mValues.put(PropKey.of(prop), prop); in setProperty() local
97 mValuesSet.add(prop); in setProperty()
98 sendEvent(prop); in setProperty()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java312 public CarPropertyValue getProperty(int prop, int zone) { in getProperty() argument
313 if (mConfigs.get(prop) == null) { in getProperty()
315 Log.e(TAG, "getProperty: propId is not in config list:0x" + toHexString(prop)); in getProperty()
318 ICarImpl.assertPermission(mContext, mHal.getReadPermission(prop)); in getProperty()
319 return mHal.getProperty(prop, zone); in getProperty()
343 public void setProperty(CarPropertyValue prop) { in setProperty() argument
344 int propId = prop.getPropertyId(); in setProperty()
351 mHal.setProperty(prop); in setProperty()
/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/services/Car/evs/app/
DEvsStateControl.cpp35 inline constexpr VehiclePropertyType getPropType(VehicleProperty prop) { in getPropType() argument
37 static_cast<int32_t>(prop) in getPropType()
58 mGearValue.prop = static_cast<int32_t>(VehicleProperty::GEAR_SELECTION); in EvsStateControl()
59 mTurnSignalValue.prop = static_cast<int32_t>(VehicleProperty::TURN_SIGNAL_STATE); in EvsStateControl()
223 if ((mTurnSignalValue.prop == 0) || (invokeGet(&mTurnSignalValue) != StatusCode::OK)) { in selectStateForCurrentConditions()
226 mTurnSignalValue.prop = 0; in selectStateForCurrentConditions()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DInputTestFragment.java177 if (event.prop != HW_KEY_INPUT) return "";
190 if (vpv.prop != HW_KEY_INPUT || vpv.value == null || vpv.value.int32Values == null
311 VehiclePropValue prop = new VehiclePropValue(); in onButtonClick() local
312 prop.prop = sGenerateFakeDataControllingProperty; in onButtonClick()
313 prop.value.int32Values.addAll(Lists.newArrayList( in onButtonClick()
317 status = mVehicle.set(prop); in onButtonClick()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMultiValueAlpha.java89 for (AlphaProperty prop : mMyProperties) { in setValue()
90 if (prop != this) { in setValue()
91 mOthers *= prop.mValue; in setValue()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DVehiclePropValueBuilder.java37 mPropValue.prop = propId; in VehiclePropValueBuilder()
47 newValue.prop = propValue.prop; in clone()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java230 for (final CategoryProperties prop : mShownCategories) { in isShownCategoryId()
231 if (prop.mCategoryId == categoryId) { in isShownCategoryId()
268 for (final CategoryProperties prop : mShownCategories) { in getCategoryPageSize()
269 if (prop.mCategoryId == categoryId) { in getCategoryPageSize()
270 return prop.mPageCount; in getCategoryPageSize()

123