Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 64) sorted by relevance

123

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DM4.java32 for (int j = 0; j < 4; j++) { in M4()
33 m[i][j] = other.m[i][j]; in M4()
50 for (int j = 0; j < 4; j++) { 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()
60 for (int j = 0; j < 4; j++) { in setIdentity()
61 m[i][j] = (i == j ? 1f : 0f); in setIdentity()
70 for (int j = 0; j < 4; j++) { in toString()
71 builder.append(m[i][j]); in toString()
DKube.java89 int i, j; in makeGLWorld() local
94 for (j = 0; j < 6; j++) in makeGLWorld()
95 cube.setFaceColor(j, black); in makeGLWorld()
113 for (j = 0; j < 3; j++) in makeGLWorld()
114 mCubes[i + j].setFaceColor(Cube.kBack, blue); in makeGLWorld()
117 for (j = 0; j < 3; j++) in makeGLWorld()
118 mCubes[i + j].setFaceColor(Cube.kFront, green); in makeGLWorld()
152 int i, j, k; in updateLayers() local
170 for (j = 0; j < 9; j += 3) in updateLayers()
171 shapes[k++] = mCubes[mPermutation[i + j]]; in updateLayers()
[all …]
/development/perftests/panorama/feature_stab/src/dbreg/
Ddbreg.h450 for ( int j = 0; j < h; ++j ) in db_GenerateHomographyLut() local
453 x[1] = double(j); in db_GenerateHomographyLut()
458 lut_x[j][i] = float(xb[0]); in db_GenerateHomographyLut()
459 lut_y[j][i] = float(xb[1]); in db_GenerateHomographyLut()
487 for ( int j = 0; j < h; ++j ) in db_WarpImageLutFast_rgb() local
489 xd = static_cast<unsigned int>(lut_x[j][i]); in db_WarpImageLutFast_rgb()
490 yd = static_cast<unsigned int>(lut_y[j][i]); in db_WarpImageLutFast_rgb()
494 dst[j][3*i ] = 0; in db_WarpImageLutFast_rgb()
495 dst[j][3*i+1] = 0; in db_WarpImageLutFast_rgb()
496 dst[j][3*i+2] = 0; in db_WarpImageLutFast_rgb()
[all …]
Ddbreg.cpp543 int j = 3*inlier_indices[i]; in Polish() local
544 m_polish_C[0]+=m_corners_ref[j]*m_corners_ref[j]; in Polish()
545 m_polish_C[1]+=m_corners_ref[j]*m_corners_ref[j+1]; in Polish()
546 m_polish_C[2]+=m_corners_ref[j]; in Polish()
547 m_polish_C[7]+=m_corners_ref[j+1]*m_corners_ref[j+1]; in Polish()
548 m_polish_C[8]+=m_corners_ref[j+1]; in Polish()
550 m_polish_D[0]+=m_corners_ref[j]*m_corners_ins[j]; in Polish()
551 m_polish_D[1]+=m_corners_ref[j+1]*m_corners_ins[j]; in Polish()
552 m_polish_D[2]+=m_corners_ins[j]; in Polish()
553 m_polish_D[3]+=m_corners_ref[j]*m_corners_ins[j+1]; in Polish()
[all …]
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_utilities.cpp109 for ( int j = 0; j < h; ++j ) in db_WarpImageLutFast_u() local
113 xd = (unsigned int)(lut_x[j][i]); in db_WarpImageLutFast_u()
114 yd = (unsigned int)(lut_y[j][i]); in db_WarpImageLutFast_u()
117 dst[j][i] = 0; in db_WarpImageLutFast_u()
119 dst[j][i] = src[yd][xd]; in db_WarpImageLutFast_u()
130 for ( int j = 0; j < h; ++j ) in db_WarpImageLutBilinear_u() local
132 xd = static_cast<double>(lut_x[j][i]); in db_WarpImageLutBilinear_u()
133 yd = static_cast<double>(lut_y[j][i]); in db_WarpImageLutBilinear_u()
136 dst[j][i] = 0; in db_WarpImageLutBilinear_u()
138 dst[j][i] = db_BilinearInterpolation(yd, xd, src); in db_WarpImageLutBilinear_u()
[all …]
Ddb_utilities_random.h77 int temp,temp2,i,j; in db_RandomSample() local
83 for(j=0;j<i;j++) in db_RandomSample()
85 if(s[j]<=temp) temp++; in db_RandomSample()
90 temp=s[j]; in db_RandomSample()
91 s[j]=temp2; in db_RandomSample()
Ddb_utilities_indexing.h43 int i,j; in db_SymmetricExtendUpperToLower() local
44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i]; in db_SymmetricExtendUpperToLower()
49 int i,j; in db_MultiplyMatrixVectorAtb() local
55 for(j=0;j<acols;j++) acc+=At[j][i]*b[j]; in db_MultiplyMatrixVectorAtb()
62 int i,j,k; in db_MultiplyMatricesAB() local
65 for(i=0;i<arows;i++) for(j=0;j<bcols;j++) in db_MultiplyMatricesAB()
68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB()
69 C[i][j]=acc; in db_MultiplyMatricesAB()
75 int i,j,k; in db_UpperMultiplyMatricesAtB() local
78 for(i=0;i<arows;i++) for(j=i;j<bcols;j++) in db_UpperMultiplyMatricesAtB()
[all …]
Ddb_rob_image_homography.cpp196 int i,j; in db_RobCamRotation_Jacobians() local
204 j=(i<<1); in db_RobCamRotation_Jacobians()
205 db_DerivativeCauchyInhomRotationReprojection(Jf_dx,f,xp_i+j,H,x_i+j,one_over_scale2); in db_RobCamRotation_Jacobians()
283 int i,j,t; in db_RobImageHomographyFetchJacobian() local
292 for(j=i;j<n;j++) in db_RobImageHomographyFetchJacobian()
294 t1[j]=t2[fetch_vector[j]]; in db_RobImageHomographyFetchJacobian()
311 inline void db_RobImageHomographyJH_Js(double **JE_dx_ref,int j,double H[9]) in db_RobImageHomographyJH_Js() argument
316 JE_dx_ref[0][j]=H[0]; in db_RobImageHomographyJH_Js()
317 JE_dx_ref[1][j]=H[1]; in db_RobImageHomographyJH_Js()
318 JE_dx_ref[2][j]=0; in db_RobImageHomographyJH_Js()
[all …]
Ddb_feature_detection.cpp71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
89 r1=img[i-1]+j; r2=img[i]+j; r3=img[i+1]+j; in db_IxIyRow_u()
206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u()
207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u()
365 inline void db_HarrisStrength_row_f(float **s,float *gxx,float *gxy,float *gyy,int i,int j,int chun… in db_HarrisStrength_row_f() argument
378 s[i][j+c]=det-0.06f*trc*trc; in db_HarrisStrength_row_f()
1381 int i,j,right; in db_MaxSuppressFilterChunk_5x5_Aligned16_f()
[all …]
/development/ndk/platforms/android-3/include/linux/
Djbd.h97 #define JFS_HAS_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_fea… argument
98 #define JFS_HAS_RO_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_… argument
99 #define JFS_HAS_INCOMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_f… argument
/development/tools/yuv420sp2rgb/
Dyuv420sp2rgb.c38 int j; member
59 int i, j; in color_convert_common() local
72 for (j = 0; j < width; j++) { in color_convert_common()
73 nB = *(pY + i * width + j); in color_convert_common()
75 ctx.j = j; in color_convert_common()
82 for (j = 0; j < width; j++) { in color_convert_common()
83 nY = *(pY + i * width + j); in color_convert_common()
84 nV = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in color_convert_common()
85 nU = *(pUV + (i/2) * width + bytes_per_pixel * (j/2) + 1); in color_convert_common()
112 ctx.j = j; in color_convert_common()
[all …]
/development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/
DHelloSpellCheckerActivity.java94 for (int j = 0; j < len; ++j) { in dumpSuggestionsInfoInternal()
95 if (j != 0) { in dumpSuggestionsInfoInternal()
98 sb.append(si.getSuggestionAt(j)); in dumpSuggestionsInfoInternal()
146 for (int j = 0; j < ssi.getSuggestionsCount(); ++j) { in onGetSentenceSuggestions()
148 sb, ssi.getSuggestionsInfoAt(j), ssi.getOffsetAt(j), ssi.getLengthAt(j)); in onGetSentenceSuggestions()
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt7 absurd - j. inconsistent with reason or logic or common sense
8 abundant - j. present in great quantity
9 abusive - j. characterized by physical or psychological maltreatment
10 academic - j. associated with school or learning
14 accessible - j. easily obtained
20 accurate - j. conforming exactly or almost exactly to fact or to a standard or performing with tota…
23 acid - j. biting, sarcastic, or scornful
27 adamant - j. impervious to pleas, persuasion, requests, reason
28 adjacent - j. having a common boundary or edge; abutting; touching
31 adverse - j. contrary to your interests or welfare
[all …]
/development/perftests/panorama/feature_mos/src/mosaic/
DPyramid.cpp49 for (int j = height + border2; j--; y++, position += curr->pitch) { in allocatePyramidPacked() local
80 for (int j = height + border2; j--; y++, position += img->pitch) { in allocateImage() local
151 int i,j; in BorderExpandOdd() local
155 for (j = -off; j < in->height + off; j++) { in BorderExpandOdd()
156 int j2 = j * 2; in BorderExpandOdd()
159 int t1 = in->ptr[j][i]; in BorderExpandOdd()
160 int t2 = in->ptr[j+1][i]; in BorderExpandOdd()
162 ((6 * t1 + (in->ptr[j-1][i] + t2) + 4) >> 3); in BorderExpandOdd()
171 for (j = -out->border; j < limit; j++) { in BorderExpandOdd()
174 int t1 = scr->ptr[j][i]; in BorderExpandOdd()
[all …]
DDelaunay.cpp247 int i,j; in consolidateEdges() local
258 for (i=0,j=3; i<4; i++,j=rot(j)) { in consolidateEdges()
260 onext(rot(onext(e+i))) = (EdgePointer) (e+j); in consolidateEdges()
270 int CDelaunay::xcmpsp(int i, int j) in xcmpsp() argument
272 double d = sa[(i>=0)?sp[i]:sp1].X() - sa[(j>=0)?sp[j]:sp1].X(); in xcmpsp()
279 d = sa[(i>=0)?sp[i]:sp1].Y() - sa[(j>=0)?sp[j]:sp1].Y(); in xcmpsp()
289 int CDelaunay::ycmpsp(int i, int j) in ycmpsp() argument
291 double d = sa[(i>=0)?sp[i]:sp1].Y() - sa[(j>=0)?sp[j]:sp1].Y(); in ycmpsp()
298 d = sa[(i>=0)?sp[i]:sp1].X() - sa[(j>=0)?sp[j]:sp1].X(); in ycmpsp()
308 int CDelaunay::cmpev(int i, int j) in cmpev() argument
[all …]
DBlend.cpp583 int i, j, k; in CropFinalMosaic() local
594 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
598 yimg[k] = yimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
602 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
606 yimg[k] = vimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
610 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic()
614 yimg[k] = uimg[j*imgMos.Y.width+i]; in CropFinalMosaic()
642 for(int j=0; j<imgMos.Y.height; j++) in PerformFinalBlending() local
644 b[j] = new bool[imgMos.Y.width]; in PerformFinalBlending()
648 int i, j; in PerformFinalBlending() local
[all …]
DDelaunay.h80 int cmpev(int i, int j);
81 int xcmpsp(int i, int j);
82 int ycmpsp(int i, int j);
84 void swapsp(int i, int j);
85 void swapev(int i, int j);
87 void copysp(int i, int j);
88 void copyev(int i, int j);
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DElizaResponder.java144 for (int j = 0; j < parts.length; ++j) { in elzTalk()
145 if (parts[j].equals(first)) { in elzTalk()
146 parts[j] = second; in elzTalk()
147 } else if (parts[j].equals(second)) { in elzTalk()
148 parts[j] = first; in elzTalk()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java407 for (int j = 0; j < P; j++) { in onTouchOrHoverEvent()
408 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent()
409 event.getHistoricalX(j, i), in onTouchOrHoverEvent()
410 event.getHistoricalY(j, i), in onTouchOrHoverEvent()
411 event.getHistoricalPressure(j, i), in onTouchOrHoverEvent()
412 event.getHistoricalTouchMajor(j, i), in onTouchOrHoverEvent()
413 event.getHistoricalTouchMinor(j, i), in onTouchOrHoverEvent()
414 event.getHistoricalOrientation(j, i), in onTouchOrHoverEvent()
415 event.getHistoricalAxisValue(MotionEvent.AXIS_DISTANCE, j, i), in onTouchOrHoverEvent()
416 event.getHistoricalAxisValue(MotionEvent.AXIS_TILT, j, i)); in onTouchOrHoverEvent()
[all …]
DStaticTriangleRenderer.java239 for(int j = 0; j < 3; j++) { in Triangle()
240 mFVertexBuffer.put(coords[i*3+j] * 2.0f); in Triangle()
245 for(int j = 0; j < 2; j++) { in Triangle()
246 mTexBuffer.put(coords[i*3+j] * 2.0f + 0.5f); in Triangle()
DTriangleRenderer.java207 for(int j = 0; j < 3; j++) { in Triangle()
208 mFVertexBuffer.put(coords[i*3+j] * 2.0f); in Triangle()
213 for(int j = 0; j < 2; j++) { in Triangle()
214 mTexBuffer.put(coords[i*3+j] * 2.0f + 0.5f); in Triangle()
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardService.java123 for (int j = 0; j < bytes.length; j++) { in ByteArrayToHexString()
124 v = bytes[j] & 0xFF; // Cast bytes[j] to int, treating as unsigned value in ByteArrayToHexString()
125 hexChars[j * 2] = hexArray[v >>> 4]; // Select hex character from upper nibble in ByteArrayToHexString()
126 hexChars[j * 2 + 1] = hexArray[v & 0x0F]; // Select hex character from lower nibble in ByteArrayToHexString()
/development/samples/browseable/CardReader/src/com.example.android.cardreader/
DLoyaltyCardReader.java123 for ( int j = 0; j < bytes.length; j++ ) { in ByteArrayToHexString()
124 v = bytes[j] & 0xFF; in ByteArrayToHexString()
125 hexChars[j * 2] = hexArray[v >>> 4]; in ByteArrayToHexString()
126 hexChars[j * 2 + 1] = hexArray[v & 0x0F]; in ByteArrayToHexString()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DExpandableList3.java52 for (int j = 0; j < 15; j++) { in onCreate()
55 curChildMap.put(NAME, "Child " + j); in onCreate()
56 curChildMap.put(IS_EVEN, (j % 2 == 0) ? "This child is even" : "This child is odd"); in onCreate()
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java393 int j = 0; in nextBytes() local
396 nextBytes[j] = (byte) (k >>> 24); // getting first byte from left in nextBytes()
397 nextBytes[j + 1] = (byte) (k >>> 16); // getting second byte from left in nextBytes()
398 nextBytes[j + 2] = (byte) (k >>> 8); // getting third byte from left in nextBytes()
399 nextBytes[j + 3] = (byte) (k); // getting fourth byte from left in nextBytes()
400 j += 4; in nextBytes()
404 j = HASHBYTES_TO_USE < (bytes.length - nextByteToReturn) ? HASHBYTES_TO_USE in nextBytes()
407 if (j > 0) { in nextBytes()
408 System.arraycopy(nextBytes, 0, bytes, nextByteToReturn, j); in nextBytes()
409 nextByteToReturn += j; in nextBytes()
[all …]

123