Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 56) 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.java162 final Params param = new Params.Builder(PAINT).build(); in testCreate_withNull() local
164 PrecomputedText.create(NULL_CHAR_SEQUENCE, param); in testCreate_withNull()
179 final Params param = new Params.Builder(PAINT).build(); in testCharSequenceInteface() local
180 final CharSequence s = PrecomputedText.create(STRING, param); in testCharSequenceInteface()
200 final Params param = new Params.Builder(PAINT).build(); in testSpannedInterface_Spanned() local
201 final Spanned s = PrecomputedText.create(SPANNED, param); in testSpannedInterface_Spanned()
218 final Params param = new Params.Builder(PAINT).build(); in testSpannedInterface_Spannable() local
219 final Spannable s = PrecomputedText.create(STRING, param); in testSpannedInterface_Spannable()
239 final Params param = new Params.Builder(PAINT).build(); in testSpannedInterface_Spannable_setSpan_MetricsAffectingSpan() local
240 final Spannable s = PrecomputedText.create(SPANNED, param); in testSpannedInterface_Spannable_setSpan_MetricsAffectingSpan()
[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.cpp104 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
132 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
159 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
192 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
219 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
246 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()
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/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/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java346 byte[] param = mEffect.intToByteArray(PresetReverb.PARAM_PRESET); in test3_0SetParameterByteArrayByteArray()
348 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
355 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
357 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
380 int param = EnvironmentalReverb.PARAM_DECAY_TIME; in test3_1SetParameterIntInt() local
382 int status = mEffect.getParameter(param, value); in test3_1SetParameterIntInt()
388 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt()
390 status = mEffect.getParameter(param, value); in test3_1SetParameterIntInt()
414 int param = PresetReverb.PARAM_PRESET; in test3_2SetParameterIntShort() local
416 int status = mEffect.getParameter(param, value); in test3_2SetParameterIntShort()
[all …]
/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/suite/audio_quality/lib/include/
DClientInterface.h33 virtual bool init(const android::String8& param) = 0;
/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java464 Camera.Parameters param = mCamera.getParameters(); in setupCamera() local
465 List<Camera.Size> pre_sz = param.getSupportedPreviewSizes(); in setupCamera()
466 List<Camera.Size> pic_sz = param.getSupportedPictureSizes(); in setupCamera()
488 param.setPreviewSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
489 param.setPictureSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
499 if (param.getSupportedFocusModes().contains(i)){ in setupCamera()
500 param.setFocusMode(i); in setupCamera()
507 mCamera.setParameters(param); in setupCamera()
511 param = mCamera.getParameters(); //acquire proper fov after change the picture size in setupCamera()
512 float fovW = param.getHorizontalViewAngle(); in setupCamera()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewPrecomputedTextTest.java165 Object[] param = new Object[allParameterCount]; in getParameters() local
167 param[j] = new Boolean((bits & (1 << j)) != 0); in getParameters()
169 allParams.add(param); in getParameters()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java148 for (Map.Entry<String, String> param : params.entrySet()) { in runDeviceTestsAsUser()
149 testRunner.addInstrumentationArg(param.getKey(), param.getValue()); in runDeviceTestsAsUser()
/cts/hostsidetests/security/securityPatch/CVE-2016-8424/
Dpoc.c41 __u32 param; /* size/align/base/heap etc. */ member
/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()

123