/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
D | CarHvacManagerTest.java | 48 for (CarPropertyConfig property : properties) { in testAllHvacProperties() 49 if (supportedTypes.contains(property.getPropertyType())) { in testAllHvacProperties() 50 assertTypeAndZone(property); in testAllHvacProperties() 52 fail("Type is not supported for " + property); in testAllHvacProperties() 57 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone() argument 58 switch (property.getPropertyId()) { in assertTypeAndZone() 60 assertEquals(Boolean.class, property.getPropertyType()); in assertTypeAndZone() 61 assertTrue(property.isGlobalProperty()); in assertTypeAndZone() 64 assertEquals(Integer.class, property.getPropertyType()); in assertTypeAndZone() 65 assertTrue(property.isGlobalProperty()); in assertTypeAndZone() [all …]
|
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/ |
D | VehicleNetwork.java | 52 void onHalError(int errorCode, int property, int operation); in onHalError() argument 60 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 61 void onPropertyUnsubscribe(int property); in onPropertyUnsubscribe() argument 133 public VehiclePropConfigs listProperties(int property) { in listProperties() argument 135 VehiclePropConfigsParcelable parcelable = mService.listProperties(property); in listProperties() 165 public void setIntProperty(int property, int value) throws IllegalArgumentException { in setIntProperty() argument 166 VehiclePropValue v = VehiclePropValueUtil.createIntValue(property, value, 0); in setIntProperty() 173 public void setIntVectorProperty(int property, int[] values) throws IllegalArgumentException { in setIntVectorProperty() argument 174 VehiclePropValue v = VehiclePropValueUtil.createIntVectorValue(property, values, 0); in setIntVectorProperty() 181 public void setLongProperty(int property, long value) throws IllegalArgumentException { in setLongProperty() argument [all …]
|
D | VehiclePropValueUtil.java | 34 public static VehiclePropValue createIntValue(int property, int value, long timestamp) { in createIntValue() argument 35 return createBuilder(property, VehicleValueType.VEHICLE_VALUE_TYPE_INT32, timestamp). in createIntValue() 40 public static VehiclePropValue createIntVectorValue(int property, int[] values, in createIntVectorValue() argument 42 VehiclePropValue.Builder builder = createBuilder(property, in createIntVectorValue() 51 public static VehiclePropValue createFloatValue(int property, float value, long timestamp) { in createFloatValue() argument 52 return createBuilder(property, VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT, timestamp). in createFloatValue() 57 public static VehiclePropValue createFloatVectorValue(int property, float[] values, in createFloatVectorValue() argument 59 VehiclePropValue.Builder builder = createBuilder(property, in createFloatVectorValue() 68 public static VehiclePropValue createLongValue(int property, long value, long timestamp) { in createLongValue() argument 69 return createBuilder(property, VehicleValueType.VEHICLE_VALUE_TYPE_INT64, timestamp). in createLongValue() [all …]
|
D | VehiclePropConfigUtil.java | 29 public static VehiclePropConfig createStaticStringProperty(int property) { in createStaticStringProperty() argument 30 return getBuilder(property, in createStaticStringProperty() 40 int property, int propAccess, int changeType, int valueType, int zones, in createZonedProperty() argument 43 setProp(property). in createZonedProperty() 56 int property, int propAccess, int changeType, int valueType, int configFlags) { in createProperty() argument 57 return getBuilder(property, in createProperty() 66 public static VehiclePropConfig.Builder getBuilder(int property, int access, int changeMode, in getBuilder() argument 70 setProp(property). in getBuilder()
|
D | IVehicleNetwork.aidl | 30 VehiclePropConfigsParcelable listProperties(int property) = 0; in listProperties() argument 35 void subscribe(in IVehicleNetworkListener listener, int property, float sampleRate, in subscribe() argument 37 void unsubscribe(in IVehicleNetworkListener listener, int property) = 4; in unsubscribe() argument 44 void injectHalError(int errorCode, int property, int operation) = 8; in injectHalError() argument
|
/packages/services/Car/car-systemtest-lib/src/android/car/test/ |
D | VehicleHalEmulator.java | 57 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 58 void onPropertyUnsubscribe(int property); in onPropertyUnsubscribe() argument 111 public synchronized void removeProperty(int property) { in removeProperty() argument 113 mProperties.remove(property); in removeProperty() 150 public static void assertPropertyForGet(VehiclePropConfig config, int property) { in assertPropertyForGet() argument 151 assertProperty(config, property); in assertPropertyForGet() 166 public static void assertPropertyForSubscribe(VehiclePropConfig config, int property, in assertPropertyForSubscribe() argument 168 assertPropertyForGet(config, property); in assertPropertyForSubscribe() 175 public static void assertProperty(VehiclePropConfig config, int property) { in assertProperty() argument 176 if (config.getProp() != property) { in assertProperty() [all …]
|
D | CarTestManager.java | 86 public boolean isPropertySupported(int property) { in isPropertySupported() argument 88 return mService.isPropertySupported(property); in isPropertySupported() 175 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 180 testManager.getHalMock().onPropertySubscribe(property, sampleRate, zones); in onPropertySubscribe() 184 public void onPropertyUnsubscribe(int property) { in onPropertyUnsubscribe() argument 189 testManager.getHalMock().onPropertyUnsubscribe(property); in onPropertyUnsubscribe()
|
/packages/services/Car/vehicle_network_service/ |
D | VehiclePropertyAccessControl.cpp | 72 const xmlChar* property, in accessToInt() argument 75 if (!value || !property || !uid || !access) { in accessToInt() 92 property); in accessToInt() 101 bool VehiclePropertyAccessControl::updateOrCreate(int32_t uid, int32_t property, in updateOrCreate() argument 104 if (mVehicleAccessControlMap.count(property) == 0) { in updateOrCreate() 107 mVehicleAccessControlMap[property] = uid_access; in updateOrCreate() 112 mVehicleAccessControlMap[property]; in updateOrCreate() 133 xmlChar* property = NULL; in populate() local 152 xmlFree(property); in populate() 154 property = xmlGetProp(cur_node, (const xmlChar *)"name"); in populate() [all …]
|
D | VehicleNetworkService.h | 132 SubscriptionInfo* getSubscriptionInfo(int32_t property) { in getSubscriptionInfo() argument 134 ssize_t index = mSubscriptionInfos.indexOfKey(property); in getSubscriptionInfo() 141 void setSubscriptionInfo(int32_t property, float sampleRate, int32_t zones) { in setSubscriptionInfo() argument 144 mSubscriptionInfos.add(property, info); in setSubscriptionInfo() 147 bool removePropertyAndCheckIfActive(int32_t property) { in removePropertyAndCheckIfActive() argument 149 mSubscriptionInfos.removeItem(property); in removePropertyAndCheckIfActive() 217 void dispatchHalError(int32_t errorCode, int32_t property, int32_t operation) { in dispatchHalError() argument 218 mListener->onHalError(errorCode, property, operation); in dispatchHalError() 288 status_t onHalError(int32_t errorCode, int32_t property, int32_t operation, 295 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property = 0); [all …]
|
D | VehicleNetworkService.cpp | 264 bool VehicleNetworkService::isOperationAllowed(int32_t property, bool isWrite) { in isOperationAllowed() argument 267 bool allowed = mVehiclePropertyAccessControl.testAccess(property, uid, isWrite); in isOperationAllowed() 269 ALOGW("Property 0x%x: access not allowed for uid %d, isWrite %d", property, uid, isWrite); in isOperationAllowed() 317 int32_t property = mPropertyToClientsMap.keyAt(i); in binderDied() local 318 propertiesToUnsubscribe.push_back(property); in binderDied() 319 mSubscriptionInfos.removeItem(property); in binderDied() 322 for (int32_t property : propertiesToUnsubscribe) { in binderDied() local 323 mPropertyToClientsMap.removeItem(property); in binderDied() 326 for (int32_t property : propertiesToUnsubscribe) { in binderDied() local 327 mDevice->unsubscribe(mDevice, property); in binderDied() [all …]
|
D | VehiclePropertyAccessControl.h | 40 bool testAccess(int32_t property, int32_t uid, bool isWrite); 45 bool accessToInt(int32_t* const value,const xmlChar* property, 47 bool updateOrCreate(int32_t uid, int32_t property, int32_t access);
|
/packages/services/Car/libvehiclenetwork/native/ |
D | VehicleNetwork.cpp | 51 void VehicleNetworkEventMessageHandler::handleHalError(int32_t errorCode, int32_t property, in handleHalError() argument 54 VehicleHalError* error = new VehicleHalError(errorCode, property, operation); in handleHalError() 95 mListener->onHalError(error->errorCode, error->property, error->operation); in doHandleHalError() 177 status_t VehicleNetwork::setInt32Property(int32_t property, int32_t value) { in setInt32Property() argument 179 v.prop = property; in setInt32Property() 185 status_t VehicleNetwork::getInt32Property(int32_t property, int32_t* value, int64_t* timestamp) { in getInt32Property() argument 187 v.prop = property; in getInt32Property() 196 status_t VehicleNetwork::setInt64Property(int32_t property, int64_t value) { in setInt64Property() argument 198 v.prop = property; in setInt64Property() 204 status_t VehicleNetwork::getInt64Property(int32_t property, int64_t* value, int64_t* timestamp) { in getInt64Property() argument [all …]
|
D | IVehicleNetwork.cpp | 63 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property) { in listProperties() argument 67 data.writeInt32(property); in listProperties() 143 virtual status_t subscribe(const sp<IVehicleNetworkListener> &listener, int32_t property, in subscribe() argument 148 data.writeInt32(property); in subscribe() 155 virtual void unsubscribe(const sp<IVehicleNetworkListener> &listener, int32_t property) { in unsubscribe() argument 159 data.writeInt32(property); in unsubscribe() 162 ALOGI("unsubscribing property %d failed %d", property, status); in unsubscribe() 201 status_t injectHalError(int32_t errorCode, int32_t property, int32_t operation) { in injectHalError() argument 205 data.writeInt32(property); in injectHalError() 261 int32_t property = data.readInt32(); in onTransact() local [all …]
|
D | IVehicleNetworkHalMock.cpp | 128 virtual status_t onPropertySubscribe(int32_t property, float sampleRate, int32_t zones) { in onPropertySubscribe() argument 131 data.writeInt32(property); in onPropertySubscribe() 138 virtual void onPropertyUnsubscribe(int32_t property) { in onPropertyUnsubscribe() argument 141 data.writeInt32(property); in onPropertyUnsubscribe() 144 ALOGI("onPropertyUnsubscribe property %d failed %d", property, status); in onPropertyUnsubscribe() 251 int32_t property = data.readInt32(); in onTransact() local 254 r = onPropertySubscribe(property, sampleRate, zones); in onTransact() 260 int32_t property = data.readInt32(); in onTransact() local 261 onPropertyUnsubscribe(property); in onTransact()
|
/packages/services/Car/libvehiclenetwork/include/ |
D | VehicleNetwork.h | 47 virtual void onHalError(int32_t errorCode, int32_t property, int32_t operation) = 0; 66 void handleHalError(int32_t errorCode, int32_t property, int32_t operation); 105 status_t setInt32Property(int32_t property, int32_t value); 107 status_t getInt32Property(int32_t property, int32_t* value, int64_t* timestamp); 108 status_t setInt64Property(int32_t property, int64_t value); 109 status_t getInt64Property(int32_t property, int64_t* value, int64_t* timestamp); 110 status_t setFloatProperty(int32_t property, float value); 111 status_t getFloatProperty(int32_t property, float* value, int64_t* timestamp); 112 status_t setStringProperty(int32_t property, const String8& value); 113 status_t getStringProperty(int32_t property, String8& value, int64_t* timestamp); [all …]
|
D | IVehicleNetwork.h | 48 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property = 0) = 0; 51 virtual status_t subscribe(const sp<IVehicleNetworkListener> &listener, int32_t property, 53 virtual void unsubscribe(const sp<IVehicleNetworkListener> &listener, int32_t property) = 0; 61 virtual status_t injectHalError(int32_t errorCode, int32_t property, int32_t operation) = 0; 84 virtual bool isOperationAllowed(int32_t property, bool isWrite) = 0;
|
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/ |
D | VehicleNetworkMockedTest.java | 382 public void onHalError(int errorCode, int property, int operation) { in onHalError() argument 384 mErrorProperty = property; in onHalError() 430 VehiclePropValue onPropertyGet(VehiclePropValue property); in onPropertyGet() argument 431 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 432 void onPropertyUnsubscribe(int property); in onPropertyUnsubscribe() argument 441 int property = config.getProp(); in registerProperty() local 443 mHandlers.put(property, handler); in registerProperty() 456 int property = value.getProp(); in onPropertySet() local 457 VehiclePropertyHandler handler = getPropertyHandler(property); in onPropertySet() 459 fail("onPropertySet for unknown property " + Integer.toHexString(property)); in onPropertySet() [all …]
|
/packages/services/Car/tests/libvehiclenetwork-native-test/ |
D | IVehicleNetworkTestListener.h | 49 virtual void onHalError(int32_t errorCode, int32_t property, int32_t operation) { in onHalError() argument 52 mProperty = property; in onHalError() 68 bool waitForEvent(int32_t property, nsecs_t reltime) { in waitForEvent() argument 70 int startCount = getEventCountLocked(property); in waitForEvent() 76 currentCount = getEventCountLocked(property); in waitForEvent() 82 int getEventCount(int32_t property) { in getEventCount() argument 84 return getEventCountLocked(property); in getEventCount() 102 bool isErrorMatching(int32_t errorCode, int32_t property, int32_t operation) { in isErrorMatching() argument 104 return mErrorCode == errorCode && mProperty == property && mOperation == operation; in isErrorMatching() 108 int getEventCountLocked(int32_t property) { in getEventCountLocked() argument [all …]
|
D | VehicleNetworkTestListener.h | 77 bool waitForEvent(int32_t property, int initialEventCount, nsecs_t reltime) { in waitForEvent() argument 84 currentCount = getEventCountLocked(property); in waitForEvent() 90 int getEventCount(int32_t property) { in getEventCount() argument 92 return getEventCountLocked(property); in getEventCount() 108 int getEventCountLocked(int32_t property) { in getEventCountLocked() argument 109 ssize_t index = mEventCounts.indexOfKey(property); in getEventCountLocked()
|
/packages/services/Car/tests/vehiclenetworkservice_unit_tests/ |
D | VehiclePropertyAccessControlForTesting.cpp | 24 …l VehiclePropertyAccessControlForTesting::accessToInt(int32_t* const value,const xmlChar* property, in accessToInt() argument 26 return VehiclePropertyAccessControl::accessToInt(value, property, uid, access); in accessToInt() 29 bool VehiclePropertyAccessControlForTesting::updateOrCreate(int32_t uid, int32_t property, int32_t … in updateOrCreate() argument 30 return VehiclePropertyAccessControl::updateOrCreate(uid, property, access); in updateOrCreate() 49 bool VehiclePropertyAccessControlForTesting::getAccessToProperty(int32_t property, std::map<int32_t… in getAccessToProperty() argument 50 if (mVehicleAccessControlMap.count(property) == 0) { in getAccessToProperty() 54 *accessMap = mVehicleAccessControlMap[property]; in getAccessToProperty()
|
D | VehiclePropertyAccessControlForTesting.h | 17 bool accessToInt(int32_t* const value,const xmlChar* property, 19 bool updateOrCreate(int32_t uid, int32_t property, int32_t access); 23 bool getAccessToProperty(int32_t property, std::map<int32_t, int32_t>** accessMap);
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 224 private void assertServiceOwnerLocked(HalServiceBase service, int property) { in assertServiceOwnerLocked() argument 225 if (service != mPropertyHandlers.get(property)) { in assertServiceOwnerLocked() 236 public void subscribeProperty(HalServiceBase service, int property, in subscribeProperty() argument 239 assertServiceOwnerLocked(service, property); in subscribeProperty() 240 mSubscribedProperties.add(property); in subscribeProperty() 242 mVehicleNetwork.subscribe(property, samplingRateHz); in subscribeProperty() 245 public void unsubscribeProperty(HalServiceBase service, int property) { in unsubscribeProperty() argument 247 assertServiceOwnerLocked(service, property); in unsubscribeProperty() 248 mSubscribedProperties.remove(property); in unsubscribeProperty() 250 mVehicleNetwork.unsubscribe(property); in unsubscribeProperty() [all …]
|
D | SensorHalService.java | 108 int property = v.getProp(); in createCarSensorEvent() local 109 int sensorType = getSensorTypeFromHalProperty(property); in createCarSensorEvent() 112 property); in createCarSensorEvent() 114 switch (property) { in createCarSensorEvent() 121 Integer.toHexString(property) + " value:" + v.getInt32Values(0)); in createCarSensorEvent() 131 Integer.toHexString(property) + " value:" + v.getInt32Values(0)); in createCarSensorEvent() 140 Integer.toHexString(property) + " value:" + v.getFloatValues(0)); in createCarSensorEvent()
|
D | InfoHalService.java | 125 private void logUnexpectedEvent(int property) { in logUnexpectedEvent() argument 127 Integer.toHexString(property)); in logUnexpectedEvent() 130 private static String getInfoStringFromProperty(int property) { in getInfoStringFromProperty() argument 131 switch (property) { in getInfoStringFromProperty()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | CustomVCardEntry.java | 40 public void addProperty(VCardProperty property) { in addProperty() argument 41 super.addProperty(property); in addProperty() 42 mAllProperties.put(property.getName(), property); in addProperty() local
|