Home
last modified time | relevance | path

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

123

/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_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/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/opt/gamesdk/src/tuningfork/
Dprotobuf_util.cpp50 auto sz = vec->size(); in Write() local
51 vec->resize(sz+count); in Write()
52 std::copy(buf, buf+count, &(*vec)[sz]); in Write()
/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/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/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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Drepeated_field_unittest.cc427 for (int sz = 0; sz < 10; ++sz) { in TEST() local
428 for (int num = 0; num <= sz; ++num) { in TEST()
429 for (int start = 0; start < sz - num; ++start) { in TEST()
432 for (int i = 0; i < sz; ++i) in TEST()
434 EXPECT_EQ(field.size(), sz); in TEST()
443 EXPECT_EQ(field.size(), sz - num); in TEST()
924 for (int sz = 0; sz < 10; ++sz) { in TEST() local
925 for (int num = 0; num <= sz; ++num) { in TEST()
926 for (int start = 0; start < sz - num; ++start) { in TEST()
932 for (int i = 0; i < sz + extra; ++i) { in TEST()
[all …]
/frameworks/ml/nn/common/operations/
DLSHProjectionTest.cpp62 uint32_t sz = 1; in LSHProjectionOpModel() local
64 sz *= d; in LSHProjectionOpModel()
66 return sz; in LSHProjectionOpModel()
DEmbeddingLookupTest.cpp77 uint32_t sz = 1; in EmbeddingLookupOpModel() local
78 for (uint32_t d : dims) { sz *= d; } in EmbeddingLookupOpModel()
79 return sz; in EmbeddingLookupOpModel()
DHashtableLookupTest.cpp90 uint32_t sz = 1; in HashtableLookupOpModel() local
91 for (uint32_t d : dims) { sz *= d; } in HashtableLookupOpModel()
92 return sz; in HashtableLookupOpModel()
/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/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/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/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/java/com/android/internal/telephony/
DGsmAlphabet.java702 for (int i = 0, sz = s.length()
703 ; i < sz && (outByteIndex - offset) < length
805 int sz = s.length();
808 for (int i = 0; i < sz; i++) {
885 int sz = s.length();
887 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()

123