Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DColorCube.java37 final int sz = 16; in initCube() local
42 tb.setZ(sz); in initCube()
46 int dat[] = new int[sx * sy * sz]; in initCube()
47 for (int z = 0; z < sz; z++) { in initCube()
53 v |= (0xff * z / (sz - 1)) << 16; in initCube()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DColorCube.java45 final int sz = 16; in initCube() local
50 tb.setZ(sz); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
55 for (int z = 0; z < sz; z++) { in initCube()
61 v |= (0xff * z / (sz - 1)) << 16; in initCube()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DColorCube.java45 final int sz = 16; in initCube() local
50 tb.setZ(sz); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
55 for (int z = 0; z < sz; z++) { in initCube()
61 v |= (0xff * z / (sz - 1)) << 16; in initCube()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java656 float sz = (float) Math.sin(z); in setRotateEulerM() local
661 rm[rmOffset + 1] = -cy * sz; in setRotateEulerM()
665 rm[rmOffset + 4] = cxsy * cz + cx * sz; in setRotateEulerM()
666 rm[rmOffset + 5] = -cxsy * sz + cx * cz; in setRotateEulerM()
670 rm[rmOffset + 8] = -sxsy * cz + sx * sz; in setRotateEulerM()
671 rm[rmOffset + 9] = sxsy * sz + sx * cz; in setRotateEulerM()
718 float sz = fx * upY - fy * upX; in setLookAtM() local
721 float rls = 1.0f / Matrix.length(sx, sy, sz); in setLookAtM()
724 sz *= rls; in setLookAtM()
727 float ux = sy * fz - sz * fy; in setLookAtM()
[all …]
/frameworks/base/core/jni/android/opengl/
Dpoly_clip.cpp120 if (v->sz < -sw) z0out++; /* out on near */ in poly_clip_to_frustum()
121 if (v->sz > sw) z1out++; /* out on far */ in poly_clip_to_frustum()
145 if (z0out) CLIP_AND_SWAP(sz, -1.0f, -1.0f, p, q, r); in poly_clip_to_frustum()
146 if (z1out) CLIP_AND_SWAP(sz, 1.0f, 1.0f, p, q, r); in poly_clip_to_frustum()
Dpoly.h35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member
/frameworks/base/libs/services/src/os/
DStatsDimensionsValue.cpp96 int sz = mTupleValue.size(); in writeToParcel() local
97 err = out->writeInt32(sz); in writeToParcel()
101 for (int i = 0; i < sz; ++i) { in writeToParcel()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp72 uint32_t sz; member
288 *oSoundBuf += chunkHeader->sz; in parseClipBuf()
289 *oSoundBufSize -= chunkHeader->sz; in parseClipBuf()
293 *oSoundBufSize = chunkHeader->sz; in parseClipBuf()
298 *oSoundBuf += chunkHeader->sz; in parseClipBuf()
299 *oSoundBufSize -= chunkHeader->sz; in parseClipBuf()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp56 float sz = fx * upY - fy * upX; in gluLookAt() local
59 float ux = sy * fz - sz * fy; in gluLookAt()
60 float uy = sz * fx - sx * fz; in gluLookAt()
74 m[8] = sz; in gluLookAt()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp62 float sz = fx * upY - fy * upX; in gluLookAt() local
65 float ux = sy * fz - sz * fy; in gluLookAt()
66 float uy = sz * fx - sx * fz; in gluLookAt()
80 m[8] = sz; in gluLookAt()
/frameworks/ml/nn/common/operations/
DEmbeddingLookupTest.cpp77 uint32_t sz = 1; in EmbeddingLookupOpModel() local
79 sz *= d; in EmbeddingLookupOpModel()
81 return sz; in EmbeddingLookupOpModel()
DLSHProjectionTest.cpp63 uint32_t sz = 1; in LSHProjectionOpModel() local
65 sz *= d; in LSHProjectionOpModel()
67 return sz; in LSHProjectionOpModel()
DHashtableLookupTest.cpp91 uint32_t sz = 1; in HashtableLookupOpModel() local
93 sz *= d; in HashtableLookupOpModel()
95 return sz; in HashtableLookupOpModel()
DSVDFTest.cpp217 uint32_t sz = 1; in SVDFOpModel() local
219 sz *= d; in SVDFOpModel()
221 return sz; in SVDFOpModel()
/frameworks/base/core/java/android/os/
DStatsDimensionsValue.java341 final int sz = parcel.readInt(); in readValueFromParcel() local
342 StatsDimensionsValue[] values = new StatsDimensionsValue[sz]; in readValueFromParcel()
343 for (int i = 0; i < sz; i++) { in readValueFromParcel()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java837 private void prepareRecording(Size sz, int videoFrameRate, int captureRate) in prepareRecording() argument
844 mMediaRecorder.setVideoEncodingBitRate(getVideoBitRate(sz)); in prepareRecording()
847 mMediaRecorder.setVideoSize(sz.getWidth(), sz.getHeight()); in prepareRecording()
860 mVideoSize = sz; in prepareRecording()
940 private void validateRecording(Size sz, int expectedDurationMs) throws Exception { in validateRecording() argument
963 assertTrue("Video size doesn't match, expected " + sz.toString() + in validateRecording()
964 " got " + videoSz.toString(), videoSz.equals(sz)); in validateRecording()
1085 private int getVideoBitRate(Size sz) {
1087 float scaleFactor = sz.getHeight() * sz.getWidth() / (float)(1920 * 1080);
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java981 Size sz = sizes[0]; in getMaxSize() local
983 if (size.getWidth() * size.getHeight() > sz.getWidth() * sz.getHeight()) { in getMaxSize()
984 sz = size; in getMaxSize()
988 return sz; in getMaxSize()
1143 for (Size sz: videoSizeArr) { in getMaxCameraRecordingSize()
1144 if (sz.getWidth() <= FULLHD.getWidth() && sz.getHeight() <= FULLHD.getHeight()) { in getMaxCameraRecordingSize()
1145 sizes.add(sz); in getMaxCameraRecordingSize()
1149 for (Size sz : videoSizes) { in getMaxCameraRecordingSize()
1151 android.media.MediaRecorder.class, sz); in getMaxCameraRecordingSize()
1154 Log.i(TAG, "External camera " + mCameraId + " has max video size:" + sz); in getMaxCameraRecordingSize()
[all …]
/frameworks/base/libs/hwui/
DMatrix.h114 void loadScale(float sx, float sy, float sz);
166 void scale(float sx, float sy, float sz) { in scale() argument
168 u.loadScale(sx, sy, sz); in scale()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java255 public ImageVerifierListener(Size sz, int format) { in ImageVerifierListener() argument
256 mSize = sz; in ImageVerifierListener()
1079 for (Size sz: rawSizes) { in getSupportedPreviewSizes()
1080 if (sz.getWidth() <= bound.getWidth() && sz.getHeight() <= bound.getHeight()) { in getSupportedPreviewSizes()
1081 sizes.add(sz); in getSupportedPreviewSizes()
1126 for (Size sz : sizes) { in getSortedSizesForFormat()
1127 if (comparator.compare(sz, bound) <= 0) { in getSortedSizesForFormat()
1128 sortedSizes.add(sz); in getSortedSizesForFormat()
1167 for (Size sz: rawSizes) { in getSupportedVideoSizes()
1168 if (sz.getWidth() <= bound.getWidth() && sz.getHeight() <= bound.getHeight()) { in getSupportedVideoSizes()
[all …]
/frameworks/native/libs/binder/tests/
Dschd-dbg.cpp265 static void parcel_fill(Parcel& data, int sz, int priority, int cpu) { in parcel_fill() argument
266 ASSERT(sz >= (int)sizeof(uint32_t) * 2); in parcel_fill()
269 sz -= sizeof(uint32_t); in parcel_fill()
270 while (sz > (int)sizeof(uint32_t)) { in parcel_fill()
272 sz -= sizeof(uint32_t); in parcel_fill()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp67 float sz = fx * upY - fy * upX; in gluLookAt() local
70 float ux = sy * fz - sz * fy; in gluLookAt()
71 float uy = sz * fx - sx * fz; in gluLookAt()
85 m[8] = sz; in gluLookAt()
/frameworks/base/telephony/common/com/android/internal/telephony/
DGsmAlphabet.java705 for (int i = 0, sz = s.length()
706 ; i < sz && (outByteIndex - offset) < length
808 int sz = s.length();
811 for (int i = 0; i < sz; i++) {
888 int sz = s.length();
890 for (int i = 0; i < sz && !lpcList.isEmpty(); i++) {
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java478 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume() local
479 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume()
482 v.mVoxelDim[2] = sz/min; in buildRSVolume()
602 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume2() local
603 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume2()
606 v.mVoxelDim[2] = sz/min; in buildRSVolume2()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java235 final float sz = Math in decode() local
241 sampleSize = (int) sz; in decode()
244 sampleSize = (int) Math.ceil(sz); in decode()
248 sampleSize = (int) Math.pow(2, (int) (0.5 + (Math.log(sz) / Math.log(2)))); in decode()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DViewMatrix.java198 double sz = -0.5; in calcMatrix() local
199 m[3] = mEyePoint[0] - (m[0] * sw + m[1] * sh + m[2] * sz); in calcMatrix()
200 m[7] = mEyePoint[1] - (m[4] * sw + m[5] * sh + m[6] * sz); in calcMatrix()
201 m[11] = mEyePoint[2] - (m[8] * sw + m[9] * sh + m[10] * sz); in calcMatrix()

12