Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 670) sorted by relevance

12345678910>>...27

/development/ndk/platforms/android-9/include/linux/netfilter_ipv4/
Dipt_sctp.h55 …ne SCTP_CHUNKMAP_RESET(chunkmap) do { int i; for (i = 0; i < ARRAY_SIZE(chunkmap); i++) ch…
57 … SCTP_CHUNKMAP_SET_ALL(chunkmap) do { int i; for (i = 0; i < ARRAY_SIZE(chunkmap); i++) ch…
59 …NKMAP_COPY(destmap, srcmap) do { int i; for (i = 0; i < ARRAY_SIZE(chunkmap); i++) destmap…
61 …NKMAP_IS_CLEAR(chunkmap) ({ int i; int flag = 1; for (i = 0; i < ARRAY_SIZE(chunkmap); i++)…
63 …MAP_IS_ALL_SET(chunkmap) ({ int i; int flag = 1; for (i = 0; i < ARRAY_SIZE(chunkmap); i++)…
/development/ndk/platforms/android-9/include/linux/netfilter/
Dxt_sctp.h57 …ine SCTP_CHUNKMAP_RESET(chunkmap) do { int i; for (i = 0; i < ELEMCOUNT(chunkmap); i++) ch…
59 …e SCTP_CHUNKMAP_SET_ALL(chunkmap) do { int i; for (i = 0; i < ELEMCOUNT(chunkmap); i++) ch…
61 …NKMAP_COPY(destmap, srcmap) do { int i; for (i = 0; i < ELEMCOUNT(chunkmap); i++) destmap[
63 …UNKMAP_IS_CLEAR(chunkmap) ({ int i; int flag = 1; for (i = 0; i < ELEMCOUNT(chunkmap); i++)…
65 …KMAP_IS_ALL_SET(chunkmap) ({ int i; int flag = 1; for (i = 0; i < ELEMCOUNT(chunkmap); i++)…
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DM4.java31 for (int i = 0; i < 4; i++) { in M4()
33 m[i][j] = other.m[i][j]; in M4()
49 for (int i = 0; i < 4; i++) { in multiply()
51 result.m[i][j] = m1[i][0]*m2[0][j] + m1[i][1]*m2[1][j] + m1[i][2]*m2[2][j] + m1[i][3]*m2[3][j]; in multiply()
59 for (int i = 0; i < 4; i++) { in setIdentity()
61 m[i][j] = (i == j ? 1f : 0f); in setIdentity()
69 for (int i = 0; i < 4; i++) { in toString()
71 builder.append(m[i][j]); in toString()
74 if (i < 2) in toString()
DKube.java89 int i, j; in makeGLWorld() local
91 for (i = 0; i < 27; i++) { in makeGLWorld()
92 Cube cube = mCubes[i]; in makeGLWorld()
100 for (i = 0; i < 9; i++) in makeGLWorld()
101 mCubes[i].setFaceColor(Cube.kTop, orange); in makeGLWorld()
103 for (i = 18; i < 27; i++) in makeGLWorld()
104 mCubes[i].setFaceColor(Cube.kBottom, red); in makeGLWorld()
106 for (i = 0; i < 27; i += 3) in makeGLWorld()
107 mCubes[i].setFaceColor(Cube.kLeft, yellow); in makeGLWorld()
109 for (i = 2; i < 27; i += 3) in makeGLWorld()
[all …]
DLayer.java28 for (int i = 0; i < mShapes.length; i++) { in startAnimation()
29 GLShape shape = mShapes[i]; in startAnimation()
37 for (int i = 0; i < mShapes.length; i++) { in endAnimation()
38 GLShape shape = mShapes[i]; in endAnimation()
83 for (int i = 0; i < mShapes.length; i++) { in setAngle()
84 GLShape shape = mShapes[i]; in setAngle()
/development/ndk/platforms/android-9/include/asm-generic/
Dlocal.h25 #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } argument
28 #define local_set(l,i) atomic_long_set((&(l)->a),(i)) argument
31 #define local_add(i,l) atomic_long_add((i),(&(l)->a)) argument
32 #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) argument
36 #define __local_add(i,l) local_set((l), local_read(l) + (i)) argument
37 #define __local_sub(i,l) local_set((l), local_read(l) - (i)) argument
40 #define cpu_local_set(v, i) local_set(&__get_cpu_var(v), (i)) argument
43 #define cpu_local_add(i, v) local_add((i), &__get_cpu_var(v)) argument
44 #define cpu_local_sub(i, v) local_sub((i), &__get_cpu_var(v)) argument
48 #define __cpu_local_add(i, v) __local_add((i), &__get_cpu_var(v)) argument
[all …]
/development/ndk/platforms/android-9/arch-mips/include/asm/
Dlocal.h32 #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } argument
35 #define local_set(l, i) atomic_long_set(&(l)->a, (i)) argument
36 #define local_add(i, l) atomic_long_add((i), (&(l)->a)) argument
37 #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) argument
49 #define local_sub_and_test(i, l) (local_sub_return((i), (l)) == 0) argument
52 #define local_add_negative(i, l) (local_add_return(i, (l)) < 0) argument
56 #define __local_add(i, l) ((l)->a.counter+=(i)) argument
57 #define __local_sub(i, l) ((l)->a.counter-=(i)) argument
62 #define cpu_local_set(l, i) cpu_local_wrap(local_set(&__get_cpu_var(l), (i))) argument
66 #define cpu_local_add(i, l) cpu_local_wrap(local_add((i), &__get_cpu_var(l))) argument
[all …]
Datomic.h29 #define ATOMIC_INIT(i) { (i) } argument
31 #define atomic_set(v, i) ((v)->counter = (i)) argument
39 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) argument
46 #define atomic_add_negative(i, v) (atomic_add_return(i, (v)) < 0) argument
/development/ndk/platforms/android-9/include/linux/
Dlockdep.h20 #define lock_acquire(l, s, t, r, c, i) do { } while (0) argument
21 #define lock_release(l, n, i) do { } while (0) argument
38 #define spin_acquire(l, s, t, i) do { } while (0) argument
39 #define spin_release(l, n, i) do { } while (0) argument
41 #define rwlock_acquire(l, s, t, i) do { } while (0) argument
42 #define rwlock_acquire_read(l, s, t, i) do { } while (0) argument
43 #define rwlock_release(l, n, i) do { } while (0) argument
45 #define mutex_acquire(l, s, t, i) do { } while (0) argument
46 #define mutex_release(l, n, i) do { } while (0) argument
48 #define rwsem_acquire(l, s, t, i) do { } while (0) argument
[all …]
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dlocal_32.h30 #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } argument
32 #define local_set(l,i) atomic_long_set(&(l)->a, (i)) argument
44 #define __local_add(i,l) local_add((i),(l)) argument
45 #define __local_sub(i,l) local_sub((i),(l)) argument
50 #define cpu_local_set(l, i) cpu_local_wrap(local_set(&__get_cpu_var(l), (i))) argument
54 #define cpu_local_add(i, l) cpu_local_wrap(local_add((i), &__get_cpu_var(l))) argument
55 #define cpu_local_sub(i, l) cpu_local_wrap(local_sub((i), &__get_cpu_var(l))) argument
59 #define __cpu_local_add(i, l) cpu_local_add((i), (l)) argument
60 #define __cpu_local_sub(i, l) cpu_local_sub((i), (l)) argument
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DElizaResponder.java106 for (int i = 0; i < CONVERSATION_TO_RESPONSES_MAP.length / 2; i++) { in ElizaResponder()
107 responseStarts[i] = CONVERSATION_TO_RESPONSES_MAP[2 * i]; in ElizaResponder()
108 responseCurrentIndices[i] = CONVERSATION_TO_RESPONSES_MAP[2 * i]; in ElizaResponder()
109 responseEnds[i] = responseStarts[i] + CONVERSATION_TO_RESPONSES_MAP[2 * i + 1]; in ElizaResponder()
141 for (int i = 0; i < WORDS_TO_REPLACE.length / 2; i++) { in elzTalk()
142 String first = WORDS_TO_REPLACE[i * 2]; in elzTalk()
143 String second = WORDS_TO_REPLACE[i * 2 + 1]; in elzTalk()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DNumericSprite.java36 for (int i = 0; i < 10; i++) { in initialize()
37 String digit = sStrike.substring(i, i+1); in initialize()
38 mLabelId[i] = mLabelMaker.add(gl, digit, paint); in initialize()
39 mWidth[i] = (int) Math.ceil(mLabelMaker.getWidth(i)); in initialize()
71 for(int i = 0; i < length; i++) { in draw()
72 char c = mText.charAt(i); in draw()
83 for(int i = 0; i < length; i++) { in width()
84 char c = mText.charAt(i); in width()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DPackageShortcutActivity.java34 final Intent i = new Intent(Intent.ACTION_VIEW); in getLaunchIntent() local
35 i.setComponent(new ComponentName(context, PackageShortcutActivity.class)); in getLaunchIntent()
37 i.putExtra(KEY_TARGET_PACKAGE, targetPackage); in getLaunchIntent()
38 i.putExtra(KEY_TARGET_ACTIVITY, targetActivity); in getLaunchIntent()
39 i.putExtra(KEY_TARGET_USER, user); in getLaunchIntent()
40 i.putExtra(KEY_TITLE, title); in getLaunchIntent()
42 return i; in getLaunchIntent()
51 final Intent i = getIntent(); in onCreate() local
54 i.getStringExtra(KEY_TARGET_PACKAGE), in onCreate()
55 /* targetActivity=*/ i.getParcelableExtra(KEY_TARGET_ACTIVITY), in onCreate()
[all …]
/development/tools/bugreport/src/com/android/bugreport/html/
DRenderer.java125 for (int i=0; i<N; i++) { in makeAnrHdf()
126 makeCpuUsageSnapshotHdf(hdf.createChild("monkey.cpuUsage." + i), anr.cpuUsages.get(i)); in makeAnrHdf()
141 for (int i=0; i<N; i++) { in makeVmTracesHdf()
142 makeProcessSnapshotHdf(processesHdf.createChild(Integer.toString(i)), in makeVmTracesHdf()
143 vmTraces.processes.get(i)); in makeVmTracesHdf()
183 for (int i=0; i<N; i++) { in makeTriageHdf()
184 makeProcessSnapshotHdf(hdf.createChild("triage.deadlockedProcesses." + i), in makeTriageHdf()
185 deadlockedProcesses.get(i)); in makeTriageHdf()
193 for (int i=0; i<N; i++) { in makeTriageHdf()
194 makeProcessSnapshotHdf(hdf.createChild("triage.interestingProcesses." + i), in makeTriageHdf()
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceRandom.java59 for (int i = 0; i < PHYSICAL_KEY_EXISTS.length; ++i) {
60 PHYSICAL_KEY_EXISTS[i] = true;
63 for (int i = 0; i < SYS_KEYS.length; ++i) {
64 PHYSICAL_KEY_EXISTS[SYS_KEYS[i]] = KeyCharacterMap.deviceHasKey(SYS_KEYS[i]);
157 for (int i = 0; i < FACTORZ_COUNT; ++i) { in adjustEventFactors()
158 if (mFactors[i] <= 0.0f) { // user values are zero or negative in adjustEventFactors()
159 userSum -= mFactors[i]; in adjustEventFactors()
161 defaultSum += mFactors[i]; in adjustEventFactors()
183 for (int i = 0; i < FACTORZ_COUNT; ++i) { in adjustEventFactors()
184 if (mFactors[i] <= 0.0f) { // user values are zero or negative in adjustEventFactors()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCreateBitmap.java91 for (int i = 3; i <= 5; i++) { in SampleView()
92 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT); in SampleView()
101 for (int i = 0; i < mBitmaps.length; i++) { in SampleView()
102 mJPEG[i] = codec(mBitmaps[i], Bitmap.CompressFormat.JPEG, 80); in SampleView()
103 mPNG[i] = codec(mBitmaps[i], Bitmap.CompressFormat.PNG, 0); in SampleView()
110 for (int i = 0; i < mBitmaps.length; i++) { in onDraw()
111 canvas.drawBitmap(mBitmaps[i], 0, 0, null); in onDraw()
112 canvas.drawBitmap(mJPEG[i], 80, 0, null); in onDraw()
113 canvas.drawBitmap(mPNG[i], 160, 0, null); in onDraw()
114 canvas.translate(0, mBitmaps[i].getHeight()); in onDraw()
/development/samples/devbytes/ui/ListViewDeletion/src/com/example/android/listviewdeletion/
DListViewDeletion.java54 for (int i = 0; i < Cheeses.sCheeseStrings.length; ++i) { in onCreate()
55 cheeseList.add(Cheeses.sCheeseStrings[i]); in onCreate()
69 for (int i = numCheckedItems - 1; i >= 0; --i) { in onCreate()
70 if (!checkedItems.valueAt(i)) { in onCreate()
73 int position = checkedItems.keyAt(i); in onCreate()
122 for (int i = 0; i < mCheckedViews.size(); ++i) { in onCreate()
123 final View checkedView = mCheckedViews.get(i); in onCreate()
157 for (int i = 0; i < objects.size(); ++i) { in StableArrayAdapter()
158 mIdMap.put(objects.get(i), i); in StableArrayAdapter() local
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DOpenGLWatchFaceService.java197 for (int i = 0; i < mModelMatrices.length; ++i) { in onGlContextCreated()
198 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1); in onGlContextCreated()
202 for (int i = 0; i < mNumCameraAngles; ++i) { in onGlContextCreated()
205 final float cameraAngle = (float) (((float) i) / mNumCameraAngles * 2 * Math.PI); in onGlContextCreated()
208 Matrix.setLookAtM(mViewMatrices[i], in onGlContextCreated()
241 for (int i = 0; i < mNumCameraAngles; ++i) { in onGlSurfaceCreated()
242 Matrix.multiplyMM(mVpMatrices[i], 0, mProjectionMatrix, 0, mViewMatrices[i], 0); in onGlSurfaceCreated()
277 for (int i = 0; i < 4; i++) { in createMajorTicks()
278 float[] triangleCoords = getMajorTickTriangleCoords(i); in createMajorTicks()
279 System.arraycopy(triangleCoords, 0, trianglesCoords, i * 9, triangleCoords.length); in createMajorTicks()
[all …]
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java125 for (int i = 0; i < numpoints; i++) { in readModel()
126 mOriginalPoints[i] = new ThreeDPoint(); in readModel()
127 mRotatedPoints[i] = new ThreeDPoint(); in readModel()
128 String [] coord = p[i].split(" "); in readModel()
129 mOriginalPoints[i].x = Float.valueOf(coord[0]); in readModel()
130 mOriginalPoints[i].y = Float.valueOf(coord[1]); in readModel()
131 mOriginalPoints[i].z = Float.valueOf(coord[2]); in readModel()
138 for (int i = 0; i < numlines; i++) { in readModel()
139 mLines[i] = new ThreeDLine(); in readModel()
140 String [] idx = l[i].split(" "); in readModel()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DDraggableDot.java111 for (int i = 0; i < N; i++) { in DraggableDot()
112 int attr = a.getIndex(i); in DraggableDot()
128 Log.i(TAG, "DraggableDot @ " + this + " : radius=" + mRadius + " legend='" + mLegend in DraggableDot()
164 for (int i = NUM_GLOW_STEPS; i > 0; i--) { in onDraw()
166 color = i*(color | ALPHA_STEP); in onDraw()
191 Log.i(TAG, "Drag started, event=" + event); in onDragEvent()
202 Log.i(TAG, "Drag ended."); in onDragEvent()
212 Log.i(TAG, "... seeing drag locations ..."); in onDragEvent()
217 Log.i(TAG, "Got a drop! dot=" + this + " event=" + event); in onDragEvent()
226 Log.i(TAG, "Entered dot @ " + this); in onDragEvent()
[all …]
/development/tools/apkcheck/src/com/android/apkcheck/
DMethodInfo.java49 for (int i = 0; i < mParameters.size(); i++) { in getNameAndDescriptor()
50 String humanType = mParameters.get(i); in getNameAndDescriptor()
84 for (int i = 0; i < mParameters.size(); i++) { in normalizeTypes()
85 String fixed = TypeUtils.ambiguousToBinaryName(mParameters.get(i), in normalizeTypes()
87 mParameters.set(i, fixed); in normalizeTypes()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNewsCategory.java37 int i; in NewsCategory() local
38 for (i = 0; i < mArticles.length; i++) { in NewsCategory()
39 mArticles[i] = new NewsArticle(ngen); in NewsCategory()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DXmlDocumentProvider.java360 for (int i=0; i<mNumberOfProjections; i++) { in createProjectionPattern()
361 mActiveTextDepthMask[i] = new BitSet(); in createProjectionPattern()
362 String projection = projections[i + 1]; // +1 to skip the _ID column in createProjectionPattern()
365 mAttributeNames[i] = projection.substring(atIndex+1); in createProjectionPattern()
368 mAttributeNames[i] = null; in createProjectionPattern()
375 mProjectionPatterns[i] = createPattern(projection); in createProjectionPattern()
420 for (int i = 0; i < mNumberOfProjections; i++) { in parseWith()
422 mCurrentValues[i + 1] = ""; in parseWith()
423 mActiveTextDepthMask[i].clear(); in parseWith()
432 for (int i = 0; i < mNumberOfProjections; i++) { in parseWith()
[all …]
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/
DMorseCodeConverterTest.java48 for (int i = 0; i < expected.length; i++) { in assertArraysEqual()
49 long expectedLong = expected[i]; in assertArraysEqual()
50 long actualLong = actual[i]; in assertArraysEqual()
51 assertEquals("Unexpected long at index: " + i, expectedLong, actualLong); in assertArraysEqual()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DFileProvider.java64 for (int i = 0; i < projection.length; i++) { in query()
65 if (OpenableColumns.DISPLAY_NAME.equals(projection[i])) { in query()
66 displayNameIndex = i; in query()
68 if (OpenableColumns.SIZE.equals(projection[i])) { in query()
69 sizeIndex = i; in query()
76 for (int i = 0; i < result.length; i++) { in query()
77 if (i == displayNameIndex) { in query()
78 result[i] = uri.getPath(); in query()
80 if (i == sizeIndex) { in query()
81 result[i] = null; // Size is unknown, so null, if it was known, it would go here. in query()
[all …]

12345678910>>...27