/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
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 | 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 | 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/samples/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | Base64.java | 41 for (int i = 0; i < BASELENGTH; i++) { 42 base64Alphabet[i] = (byte) -1; 44 for (int i = 'Z'; i >= 'A'; i--) { 45 base64Alphabet[i] = (byte) (i - 'A'); 47 for (int i = 'z'; i >= 'a'; i--) { 48 base64Alphabet[i] = (byte) (i - 'a' + 26); 50 for (int i = '9'; i >= '0'; i--) { 51 base64Alphabet[i] = (byte) (i - '0' + 52); 93 for (int i = 0; i < numberQuadruple; i++) { in decodeBase64() 94 dataIndex = i * 4; in decodeBase64() [all …]
|
D | EncodedStringValue.java | 215 for (int i = 0; i < ret.length; ++i) { in split() 217 ret[i] = new EncodedStringValue(mCharacterSet, in split() 218 temp[i].getBytes()); in split() 234 for (int i = 0; i < values.length; i++) { in extract() 235 if (values[i].length() > 0) { in extract() 236 list.add(new EncodedStringValue(values[i])); in extract() 254 for (int i = 0; i <= maxIndex; i++) { in concat() 255 sb.append(addr[i].getString()); in concat() 256 if (i < maxIndex) { in concat() 276 for (int i = 0; i < count; i++) { in encodeStrings() [all …]
|
/development/tools/bugreport/src/com/android/bugreport/html/ |
D | Renderer.java | 125 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/ |
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]); 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/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | OpenGLWatchFaceService.java | 197 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/tools/bugreport/src/com/android/bugreport/inspector/ |
D | Inspector.java | 238 int i; in markOutgoingBinderThread() local 241 for (i=0; i<N; i++) { in markOutgoingBinderThread() 242 frame = thread.frames.get(i); in markOutgoingBinderThread() 247 if (i >= N) { in markOutgoingBinderThread() 258 i++; in markOutgoingBinderThread() 259 if (i >= N) { in markOutgoingBinderThread() 262 frame = thread.frames.get(i); in markOutgoingBinderThread() 274 i++; in markOutgoingBinderThread() 275 if (i >= N) { in markOutgoingBinderThread() 278 frame = thread.frames.get(i); in markOutgoingBinderThread() [all …]
|
/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()
|
D | MatrixStack.java | 67 for(int i = 0; i < MATRIX_SIZE; i++) { in glLoadMatrixx() 68 mMatrix[mTop + i] = fixedToFloat(m[offset + i]); in glLoadMatrixx() 73 for(int i = 0; i < MATRIX_SIZE; i++) { in glLoadMatrixx() 74 mMatrix[mTop + i] = fixedToFloat(m.get()); in glLoadMatrixx() 89 for(int i = 0; i < MATRIX_SIZE; i++) { in glMultMatrixx() 90 mTemp[MATRIX_SIZE + i] = fixedToFloat(m[offset + i]); in glMultMatrixx() 96 for(int i = 0; i < MATRIX_SIZE; i++) { in glMultMatrixx() 97 mTemp[MATRIX_SIZE + i] = fixedToFloat(m.get()); in glMultMatrixx()
|
/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/browseable/ElizaChat/src/com.example.android.wearable.elizachat/ |
D | ElizaResponder.java | 106 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/XmlAdapters/src/com/example/android/xmladapters/ |
D | XmlDocumentProvider.java | 360 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/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()
|
D | SensorTest.java | 48 for (int i = 0; i < weights.length; i++) { in RunAve() 49 sum += weights[i]; in RunAve() 67 for (int i = 0; i < depth; i++) { in computeAve() 68 sum += mWeights[i] * mSamples[index]; in computeAve() 88 for (int i = 0; i < 3; i++) { 89 diff[i] = Math.round(mScale[i] * (event.values[i] - mPrev[i]) * 0.45f); 90 if (Math.abs(diff[i]) > 0) { 93 mPrev[i] = event.values[i];
|
/development/tools/winscope/src/ |
D | decodeVideo.js | 21 for (var i = 0; i < array.length; i++) { 24 if (array[i + j] != pattern[j]) { 30 return i; 38 for (var i = bytes - 1; i >= 0; i--) { 40 num += buffer[position + i]; 62 for (var i = 0; i < frameNum; i++) {
|
/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 …]
|
/development/vndk/tools/definition-tool/assets/visual/ |
D | dep-graph.js | 73 for (let i = 1; i < currentList.childElementCount; i += 2) { 74 currentList.childNodes[i].style.display = "none"; 103 for (let i = 0; i < currentSubList.childElementCount; i++) { 104 if (currentSubList.childNodes[i].childElementCount > 0) { 105 currentSubList.childNodes[i].childNodes[1].style.display = "none"; 119 let i; 120 for (i = 0; i < symbol.length; i++) { 121 if (symbol.charAt(i) >= '0' && symbol.charAt(i) <= '9') { 125 while (i < symbol.length) { 126 if (symbol.charAt(i) < '0' || symbol.charAt(i) > '9') { [all …]
|
/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/apps/Development/src/com/android/development/ |
D | BadBehaviorActivity.java | 56 Log.i(TAG, "in broadcast receiver -- about to hang"); in onReceive() 58 Log.i(TAG, "broadcast receiver hang finished -- returning"); in onReceive() 70 Log.i(TAG, "in service start -- about to hang"); in onStartCommand() 72 Log.i(TAG, "service hang finished -- stopping and returning"); in onStartCommand() 91 Log.i(TAG, "in activity controller -- about to hang"); in activityStarting() 93 Log.i(TAG, "activity controller hang finished -- disabling and returning"); in activityStarting() 131 for (int i=0; i<N; i++) { in onReceive() 133 Log.i(TAG, this.name + " sent=" + mFloodBroadcastsSent in onReceive() 145 Log.i(TAG, "in ANR activity -- about to hang"); in onCreate() 147 Log.i(TAG, "activity hang finished -- finishing"); in onCreate() [all …]
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
D | ExpandingListView.java | 187 for (int i = 0; i < childCount; i++) { 188 View v = getChildAt(i); 230 int i; 232 for (i = 0; i < childCount; i++) { 233 View v = getChildAt(i); 243 if (i > 0) { 284 int i = indexOfChild(v); 286 int delta = i > index ? yTranslateBottom : -yTranslateTop; 383 for (int i = 0; i < childCount; i++) { 384 View v = getChildAt(i); [all …]
|
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | PackageShortcutActivity.java | 34 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/samples/ControllerSample/src/com/example/controllersample/ |
D | GameView.java | 188 for (int i = 0; i < numShips; i++) { in onWindowFocusChanged() 189 Ship currentShip = mShips.valueAt(i); in onWindowFocusChanged() 218 for (int i = 0; i < numShips; i++) { in onDraw() 219 Ship currentShip = mShips.valueAt(i); in onDraw() 227 for (int i = 0; i < numBullets; i++) { in onDraw() 228 final Bullet bullet = mBullets.get(i); in onDraw() 234 for (int i = 0; i < numObstacles; i++) { in onDraw() 235 final Obstacle obstacle = mObstacles.get(i); in onDraw() 271 for (int i = 0; i < numShips; i++) { in getShipForId() 272 if (mShips.valueAt(i).getColor() == color) { in getShipForId() [all …]
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | InsecureSHA1PRNGKeyDerivator.java | 280 int i, n; in nextBytes() local 321 for (i = lastWord + 3; i < FRAME_LENGTH + 2; i++) { in nextBytes() 322 seed[i] = 0; in nextBytes() 394 for (i = 0; i < EXTRAFRAME_OFFSET; i++) { in nextBytes() 395 int k = seed[HASH_OFFSET + i]; in nextBytes() 538 int i = fromByte; 554 for ( ; ( i <= toByte ) && ( byteIndex < 4 ) ; i++ ) { 555 intArray[wordIndex] |= ( byteInput[i] & 0xFF ) << ((3 - byteIndex)<<3) ; 566 if ( i > toByte ) { // all input bytes appended 573 maxWord = (toByte - i + 1) >> 2; // # of remaining full words, may be "0" [all …]
|