/cts/apps/CtsVerifier/include/colorchecker/ |
D | vec3.h | 36 inline Vec3<T> operator+ (const Vec3<U> ¶m) const { 37 Vec3<T> temp(mRed + param.r(), mGreen + param.g(), mBlue + param.b()); 41 inline Vec3<T> operator- (const Vec3<T> ¶m) 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> ¶m) 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 …]
|
D | vec2.h | 33 inline Vec2<T> operator+ (const Vec2<T> ¶m) const { 34 Vec2<T> temp(mX + param.x(), mY + param.y()); 38 inline Vec2<T> operator- (const Vec2<T> ¶m) 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> ¶m) 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/ |
D | AudioProtocol.cpp | 29 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 …]
|
D | AudioHardware.cpp | 41 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/ |
D | PrecomputedTextTest.java | 169 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/ |
D | GlPlanetsActivity.java | 83 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()
|
D | PlanetsSurfaceView.java | 27 public PlanetsSurfaceView(Context context, PlanetsRenderingParam param, in PlanetsSurfaceView() argument 32 setRenderer(new PlanetsRenderer(context, param, listener, mWatchDog)); in PlanetsSurfaceView()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioProtocol.h | 60 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/securitybulletin/securityPatch/CVE-2020-11282/ |
D | poc.c | 36 struct kgsl_device_getproperty param; in main() local 44 param.type = KGSL_PROP_DEVICE_SHADOW; in main() 45 param.value = &shadowprop; in main() 46 param.sizebytes = sizeof(shadowprop); in main() 48 if (ioctl(kgsl_fd, IOCTL_KGSL_DEVICE_GETPROPERTY, param) < 0) { in main()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioEffectTest.java | 347 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/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_stream_builder.cpp | 152 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 188 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 216 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 250 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 278 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 309 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 339 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 376 ss << "0x" << std::hex << info.param; in getTestName() 554 ss << (info.param.first == AAUDIO_DIRECTION_INPUT ? "INPUT_0x" : "OUTPUT_0x") in getTestName() 555 << std::hex << info.param.second; in getTestName()
|
D | test_aaudio_callback.cpp | 97 + sharingModeToString(std::get<PARAM_SHARING_MODE>(info.param)) in getTestName() 98 + "__" + std::to_string(std::get<PARAM_FRAMES_PER_CB>(info.param)) in getTestName() 99 + "__" + performanceModeToString(std::get<PARAM_PERF_MODE>(info.param)) in getTestName() 100 + "__" + allowMMapToString(std::get<PARAM_ALLOW_MMAP>(info.param)) in getTestName() 101 + "__" + audioFormatToString(std::get<PARAM_AUDIO_FORMAT>(info.param)) in getTestName()
|
/cts/suite/audio_quality/lib/src/ |
D | SimpleScriptExec.cpp | 31 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()
|
D | ClientImpl.cpp | 34 bool ClientImpl::init(const android::String8& param) in init() argument 36 Adb adb(param); in init()
|
D | SimpleScriptExec.h | 40 static bool runScript(const android::String8& script, const android::String8& param,
|
D | ClientImpl.h | 32 virtual bool init(const android::String8& param);
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | CecMessage.java | 113 String param = getNibbles(message).substring(0, 1); in getSource() local 114 return LogicalAddress.getLogicalAddress(hexStringToInt(param)); in getSource() 119 String param = getNibbles(message).substring(1, 2); in getDestination() local 120 return LogicalAddress.getLogicalAddress(hexStringToInt(param)); in getDestination() 125 String param = getNibbles(message).substring(2, 4); in getOperand() local 126 return CecOperand.getOperand(hexStringToInt(param)); in getOperand()
|
/cts/common/device-side/bedstead/testapp/src/processor/main/java/com/android/bedstead/testapp/processor/ |
D | Processor.java | 274 for (VariableElement param : method.getParameters()) { in generateRemoteFrameworkClassWrapper() 277 ParameterSpec.builder(ClassName.get(param.asType()), in generateRemoteFrameworkClassWrapper() 278 param.getSimpleName().toString()).build(); in generateRemoteFrameworkClassWrapper() 281 if (param.asType().toString().equals("android.content.Context")) { in generateRemoteFrameworkClassWrapper() 286 params.add(param.getSimpleName().toString()); in generateRemoteFrameworkClassWrapper() 412 for (VariableElement param : method.getParameters()) { in generateDpmParentWrapper() 413 ParameterSpec parameterSpec = ParameterSpec.builder(ClassName.get(param.asType()), in generateDpmParentWrapper() 414 param.getSimpleName().toString()).build(); in generateDpmParentWrapper() 416 params.add(param.getSimpleName().toString()); in generateDpmParentWrapper() 492 for (VariableElement param : method.getParameters()) { in generateTargetedRemoteActivityImpl() [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskProcess.cpp | 268 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/ |
D | ClientInterface.h | 33 virtual bool init(const android::String8& param) = 0;
|
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/ |
D | Processor.java | 793 for (VariableElement param : method.getParameters()) { in generateFrameworkInterface() 795 ParameterSpec.builder(ClassName.get(param.asType()), in generateFrameworkInterface() 796 param.getSimpleName().toString()).build(); in generateFrameworkInterface() 852 for (VariableElement param : method.getParameters()) { in generateDpmParent() 853 String paramName = param.getSimpleName().toString(); in generateDpmParent() 855 ParameterSpec.builder(ClassName.get(param.asType()), paramName).build(); in generateDpmParent() 943 for (VariableElement param : method.getParameters()) { in generateFrameworkImpl() 944 String paramName = param.getSimpleName().toString(); in generateFrameworkImpl() 947 ParameterSpec.builder(ClassName.get(param.asType()), paramName).build(); in generateFrameworkImpl()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 476 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/widget/src/android/widget/cts/ |
D | TextViewPrecomputedTextTest.java | 155 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/signature/lib/common/src/android/signature/cts/ |
D | DexMethod.java | 50 for (String param : mParamTypeList) { in getJavaParameterClasses() 51 classes[i++] = DexMember.typeToClass(param); in getJavaParameterClasses()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/ |
D | poc.cpp | 263 C2Param *param = updates[i].get(); in workDone() local 264 if (param->index() == C2StreamInitDataInfo::output::PARAM_TYPE) { in workDone() 265 C2StreamInitDataInfo::output *csdBuffer = (C2StreamInitDataInfo::output *)(param); in workDone() 270 } else if ((param->index() == C2StreamSampleRateInfo::output::PARAM_TYPE) || in workDone() 271 (param->index() == C2StreamChannelCountInfo::output::PARAM_TYPE) || in workDone() 272 (param->index() == C2StreamPictureSizeInfo::output::PARAM_TYPE)) { in workDone() 273 configParam.push_back(param); in workDone()
|