Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 69) sorted by relevance

123

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DLayer.java55 float[][] m = mTransform.m; in setAngle() local
58 m[1][1] = cos; in setAngle()
59 m[1][2] = sin; in setAngle()
60 m[2][1] = -sin; in setAngle()
61 m[2][2] = cos; in setAngle()
62 m[0][0] = 1f; in setAngle()
63 m[0][1] = m[0][2] = m[1][0] = m[2][0] = 0f; in setAngle()
66 m[0][0] = cos; in setAngle()
67 m[0][2] = sin; in setAngle()
68 m[2][0] = -sin; in setAngle()
[all …]
DM4.java25 public float[][] m = new float[4][4]; field in M4
33 m[i][j] = other.m[i][j]; in M4()
39 dest.x = src.x * m[0][0] + src.y * m[1][0] + src.z * m[2][0] + m[3][0]; in multiply()
40 dest.y = src.x * m[0][1] + src.y * m[1][1] + src.z * m[2][1] + m[3][1]; in multiply()
41 dest.z = src.x * m[0][2] + src.y * m[1][2] + src.z * m[2][2] + m[3][2]; in multiply()
46 float[][] m1 = m; in multiply()
47 float[][] m2 = other.m; 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()
61 m[i][j] = (i == j ? 1f : 0f); in setIdentity()
71 builder.append(m[i][j]); in toString()
/development/tools/logblame/
Dlogs.py64 m = CHATTY_IDENTICAL.match(logLine.text)
65 if m:
66 for i in range(int(m.group(1))):
103 m = BUFFER_BEGIN.match(line)
104 if m:
108 buf = m.group(1)
112 m = BUFFER_SWITCH.match(line)
113 if m:
117 buf = m.group(1)
121 m = HEADER.match(line)
[all …]
Dps.py116 m = HEADER_RE.match(line)
117 if m:
119 m = PROCESS_RE.match(line)
120 if m:
121 result.append((m.group(1), m.group(2), m.group(3), m.group(4)))
133 m = ANDROID_UID_RE.match(text)
134 if m:
135 result = int("0x" + m.group(2), 16)
136 return "(%s/%s/%s)" % (m.group(1), m.group(2), result)
137 m = UID_RE.match(text)
[all …]
/development/tools/bugreport/src/com/android/bugreport/logcat/
DLogcatParser.java52 Matcher m; in parse() local
59 if ((m = Utils.match(mBufferBeginRe, text)) != null) { in parse()
65 ll.bufferBegin = m.group(1); in parse()
68 } else if ((m = Utils.match(mLogLineRe, text)) != null) { in parse()
74 ll.header = m.group(1); in parse()
75 ll.time = Utils.parseCalendar(m, 2, true); in parse()
76 ll.pid = Integer.parseInt(m.group(9)); in parse()
77 ll.tid = Integer.parseInt(m.group(10)); in parse()
78 ll.level = m.group(11).charAt(0); in parse()
79 ll.tag = m.group(12); in parse()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixStack.java58 public void glLoadMatrixf(float[] m, int offset) { in glLoadMatrixf() argument
59 System.arraycopy(m, offset, mMatrix, mTop, MATRIX_SIZE); in glLoadMatrixf()
62 public void glLoadMatrixf(FloatBuffer m) { in glLoadMatrixf() argument
63 m.get(mMatrix, mTop, MATRIX_SIZE); in glLoadMatrixf()
66 public void glLoadMatrixx(int[] m, int offset) { in glLoadMatrixx() argument
68 mMatrix[mTop + i] = fixedToFloat(m[offset + i]); in glLoadMatrixx()
72 public void glLoadMatrixx(IntBuffer m) { in glLoadMatrixx() argument
74 mMatrix[mTop + i] = fixedToFloat(m.get()); in glLoadMatrixx()
78 public void glMultMatrixf(float[] m, int offset) { in glMultMatrixf() argument
80 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset); in glMultMatrixf()
[all …]
DMatrixTrackingGL.java366 public void glLoadMatrixf(float[] m, int offset) { in glLoadMatrixf() argument
367 mCurrent.glLoadMatrixf(m, offset); in glLoadMatrixf()
368 mgl.glLoadMatrixf(m, offset); in glLoadMatrixf()
372 public void glLoadMatrixf(FloatBuffer m) { in glLoadMatrixf() argument
373 int position = m.position(); in glLoadMatrixf()
374 mCurrent.glLoadMatrixf(m); in glLoadMatrixf()
375 m.position(position); in glLoadMatrixf()
376 mgl.glLoadMatrixf(m); in glLoadMatrixf()
380 public void glLoadMatrixx(int[] m, int offset) { in glLoadMatrixx() argument
381 mCurrent.glLoadMatrixx(m, offset); in glLoadMatrixx()
[all …]
/development/vndk/tools/definition-tool/tests/
Dtest_module_info.py15 m = ModuleInfo.load_from_path_or_default(None)
16 self.assertEqual([], m.get_module_path('/system/lib64/libA.so'))
22 m = ModuleInfo.load_from_path_or_default(json_path)
25 m.get_module_path('/system/lib64/libA.so'))
27 m.get_module_path('/system/lib64/libB.so'))
29 m.get_module_path('/system/lib64/libC.so'))
31 m.get_module_path('/system/lib64/hw/libC.so'))
34 [], m.get_module_path('/system/lib64/libdoes_not_exist.so'))
/development/apps/Development/src/com/android/development/
DConfigurationViewer.java34 DisplayMetrics m = new DisplayMetrics(); in onCreate() local
35 getWindowManager().getDefaultDisplay().getMetrics(m); in onCreate()
56 + "density=" + m.density + "\n" in onCreate()
57 + "densityDpi=" + m.densityDpi + "\n" in onCreate()
58 + "heightPixels=" + m.heightPixels + "\n" in onCreate()
59 + "scaledDensity=" + m.scaledDensity + "\n" in onCreate()
60 + "widthPixels=" + m.widthPixels + "\n" in onCreate()
61 + "xdpi=" + m.xdpi + "\n" in onCreate()
62 + "ydpi=" + m.ydpi + "\n" in onCreate()
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DMethodSourcerTest.java48 MethodSourcer m = new MethodSourcer(mOutput, in testVoid() local
55 m.visitEnd(); in testVoid()
64 MethodSourcer m = new MethodSourcer(mOutput, in testVoidThrow() local
71 m.visitEnd(); in testVoidThrow()
80 MethodSourcer m = new MethodSourcer(mOutput, in testReturnMap() local
87 m.visitEnd(); in testReturnMap()
/development/tools/bugreport/src/com/android/bugreport/bugreport/
DMetadataParser.java60 Matcher m; in parseHeader() local
67 if ((m = Utils.match(mDumpstateLineRe, text)) != null) { in parseHeader()
68 mBugreport.startTime = Utils.parseCalendar(m, 1, false); in parseHeader()
69 } else if ((m = Utils.match(mHeaderLineRe, text)) != null) { in parseHeader()
70 final String key = m.group(1); in parseHeader()
71 final String value = m.group(2); in parseHeader()
DBugreportParser.java95 Matcher m; in parse() local
116 if ((m = Utils.match(mSectionEnd, line.text)) != null) { in parse()
117 final int durationMs = (int)(Float.parseFloat(m.group(1)) * 1000); in parse()
118 final String endSection = m.group(2); in parse()
136 } else if (((m = Utils.match(mSectionBegin, line.text)) != null) in parse()
137 || ((m = Utils.match(mSectionBeginNoCmd, line.text)) != null)) { in parse()
146 section = m.group(1); in parse()
147 command = (m.groupCount() > 1) ? command = m.group(2) : null; in parse()
/development/scripts/
Dusb-reset-by-serial.py116 m = dmatch.match(line)
117 if m:
118 p1 = int(m.group(1))
119 p2 = int(m.group(2))
123 m = smatch.match(line)
124 if m:
125 ser = m.group(1)
Dnative_heapdump_viewer.py123 m = re_line.match(line)
124 if m:
125 return m.group('version')
150 m = re_backtrace.match(line)
151 if m:
152 backtrace_size = int(m.group('backtrace_size'))
155 m = re_line.match(line)
156 if m:
157 num_allocations = int(m.group('num_allocations'))
244 m = re_map.match(line)
[all …]
/development/testrunner/
Dandroid_mk.py53 m = self._RE_INCLUDE.match(line)
54 if m:
55 self._includes.add(m.group(1))
98 m = self._RE_VARIABLE_REF.match(variable_value)
99 if m:
102 variable_ref = m.group(1)
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java181 final float[] m = satMatrix.getArray(); in filter() local
188 float tr = r * m[0] + g * m[3] + b * m[6]; in filter()
189 float tg = r * m[1] + g * m[4] + b * m[7]; in filter()
190 float tb = r * m[2] + g * m[5] + b * m[8]; in filter()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java82 Message m = Message.obtain(mHandler, MESSAGE_LOG); in log() local
83 m.obj = s; in log()
84 mHandler.sendMessage(m); in log()
109 Message m = Message.obtain(mHandler, MESSAGE_DEVICE_ONLINE); in deviceOnline() local
110 m.obj = device; in deviceOnline()
111 mHandler.sendMessage(m); in deviceOnline()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/
DMyJobService.java110 Message m = Message.obtain(); in sendMessage() local
111 m.what = messageID; in sendMessage()
112 m.obj = params; in sendMessage()
114 mActivityMessenger.send(m); in sendMessage()
/development/tools/repo_diff/service/repodiff/interactors/
Dmanifest.go20 func extractProjectNames(m ent.ManifestFile) []string {
21 projects := make([]string, len(m.Projects))
22 for i, p := range m.Projects {
Dstrings.go65 m := make(simpleSet, len(s))
67 m[val] = true
69 return m
/development/gsi/gsi_util/gsi_util/utils/
Ddebugfs.py69 m = re.search('Type:\\s*([^\\s]+)', output)
70 assert m is not None, '{} outputs with an unknown format.'.format(_DEBUGFS)
72 ret = m.group(1)
/development/tools/repo_diff/service/repodiff/handlers/
Dhttp.go53 m := <-statusChannel
54 globalJobStatus = m.JobStatus
55 globalMeta = m.Meta
/development/vndk/tools/header-checker/src/repr/
Dir_dumper.cpp49 static std::vector<const T *> SortAbiElements(const AbiElementMap<T> &m) { in SortAbiElements() argument
52 xs.reserve(m.size()); in SortAbiElements()
53 for (auto &&item : m) { in SortAbiElements()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
DMainActivity.java213 Message m; in handleMessage() local
226 m = Message.obtain(this, MSG_UNCOLOR_START); in handleMessage()
227 sendMessageDelayed(m, 1000L); in handleMessage()
240 m = obtainMessage(MSG_UNCOLOR_STOP); in handleMessage()
241 sendMessageDelayed(m, 2000L); in handleMessage()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPatterns.java79 Matrix m = new Matrix(); in SampleView() local
80 m.setRotate(30); in SampleView()
81 mShader2.setLocalMatrix(m); in SampleView()

123