Searched refs:index (Results 276 - 300 of 1822) sorted by relevance

<<11121314151617181920>>

/frameworks/av/drm/mediacas/plugins/clearkey/
H A Decm.h83 // - the accessor foo(index) returns either a value or a const reference to
84 // the instance at index. It is illegal to call with |index| >= the value
85 // returned by foo_size(). |index| is checked with CHECK.
87 // strings use set_foo(index, value) while for objects mutable_foo(index)
88 // returns a pointer. It is illegal to call with |index| >= the value
89 // returned by foo_size(). |index| is checked with CHECK.
91 // Accessing a repeated field with an invalid index causes CHECK to fail.
305 // Returns a pointer to the EcmDescriptor at |index| fo
307 mutable_descriptor(size_t index) argument
[all...]
/frameworks/native/opengl/tools/glgen/src/
H A DJniCodeEmitter.java227 int index = 1;
229 while (index < checks.length) {
230 if (checks[index].equals("nullAllowed") &&
231 checks[index + 1].equals(cname)) {
234 index = skipOneCheck(checks, index);
243 int index = 1;
245 while (index < checks.length) {
246 if (checks[index].startsWith("check")) {
249 index
287 skipOneCheck(String[] checks, int index) argument
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DQueueHelper.java82 int index = 0;
85 return index;
87 index++;
94 int index = 0;
97 return index;
99 index++;
119 // We don't expect queues to change after created, so we use the item index as the
147 public static boolean isIndexPlayable(int index, List<MediaSessionCompat.QueueItem> queue) { argument
148 return (queue != null && index >= 0 && index < queu
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DBrowseTestFragment.java147 int index = 0;
149 listRowAdapter.add("Hello world-" + (index++));
150 listRowAdapter.add("This is a test-" + (index++));
151 listRowAdapter.add("Android TV-" + (index++));
152 listRowAdapter.add("Leanback-" + (index++));
153 listRowAdapter.add("Hello world-" + (index++));
154 listRowAdapter.add("Android TV-" + (index++));
155 listRowAdapter.add("Leanback-" + (index++));
156 listRowAdapter.add("GuidedStepFragment-" + (index++));
H A DBrowseTestSupportFragment.java146 int index = 0;
148 listRowAdapter.add("Hello world-" + (index++));
149 listRowAdapter.add("This is a test-" + (index++));
150 listRowAdapter.add("Android TV-" + (index++));
151 listRowAdapter.add("Leanback-" + (index++));
152 listRowAdapter.add("Hello world-" + (index++));
153 listRowAdapter.add("Android TV-" + (index++));
154 listRowAdapter.add("Leanback-" + (index++));
155 listRowAdapter.add("GuidedStepSupportFragment-" + (index++));
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DQueueHelper.java82 int index = 0;
85 return index;
87 index++;
94 int index = 0;
97 return index;
99 index++;
119 // We don't expect queues to change after created, so we use the item index as the
147 public static boolean isIndexPlayable(int index, List<MediaSessionCompat.QueueItem> queue) { argument
148 return (queue != null && index >= 0 && index < queu
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/
H A DSinglePageUi.java128 public void setIcon(int index, Drawable drawable, CharSequence contentDescription) { argument
129 mSinglePageImageViews[index].setImageDrawable(drawable);
130 mSinglePageImageViews[index].setContentDescription(contentDescription);
145 public void selectItem(int index) { argument
146 mSinglePageImageViews[index].setCircleHidden(false);
150 public void deselectItem(int index) { argument
151 mSinglePageImageViews[index].setCircleHidden(true);
166 * Notifies the {@code presenter} that the item at the given {@code index} has been selected.
173 private OnSelectedClickHandler(int index, WearableNavigationDrawerPresenter presenter) { argument
174 mIndex = index;
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DASessionDescription.cpp172 void ASessionDescription::getFormat(size_t index, AString *value) const { argument
173 CHECK_GE(index, 0u);
174 CHECK_LT(index, mTracks.size());
176 *value = mFormats.itemAt(index);
180 size_t index, const char *key, AString *value) const {
181 CHECK_GE(index, 0u);
182 CHECK_LT(index, mTracks.size());
186 const Attribs &track = mTracks.itemAt(index);
199 size_t index, unsigned long *PT,
202 getFormat(index,
179 findAttribute( size_t index, const char *key, AString *value) const argument
198 getFormatType( size_t index, unsigned long *PT, AString *desc, AString *params) const argument
227 getDimensions( size_t index, unsigned long PT, int32_t *width, int32_t *height) const argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DGridLayoutAnimationController.java30 * While {@link LayoutAnimationController} relies only on the index of the child
345 int index;
348 index = params.columnsCount - 1 - params.column;
354 index = (int) (params.columnsCount * mRandomizer.nextFloat());
358 index = params.column;
364 index = params.columnsCount - 1 - index;
367 return index;
371 int index;
374 index
[all...]
/frameworks/support/compat/src/main/java/androidx/core/content/res/
H A DTypedArrayUtils.java166 * Retrieve the raw TypedValue for the attribute at <var>index</var>
195 * @return a boolean value of {@code index}. If it does not exist, a boolean value of
198 public static boolean getBoolean(@NonNull TypedArray a, @StyleableRes int index, argument
201 return a.getBoolean(index, val);
205 * @return a drawable value of {@code index}. If it does not exist, a drawable value of
209 public static Drawable getDrawable(@NonNull TypedArray a, @StyleableRes int index, argument
211 Drawable val = a.getDrawable(index);
219 * @return an int value of {@code index}. If it does not exist, an int value of
222 public static int getInt(@NonNull TypedArray a, @StyleableRes int index, argument
225 return a.getInt(index, va
233 getResourceId(@onNull TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, @AnyRes int defaultValue) argument
244 getString(@onNull TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex) argument
260 getText(@onNull TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex) argument
276 getTextArray(@onNull TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex) argument
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java193 * @param index the 1-based index to bind at
196 public static void bindObjectToProgram(SQLiteProgram prog, int index, argument
199 prog.bindNull(index);
201 prog.bindDouble(index, ((Number)value).doubleValue());
203 prog.bindLong(index, ((Number)value).longValue());
207 prog.bindLong(index, 1);
209 prog.bindLong(index, 0);
212 prog.bindBlob(index, (byte[]) value);
214 prog.bindString(index, valu
616 cursorStringToInsertHelper(Cursor cursor, String field, InsertHelper inserter, int index) argument
1163 bind(int index, double value) argument
1173 bind(int index, float value) argument
1183 bind(int index, long value) argument
1193 bind(int index, int value) argument
1203 bind(int index, boolean value) argument
1212 bindNull(int index) argument
1222 bind(int index, byte[] value) argument
1236 bind(int index, String value) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/enc/
H A DSoftVP8Encoder.cpp91 OMX_ERRORTYPE SoftVP8Encoder::internalGetParameter(OMX_INDEXTYPE index, argument
93 // can include extension index OMX_INDEXEXTTYPE
94 const int32_t indexFull = index;
102 return SoftVPXEncoder::internalGetParameter(index, param);
106 OMX_ERRORTYPE SoftVP8Encoder::internalSetParameter(OMX_INDEXTYPE index, argument
108 // can include extension index OMX_INDEXEXTTYPE
109 const int32_t indexFull = index;
117 return SoftVPXEncoder::internalSetParameter(index, param);
/frameworks/base/core/java/android/net/
H A DRssiCurve.java153 int index = (rssi - start) / bucketWidth;
155 // Snap the index to the closest bucket if it falls outside the curve.
156 if (index < 0) {
157 index = 0;
158 } else if (index > rssiBuckets.length - 1) {
159 index = rssiBuckets.length - 1;
162 return rssiBuckets[index];
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java274 * Gets the X coefficient with the specified index.
275 * @param index The index of the coefficient to return.
276 * @return The X coefficient, or 0 if the index is greater than the degree.
278 public float getXCoeff(int index) { argument
279 return index <= degree ? xCoeff[index] : 0;
283 * Gets the Y coefficient with the specified index.
284 * @param index The index o
287 getYCoeff(int index) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dhistogram.cpp88 int index = static_cast<int>(s * sScaler) * hBins + static_cast<int>(h * hScaler); local
89 histOut[index] += 1.0f;
115 int index; local
119 // Shifting hue index by 0.5 such that peaks of red, yellow, green, cyan, blue, pink
122 index = sIndex * hueBins + hIndex;
124 index = hueBins * saturationBins + (v * valueBins / 256);
126 histOut[index] += 1.0f;
/frameworks/layoutlib/bridge/src/libcore/io/
H A DMemoryMappedFile_Delegate.java86 Long index = sMemoryMappedFileMap.get(thisFile);
87 if (index != null) {
89 sManager.removeJavaReferenceFor(index);
114 Long index = sMemoryMappedFileMap.get(file);
115 return index == null ? null : sManager.getDelegate(index);
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
H A DRemoteXmlPullParser.java83 String getAttributeNamespace(int index) throws RemoteException; argument
85 String getAttributeName(int index) throws RemoteException; argument
87 String getAttributePrefix(int index) throws RemoteException; argument
89 String getAttributeType(int index) throws RemoteException; argument
91 boolean isAttributeDefault(int index) throws RemoteException; argument
93 String getAttributeValue(int index) throws RemoteException; argument
/frameworks/ml/nn/runtime/
H A DModelBuilder.h40 int setOperandValue(uint32_t index, const void* buffer, size_t length);
41 int setOperandValueFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
76 const Operand& getOperand(uint32_t index) const { return mOperands[index]; }
77 const Operation& getOperation(uint32_t index) const { return mOperations[index]; }
128 // Operand index and buffer pointer for all the large operand values of this model.
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduBody.java92 * @param index index at which the specified part is to be inserted
96 public void addPart(int index, PduPart part) { argument
102 mParts.add(index, part);
108 * @param index index of the part to return
109 * @return part at the specified index
111 public PduPart removePart(int index) { argument
112 return mParts.remove(index);
125 * @param index inde
128 getPart(int index) argument
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Drsdebug.rs38 static bool basic_test(uint32_t index) {
65 void test_rsdebug(uint32_t index, int test_num) {
67 failed |= basic_test(index);
H A Drstime.rs19 static bool basic_test(uint32_t index) {
55 void test_rstime(uint32_t index, int test_num) {
57 failed |= basic_test(index);
/frameworks/rs/tests/lldb/java/InfiniteLoop/src/com/android/rs/infiniteloop/
H A DMainActivity.java117 int index = -1;
120 index = mCurrentBitmap;
131 mScript.forEach_simple_kernel(mInAllocation, mOutAllocations[index]);
136 mOutAllocations[index].copyTo(mBitmapsOut[index]);
139 return index;
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DVolumeCurve.h35 CurvePoint(int index, int attenuationInMb) : argument
36 mIndex(index), mAttenuationInMb(attenuationInMb) {}
48 // a given volume index from 0 to 100
99 void addCurrentVolumeIndex(audio_devices_t device, int index) { mIndexCur.add(device, index); } argument
127 ssize_t index = indexOfKey(deviceCategory); local
128 if (index < 0) {
133 return index;
151 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */
152 int mIndexMin; /**< min volume index
182 addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java53 protected abstract Bitmap doInBackground(Object task, int index, long position); argument
60 LoadBitmapTask(int index, ResultCallback callback) { argument
61 mIndex = index;
104 public void getThumbnail(int index, ResultCallback callback) { argument
105 Integer key = index;
108 callback.onThumbnailLoaded(bitmap, index);
114 callback.onThumbnailLoaded(bitmap, index);
116 LoadBitmapTask task = mRequests.get(index);
119 task = new LoadBitmapTask(index, callback);
120 mRequests.put(index, tas
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DArrayObjectAdapter.java70 public Object get(int index) { argument
71 return mItems.get(index);
75 * Returns the index for the first occurrence of item in the adapter, or -1 if
107 * Inserts an item into this adapter at the specified index.
108 * If the index is > {@link #size} an exception will be thrown.
110 * @param index The index at which the item should be inserted.
113 public void add(int index, Object item) { argument
114 mItems.add(index, item);
115 notifyItemRangeInserted(index,
125 addAll(int index, Collection items) argument
[all...]

Completed in 4752 milliseconds

<<11121314151617181920>>