Searched refs:idx (Results 51 - 75 of 239) sorted by relevance

12345678910

/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp72 std::string::size_type idx = comment.find(rule.doc_str.data()); local
73 if (idx != std::string::npos) {
75 comment.erase(comment.begin() + idx, comment.begin() + idx + rule.doc_str.size());
/frameworks/base/tools/aapt2/split/
H A DTableSplitter.cpp176 for (size_t idx = 0; idx < split_count; idx++) {
177 ResourceTable* split_table = splits_[idx].get();
219 for (size_t idx = 0; idx < split_count; idx++) {
220 const SplitConstraints& split_constraint = split_constraints_[idx];
221 ResourceTable* split_table = splits_[idx].get();
/frameworks/native/vulkan/libvulkan/
H A Dstubhal.cpp86 ssize_t idx = local
88 ALOG_ASSERT(idx >= 0 && static_cast<size_t>(idx) < g_instance_used.size(),
90 g_instance_used[static_cast<size_t>(idx)] = false;
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp647 status_t getLockedImageInfo(LockedImage* buffer, int idx, argument
655 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx);
673 (idx == 0) ?
675 (idx == 1) ?
679 if (idx == 0) {
699 (idx == 0) ?
701 (idx
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessMappingStrategy.java250 final int idx = findInsertionPoint(luxLevels, lux);
253 if (idx == luxLevels.length) {
256 newLuxLevels[idx] = lux;
257 newBrightnessLevels[idx] = brightness;
258 } else if (luxLevels[idx] == lux) {
261 newBrightnessLevels[idx] = brightness;
264 System.arraycopy(newLuxLevels, idx, newLuxLevels, idx+1, luxLevels.length - idx);
265 newLuxLevels[idx]
290 smoothCurve(float[] lux, float[] brightness, int idx) argument
[all...]
/frameworks/base/tools/split-select/
H A DMain.cpp161 ssize_t idx = xml.indexOfAttribute( local
164 if (idx >= 0) {
165 outInfo.versionCode = xml.getAttributeData(idx);
169 ssize_t idx = xml.indexOfAttribute( local
172 if (idx >= 0) {
173 outInfo.multiArch = xml.getAttributeData(idx) != 0;
177 ssize_t idx = xml.indexOfAttribute( local
180 if (idx >= 0) {
181 uint16_t type = xml.getAttributeDataType(idx);
183 outInfo.minSdkVersion = xml.getAttributeData(idx);
[all...]
/frameworks/native/opengl/tools/glgen/src/
H A DJniCodeEmitter.java543 int idx = nonPrimitiveArgs.get(i).intValue();
544 int cIndex = jfunc.getArgCIndex(idx);
545 if (jfunc.getArgType(idx).isArray()) {
549 } else if (jfunc.getArgType(idx).isBuffer()) {
907 int idx = nonPrimitiveArgs.get(i).intValue();
908 JType argType = jfunc.getArgType(idx);
1047 int idx = nonPrimitiveArgs.get(i).intValue();
1048 int cIndex = jfunc.getArgCIndex(idx);
1051 if (jfunc.getArgType(idx).isBuffer()
1052 || jfunc.getArgType(idx)
[all...]
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DStats.java92 int idx = (values.size() - 1) * percentile / 100;
93 return values.get(idx);
/frameworks/layoutlib/bridge/src/android/text/
H A DOptimizingLineBreaker.java122 int idx = numBreaks - 1;
123 int count = opt[idx].mPrevCount;
125 while (opt[idx].mPrev != -1) {
129 breakInfo.breaks[count] = mPrimitives.get(idx).location;
130 breakInfo.widths[count] = opt[idx].mWidth;
131 breakInfo.flags [count] = opt[idx].mHasTabs ? TAB_MASK : 0;
132 idx = opt[idx].mPrev;
/frameworks/base/core/jni/
H A Dandroid_util_StringBlock.cpp75 jlong token, jint idx)
84 const char* str8 = osb->string8At(idx, &len);
89 const char16_t* str = osb->stringAt(idx, &len);
99 jlong token, jint idx)
107 const ResStringPool_span* spans = osb->styleAt(idx);
74 android_content_StringBlock_nativeGetString(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
98 android_content_StringBlock_nativeGetStyle(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DBroadcastRadioService.java64 public @NonNull Collection<RadioManager.ModuleProperties> loadModules(int idx) { argument
65 Slog.v(TAG, "loadModules(" + idx + ")");
70 RadioModule module = RadioModule.tryLoadingModule(idx, serviceName);
72 Slog.i(TAG, "loaded broadcast radio module " + idx + ": " +
74 mModules.put(idx++, module);
/frameworks/base/tests/JankBench/app/src/main/jni/
H A DWorkerPool.cpp205 uint32_t idx = __sync_fetch_and_add(&wp->mLaunchCount, 1); local
207 wp->mLaunchSignals[idx].init();
208 wp->mNativeThreadId[idx] = gettid();
211 wp->mLaunchSignals[idx].wait();
213 // idx +1 is used because the calling thread is always worker 0.
214 wp->mLaunchCallback(wp->mLaunchData, idx);
220 //ALOGV("RS helperThread exited %p idx=%i", dc, idx);
/frameworks/av/media/libmedia/include/media/
H A DNdkWrapper.h242 uint8_t* getInputBuffer(size_t idx, size_t *out_size);
243 uint8_t* getOutputBuffer(size_t idx, size_t *out_size);
246 size_t idx,
253 size_t idx,
262 status_t releaseOutputBuffer(size_t idx, bool render);
266 status_t releaseOutputBufferAtTime(size_t idx, int64_t timestampNs);
302 sp<AMediaFormatWrapper> getTrackFormat(size_t idx);
304 status_t selectTrack(size_t idx);
306 status_t unselectTrack(size_t idx);
308 status_t selectSingleTrack(size_t idx);
[all...]
/frameworks/base/tools/aapt2/compile/
H A DNinePatch.cpp89 // virtual uint32_t GetColor(int32_t idx) const = 0;
101 for (int32_t idx = 1; idx < length - 1; idx++) {
102 const uint32_t color = image_line->GetColor(idx);
112 primary_ranges->back().end = idx - 1;
114 secondary_ranges->back().end = idx - 1;
120 primary_ranges->push_back(Range(idx - 1, length - 2));
122 secondary_ranges->push_back(Range(idx - 1, length - 2));
142 inline uint32_t GetColor(int32_t idx) cons
[all...]
/frameworks/base/core/java/android/os/
H A DLocaleList.java357 for (int idx = 0; idx < mList.length; idx++) {
358 final int score = matchScore(supportedLocale, mList[idx]);
360 return idx;
380 final int idx = findFirstMatchIndex(EN_LATN);
381 if (idx == 0) { // We have a match on the first locale, which is good enough
383 } else if (idx < bestIndex) {
384 bestIndex = idx;
391 final int idx
[all...]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneData.java108 int idx = 0;
111 return idx;
113 idx++;
193 int idx = 0;
210 group.add(idx);
214 indexByOffsets(idx, tz);
224 idx++;
293 private void indexByOffsets(int idx, TimeZoneInfo tzi) { argument
303 group.add(idx);
515 int idx
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_reduce_backward.java107 for (int idx = 0; idx < input.length; ++idx)
108 rslt += input[idx];
144 for (int idx = 0; idx < input.length; ++idx) {
145 if (input[idx] < minVal) {
146 minVal = input[idx];
147 minIdx = idx;
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_reduce_backward.java109 for (int idx = 0; idx < input.length; ++idx)
110 rslt += input[idx];
146 for (int idx = 0; idx < input.length; ++idx) {
147 if (input[idx] < minVal) {
148 minVal = input[idx];
149 minIdx = idx;
[all...]
/frameworks/support/compat/src/main/java/androidx/core/os/
H A DLocaleListHelper.java341 for (int idx = 0; idx < mList.length; idx++) {
342 final int score = matchScore(supportedLocale, mList[idx]);
344 return idx;
364 final int idx = findFirstMatchIndex(EN_LATN);
365 if (idx == 0) { // We have a match on the first locale, which is good enough
367 } else if (idx < bestIndex) {
368 bestIndex = idx;
375 final int idx
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp482 size_t idx; local
483 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs);
486 return idx;
492 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { argument
496 if (mData->mCodec->getInputBuffer(idx, &abuf) != 0) {
509 if (idx >= n) {
510 ALOGE("buffer index %zu out of range", idx);
513 if (abufs[idx] == NULL) {
514 ALOGE("buffer index %zu is NULL", idx);
518 *out_size = abufs[idx]
527 AMediaCodec_getOutputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) argument
558 AMediaCodec_queueInputBuffer(AMediaCodec *mData, size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags) argument
569 size_t idx; local
618 AMediaCodec_releaseOutputBuffer(AMediaCodec *mData, size_t idx, bool render) argument
627 AMediaCodec_releaseOutputBufferAtTime( AMediaCodec *mData, size_t idx, int64_t timestampNs) argument
749 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
H A DBrightnessMappingStrategyTest.java242 final int idx = lux.length / 2;
243 int tmp = lux[idx];
244 lux[idx] = lux[idx+1];
245 lux[idx+1] = tmp;
252 lux[idx] = lux[idx+1];
326 final int idx = LUX_LEVELS.length / 2;
327 strategy.addUserDataPoint(LUX_LEVELS[idx], 1.0f);
330 for (int i = idx;
[all...]
/frameworks/base/core/java/android/content/pm/split/
H A DSplitAssetDependencyLoader.java120 public AssetManager getSplitAssetManager(int idx) throws PackageParserException { argument
123 loadDependenciesForSplit(idx + 1);
124 return mCachedAssetManagers[idx + 1];
/frameworks/base/libs/androidfw/
H A DTypeWrappers.cpp34 mLength = ResTable_sparseTypeEntry{entryIndices[entryCount - 1]}.idx + 1;
48 return dtohs(ResTable_sparseTypeEntry{entry}.idx) < index;
71 || dtohs(ResTable_sparseTypeEntry{*iter}.idx) != mIndex) {
/frameworks/compile/slang/
H A Dslang_rs_reflection_state.h568 Member &operator[](size_t idx) {
569 slangAssert(idx < mSize);
570 return mMembers[idx];
572 const Member &operator[](size_t idx) const {
573 slangAssert(idx < mSize);
574 return mMembers[idx];
754 std::pair<Val32, Val32> getFieldPreAndPostPadding(unsigned idx) const {
755 if (!mRecord || idx >= mRecord->mFieldCount)
757 const File::Record::Field &field = mRecord->mFields[idx];
761 std::pair<Val32, Val32> getFieldOffsetAndStoreSize(unsigned idx) cons
[all...]
/frameworks/ml/nn/runtime/
H A DMemory.cpp142 uint32_t idx = static_cast<uint32_t>(next); local
143 mKnown[memory] = idx;
145 return idx;

Completed in 1071 milliseconds

12345678910