Home
last modified time | relevance | path

Searched refs:newVec (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/binder/ndk/
Dpersistable_bundle.cpp107 std::vector<bool> newVec(num); in APersistableBundle_putBooleanVector() local
109 newVec[i] = vec[i]; in APersistableBundle_putBooleanVector()
111 pBundle->mPBundle.putBooleanVector(android::String16(key), newVec); in APersistableBundle_putBooleanVector()
116 std::vector<int32_t> newVec(num); in APersistableBundle_putIntVector() local
118 newVec[i] = vec[i]; in APersistableBundle_putIntVector()
120 pBundle->mPBundle.putIntVector(android::String16(key), newVec); in APersistableBundle_putIntVector()
125 std::vector<int64_t> newVec(num); in APersistableBundle_putLongVector() local
127 newVec[i] = vec[i]; in APersistableBundle_putLongVector()
129 pBundle->mPBundle.putLongVector(android::String16(key), newVec); in APersistableBundle_putLongVector()
134 std::vector<double> newVec(num); in APersistableBundle_putDoubleVector() local
[all …]
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dpersistable_bundle_aidl.h213 bool* newVec = (bool*)malloc(num * sizeof(bool)); in putBooleanVector() local
214 if (newVec) { in putBooleanVector()
216 newVec[i] = vec[i]; in putBooleanVector()
218 APersistableBundle_putBooleanVector(mPBundle, key.c_str(), newVec, num); in putBooleanVector()
219 free(newVec); in putBooleanVector()
330 T* newVec = (T*)malloc(bytes); in getVecInternal() local
331 if (newVec) { in getVecInternal()
332 bytes = getVec(pBundle, key, newVec, bytes); in getVecInternal()
336 vec->push_back(newVec[i]); in getVecInternal()
338 free(newVec); in getVecInternal()