/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, 52 float sampleRate, int32_t zones) = 0; 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; 92 static int countNumberOfZones(int32_t zones) { in countNumberOfZones()
|
/packages/services/Car/vehicle_network_service/ |
D | VehicleNetworkService.h | 96 int32_t zones; 100 SubscriptionInfo(float aSampleRate, int32_t aZones) in SubscriptionInfo() 132 SubscriptionInfo* getSubscriptionInfo(int32_t property) { in getSubscriptionInfo() 141 void setSubscriptionInfo(int32_t property, float sampleRate, int32_t zones) { in setSubscriptionInfo() 147 bool removePropertyAndCheckIfActive(int32_t property) { in removePropertyAndCheckIfActive() 217 void dispatchHalError(int32_t errorCode, int32_t property, int32_t operation) { in dispatchHalError() 230 KeyedVector<int32_t, SubscriptionInfo> mSubscriptionInfos; 259 KeyedVector<int32_t, vehicle_prop_value_t*> mCache; 288 status_t onHalError(int32_t errorCode, int32_t property, int32_t operation, 295 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property = 0); [all …]
|
D | VehiclePropertyAccessControl.cpp | 71 bool VehiclePropertyAccessControl::accessToInt(int32_t* const value, in accessToInt() 101 bool VehiclePropertyAccessControl::updateOrCreate(int32_t uid, int32_t property, in updateOrCreate() 102 int32_t access) { in updateOrCreate() 105 std::map<int32_t, int32_t>* uid_access = in updateOrCreate() 106 new std::map<int32_t, int32_t>(); in updateOrCreate() 111 std::map<int32_t, int32_t>* uidAccessMap = in updateOrCreate() 138 int32_t property_value; in populate() 139 int32_t uid_value; in populate() 140 int32_t access_value; in populate() 292 int32_t property; in dump() [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); 58 std::map<int32_t, std::map<int32_t, int32_t>*> mVehicleAccessControlMap;
|
D | VehicleNetworkService.cpp | 264 bool VehicleNetworkService::isOperationAllowed(int32_t property, bool isWrite) { in isOperationAllowed() 297 List<int32_t> propertiesToUnsubscribe; in binderDied() 317 int32_t property = mPropertyToClientsMap.keyAt(i); in binderDied() 322 for (int32_t property : propertiesToUnsubscribe) { in binderDied() 326 for (int32_t property : propertiesToUnsubscribe) { in binderDied() 343 int VehicleNetworkService::errorCallback(int32_t errorCode, int32_t property, int32_t operation) { in errorCallback() 399 vehicle_prop_config_t const * VehicleNetworkService::findConfigLocked(int32_t property) { in findConfigLocked() 410 bool VehicleNetworkService::isGettableLocked(int32_t property) { in isGettableLocked() 422 bool VehicleNetworkService::isSettableLocked(int32_t property, int32_t valueType) { in isSettableLocked() 439 bool VehicleNetworkService::isSubscribableLocked(int32_t property) { in isSubscribableLocked() [all …]
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_writer.h | 41 int32_t setup(JNIEnv *env, jobject out, int32_t width, int32_t height, 42 Jpeg_Config::Format format, int32_t quality); 51 int32_t write(int8_t* bytes, int32_t length); 63 int32_t reset(); 65 static const int32_t DEFAULT_X_DENSITY; 66 static const int32_t DEFAULT_Y_DENSITY; 67 static const int32_t DEFAULT_DENSITY_UNIT; 69 void formatPixels(uint8_t* buf, int32_t len); 75 int32_t mScanlineBuflen; 76 int32_t mScanlineBytesRemaining;
|
D | jpeg_reader.h | 45 int32_t setup(JNIEnv *env, jobject in, int32_t* width, int32_t* height, 58 int32_t read(int8_t * bytes, int32_t offset, int32_t count); 70 int32_t reset(); 73 void formatPixels(uint8_t* buf, int32_t len); 79 int32_t mScanlineBuflen; 80 int32_t mScanlineUnformattedBuflen; 81 int32_t mScanlineBytesRemaining;
|
D | jpeg_writer.cpp | 40 const int32_t JpegWriter::DEFAULT_X_DENSITY = 300; 41 const int32_t JpegWriter::DEFAULT_Y_DENSITY = 300; 42 const int32_t JpegWriter::DEFAULT_DENSITY_UNIT = 1; 44 int32_t JpegWriter::setup(JNIEnv *env, jobject out, int32_t width, int32_t height, in setup() 45 Jpeg_Config::Format format, int32_t quality) { in setup() 67 int32_t flags = MakeDst(&mInfo, env, out); in setup() 116 int32_t JpegWriter::write(int8_t* bytes, int32_t length) { in write() 131 int32_t total_length = length; in write() 166 void JpegWriter::formatPixels(uint8_t* buf, int32_t len) { in formatPixels() 206 int32_t JpegWriter::reset() { in reset()
|
D | jpegstream.cpp | 62 int32_t q = static_cast<int32_t>(quality); in OutputStream_setup() 69 int32_t errorFlag = w_ptr->setup(env, out, w, h, fmt, q); in OutputStream_setup() 122 int32_t w = 0, h = 0; in InputStream_setup() 124 int32_t errorFlag = r_ptr->setup(env, in, &w, &h, fmt); in InputStream_setup() 233 int32_t in_len = static_cast<int32_t>(inCount); in OutputStream_writeInputBytes() 234 int32_t off = static_cast<int32_t>(offset); in OutputStream_writeInputBytes() 236 int32_t written = 0; in OutputStream_writeInputBytes() 258 int32_t in_len = static_cast<int32_t>(inCount); in InputStream_readDecodedBytes() 259 int32_t off = static_cast<int32_t>(offset); in InputStream_readDecodedBytes() 260 int32_t read = 0; in InputStream_readDecodedBytes() [all …]
|
D | jpeg_reader.cpp | 41 int32_t JpegReader::setup(JNIEnv *env, jobject in, int32_t* width, int32_t* height, in setup() 61 int32_t flags = MakeSrc(&mInfo, env, in); in setup() 117 int32_t JpegReader::read(int8_t* bytes, int32_t offset, int32_t count) { in read() 131 int32_t total_length = count; in read() 179 void JpegReader::formatPixels(uint8_t* buf, int32_t len) { in formatPixels() 241 int32_t JpegReader::reset() { in reset()
|
D | inputstream_wrapper.cpp | 23 int32_t InputStreamWrapper::read(int32_t length, int32_t offset) { in read() 27 int32_t bytesRead = 0; in read() 33 bytesRead = static_cast<int32_t>(mEnv->CallIntMethod(mStream, sReadID, in read() 59 int32_t InputStreamWrapper::forceReadEOI() { in forceReadEOI()
|
/packages/services/Car/tests/vehiclenetworkservice_unit_tests/ |
D | VehiclePropertyAccessControlTest.cpp | 38 static const int32_t prop1; 39 static const int32_t prop2; 40 static const int32_t prop3; 41 static const int32_t uid1; 42 static const int32_t uid2; 43 static const int32_t uid3; 66 const int32_t VehiclePropertyAccessControlTest::prop1 = 0xa; 67 const int32_t VehiclePropertyAccessControlTest::prop2 = 0xb; 68 const int32_t VehiclePropertyAccessControlTest::prop3 = 0xc; 69 const int32_t VehiclePropertyAccessControlTest::uid1 = 1000; [all …]
|
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);
|
D | VehiclePropertyAccessControlForTesting.cpp | 24 bool VehiclePropertyAccessControlForTesting::accessToInt(int32_t* const value,const xmlChar* proper… in accessToInt() 29 bool VehiclePropertyAccessControlForTesting::updateOrCreate(int32_t uid, int32_t property, int32_t … in updateOrCreate() 49 …lePropertyAccessControlForTesting::getAccessToProperty(int32_t property, std::map<int32_t, int32_t… in getAccessToProperty() argument
|
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/ |
D | VehicleNetworkAudioHelper.cpp | 90 static int32_t streamFlagToStreamNumber(int32_t streamFlag) { in streamFlagToStreamNumber() 91 int32_t flag = 0x1; in streamFlagToStreamNumber() 92 for (int32_t i = 0; i < 32; i++) { in streamFlagToStreamNumber() 101 void VehicleNetworkAudioHelper::notifyStreamStarted(int32_t stream) { in notifyStreamStarted() 106 int32_t streamNumber = streamFlagToStreamNumber(stream); in notifyStreamStarted() 125 void VehicleNetworkAudioHelper::notifyStreamStopped(int32_t stream) { in notifyStreamStopped() 130 int32_t streamNumber = streamFlagToStreamNumber(stream); in notifyStreamStopped() 150 int32_t streamNumber) { in getStreamStateLocked() 151 if (streamNumber >= (int32_t) mStreamStates.size()) { in getStreamStateLocked() 158 int32_t stream) { in getStreamFocusState() [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() 68 bool waitForEvent(int32_t property, nsecs_t reltime) { in waitForEvent() 82 int getEventCount(int32_t property) { in getEventCount() 102 bool isErrorMatching(int32_t errorCode, int32_t property, int32_t operation) { in isErrorMatching() 108 int getEventCountLocked(int32_t property) { in getEventCountLocked() 121 KeyedVector<int32_t, int> mEventCounts; 129 int32_t mErrorCode; 130 int32_t mProperty; 131 int32_t mOperation;
|
D | VehicleNetworkTestListener.h | 64 virtual void onHalError(int32_t /*errorCode*/, int32_t /*property*/, int32_t /*operation*/) { in onHalError() argument 77 bool waitForEvent(int32_t property, int initialEventCount, nsecs_t reltime) { in waitForEvent() 90 int getEventCount(int32_t property) { in getEventCount() 108 int getEventCountLocked(int32_t property) { in getEventCountLocked() 119 KeyedVector<int32_t, int> mEventCounts;
|
D | VehicleNetworkAudioHelperTest.cpp | 80 virtual status_t onPropertySubscribe(int32_t property, float /*sampleRate*/, in onPropertySubscribe() argument 81 int32_t /*zones*/) { in onPropertySubscribe() 86 virtual void onPropertyUnsubscribe(int32_t property) { in onPropertyUnsubscribe() 90 void setFocusState(int32_t state, int32_t streams, int32_t extState) { in setFocusState() 142 void changeFocusState(int32_t state, int32_t streams, int32_t extState) { in changeFocusState()
|
D | IVehicleNetworkTest.cpp | 71 int32_t numConfigs = properties->getList().size(); in TEST_F() 96 int32_t numConfigs = properties->getList().size(); in TEST_F() 104 if ((config->prop >= (int32_t)VEHICLE_PROPERTY_INTERNAL_START) && in TEST_F() 105 (config->prop <= (int32_t)VEHICLE_PROPERTY_INTERNAL_END)) { in TEST_F() 131 int32_t numConfigs = properties->getList().size(); in TEST_F() 155 int32_t numConfigs = properties->getList().size(); in TEST_F() 166 if ((config->prop >= (int32_t)VEHICLE_PROPERTY_INTERNAL_START) && in TEST_F() 167 (config->prop <= (int32_t)VEHICLE_PROPERTY_INTERNAL_END)) { in TEST_F()
|
/packages/services/Car/libvehiclenetwork/native/ |
D | VehicleNetwork.cpp | 51 void VehicleNetworkEventMessageHandler::handleHalError(int32_t errorCode, int32_t property, in handleHalError() 52 int32_t operation) { in handleHalError() 177 status_t VehicleNetwork::setInt32Property(int32_t property, int32_t value) { in setInt32Property() 185 status_t VehicleNetwork::getInt32Property(int32_t property, int32_t* value, int64_t* timestamp) { in getInt32Property() 196 status_t VehicleNetwork::setInt64Property(int32_t property, int64_t value) { in setInt64Property() 204 status_t VehicleNetwork::getInt64Property(int32_t property, int64_t* value, int64_t* timestamp) { in getInt64Property() 213 status_t VehicleNetwork::setFloatProperty(int32_t property, float value) { in setFloatProperty() 221 status_t VehicleNetwork::getFloatProperty(int32_t property, float* value, int64_t* timestamp) { in getFloatProperty() 230 status_t VehicleNetwork::setStringProperty(int32_t property, const String8& value) { in setStringProperty() 239 status_t VehicleNetwork::getStringProperty(int32_t property, String8& value, int64_t* timestamp) { in getStringProperty() [all …]
|
D | IVehicleNetwork.cpp | 63 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property) { in listProperties() 79 int32_t size = reply.readInt32(); in listProperties() 131 int32_t exceptionCode = reply.readExceptionCode(); in getProperty() 143 virtual status_t subscribe(const sp<IVehicleNetworkListener> &listener, int32_t property, in subscribe() 144 float sampleRate, int32_t zones) { in subscribe() 155 virtual void unsubscribe(const sp<IVehicleNetworkListener> &listener, int32_t property) { in unsubscribe() 201 status_t injectHalError(int32_t errorCode, int32_t property, int32_t operation) { in injectHalError() 261 int32_t property = data.readInt32(); in onTransact() 323 int32_t property = data.readInt32(); in onTransact() 328 int32_t zones = data.readInt32(); in onTransact() [all …]
|
D | IVehicleNetworkListener.cpp | 66 virtual void onHalError(int32_t errorCode, int32_t property, int32_t operation) { in onHalError() 102 int32_t size = data.readInt32(); in onTransact() 124 int32_t errorCode = data.readInt32(); in onTransact() 125 int32_t property = data.readInt32(); in onTransact() 126 int32_t operation = data.readInt32(); in onTransact()
|
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include/ |
D | VehicleNetworkAudioHelper.h | 33 virtual void onFocusChange(int32_t activeStreams) = 0; 53 void notifyStreamStarted(int32_t stream); 54 void notifyStreamStopped(int32_t stream); 56 vehicle_network_audio_helper_focus_state getStreamFocusState(int32_t stream); 58 bool waitForStreamFocus(int32_t stream, nsecs_t waitTimeNs); 62 virtual void onHalError(int32_t errorCode, int32_t property, int32_t operation); 76 StreamState& getStreamStateLocked(int32_t streamNumber); 85 int32_t mAllowedStreams;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | convolve3x3.rs | 21 int32_t gWidth; 22 int32_t gHeight; 29 uint32_t x1 = min((int32_t)x+1, gWidth-1); 30 uint32_t x2 = max((int32_t)x-1, 0); 31 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 uint32_t y2 = max((int32_t)y-1, 0);
|