/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 106 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument 115 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal() 117 index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal() 121 if (0 == mMemInfo[index].handle) { in cacheOpsInternal() 122 LOGE("Buffer at %d not registered", index); in cacheOpsInternal() 129 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal() 130 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal() 131 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal() 156 int QCamera3Memory::getFd(uint32_t index) in getFd() argument 160 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getFd() [all …]
|
D | QCamera3Mem.h | 52 int cleanCache(uint32_t index) in cleanCache() argument 54 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache() 56 int invalidateCache(uint32_t index) in invalidateCache() argument 58 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache() 60 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument 62 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache() 64 int getFd(uint32_t index); 65 ssize_t getSize(uint32_t index); 68 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0; 70 virtual void *getPtr(uint32_t index) = 0; [all …]
|
D | QCamera3StreamMem.cpp | 123 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument 127 if (index < mMaxHeapBuffers) in getFd() 128 return mHeapMem.getFd(index); in getFd() 130 return mGrallocMem.getFd(index); in getFd() 143 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument 147 if (index < mMaxHeapBuffers) in getSize() 148 return mHeapMem.getSize(index); in getSize() 150 return mGrallocMem.getSize(index); in getSize() 165 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument 169 if (index < mMaxHeapBuffers) in invalidateCache() [all …]
|
D | QCamera3StreamMem.h | 56 int getFd(uint32_t index); 57 ssize_t getSize(uint32_t index); 58 int invalidateCache(uint32_t index); 59 int cleanInvalidateCache(uint32_t index); 60 int cleanCache(uint32_t index); 62 mm_camera_buf_def_t &bufDef, uint32_t index, 64 void *getPtr(uint32_t index); 66 bool valid(uint32_t index); 70 int unregisterBuffer(uint32_t index); 72 void *getBufferHandle(uint32_t index); [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlay.h | 92 void validate(int index); 111 static void setUse(int index); 112 static void resetUse(int index); 113 static bool isUsed(int index); 114 static bool isNotUsed(int index); 117 static void setAllocation(int index); 118 static void resetAllocation(int index); 119 static bool isAllocated(int index); 120 static bool isNotAllocated(int index); 153 inline void Overlay::validate(int index) { in validate() argument [all …]
|
D | overlay.cpp | 103 int index = (int)dest; in nextPipe() local 106 mPipeBook[index].mDisplay = dpy; in nextPipe() 107 if(not mPipeBook[index].valid()) { in nextPipe() 108 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe() 124 int index = (int)dest; in commit() local 125 validate(index); in commit() 127 if(mPipeBook[index].mPipe->commit()) { in commit() 132 int dpy = mPipeBook[index].mDisplay; in commit() 142 int index = (int)dest; in queueBuffer() local 144 validate(index); in queueBuffer() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_ucm.c | 110 int verb_index, list_size, index = 0; in snd_use_case_get_list() local 126 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_get_list() 128 ALOGV("Index:%d Verb:%s", index, in snd_use_case_get_list() 129 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_get_list() 130 index++; in snd_use_case_get_list() 134 return index; in snd_use_case_get_list() 144 verb_list[index].use_case_name, in snd_use_case_get_list() 145 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list() 146 index++; in snd_use_case_get_list() 148 verb_index = index; in snd_use_case_get_list() [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/ |
D | IPACM_Config.h | 153 inline void increaseFltRuleCount(int index, ipa_ip_type iptype, int increment) in increaseFltRuleCount() argument 155 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0)) in increaseFltRuleCount() 157 IPACMERR("Index is out of range: %d.\n", index); in increaseFltRuleCount() 162 flt_rule_count_v4[index] += increment; in increaseFltRuleCount() 163 IPACMDBG_H("Now num of v4 flt rules on client %d is %d.\n", index, flt_rule_count_v4[index]); in increaseFltRuleCount() 167 flt_rule_count_v6[index] += increment; in increaseFltRuleCount() 168 IPACMDBG_H("Now num of v6 flt rules on client %d is %d.\n", index, flt_rule_count_v6[index]); in increaseFltRuleCount() 173 inline void decreaseFltRuleCount(int index, ipa_ip_type iptype, int decrement) in decreaseFltRuleCount() argument 175 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0)) in decreaseFltRuleCount() 177 IPACMERR("Index is out of range: %d.\n", index); in decreaseFltRuleCount() [all …]
|
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/inc/ |
D | IPACM_Config.h | 155 inline void increaseFltRuleCount(int index, ipa_ip_type iptype, int increment) in increaseFltRuleCount() argument 157 if((index >= IPA_CLIENT_MAX) || (index < 0)) in increaseFltRuleCount() 159 IPACMERR("Index is out of range: %d.\n", index); in increaseFltRuleCount() 164 flt_rule_count_v4[index] += increment; in increaseFltRuleCount() 165 IPACMDBG_H("Now num of v4 flt rules on client %d is %d.\n", index, flt_rule_count_v4[index]); in increaseFltRuleCount() 169 flt_rule_count_v6[index] += increment; in increaseFltRuleCount() 170 IPACMDBG_H("Now num of v6 flt rules on client %d is %d.\n", index, flt_rule_count_v6[index]); in increaseFltRuleCount() 175 inline void decreaseFltRuleCount(int index, ipa_ip_type iptype, int decrement) in decreaseFltRuleCount() argument 177 if((index >= IPA_CLIENT_MAX) || (index < 0)) in decreaseFltRuleCount() 179 IPACMERR("Index is out of range: %d.\n", index); in decreaseFltRuleCount() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | Obd2SensorStore.cpp | 36 void Obd2SensorStore::BitmaskInVector::set(size_t index, bool value) { in set() argument 37 const size_t byteIndex = index / 8; in set() 38 const size_t bitIndex = index % 8; in set() 44 bool Obd2SensorStore::BitmaskInVector::get(size_t index) const { in get() 45 const size_t byteIndex = index / 8; in get() 46 const size_t bitIndex = index % 8; in get() 65 StatusCode Obd2SensorStore::setIntegerSensor(DiagnosticIntegerSensorIndex index, int32_t value) { in setIntegerSensor() argument 66 return setIntegerSensor(toInt(index), value); in setIntegerSensor() 68 StatusCode Obd2SensorStore::setFloatSensor(DiagnosticFloatSensorIndex index, float value) { in setFloatSensor() argument 69 return setFloatSensor(toInt(index), value); in setFloatSensor() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlay.h | 155 void validate(int index); 193 static void setUse(int index); 194 static void resetUse(int index); 195 static bool isUsed(int index); 196 static bool isNotUsed(int index); 199 static void setAllocation(int index); 200 static void resetAllocation(int index); 201 static bool isAllocated(int index); 202 static bool isNotAllocated(int index); 247 inline void Overlay::validate(int index) { in validate() argument [all …]
|
D | overlay.cpp | 135 int index = (int)dest; in nextPipe() local 136 mPipeBook[index].mDisplay = dpy; in nextPipe() 137 mPipeBook[index].mMixer = mixer; in nextPipe() 138 if(not mPipeBook[index].valid()) { in nextPipe() 139 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe() 140 mPipeBook[index].mSession = PipeBook::NONE; in nextPipe() 285 int index = (int)dest; in commit() local 286 validate(index); in commit() 288 if(mPipeBook[index].mPipe->commit()) { in commit() 292 int dpy = mPipeBook[index].mDisplay; in commit() [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlay.h | 160 void validate(int index); 201 static void setUse(int index); 202 static void resetUse(int index); 203 static bool isUsed(int index); 204 static bool isNotUsed(int index); 207 static void setAllocation(int index); 208 static void resetAllocation(int index); 209 static bool isAllocated(int index); 210 static bool isNotAllocated(int index); 255 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraMem.h | 91 int cleanCache(uint32_t index) in cleanCache() argument 93 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache() 95 int invalidateCache(uint32_t index) in invalidateCache() argument 97 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache() 99 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument 101 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache() 103 int getFd(uint32_t index) const; 104 ssize_t getSize(uint32_t index) const; 112 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0; 114 virtual camera_memory_t *getMemory(uint32_t index, [all …]
|
D | QCameraMem.cpp | 118 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument 130 if (index >= mBufferCount) { in cacheOpsInternal() 131 LOGE("index %d out of bound [0, %d)", index, mBufferCount); in cacheOpsInternal() 138 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal() 139 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal() 142 mMemInfo[index].size; in cacheOpsInternal() 149 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 150 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 168 int QCameraMemory::getFd(uint32_t index) const in getFd() 170 if (index >= mBufferCount) in getFd() [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlay.h | 166 void validate(int index); 215 static void setUse(int index); 216 static void resetUse(int index); 217 static bool isUsed(int index); 218 static bool isNotUsed(int index); 221 static void setAllocation(int index); 222 static void resetAllocation(int index); 223 static bool isAllocated(int index); 224 static bool isNotAllocated(int index); 274 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VehiclePropConfigIndex_test.cpp | 45 VehiclePropConfigIndex index(configs); in TEST_F() local 47 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::HVAC_FAN_SPEED))); in TEST_F() 48 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_MAKE))); in TEST_F() 49 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_FUEL_CAPACITY))); in TEST_F() 51 ASSERT_FALSE(index.hasConfig(toInt(VehicleProperty::INVALID))); in TEST_F() 55 VehiclePropConfigIndex index(configs); in TEST_F() local 57 std::vector<VehiclePropConfig> actualConfigs = index.getAllConfigs(); in TEST_F() 66 VehiclePropConfigIndex index(configs); in TEST_F() local 67 auto actualConfig = index.getConfig(toInt(VehicleProperty::HVAC_FAN_SPEED)); in TEST_F()
|
/hardware/qcom/display/msm8909/sdm/libs/core/ |
D | display_hdmi.cpp | 164 uint32_t best_index = 0, index; in GetBestConfig() local 171 for (index = 0; index < num_modes; index++) { in GetBestConfig() 172 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 176 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 177 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 181 if (index < num_modes) { in GetBestConfig() 182 best_index = UINT32(index); in GetBestConfig() 183 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 184 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 189 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/core/ |
D | display_hdmi.cpp | 171 uint32_t best_index = 0, index; in GetBestConfig() local 178 for (index = 0; index < num_modes; index++) { in GetBestConfig() 179 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 183 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 184 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 188 if (index < num_modes) { in GetBestConfig() 189 best_index = UINT32(index); in GetBestConfig() 190 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 191 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 196 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/ |
D | display_hdmi.cpp | 164 uint32_t best_index = 0, index; in GetBestConfig() local 171 for (index = 0; index < num_modes; index++) { in GetBestConfig() 172 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 176 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 177 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 181 if (index < num_modes) { in GetBestConfig() 182 best_index = UINT32(index); in GetBestConfig() 183 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 184 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 189 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/ |
D | display_hdmi.cpp | 163 uint32_t best_index = 0, index; in GetBestConfig() local 170 for (index = 0; index < num_modes; index++) { in GetBestConfig() 171 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 175 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 176 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 180 if (index < num_modes) { in GetBestConfig() 181 best_index = UINT32(index); in GetBestConfig() 182 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 183 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 188 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/ |
D | display_hdmi.cpp | 171 uint32_t best_index = 0, index; in GetBestConfig() local 178 for (index = 0; index < num_modes; index++) { in GetBestConfig() 179 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 183 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 184 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 189 index = 0; in GetBestConfig() 190 best_index = UINT32(index); in GetBestConfig() 191 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 195 if (attrib[index].x_pixels > attrib[best_index].x_pixels) { in GetBestConfig() 196 best_index = UINT32(index); in GetBestConfig() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | audiozoom.c | 50 uint32_t index = 0; in start_tag() local 68 while (attr[index] != NULL) { in start_tag() 69 if (strcmp(attr[index], "zoom_id") == 0) { in start_tag() 70 index++; in start_tag() 71 if (attr[index]) in start_tag() 72 qdsp_audiozoom.zoom_param_id = atoi(attr[index]); in start_tag() 75 } else if (strcmp(attr[index], "wide_id") == 0) { in start_tag() 76 index++; in start_tag() 77 if (attr[index]) in start_tag() 78 qdsp_audiozoom.wide_param_id = atoi(attr[index]); in start_tag() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | ValidateRequest.cpp | 68 static void hidl_vec_removeAt(hidl_vec<Type>* vec, uint32_t index) { in hidl_vec_removeAt() argument 70 std::rotate(vec->begin() + index, vec->begin() + index + 1, vec->end()); in hidl_vec_removeAt() 78 const uint32_t index = vec->size(); in hidl_vec_push_back() local 79 vec->resize(index + 1); in hidl_vec_push_back() 80 (*vec)[index] = value; in hidl_vec_push_back() 81 return index; in hidl_vec_push_back() 121 for_all(inputs, [&inputs_info, &inputSize](int index, auto, auto s) { in createRequests() argument 122 if (inputs_info.size() <= static_cast<size_t>(index)) inputs_info.resize(index + 1); in createRequests() 130 inputs_info[index] = s ? arg : arg_empty; in createRequests() 143 for_all(outputs, [&outputs_info, &outputSize](int index, auto, auto s) { in createRequests() argument [all …]
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | ValidateRequest.cpp | 68 static void hidl_vec_removeAt(hidl_vec<Type>* vec, uint32_t index) { in hidl_vec_removeAt() argument 70 std::rotate(vec->begin() + index, vec->begin() + index + 1, vec->end()); in hidl_vec_removeAt() 78 const uint32_t index = vec->size(); in hidl_vec_push_back() local 79 vec->resize(index + 1); in hidl_vec_push_back() 80 (*vec)[index] = value; in hidl_vec_push_back() 81 return index; in hidl_vec_push_back() 121 for_all(inputs, [&inputs_info, &inputSize](int index, auto, auto s) { in createRequests() argument 122 if (inputs_info.size() <= static_cast<size_t>(index)) inputs_info.resize(index + 1); in createRequests() 130 inputs_info[index] = s ? arg : arg_empty; in createRequests() 143 for_all(outputs, [&outputs_info, &outputSize](int index, auto, auto s) { in createRequests() argument [all …]
|