Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 18 of 18) sorted by relevance

/cts/suite/cts/deviceTests/opengl/jni/graphics/
DPerspectiveMeshNode.cpp24 PerspectiveProgram& prog = (PerspectiveProgram&) program; in before() local
26 int textureUniformHandle = glGetUniformLocation(prog.mProgramId, "u_Texture"); in before()
27 int positionHandle = glGetAttribLocation(prog.mProgramId, "a_Position"); in before()
28 int normalHandle = glGetAttribLocation(prog.mProgramId, "a_Normal"); in before()
29 int texCoordHandle = glGetAttribLocation(prog.mProgramId, "a_TexCoordinate"); in before()
45 prog.mMVMatrix.multiply(view, model); in before()
48 glUniformMatrix4fv(prog.mMVMatrixHandle, 1, false, prog.mMVMatrix.mData); in before()
52 prog.mMVPMatrix.multiply(projection, prog.mMVMatrix); in before()
55 glUniformMatrix4fv(prog.mMVPMatrixHandle, 1, false, prog.mMVPMatrix.mData); in before()
58 glUniform3f(prog.mLightPosHandle, prog.mLightPosInEyeSpace[0], prog.mLightPosInEyeSpace[1], in before()
[all …]
/cts/suite/cts/deviceTests/opengl/jni/reference/scene/flocking/
DWaterMeshNode.cpp24 PerspectiveProgram& prog = (PerspectiveProgram&) program; in before() local
26 int textureUniformHandle1 = glGetUniformLocation(prog.mProgramId, "u_Texture1"); in before()
27 int textureUniformHandle2 = glGetUniformLocation(prog.mProgramId, "u_Texture2"); in before()
28 int timeUniformHandle = glGetUniformLocation(prog.mProgramId, "u_Time"); in before()
29 int positionHandle = glGetAttribLocation(prog.mProgramId, "a_Position"); in before()
30 int texCoordHandle = glGetAttribLocation(prog.mProgramId, "a_TexCoordinate"); in before()
49 prog.mMVMatrix.multiply(view, model); in before()
52 glUniformMatrix4fv(prog.mMVMatrixHandle, 1, false, prog.mMVMatrix.mData); in before()
56 prog.mMVPMatrix.multiply(projection, prog.mMVMatrix); in before()
59 glUniformMatrix4fv(prog.mMVPMatrixHandle, 1, false, prog.mMVPMatrix.mData); in before()
[all …]
/cts/tools/cts-java-scanner/etc/
Dcts-java-scanner19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
/cts/tools/cts-native-scanner/etc/
Dcts-native-scanner19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
/cts/tools/cts-xml-generator/etc/
Dcts-xml-generator19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
/cts/tools/cts-api-coverage/etc/
Dcts-api-coverage19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
/cts/tools/cfassembler/etc/
Dcfassembler19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
49 echo `basename "$prog"`": can't find $jarfile"
/cts/tools/dasm/etc/
Ddasm19 prog="$0"
20 while [ -h "${prog}" ]; do
21 newProg=`/bin/ls -ld "${prog}"`
24 prog="${newProg}"
26 progdir=`dirname "${prog}"`
27 prog="${progdir}/${newProg}"
31 progdir=`dirname "${prog}"`
34 prog="${progdir}"/`basename "${prog}"`
49 echo `basename "$prog"`": can't find $jarfile"
/cts/tools/signature-tools/
Dsig20 prog="$0"
21 while [ -h "${prog}" ]; do
22 newProg=`/bin/ls -ld "${prog}"`
25 prog="${newProg}"
27 progdir=`dirname "${prog}"`
28 prog="${progdir}/${newProg}"
32 progdir=`dirname "${prog}"`
35 prog="${progdir}"/`basename "${prog}"`
Dsig-create20 prog="$0"
21 while [ -h "${prog}" ]; do
22 newProg=`/bin/ls -ld "${prog}"`
25 prog="${newProg}"
27 progdir=`dirname "${prog}"`
28 prog="${progdir}/${newProg}"
32 progdir=`dirname "${prog}"`
35 prog="${progdir}"/`basename "${prog}"`
Dsig-check20 prog="$0"
21 while [ -h "${prog}" ]; do
22 newProg=`/bin/ls -ld "${prog}"`
25 prog="${newProg}"
27 progdir=`dirname "${prog}"`
28 prog="${progdir}/${newProg}"
32 progdir=`dirname "${prog}"`
35 prog="${progdir}"/`basename "${prog}"`
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp52 struct sock_fprog prog; in test_seccomp() local
53 memset(&prog, 0, sizeof(prog)); in test_seccomp()
54 prog.len = sizeof(filter) / sizeof(filter[0]); in test_seccomp()
55 prog.filter = filter; in test_seccomp()
57 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog) < 0) { in test_seccomp()
Dseccomp_sample_program.cpp1451 struct sock_fprog prog = { in GetTestSeccompFilterProgram() local
1455 return prog; in GetTestSeccompFilterProgram()
Dandroid_os_cts_SeccompTest.cpp61 struct sock_fprog prog = GetTestSeccompFilterProgram(); in android_security_cts_SeccompBpfTest_installTestFilter()
63 if (prog.len == 0) in android_security_cts_SeccompBpfTest_installTestFilter()
66 int rv = syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, &prog); in android_security_cts_SeccompBpfTest_installTestFilter()
/cts/tests/tests/os/jni/seccomp-tests/tests/
Dsigsegv.c62 struct sock_fprog prog; in FIXTURE_DATA() local
84 memset(&self->prog, 0, sizeof(self->prog)); in FIXTURE_SETUP()
85 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
86 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
87 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP()
88 self->prog.len = (unsigned short)(sizeof(filter)/sizeof(filter[0])); in FIXTURE_SETUP()
93 if (self->prog.filter) in FIXTURE_TEARDOWN()
94 free(self->prog.filter); in FIXTURE_TEARDOWN()
172 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
Dseccomp_bpf_tests.c136 struct sock_fprog prog = { in TEST() local
145 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
165 struct sock_fprog prog = { }; in TEST() local
177 prog.filter = filter; in TEST()
178 prog.len = count; in TEST()
181 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
183 TH_LOG("Installing %d insn filter was allowed", prog.len); in TEST()
187 prog.len -= 1; in TEST()
188 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
190 TH_LOG("Installing %d insn filter wasn't allowed", prog.len); in TEST()
[all …]
Dresumption.c58 struct sock_fprog prog; in FIXTURE_DATA() local
115 memset(&self->prog, 0, sizeof(self->prog)); in FIXTURE_SETUP()
116 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
117 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
118 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP()
119 self->prog.len = (unsigned short)(sizeof(filter)/sizeof(filter[0])); in FIXTURE_SETUP()
124 if (self->prog.filter) in FIXTURE_TEARDOWN()
125 free(self->prog.filter); in FIXTURE_TEARDOWN()
203 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F()
/cts/tools/vm-tests-tf/etc/
Dstarttests20 prog="$0"
21 while [ -h "${prog}" ]; do
22 newProg=`/bin/ls -ld "${prog}"`
25 prog="${newProg}"
27 progdir=`dirname "${prog}"`
28 prog="${progdir}/${newProg}"
32 progdir=`dirname "${prog}"`
35 prog="${progdir}"/`basename "${prog}"`