Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 58) sorted by relevance

123

/cts/apps/CtsVerifier/include/colorchecker/
Dvec3.h36 inline Vec3<T> operator+ (const Vec3<U> &param) const {
37 Vec3<T> temp(mRed + param.r(), mGreen + param.g(), mBlue + param.b());
41 inline Vec3<T> operator- (const Vec3<T> &param) const {
42 Vec3<T> temp(mRed - param.r(), mGreen - param.g(), mBlue - param.b());
46 inline Vec3<T> operator* (const int param) const {
47 Vec3<T> temp(mRed * param, mGreen * param, mBlue * param);
52 inline Vec3<float> operator* (const Vec3<U> &param) const {
53 Vec3<float> temp(mRed * static_cast<U>(param.r()),
54 mGreen * static_cast<U>(param.g()),
55 mBlue * static_cast<U>(param.b()));
[all …]
Dvec2.h33 inline Vec2<T> operator+ (const Vec2<T> &param) const {
34 Vec2<T> temp(mX + param.x(), mY + param.y());
38 inline Vec2<T> operator- (const Vec2<T> &param) const {
39 Vec2<T> temp(mX - param.x(), mY - param.y());
43 inline Vec2<float> operator/ (const int param) const {
44 assert(param != 0);
45 return Vec2<float>(static_cast<float>(mX) / static_cast<float>(param),
46 static_cast<float>(mY) / static_cast<float>(param));
50 float squareDistance(const Vec2<U> &param) const { in squareDistance() argument
52 difference = (static_cast<float>(mX) - static_cast<float>(param.x())) * in squareDistance()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioProtocol.cpp29 bool AudioProtocol::sendCommand(AudioParam& param) in sendCommand() argument
36 bool AudioProtocol::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
91 bool CmdDownload::sendCommand(AudioParam& param) in sendCommand() argument
94 mBuffer[1] = htonl(4 + param.mBuffer->getSize()); in sendCommand()
95 mBuffer[2] = htonl(param.mId); in sendCommand()
99 return sendData(param.mBuffer->getData(), param.mBuffer->getSize()); in sendCommand()
109 bool CmdStartPlayback::sendCommand(AudioParam& param) in sendCommand() argument
113 mBuffer[2] = htonl(param.mId); in sendCommand()
114 mBuffer[3] = htonl(param.mSamplingF); in sendCommand()
115 uint32_t mode = param.mStereo ? 0x80000000 : 0; in sendCommand()
[all …]
DAudioHardware.cpp41 android::String8 param("MobilePre Track"); in detectAudioHw() local
43 if (!SimpleScriptExec::runScript(script, param, resultStr)) { in detectAudioHw()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java169 final Params param = new Params.Builder(PAINT).build(); in testCreate_withNull() local
171 PrecomputedText.create(NULL_CHAR_SEQUENCE, param); in testCreate_withNull()
186 final Params param = new Params.Builder(PAINT).setTextDirection(LTR).build(); in testCreateForDifferentDirection() local
187 final PrecomputedText textWithLTR = PrecomputedText.create(STRING, param); in testCreateForDifferentDirection()
197 final Params param = new Params.Builder(PAINT).build(); in testCharSequenceInteface() local
198 final CharSequence s = PrecomputedText.create(STRING, param); in testCharSequenceInteface()
218 final Params param = new Params.Builder(PAINT).build(); in testSpannedInterface_Spanned() local
219 final Spanned s = PrecomputedText.create(SPANNED, param); in testSpannedInterface_Spanned()
236 final Params param = new Params.Builder(PAINT).build(); in testSpannedInterface_Spannable() local
237 final Spannable s = PrecomputedText.create(STRING, param); in testSpannedInterface_Spannable()
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlPlanetsActivity.java83 PlanetsRenderingParam param = new PlanetsRenderingParam(); in onCreate() local
84 param.mNumPlanets = intent.getIntExtra(INTENT_EXTRA_NUM_PLANETS, param.mNumPlanets); in onCreate()
85 param.mUseVboForVertices = intent.getBooleanExtra(INTENT_EXTRA_USE_VBO_VERTICES, in onCreate()
86 param.mUseVboForVertices); in onCreate()
87 param.mUseVboForIndices = intent.getBooleanExtra(INTENT_EXTRA_USE_VBO_INDICES, in onCreate()
88 param.mUseVboForIndices); in onCreate()
89 param.mNumFrames = intent.getIntExtra(INTENT_EXTRA_NUM_FRAMES, param.mNumFrames); in onCreate()
90 param.mNumIndicesPerVertex = intent.getIntExtra(INTENT_EXTRA_NUM_INDEX_BUFFERS, in onCreate()
91 param.mNumIndicesPerVertex); in onCreate()
92 mView = new PlanetsSurfaceView(this, param, this); in onCreate()
DPlanetsSurfaceView.java27 public PlanetsSurfaceView(Context context, PlanetsRenderingParam param, in PlanetsSurfaceView() argument
32 setRenderer(new PlanetsRenderer(context, param, listener, mWatchDog)); in PlanetsSurfaceView()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp149 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
185 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
213 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
247 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
275 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
306 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
336 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
Dtest_aaudio_callback.cpp66 return std::string() + sharingModeToString(std::get<PARAM_SHARING_MODE>(info.param)) + in getTestName()
67 "__" + std::to_string(std::get<PARAM_FRAMES_PER_CB>(info.param)) + in getTestName()
68 "__" + performanceModeToString(std::get<PARAM_PERF_MODE>(info.param)); in getTestName()
/cts/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java347 byte[] param = mEffect.intToByteArray(PresetReverb.PARAM_PRESET); in test3_0SetParameterByteArrayByteArray()
349 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
356 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
358 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
381 int param = EnvironmentalReverb.PARAM_DECAY_TIME; in test3_1SetParameterIntInt() local
383 int status = mEffect.getParameter(param, value); in test3_1SetParameterIntInt()
389 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt()
391 status = mEffect.getParameter(param, value); in test3_1SetParameterIntInt()
415 int param = PresetReverb.PARAM_PRESET; in test3_2SetParameterIntShort() local
417 int status = mEffect.getParameter(param, value); in test3_2SetParameterIntShort()
[all …]
/cts/suite/audio_quality/lib/include/audio/
DAudioProtocol.h60 void* param[5];
68 virtual bool sendCommand(AudioParam& param);
70 virtual bool handleReply(const uint32_t* data, AudioParam* param);
108 virtual bool sendCommand(AudioParam& param);
117 virtual bool sendCommand(AudioParam& param);
133 virtual bool sendCommand(AudioParam& param);
135 virtual bool handleReply(const uint32_t* data, AudioParam* param);
151 virtual bool handleReply(const uint32_t* data, AudioParam* param);
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DCecMessage.java123 String param = getNibbles(message).substring(0, 1); in getSource() local
124 return LogicalAddress.getLogicalAddress(hexStringToInt(param)); in getSource()
129 String param = getNibbles(message).substring(1, 2); in getDestination() local
130 return LogicalAddress.getLogicalAddress(hexStringToInt(param)); in getDestination()
135 String param = getNibbles(message).substring(2, 4); in getOperand() local
136 return CecOperand.getOperand(hexStringToInt(param)); in getOperand()
/cts/suite/audio_quality/lib/src/
DSimpleScriptExec.cpp31 android::String8 param; in checkPythonEnv() local
33 if (!runScript(script, param, result)) { in checkPythonEnv()
66 bool SimpleScriptExec::runScript(const android::String8& script, const android::String8& param, in runScript() argument
71 command.appendFormat("%s %s %s", PYTHON_PATH, script.string(), param.string()); in runScript()
DClientImpl.cpp34 bool ClientImpl::init(const android::String8& param) in init() argument
36 Adb adb(param); in init()
DSimpleScriptExec.h40 static bool runScript(const android::String8& script, const android::String8& param,
DClientImpl.h32 virtual bool init(const android::String8& param);
/cts/suite/audio_quality/lib/src/task/
DTaskProcess.cpp268 Param param(EId, item[1]); in parseParams() local
269 list.push_back(param); in parseParams()
270 LOGD(" id %s", param.getParamString().string()); in parseParams()
272 Param param(EVal, item[1]); in parseParams() local
273 list.push_back(param); in parseParams()
274 LOGD(" val %s", param.getParamString().string()); in parseParams()
278 Param param(v); in parseParams() local
279 list.push_back(param); in parseParams()
284 Param param(v); in parseParams() local
285 list.push_back(param); in parseParams()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java476 Camera.Parameters param = mCamera.getParameters(); in setupCamera() local
477 List<Camera.Size> pre_sz = param.getSupportedPreviewSizes(); in setupCamera()
478 List<Camera.Size> pic_sz = param.getSupportedPictureSizes(); in setupCamera()
500 param.setPreviewSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
501 param.setPictureSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
511 if (param.getSupportedFocusModes().contains(i)){ in setupCamera()
512 param.setFocusMode(i); in setupCamera()
519 mCamera.setParameters(param); in setupCamera()
523 param = mCamera.getParameters(); //acquire proper fov after change the picture size in setupCamera()
524 float fovW = param.getHorizontalViewAngle(); in setupCamera()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.h105 AMediaFormat_setInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, bitrate); in newBitRate()
110 … AMediaFormat_setInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_REQUEST_SYNC_FRAME, 0 /*ignore*/); in newRequestSync()
117 inline AMediaFormat *param() const { in param() function
Dnative_media_utils.cpp63 assert(d->param() != nullptr); in dynamicParamsOfKind()
68 … if (AMediaFormat_getInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_REQUEST_SYNC_FRAME, &tmp)) { in dynamicParamsOfKind()
75 … if (AMediaFormat_getInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, &tmp)) { in dynamicParamsOfKind()
298 d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, &updatedBitrate)) { in checkDynamicBitrate()
Dnative_media_encoder_jni.cpp222 assert(p->param() != nullptr); in run()
223 const char *s = AMediaFormat_toString(p->param()); in run()
226 AMediaCodec_setParameters(mEnc.get(), p->param()); in run()
307 … if (AMediaFormat_getInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_REQUEST_SYNC_FRAME, &temp)) { in runNativeEncoderTest()
309 …} else if (AMediaFormat_getInt32(d->param(), TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, &temp)) { in runNativeEncoderTest()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewPrecomputedTextTest.java155 Object[] param = new Object[allParameterCount]; in getParameters() local
157 param[j] = new Boolean((bits & (1 << j)) != 0); in getParameters()
159 allParams.add(param); in getParameters()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java701 final PlaybackParams param = new PlaybackParams().setSpeed(2.0f) in verifyCommandTimeShiftSetPlaybackParams() local
703 mTvView.timeShiftSetPlaybackParams(param); in verifyCommandTimeShiftSetPlaybackParams()
710 && playbackParamsEquals(session.mTimeShiftSetPlaybackParams, param); in verifyCommandTimeShiftSetPlaybackParams()
983 public static boolean playbackParamsEquals(PlaybackParams param, PlaybackParams other) { in playbackParamsEquals() argument
984 if (param == other) return true; in playbackParamsEquals()
985 if (param == null || other == null) return false; in playbackParamsEquals()
986 return param.getAudioFallbackMode() == other.getAudioFallbackMode() in playbackParamsEquals()
987 && param.getSpeed() == other.getSpeed(); in playbackParamsEquals()
1289 public void onTimeShiftSetPlaybackParams(PlaybackParams param) { in onTimeShiftSetPlaybackParams() argument
1291 mTimeShiftSetPlaybackParams = param; in onTimeShiftSetPlaybackParams()
/cts/suite/audio_quality/lib/include/
DClientInterface.h33 virtual bool init(const android::String8& param) = 0;
/cts/hostsidetests/securitybulletin/securityPatch/includes/
DomxUtils.cpp157 status_t omxUtilsSendCommand(OMX_COMMANDTYPE cmd, OMX_S32 param) { in omxUtilsSendCommand() argument
158 int ret = mOMXNode->sendCommand(cmd, param); in omxUtilsSendCommand()

123