Home
last modified time | relevance | path

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

12345678910>>...28

/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DBase64.java41 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 …]
DQuotedPrintable.java44 for (int i = 0; i < bytes.length; i++) { in decodeQuotedPrintable()
45 int b = bytes[i]; in decodeQuotedPrintable()
48 if('\r' == (char)bytes[i + 1] && in decodeQuotedPrintable()
49 '\n' == (char)bytes[i + 2]) { in decodeQuotedPrintable()
50 i += 2; in decodeQuotedPrintable()
53 int u = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable()
54 int l = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable()
DEncodedStringValue.java215 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/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/tools/winscope/src/
DdecodeVideo.js21 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/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/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/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/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/InlineFillService/src/com/example/android/inlinefillservice/
DHelper.java42 Log.i(TAG, message.toString()); in showMessage()
77 for (int i = 0; i < nodes; i++) { in getAutofillableFields()
78 AssistStructure.ViewNode node = structure.getWindowNodeAt(i).getRootViewNode(); in getAutofillableFields()
83 for (int i = 0; i < filedCount; i++) { in getAutofillableFields()
84 String key = fields.keyAt(i); in getAutofillableFields()
85 AutofillId value = fields.valueAt(i); in getAutofillableFields()
88 result.put("Field:" + i + "-", fields.valueAt(i)); in getAutofillableFields()
90 result.put(key, fields.valueAt(i)); in getAutofillableFields()
116 for (int i = 0; i < childrenSize; i++) { in addAutofillableFields()
117 addAutofillableFields(fields, node.getChildAt(i)); in addAutofillableFields()
/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()
DSensorTest.java48 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/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/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/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/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/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/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 …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortSelector.java107 for (int i = 0; i < portCount; ++i) { in onDeviceAdded()
108 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceAdded()
110 Log.i(MidiConstants.TAG, wrapper + " was added"); in onDeviceAdded()
118 for (int i = 0; i < portCount; ++i) { in onDeviceRemoved()
119 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceRemoved()
127 Log.i(MidiConstants.TAG, wrapper + " was removed"); in onDeviceRemoved()
137 Log.i(MidiConstants.TAG, "MidiPortSelector.onDeviceStatusChanged status = " + status in onDeviceStatusChanged()
143 for (int i = 0; i < portCount; ++i) { in onDeviceStatusChanged()
144 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceStatusChanged()
146 if (status.isInputPortOpen(i)) { // busy? in onDeviceStatusChanged()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortSelector.java107 for (int i = 0; i < portCount; ++i) { in onDeviceAdded()
108 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceAdded()
110 Log.i(MidiConstants.TAG, wrapper + " was added"); in onDeviceAdded()
118 for (int i = 0; i < portCount; ++i) { in onDeviceRemoved()
119 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceRemoved()
127 Log.i(MidiConstants.TAG, wrapper + " was removed"); in onDeviceRemoved()
137 Log.i(MidiConstants.TAG, "MidiPortSelector.onDeviceStatusChanged status = " + status in onDeviceStatusChanged()
143 for (int i = 0; i < portCount; ++i) { in onDeviceStatusChanged()
144 MidiPortWrapper wrapper = new MidiPortWrapper(info, mType, i); in onDeviceStatusChanged()
146 if (status.isInputPortOpen(i)) { // busy? in onDeviceStatusChanged()
/development/tools/bugreport/src/com/android/bugreport/inspector/
DInspector.java238 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 …]

12345678910>>...28