Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 195) sorted by relevance

12345678

/hardware/qcom/sdm845/media/libstagefrighthw/
DQComOMXPlugin.cpp106 OMX_U8 **array, in freeArrayOfAllocatedMemory() argument
114 delete[] array[count]; in freeArrayOfAllocatedMemory()
115 array[count] = NULL; in freeArrayOfAllocatedMemory()
137 OMX_U8 **array = new OMX_U8 *[numRoles]; in getRolesOfComponent() local
138 if (array == NULL) { in getRolesOfComponent()
143 array[i] = new OMX_U8[OMX_MAX_STRINGNAME_SIZE]; in getRolesOfComponent()
144 if (array[i] == NULL) { in getRolesOfComponent()
145 freeArrayOfAllocatedMemory(array, i); in getRolesOfComponent()
146 delete[] array; in getRolesOfComponent()
147 array = NULL; in getRolesOfComponent()
[all …]
/hardware/qcom/sm8150/media/libstagefrighthw/
DQComOMXPlugin.cpp106 OMX_U8 **array, in freeArrayOfAllocatedMemory() argument
114 delete[] array[count]; in freeArrayOfAllocatedMemory()
115 array[count] = NULL; in freeArrayOfAllocatedMemory()
137 OMX_U8 **array = new OMX_U8 *[numRoles]; in getRolesOfComponent() local
138 if (array == NULL) { in getRolesOfComponent()
143 array[i] = new OMX_U8[OMX_MAX_STRINGNAME_SIZE]; in getRolesOfComponent()
144 if (array[i] == NULL) { in getRolesOfComponent()
145 freeArrayOfAllocatedMemory(array, i); in getRolesOfComponent()
146 delete[] array; in getRolesOfComponent()
147 array = NULL; in getRolesOfComponent()
[all …]
/hardware/qcom/msm8998/json-c/
Darraylist.c35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new()
47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free()
48 free(arr->array); in array_list_free()
56 return arr->array[i]; in array_list_get_idx()
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal()
69 arr->array = (void**)t; in array_list_expand_internal()
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
/hardware/google/easel/amber/camera/include/
DHdrPlusTypes.h224 std::vector<std::array<T, SIZE>> values);
228 std::array<T, SIZE> values);
247 std::array<int32_t, 2> sensitivityRange; // android.sensor.info.sensitivityRange
249 std::array<int32_t, 2> pixelArraySize; // android.sensor.info.pixelArraySize
250 std::array<int32_t, 4> activeArraySize; // android.sensor.info.activeArraySize
251 std::vector<std::array<int32_t, 4>> opticalBlackRegions; // android.sensor.opticalBlackRegions
253 std::vector<std::array<int32_t, 4>> availableStreamConfigurations;
256 std::array<float, 9> calibrationTransform1; // android.sensor.calibrationTransform1
257 std::array<float, 9> calibrationTransform2; // android.sensor.calibrationTransform2
258 std::array<float, 9> colorTransform1; // android.sensor.colorTransform1
[all …]
/hardware/qcom/media/msm8974/libstagefrighthw/
DQComOMXPlugin.cpp123 OMX_U8 **array = new OMX_U8 *[numRoles]; in getRolesOfComponent() local
125 array[i] = new OMX_U8[OMX_MAX_STRINGNAME_SIZE]; in getRolesOfComponent()
130 const_cast<OMX_STRING>(name), &numRoles2, array); in getRolesOfComponent()
141 String8 s((const char *)array[i]); in getRolesOfComponent()
144 delete[] array[i]; in getRolesOfComponent()
145 array[i] = NULL; in getRolesOfComponent()
148 delete[] array; in getRolesOfComponent()
149 array = NULL; in getRolesOfComponent()
/hardware/qcom/media/msm8998/libstagefrighthw/
DQComOMXPlugin.cpp123 OMX_U8 **array = new OMX_U8 *[numRoles]; in getRolesOfComponent() local
125 array[i] = new OMX_U8[OMX_MAX_STRINGNAME_SIZE]; in getRolesOfComponent()
130 const_cast<OMX_STRING>(name), &numRoles2, array); in getRolesOfComponent()
141 String8 s((const char *)array[i]); in getRolesOfComponent()
144 delete[] array[i]; in getRolesOfComponent()
145 array[i] = NULL; in getRolesOfComponent()
148 delete[] array; in getRolesOfComponent()
149 array = NULL; in getRolesOfComponent()
/hardware/qcom/media/msm8996/libstagefrighthw/
DQComOMXPlugin.cpp123 OMX_U8 **array = new OMX_U8 *[numRoles]; in getRolesOfComponent() local
125 array[i] = new OMX_U8[OMX_MAX_STRINGNAME_SIZE]; in getRolesOfComponent()
130 const_cast<OMX_STRING>(name), &numRoles2, array); in getRolesOfComponent()
141 String8 s((const char *)array[i]); in getRolesOfComponent()
144 delete[] array[i]; in getRolesOfComponent()
145 array[i] = NULL; in getRolesOfComponent()
148 delete[] array; in getRolesOfComponent()
149 array = NULL; in getRolesOfComponent()
/hardware/interfaces/drm/1.0/default/
DTypeConvert.h34 vec.setToExternal(const_cast<T *>(Vector.array()), Vector.size()); in toHidlVec()
57 const hidl_array<T, SIZE> &array) { in toVector() argument
59 vector.appendArray(array.data(), array.size()); in toVector()
64 hidl_array<T, SIZE> &array) { in toVector() argument
66 vector.appendArray(array.data(), array.size()); in toVector()
/hardware/interfaces/wifi/1.3/default/
Dwifi_iface_util.h46 virtual std::array<uint8_t, 6> getFactoryMacAddress(
49 const std::array<uint8_t, 6>& mac);
53 virtual std::array<uint8_t, 6> getOrCreateRandomMacAddress();
61 std::array<uint8_t, 6> createRandomMacAddress();
64 std::unique_ptr<std::array<uint8_t, 6>> random_mac_address_;
Dwifi_iface_util.cpp48 std::array<uint8_t, 6> WifiIfaceUtil::getFactoryMacAddress( in getFactoryMacAddress()
54 const std::array<uint8_t, 6>& mac) { in setMacAddress()
79 std::array<uint8_t, 6> WifiIfaceUtil::getOrCreateRandomMacAddress() { in getOrCreateRandomMacAddress()
84 std::make_unique<std::array<uint8_t, 6>>(createRandomMacAddress()); in getOrCreateRandomMacAddress()
98 std::array<uint8_t, 6> WifiIfaceUtil::createRandomMacAddress() { in createRandomMacAddress()
99 std::array<uint8_t, 6> address = {}; in createRandomMacAddress()
/hardware/libhardware/modules/camera/3_4/
Dformat_metadata_factory_test.cpp52 std::map<uint32_t, std::set<std::array<int32_t, 2>>> sizes{ in TEST_F()
58 std::map<uint32_t, std::map<std::array<int32_t, 2>, std::array<int64_t, 2>>> in TEST_F()
85 std::set<std::array<int32_t, 2>> format_sizes = sizes[format]; in TEST_F()
132 std::map<uint32_t, std::set<std::array<int32_t, 2>>> sizes{ in TEST_F()
134 std::map<uint32_t, std::map<std::array<int32_t, 2>, std::array<int64_t, 2>>> in TEST_F()
149 std::set<std::array<int32_t, 2>> format_sizes = sizes[format]; in TEST_F()
167 std::vector<std::array<int32_t, 2>> target_fps_ranges{{{5, 10}}, {{10, 10}}}; in TEST_F()
Dformat_metadata_factory.cpp59 static int FpsRangesCompare(std::array<int32_t, 2> a, in FpsRangesCompare()
60 std::array<int32_t, 2> b) { in FpsRangesCompare()
124 std::vector<std::array<int32_t, 2>> fps_ranges; in AddFormatComponents()
172 std::set<std::array<int32_t, 2>> frame_sizes; in AddFormatComponents()
188 std::array<int64_t, 2> duration_range; in AddFormatComponents()
233 std::array<int32_t, 2>{min_fps, max_fps}) == in AddFormatComponents()
256 insertion_point = NoEffectMenuControl<std::array<int32_t, 2>>( in AddFormatComponents()
Dv4l2_wrapper_mock.h41 int(uint32_t, std::set<std::array<int32_t, 2>>*));
44 const std::array<int32_t, 2>&,
45 std::array<int64_t, 2>*));
/hardware/interfaces/wifi/1.3/default/tests/
Dmock_wifi_iface_util.h36 std::array<uint8_t, 6>(const std::string&));
38 bool(const std::string&, const std::array<uint8_t, 6>&));
39 MOCK_METHOD0(getOrCreateRandomMacAddress, std::array<uint8_t, 6>());
Dmock_interface_tool.h35 const std::array<uint8_t, ETH_ALEN>& address));
37 std::array<uint8_t, ETH_ALEN>(const char* if_name));
/hardware/libhardware/modules/camera/3_4/metadata/
Dmetadata_reader_test.cpp159 std::array<int32_t, 3> expected = {{12, 34, 56}}; in TEST_F()
164 std::array<int32_t, 3> actual; in TEST_F()
171 std::array<int32_t, 4> invalid = {{12, 34, 56, 78}}; in TEST_F()
190 std::array<int32_t, 4> config1{ in TEST_F()
192 std::array<int32_t, 4> config2{ in TEST_F()
215 std::array<int32_t, 4> config{{1, 2, 3, -1}}; in TEST_F()
226 std::array<int32_t, 4> config{ in TEST_F()
238 std::array<int32_t, 5> config{ in TEST_F()
259 std::array<int64_t, 4> stall1{{1, 2, 3, 4}}; in TEST_F()
260 std::array<int64_t, 4> stall2{{5, 6, 7, 8}}; in TEST_F()
[all …]
Dtest_common.h67 const std::array<T, N>& expected) { in ExpectMetadataEq()
84 const std::vector<std::array<T, N>>& expected) { in ExpectMetadataEq()
87 for (const auto& array : expected) { in ExpectMetadataEq() local
88 array_vector.push_back(array); in ExpectMetadataEq()
Dmetadata_common.h93 const std::array<T, N>& val) { in UpdateMetadata()
109 const std::vector<std::array<T, N>>& val) { in UpdateMetadata()
112 for (const auto& array : val) { in UpdateMetadata() local
113 array_vector.push_back(array); in UpdateMetadata()
211 std::array<T, N>* val) { in SingleTagValue()
284 std::vector<std::array<T, N>>* val) { in VectorTagValue()
311 *val = std::vector<std::array<T, N>>(num_arrays); in VectorTagValue()
/hardware/interfaces/tests/foo/1.0/default/lib/include/hidl-test/
DFooHelper.h41 std::string to_string(const hidl_array<T, SIZE> &array) { in to_string() argument
42 return to_string(&array[0], SIZE); in to_string()
46 std::string to_string(const hidl_array<T, SIZE1, SIZE2> &array) { in to_string() argument
60 out += to_string(array[i][j]); in to_string()
/hardware/qcom/sm8150/display/libhistogram/
Dhistogram_collector.cpp60 std::array<uint64_t, numBuckets> rebucketTo8Buckets(std::array<uint64_t, HIST_V_SIZE> const& frame)… in rebucketTo8Buckets()
61 std::array<uint64_t, numBuckets> bins; in rebucketTo8Buckets()
71 std::array<uint64_t, HIST_V_SIZE> all_sample_buckets; in Dump()
73 std::array<uint64_t, numBuckets> samples = rebucketTo8Buckets(all_sample_buckets); in Dump()
109 std::array<uint64_t, HIST_V_SIZE> samples; in collect()
Dringbuffer.h54 … using Sample = std::tuple<uint64_t /* numFrames */, std::array<uint64_t, HIST_V_SIZE> /* bins */>;
69 …void update_cumulative(nsecs_t now, uint64_t& count, std::array<uint64_t, HIST_V_SIZE>& bins) cons…
82 std::array<uint64_t, HIST_V_SIZE> cumulative_bins;
/hardware/libhardware/modules/camera/3_0/
DCamera.h72 void destroyStreams(Stream **array, int count);
74 bool isValidStreamSet(Stream **array, int count);
76 void setupStreams(Stream **array, int count);
/hardware/st/secure_element/ese-spi-driver/utils-lib/
DUtils.cc38 int Utils_charArrayToHexString(char* array, int length, char* hexString) { in Utils_charArrayToHexString() argument
42 ptr += sprintf(ptr, "%02X ", array[i]); in Utils_charArrayToHexString()
/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer.h54 … using Sample = std::tuple<uint64_t /* numFrames */, std::array<uint64_t, HIST_V_SIZE> /* bins */>;
69 …void update_cumulative(nsecs_t now, uint64_t& count, std::array<uint64_t, HIST_V_SIZE>& bins) cons…
82 std::array<uint64_t, HIST_V_SIZE> cumulative_bins;
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp153 const cppbor::Array* array = compoundItem->asArray(); in cborAreAllElementsNonCompound() local
154 for (size_t n = 0; n < array->size(); n++) { in cborAreAllElementsNonCompound()
155 const cppbor::Item* entry = (*array)[n].get(); in cborAreAllElementsNonCompound()
242 const cppbor::Array* array = item->asArray(); in cborPrettyPrintInternal() local
243 if (array->size() == 0) { in cborPrettyPrintInternal()
245 } else if (cborAreAllElementsNonCompound(array)) { in cborPrettyPrintInternal()
247 for (size_t n = 0; n < array->size(); n++) { in cborPrettyPrintInternal()
248 if (!cborPrettyPrintInternal((*array)[n].get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal()
257 for (size_t n = 0; n < array->size(); n++) { in cborPrettyPrintInternal()
259 if (!cborPrettyPrintInternal((*array)[n].get(), out, indent + 2, maxBStrSize, in cborPrettyPrintInternal()
[all …]

12345678