/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | Cam.java | 147 public static Cam fromIntInFrame(int argb, Frame frame) { in fromIntInFrame() argument 158 float rD = frame.getRgbD()[0] * rT; in fromIntInFrame() 159 float gD = frame.getRgbD()[1] * gT; in fromIntInFrame() 160 float bD = frame.getRgbD()[2] * bT; in fromIntInFrame() 163 float rAF = (float) Math.pow(frame.getFl() * Math.abs(rD) / 100.0, 0.42); in fromIntInFrame() 164 float gAF = (float) Math.pow(frame.getFl() * Math.abs(gD) / 100.0, 0.42); in fromIntInFrame() 165 float bAF = (float) Math.pow(frame.getFl() * Math.abs(bD) / 100.0, 0.42); in fromIntInFrame() 189 float ac = p2 * frame.getNbb(); in fromIntInFrame() 192 float j = 100.0f * (float) Math.pow(ac / frame.getAw(), frame.getC() * frame.getZ()); in fromIntInFrame() 195 / frame.getC() in fromIntInFrame() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9362/ |
D | poc.cpp | 55 SPATIAL_BS_FRAME frame; in main() local 56 memset(&frame, 0x0, sizeof(SPATIAL_BS_FRAME)); in main() 58 frame.numParameterSets = MAX_PARAMETER_SETS; in main() 61 frame.CLDLosslessData = CLDLosslessData; in main() 64 frame.ICCLosslessData = ICCLosslessData; in main() 67 frame.IPDLosslessData = IPDLosslessData; in main() 71 (frame.CLDLosslessData[i]).bsXXXDataMode[j] = 2; in main() 74 (frame.CLDLosslessData[i]).state = &lossLessState; in main() 77 SpatialDecDecodeFrame(&decoder, &frame); in main()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | WaveScopeView.java | 122 for (int frame = 0; frame < numFrames; frame++) { in drawChannel16() 151 for (int frame = 0; frame < numFrames; frame++) { in drawChannelFloat()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LocationInWindowTests.java | 180 FrameLayout frame = new FrameLayout(this); in onCreate() local 181 frame.setLayoutParams(new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)); in onCreate() 182 frame.setPadding(1, 2, 3, 4); in onCreate() 183 setContentView(frame); in onCreate() 189 frame.addView(mView, lp); in onCreate() 194 frame.setScrollX(12); in onCreate() 195 frame.setScrollY(13); in onCreate()
|
D | DialogFrameTests.java | 225 Rect frame = getParentFrameWithInsets(parent); in testMarginsArePercentagesOfContentFrame() 227 (int) (horizontalMargin * frame.width() + frame.left), in testMarginsArePercentagesOfContentFrame() 228 (int) (verticalMargin * frame.height() + frame.top), in testMarginsArePercentagesOfContentFrame() 229 (int) (horizontalMargin * frame.width() + frame.left) + explicitDimension, in testMarginsArePercentagesOfContentFrame() 230 (int) (verticalMargin * frame.height() + frame.top) + explicitDimension); in testMarginsArePercentagesOfContentFrame()
|
D | LocationOnScreenTests.java | 213 FrameLayout frame = new FrameLayout(this); in onCreate() local 214 frame.setLayoutParams(new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)); in onCreate() 215 setContentView(frame); in onCreate() 218 frame.addView(mView, new FrameLayout.LayoutParams(2, 1, Gravity.CENTER)); in onCreate()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 184 Drawable frame = mResources.getDrawable(R.drawable.failed); in testGetNumberOfFrames() local 185 mAnimationDrawable.addFrame(frame, 2000); in testGetNumberOfFrames() 189 mAnimationDrawable.addFrame(frame, 2000); in testGetNumberOfFrames() 202 Drawable frame = mAnimationDrawable.getFrame(FIRST_FRAME_INDEX); in testGetFrame() local 204 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 205 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 207 frame = mAnimationDrawable.getFrame(SECOND_FRAME_INDEX); in testGetFrame() 209 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 210 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 212 frame = mAnimationDrawable.getFrame(THIRD_FRAME_INDEX); in testGetFrame() [all …]
|
/cts/tests/openglperf2/jni/reference/ |
D | ReferenceRenderer.cpp | 79 bool ReferenceRenderer::update(int frame) { in update() argument 81 int sceneId = frame / ReferenceRenderer::FRAMES_PER_SCENE; in update() 82 int localFrame = frame % ReferenceRenderer::FRAMES_PER_SCENE; in update()
|
D | ReferenceRenderer.h | 28 bool update(int frame);
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GLProducerThread.java | 49 void drawFrame(int frame); in drawFrame() argument 145 int frame = 0; in run() local 146 while (frame < mFrames || (mShouldRender != null && mShouldRender.get())) { in run() 148 mRenderer.drawFrame(frame); in run() 156 frame++; in run()
|
D | TextureViewStressTestActivity.java | 124 public void drawFrame(int frame) { in drawFrame() argument 125 int index = frame % NUM_COLORS; in drawFrame()
|
/cts/tests/openglperf2/jni/reference/scene/ |
D | Scene.h | 32 virtual bool update(int frame); 40 virtual bool updateSceneGraphs(int frame) = 0;
|
D | Scene.cpp | 65 bool Scene::update(int frame) { in update() argument 72 return updateSceneGraphs(frame); in update()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | IvfReader.java | 111 byte[] frame = new byte[frameSize]; in readFrame() 113 mIvfFile.read(frame); in readFrame() 115 return frame; in readFrame()
|
D | IvfWriter.java | 99 public void writeFrame(byte[] frame, long timeStamp) throws IOException { in writeFrame() argument 100 mOutputFile.write(makeIvfFrameHeader(frame.length, timeStamp)); in writeFrame() 101 mOutputFile.write(frame); in writeFrame()
|
D | MediaCodecBlockModelTest.java | 395 MediaCodec.OutputFrame frame = codec.getOutputFrame(index); in onOutputSlot() local 396 boolean eos = (frame.getFlags() & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0; in onOutputSlot() 398 if (mGraphic && frame.getHardwareBuffer() != null) { in onOutputSlot() 399 frame.getHardwareBuffer().close(); in onOutputSlot() 401 if (!mGraphic && frame.getLinearBlock() != null) { in onOutputSlot() 402 frame.getLinearBlock().recycle(); in onOutputSlot() 405 mTimestampList.remove(frame.getPresentationTimeUs()); in onOutputSlot() 428 MediaCodec.OutputFrame frame = codec.getOutputFrame(index); in onOutputSlot() local 429 boolean eos = (frame.getFlags() & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0; in onOutputSlot() 432 if (frame.getHardwareBuffer() != null) { in onOutputSlot() [all …]
|
/cts/apps/CameraITS/tests/scene2_b/ |
D | test_auto_per_frame_control.py | 111 frame = { 119 frame['ccm'])).reshape(3, 3) 123 logging.debug('fd: %f', frame['fd']) 125 str(frame['awb_gains']), str(awb_ccm)) 129 return frame, ae_state, total_gain 264 frame, ae_state, total_gain = _tabulate_frame_data( 266 cap_info[idx] = frame
|
/cts/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/ |
D | DrawFramesActivity.java | 162 for (int frame : framesToDraw) { in drawFrames() 164 timeoutDurationMs += 50 + (24 * Integer.bitCount(frame)); in drawFrames() 165 if ((frame & FRAME_JANK_DAVEY_JR) != 0) { in drawFrames() 168 if ((frame & FRAME_JANK_DAVEY) != 0) { in drawFrames()
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | FlockingScene.h | 36 bool updateSceneGraphs(int frame);
|
/cts/tests/openglperf2/jni/reference/scene/glowing/ |
D | GlowingScene.h | 35 bool updateSceneGraphs(int frame);
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | shadertoy_shader.h | 38 void PrepareForDraw(int width, int height, float global_time, int frame, float time_delta);
|
D | shadertoy_shader.cpp | 133 void ShadertoyShader::PrepareForDraw(int width, int height, float global_time, int frame, float tim… in PrepareForDraw() argument 142 glUniform1f(uiFrame_, (float)frame); in PrepareForDraw()
|
/cts/apps/CameraITS/tests/inprog/rolling_shutter_skew/ |
D | test_rolling_shutter_skew.py | 255 for i, frame in enumerate(frames): 260 frame, led_time, i, debug_dir=debug_dir) 290 def calculate_shutter_skew(frame, led_time, frame_num=None, debug_dir=None): argument 304 contours, scratch_img, contour_img, mono_img = find_contours(frame.copy()) 324 (frame_h, frame_w, _) = frame.shape 436 def find_largest_cluster(contours, frame): argument 461 cv2.circle(frame, (int(circle.x), int(circle.y)), int(circle.r),
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 314 for frame in frames: 315 frame = (frame * 255.0).astype(np.uint8) # cv2 uses [0, 255] 316 gframes.append(cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)) 371 frame = frames[j] 373 cv2.circle(frame, (x, y), 3, (100, 255, 255), -1) 375 frame, f'{file_name_stem}_features{j+_START_FRAME:03d}.png')
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CaptureResultTest.java | 188 for (Integer frame = 0; frame < NUM_FRAMES_TESTED; frame++) { in testPartialResult() 191 requestBuilder.setTag(frame); in testPartialResult() 198 for (int frame = 0; frame < NUM_FRAMES_TESTED; frame++) { in testPartialResult() 909 Integer frame = (Integer) request.getTag(); in onCaptureCompleted() local 910 Log.e(TAG, "Frame " + frame + "ERROR_DUPLICATED_REQUEST"); in onCaptureCompleted() 936 Integer frame = (Integer) request.getTag(); in checkCallbackOrder() local 937 Log.e(TAG, "Frame " + frame + "ERROR_WRONG_CALLBACK_ORDER"); in checkCallbackOrder()
|