/development/ndk/platforms/android-3/include/linux/netfilter_ipv4/ |
D | ipt_sctp.h | 55 …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-3/include/linux/netfilter/ |
D | xt_sctp.h | 57 …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/tools/yuv420sp2rgb/ |
D | debug.c | 9 int i, last; in dump_hex_buffer() local 13 for (i = last = 0; i < len; i++) { in dump_hex_buffer() 15 if (i && !(i % 4)) fprintf(s, " "); in dump_hex_buffer() 16 if (i && !(i % 8)) fprintf(s, " "); in dump_hex_buffer() 18 if (i && !(i % elsize)) fprintf(s, " "); in dump_hex_buffer() 21 if (i && !(i % NUM_COLS)) { in dump_hex_buffer() 22 while (last < i) { in dump_hex_buffer() 31 fprintf(s, " (%d)\n%p: ", i, b); in dump_hex_buffer() 33 fprintf(s, "%02x", (unsigned char)pchr[i]); in dump_hex_buffer() 35 if (i && (i % NUM_COLS)) fputs("\n", s); in dump_hex_buffer()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | M4.java | 31 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()
|
D | Kube.java | 89 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 …]
|
D | Layer.java | 28 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-3/include/asm-generic/ |
D | local.h | 25 #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/ |
D | local.h | 32 #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 …]
|
D | atomic.h | 29 #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-3/include/linux/ |
D | lockdep.h | 20 #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/ |
D | local_32.h | 30 #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/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | NumericSprite.java | 36 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/ActionBarCompat/src/com/example/android/actionbarcompat/ |
D | SimpleMenu.java | 83 for (int i = items.size() - 1; i >= 0; i--) { in findInsertIndex() 84 MenuItem item = items.get(i); in findInsertIndex() 86 return i + 1; in findInsertIndex() 96 for (int i = 0; i < size; i++) { in findItemIndex() 97 SimpleMenuItem item = mItems.get(i); in findItemIndex() 99 return i; in findItemIndex() 123 for (int i = 0; i < size; i++) { in findItem() 124 SimpleMenuItem item = mItems.get(i); in findItem() 159 public int addIntentOptions(int i, int i1, int i2, ComponentName componentName, in addIntentOptions() argument 164 public void removeGroup(int i) { in removeGroup() argument [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceRandom.java | 59 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]); 151 for (int i = 0; i < FACTORZ_COUNT; ++i) { in adjustEventFactors() 152 if (mFactors[i] <= 0.0f) { // user values are zero or negative in adjustEventFactors() 153 userSum -= mFactors[i]; in adjustEventFactors() 155 defaultSum += mFactors[i]; in adjustEventFactors() 177 for (int i = 0; i < FACTORZ_COUNT; ++i) { in adjustEventFactors() 178 if (mFactors[i] <= 0.0f) { // user values are zero or negative in adjustEventFactors() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CreateBitmap.java | 91 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/Support4Demos/src/com/example/android/supportv4/content/ |
D | SimpleWakefulService.java | 44 for (int i=0; i<5; i++) { in onHandleIntent() 45 Log.i("SimpleWakefulReceiver", "Running service " + (i+1) in onHandleIntent() 52 Log.i("SimpleWakefulReceiver", "Completed service @ " + SystemClock.elapsedRealtime()); in onHandleIntent()
|
/development/samples/devbytes/ui/ListViewDeletion/src/com/example/android/listviewdeletion/ |
D | ListViewDeletion.java | 54 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/ApiDemos/src/com/example/android/apis/content/ |
D | FileProvider.java | 64 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 …]
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NewsCategory.java | 37 int i; in NewsCategory() local 38 for (i = 0; i < mArticles.length; i++) { in NewsCategory() 39 mArticles[i] = new NewsArticle(ngen); in NewsCategory()
|
D | NewsSource.java | 43 int i; in NewsSource() local 45 for (i = 0; i < CATEGORIES.length; i++) { in NewsSource() 46 mCategory[i] = new NewsCategory(); in NewsSource()
|
/development/ndk/sources/android/libportable/arch-mips/ |
D | poll.c | 111 nfds_t i; in WRAP() local 114 for (i = 0; i < nfds; i++) in WRAP() 119 for (i = 0; i < nfds; i++) { in WRAP()
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | MethodInfo.java | 49 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/ApiDemos/tests/src/com/example/android/apis/os/ |
D | MorseCodeConverterTest.java | 48 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/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 125 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/ |
D | DraggableDot.java | 111 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 …]
|