Searched defs:index (Results 1 - 25 of 45) sorted by relevance

12

/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
H A DNewsCategory.java48 /** Gets a particular article by index. */
49 public NewsArticle getArticle(int index) { argument
50 return mArticles[index];
H A DHeadlinesFragment.java52 * @param index the index of the selected headline.
54 public void onHeadlineSelected(int index); argument
89 * @param categoryIndex the index of the news category to display.
H A DNewsReaderActivity.java65 // The news category and article index currently being displayed
196 * @param index the index of the selected headline.
199 public void onHeadlineSelected(int index) { argument
200 mArtIndex = index;
203 mArticleFragment.displayArticle(mCurrentCat.getArticle(index));
209 i.putExtra("artIndex", index);
220 * @param catIndex the index of the selected news category.
227 /** Save instance state. Saves current category/article index. */
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DGLVertex.java26 final short index; // index in vertex table field in class:GLVertex
33 this.index = -1;
36 GLVertex(float x, float y, float z, int index) { argument
40 this.index = (short)index;
75 vertexBuffer.position(index * 3);
/development/tools/hosttestlib/src/com/android/hosttest/
H A DDeviceTestRunner.java79 private String extractArg(String[] args, int index) { argument
80 if (args.length <= index) {
84 return args[index];
/development/ndk/sources/android/libportable/arch-arm/
H A Dunwind.c59 uint64_t WRAP(_Unwind_GetGR)(struct _Unwind_Context* ctx, int index) { argument
61 _Unwind_VRS_Get(ctx, _UVRSC_CORE, index, _UVRSD_UINT32, &val);
65 void WRAP(_Unwind_SetGR)(struct _Unwind_Context* ctx, int index, uint64_t new_value) { argument
67 _Unwind_VRS_Set(ctx, _UVRSC_CORE, index, _UVRSD_UINT32, &val);
/development/samples/ApiDemos/src/com/example/android/apis/app/
H A DFragmentLayout.java135 void showDetails(int index) { argument
136 mCurCheckPosition = index;
141 getListView().setItemChecked(index, true);
146 if (details == null || details.getShownIndex() != index) {
148 details = DetailsFragment.newInstance(index);
153 if (index == 0) {
167 intent.putExtra("index", index);
182 * show the text at 'index'.
184 public static DetailsFragment newInstance(int index) { argument
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DPurgeableBitmap.java46 int index = mView.update(this);
47 if (index > 0) {
48 showAlertDialog(getDialogMessage(true, index));
49 } else if (index < 0){
51 showAlertDialog(getDialogMessage(false, -index));
91 private String getDialogMessage(boolean isOutOfMemory, int index) { argument
95 sb.append(index);
99 .append(index)
H A DUnicodeChart.java64 int index = 0;
68 pos[index++] = x;
69 pos[index++] = row * YMUL + YBASE;
74 private float computeX(int index) { argument
75 return (index >> 4) * XMUL + 10;
78 private float computeY(int index) { argument
79 return (index & 0xF) * YMUL + YMUL;
H A DVertices.java43 private static void setXY(float[] array, int index, float x, float y) { argument
44 array[index*2 + 0] = x;
45 array[index*2 + 1] = y;
H A DBitmapMesh.java47 private static void setXY(float[] array, int index, float x, float y) { argument
48 array[index*2 + 0] = x;
49 array[index*2 + 1] = y;
62 int index = 0;
67 setXY(mVerts, index, fx, fy);
68 setXY(mOrig, index, fx, fy);
69 index += 1;
99 // android.util.Log.d("skia", "index " + i + " dist=" + d + " pull=" + pull);
H A DPictureLayout.java50 public void addView(View child, int index) { argument
55 super.addView(child, index);
68 public void addView(View child, int index, LayoutParams params) { argument
73 super.addView(child, index, params);
H A DScaleToFit.java70 private void setSrcR(int index) { argument
71 int w = sSrcData[index*3 + 0];
72 int h = sSrcData[index*3 + 1];
76 private void drawSrcR(Canvas canvas, int index) { argument
77 mPaint.setColor(sSrcData[index*3 + 2]);
81 private void drawFit(Canvas canvas, int index, Matrix.ScaleToFit stf) { argument
84 setSrcR(index);
87 drawSrcR(canvas, index);
H A DWindowSurface.java166 int makeGreen(int index) { argument
167 int dist = Math.abs(mBrightLine-index);
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentLayoutSupport.java138 void showDetails(int index) { argument
139 mCurCheckPosition = index;
144 getListView().setItemChecked(index, true);
149 if (details == null || details.getShownIndex() != index) {
151 details = DetailsFragment.newInstance(index);
166 intent.putExtra("index", index);
181 * show the text at 'index'.
183 public static DetailsFragment newInstance(int index) { argument
186 // Supply index inpu
[all...]
/development/ndk/platforms/android-3/include/linux/
H A Dmca.h33 int index; member in struct:mca_device
/development/samples/ApiDemos/src/com/example/android/apis/preference/
H A DMyPreference.java77 protected Object onGetDefaultValue(TypedArray a, int index) { argument
80 return a.getInteger(index, 0);
/development/ndk/platforms/android-14/include/OMXAL/
H A DOpenMAXAL_Android.h89 XAuint32 index; member in struct:XAAndroidBufferQueueState_
/development/ndk/platforms/android-9/include/SLES/
H A DOpenSLES_Android.h130 SLuint32 index,
181 SLuint32 index; member in struct:SLAndroidSimpleBufferQueueState_
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
H A DSimpleMenu.java110 private void removeItemAtInt(int index) { argument
111 if ((index < 0) || (index >= mItems.size())) {
114 mItems.remove(index);
137 public MenuItem getItem(int index) { argument
138 return mItems.get(index);
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java173 protected boolean onItemClicked(int index) { argument
174 final CustomItem item = getItem(index);
186 mTouchHelper.invalidateVirtualView(index);
191 mTouchHelper.sendEventForVirtualView(index, AccessibilityEvent.TYPE_VIEW_CLICKED);
211 protected CustomItem getItem(int index) { argument
212 if ((index < 0) || (index >= mItems.size())) {
216 return mItems.get(index);
238 final int index = getItemIndexUnder(x, y);
239 if (index
[all...]
/development/tools/mkstubs/src/com/android/mkstubs/stubber/
H A DMethodStubber.java63 0); // index
141 Label start, Label end, int index) {
140 visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) argument
/development/cmds/monkey/src/com/android/commands/monkey/
H A DMonkeySourceRandom.java242 public void setFactors(int index, float v) { argument
243 mFactors[index] = v;
/development/ndk/platforms/android-14/include/SLES/
H A DOpenSLES_Android.h134 SLuint32 index,
185 SLuint32 index; member in struct:SLAndroidSimpleBufferQueueState_
254 SLuint32 index; member in struct:SLAndroidBufferQueueState_
/development/ndk/platforms/android-3/include/linux/mmc/
H A Dhost.h81 int index; member in struct:mmc_host

Completed in 517 milliseconds

12