Searched defs:index (Results 201 - 225 of 699) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DProgram.cpp113 ssize_t index = mAttributes.indexOfKey(name); local
114 if (index >= 0) {
115 return mAttributes.valueAt(index);
127 ssize_t index = mUniforms.indexOfKey(name); local
128 if (index >= 0) {
129 return mUniforms.valueAt(index);
H A DRenderBufferCache.cpp114 ssize_t index = mCache.indexOf(entry); local
116 if (index >= 0) {
117 entry = mCache.itemAt(index);
118 mCache.removeAt(index);
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.cpp79 ssize_t index = _indexOrderOf(item, &order); local
80 index = VectorImpl::insertAt(item, order, 1);
81 return index;
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c77 static void send_string(struct usb_device *device, int index, const char* string) { argument
79 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c56 int index, other; local
63 index = empty_index;
64 other = (index == 0 ? 1 : 0);
65 buffer_states[index] = BUFFER_BUSY;
72 return index;
75 static void put_empty(int index) argument
79 buffer_states[index] = BUFFER_EMPTY;
81 empty_index = index;
90 int index, other; local
97 index
109 put_full(int index) argument
149 int index = get_empty(); local
168 int index, err; local
[all...]
H A Dusb.c78 static void send_string(struct usb_device *device, int index, const char* string) { argument
80 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
/frameworks/base/media/java/android/media/
H A DAudioPort.java133 * Get the gain descriptor at a given index
135 AudioGain gain(int index) { argument
136 if (index < 0 || index >= mGains.length) {
139 return mGains[index];
H A DMediaCodecList.java52 * the given {@code index} in the regular list.
58 public static final MediaCodecInfo getCodecInfoAt(int index) { argument
60 if (index < 0 || index > sRegularCodecInfos.length) {
63 return sRegularCodecInfos[index];
76 for (int index = 0; index < count; index++) {
78 MediaCodecInfo info = getNewCodecInfoAt(index);
96 private static MediaCodecInfo getNewCodecInfoAt(int index) { argument
108 getCodecName(int index) argument
110 isEncoder(int index) argument
112 getSupportedTypes(int index) argument
115 getCodecCapabilities(int index, String type) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetCarousel.java56 public float getAlphaForPage(int screenCenter, int index, boolean showSidePages) { argument
57 View child = getChildAt(index);
60 boolean inVisibleRange = index >= getNextPage() - 1 && index <= getNextPage() + 1;
61 float scrollProgress = getScrollProgress(screenCenter, child, index);
63 if (isOverScrollChild(index, scrollProgress)) {
65 } else if ((showSidePages && inVisibleRange) || index == getNextPage()) {
66 scrollProgress = getBoundedScrollProgress(screenCenter, child, index);
74 public float getOutlineAlphaForPage(int screenCenter, int index, boolean showSidePages) { argument
75 boolean inVisibleRange = index >
192 getTransformForPage(int screenCenter, int index, float[] transform) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DFileA3D.java35 * index entries for all the objects stored inside it.
71 * objects inside the file's index. It could be used to query the
85 * Returns the name of a renderscript object the index entry
88 * @return name of a renderscript object the index entry
98 * Returns the type of a renderscript object the index entry
100 * @return type of a renderscript object the index entry
109 * Used to load the object described by the index entry
120 * Used to load the mesh described by the index entry, object
121 * described by the index entry must be a renderscript mesh
154 IndexEntry(RenderScript rs, int index, lon argument
211 getIndexEntry(int index) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbDeviceManager.cpp52 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument
60 env->SetObjectArrayElement(strArray, index, obj);
/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/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DDisplayModifier.java54 int index;
55 for (index = 0; index < gTriPts.length; index++) {
56 gLinePts[index] = gTriPts[index];
60 gLinePts[index + 0] = 150;
61 gLinePts[index + 1] = val;
62 gLinePts[index + 2] = 300;
63 gLinePts[index
425 getMapAtIndex(int index) argument
[all...]
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSgTransform.java65 public void setTransform(int index, Float4 value, TransformType type) { argument
66 mTransformData.transforms[index] = value;
67 mTransformData.transformTypes[index] = type.mID;
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DFillTest.java63 void addTest(int index, int testId, int blend, int quadCount) { argument
64 mTests[index] = new ScriptField_TestScripts_s.Item();
65 mTests[index].testScript = mFillScript;
66 mTests[index].testName = Allocation.createFromString(mRS,
67 mNames[index],
69 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
70 mNames[index],
79 mTests[index].testData = testData.getAllocation();
89 int index = 0;
91 addTest(index
[all...]
H A DMeshTest.java66 void addTest(int index, int meshNum) { argument
67 mTests[index] = new ScriptField_TestScripts_s.Item();
68 mTests[index].testScript = mGeoScript;
69 mTests[index].testName = Allocation.createFromString(mRS,
70 mNames[index],
72 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
73 mNames[index],
80 mTests[index].testData = testData.getAllocation();
89 int index = 0;
90 addTest(index
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeRenderSession.java123 public Result insertChild(Object parentView, ILayoutPullParser childXml, int index, argument
133 mLastResult = mSession.insertChild((ViewGroup) parentView, childXml, index,
146 public Result moveChild(Object parentView, Object childView, int index, argument
159 mLastResult = mSession.moveChild((ViewGroup) parentView, (View) childView, index,
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeLayoutParamsMapAttributes.java59 public String getAttributeName(int index) { argument
64 public String getAttributeValue(int index) { argument
74 public int getAttributeNameResource(int index) { argument
115 public int getAttributeListValue(int index, argument
121 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument
126 public int getAttributeResourceValue(int index, int defaultValue) { argument
131 public int getAttributeIntValue(int index, int defaultValue) { argument
136 public int getAttributeUnsignedIntValue(int index, int defaultValue) { argument
141 public float getAttributeFloatValue(int index, float defaultValue) { argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java112 * Removes the mapping at the specified index.
114 public void removeAt(int index) { argument
115 if (mValues[index] != DELETED) {
116 mValues[index] = DELETED;
191 * Given an index in the range <code>0...size()-1</code>, returns
192 * the key from the <code>index</code>th key-value mapping that this
195 public long keyAt(int index) { argument
200 return mKeys[index];
204 * Given an index in the range <code>0...size()-1</code>, returns
205 * the value from the <code>index</cod
208 valueAt(int index) argument
221 setValueAt(int index, E value) argument
[all...]
/frameworks/base/tools/split-select/
H A DRuleGenerator.cpp35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { argument
36 if (allDensities[index] != ResTable_config::DENSITY_ANY) {
51 if (index > 0) {
55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1);
59 if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) {
63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1]));
76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { argument
98 generate(const SortedVector<SplitDescription>& group, size_t index) argument
[all...]
/frameworks/native/opengl/libagl/
H A DTokenizer.cpp129 ssize_t Tokenizer::_insertTokenAt(uint32_t token, size_t index) argument
133 if (index >= 1) {
135 run_t& p = mRanges.editItemAt(index-1);
138 if (index < c) {
139 const run_t& n = mRanges[index];
142 mRanges.removeItemsAt(index);
145 return index;
149 if (index < c) {
151 run_t& n = mRanges.editItemAt(index);
155 return index;
[all...]
/frameworks/native/opengl/tools/glgen/src/
H A DJFunc.java76 public String getBufferArgName(int index) { argument
77 return bufferArgNames.get(index);
109 public String getArgName(int index) { argument
110 return argNames.get(index);
113 public JType getArgType(int index) { argument
114 return argTypes.get(index);
117 public int getArgCIndex(int index) { argument
118 return argCIndices.get(index).intValue();
/frameworks/native/services/sensorservice/
H A DSensorDevice.cpp148 ALOGD_IF(DEBUG_CONNECTIONS, "enable index=%zd", info.batchParams.indexOfKey(ident));
160 ALOGD_IF(DEBUG_CONNECTIONS, "disable index=%zd", info.batchParams.indexOfKey(ident));
288 ssize_t index = info.batchParams.indexOfKey(ident); local
289 if (index < 0) {
292 BatchParams& params = info.batchParams.editValueAt(index);
318 ssize_t index = batchParams.indexOfKey(ident); local
319 if (index < 0) {
321 ident, samplingPeriodNs, maxBatchReportLatencyNs, strerror(-index));
324 BatchParams& params = batchParams.editValueAt(index);
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerPalette.java141 private void setSwatchDescription(int rowNumber, int index, int rowElements, boolean selected, argument
146 accessibilityIndex = index;
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java207 protected String makeFragmentName(int viewId, int index) { argument
208 if (moveCursorTo(index)) {
211 return super.makeFragmentName(viewId, index);

Completed in 4492 milliseconds

1234567891011>>