Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/frameworks/base/core/tests/coretests/src/android/metrics/
DLogMakerTest.java29 LogMaker builder = new LogMaker(0); in testSerialize() local
30 builder.addTaggedData(1, "one"); in testSerialize()
31 builder.addTaggedData(2, "two"); in testSerialize()
32 Object[] out = builder.serialize(); in testSerialize()
49 LogMaker builder = new LogMaker(category); in testSerializeDeserialize() local
50 builder.setType(type); in testSerializeDeserialize()
51 builder.setSubtype(subtype); in testSerializeDeserialize()
52 builder.setTimestamp(timestamp); in testSerializeDeserialize()
53 builder.setPackageName(packageName); in testSerializeDeserialize()
54 builder.setCounterName(counterName); in testSerializeDeserialize()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DObjectPrinter.java42 StringBuilder builder = new StringBuilder(); in print() local
43 print(builder, obj, maxCollectionLength); in print()
44 return builder.toString(); in print()
53 static void print(@NonNull StringBuilder builder, @Nullable Object obj) { in print() argument
54 print(builder, obj, kDefaultMaxCollectionLength); in print()
65 static void print(@NonNull StringBuilder builder, @Nullable Object obj, in print() argument
69 builder.append("null"); in print()
73 builder.append(obj); in print()
77 builder.append(obj); in print()
81 builder.append('\''); in print()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DKMLFormatter.java29 LineBuilder builder = new LineBuilder(); in getHeader() local
30 builder.addLine("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); in getHeader()
31 builder.addLine("<kml xmlns=\"http://earth.google.com/kml/2.2\">"); in getHeader()
32 builder.addLine("<Document>"); in getHeader()
33 return builder.toString(); in getHeader()
37 LineBuilder builder = new LineBuilder(); in getFooter() local
38 builder.addLine("</Document>"); in getFooter()
39 builder.addLine("</kml>"); in getFooter()
40 return builder.toString(); in getFooter()
44 LineBuilder builder = new LineBuilder(); in getOutput() local
[all …]
/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_test_corpus.cc35 x86_64::MachineIRBuilder builder(machine_ir); in BuildDataFlowAcrossBasicBlocks() local
46 builder.StartBasicBlock(bb1); in BuildDataFlowAcrossBasicBlocks()
47 builder.Gen<x86_64::MovqRegImm>(vreg1, 0); in BuildDataFlowAcrossBasicBlocks()
48 builder.Gen<x86_64::MovqRegImm>(vreg2, 0); in BuildDataFlowAcrossBasicBlocks()
49 builder.Gen<PseudoBranch>(bb2); in BuildDataFlowAcrossBasicBlocks()
51 builder.StartBasicBlock(bb2); in BuildDataFlowAcrossBasicBlocks()
52 builder.Gen<x86_64::MovqRegReg>(x86_64::kMachineRegRAX, vreg2); in BuildDataFlowAcrossBasicBlocks()
53 builder.Gen<PseudoBranch>(bb3); in BuildDataFlowAcrossBasicBlocks()
55 builder.StartBasicBlock(bb3); in BuildDataFlowAcrossBasicBlocks()
56 builder.Gen<x86_64::MovqRegReg>(x86_64::kMachineRegRAX, vreg1); in BuildDataFlowAcrossBasicBlocks()
[all …]
Dmachine_ir_opt_test.cc40 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
44 builder.StartBasicBlock(bb); in TEST()
45 builder.Gen<x86_64::MovqRegReg>(vreg1, vreg1); in TEST()
46 builder.Gen<x86_64::MovqRegImm>(vreg1, 1); in TEST()
47 builder.Gen<PseudoBranch>(bb); in TEST()
69 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
74 builder.StartBasicBlock(bb); in TEST()
75 builder.Gen<x86_64::MovqRegImm>(vreg1, 4); in TEST()
76 builder.Gen<x86_64::MovqMemBaseDispReg>(vreg2, 0, vreg1); in TEST()
77 builder.Gen<PseudoBranch>(bb); in TEST()
[all …]
Dmachine_ir_check_test.cc76 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
77 builder.StartBasicBlock(bb1); in TEST()
78 builder.Gen<PseudoBranch>(bb2); in TEST()
79 builder.StartBasicBlock(bb2); in TEST()
80 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
97 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
98 builder.StartBasicBlock(bb1); in TEST()
99 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
100 builder.StartBasicBlock(bb2); in TEST()
101 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
[all …]
Drename_copy_uses_test.cc36 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
42 builder.StartBasicBlock(bb); in TEST()
43 auto* copy_insn = builder.Gen<PseudoCopy>(vreg1, vreg2, 8); in TEST()
44 auto* add_insn = builder.Gen<x86_64::AddqRegReg>(vreg3, vreg1, kMachineRegFLAGS); in TEST()
45 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
70 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
76 builder.StartBasicBlock(bb); in TEST()
77 builder.Gen<PseudoCopy>(vreg1, vreg2, 8); in TEST()
78 auto* add_insn = builder.Gen<x86_64::AddqRegReg>(vreg3, vreg1, kMachineRegFLAGS); in TEST()
79 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
[all …]
Dcontext_liveness_analyzer_test.cc57 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
60 builder.StartBasicBlock(bb); in TEST()
61 builder.GenPut(GetThreadStateRegOffset(0), vreg); in TEST()
62 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
78 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
81 builder.StartBasicBlock(bb1); in TEST()
82 builder.GenGet(vreg, GetThreadStateRegOffset(0)); in TEST()
83 builder.Gen<PseudoBranch>(bb2); in TEST()
85 builder.StartBasicBlock(bb2); in TEST()
86 builder.GenPut(GetThreadStateRegOffset(0), vreg); in TEST()
[all …]
Dmachine_ir_analysis_test.cc50 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
62 builder.StartBasicBlock(bb1); in TEST()
63 builder.Gen<PseudoBranch>(bb2); in TEST()
65 builder.StartBasicBlock(bb2); in TEST()
66 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST()
68 builder.StartBasicBlock(bb3); in TEST()
69 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
82 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
96 builder.StartBasicBlock(bb1); in TEST()
97 builder.Gen<PseudoBranch>(bb2); in TEST()
[all …]
Drename_vregs_local_test.cc35 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
40 builder.StartBasicBlock(bb); in TEST()
41 builder.Gen<x86_64::MovqRegImm>(vreg1, 0); in TEST()
42 builder.Gen<x86_64::MovqRegImm>(vreg2, 0); in TEST()
43 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
68 x86_64::MachineIRBuilder builder(&machine_ir); in TEST() local
73 builder.StartBasicBlock(bb); in TEST()
74 builder.Gen<x86_64::MovqRegReg>(vreg2, MachineReg{4}); in TEST()
75 builder.Gen<x86_64::MovqRegReg>(vreg1, vreg2); in TEST()
76 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
[all …]
Dinsn_folding_test.cc41 MachineIRBuilder builder(&machine_ir); in TryRegRegInsnFolding() local
47 builder.StartBasicBlock(bb); in TryRegRegInsnFolding()
49 builder.Gen<MovqRegImm>(vreg1, imm); in TryRegRegInsnFolding()
51 builder.Gen<MovlRegImm>(vreg1, imm); in TryRegRegInsnFolding()
53 builder.Gen<InsnTypeRegReg>(vreg2, vreg1, flags); in TryRegRegInsnFolding()
54 builder.Gen<PseudoJump>(kNullGuestAddr); in TryRegRegInsnFolding()
89 MachineIRBuilder builder(&machine_ir); in TryMovInsnFolding() local
94 builder.StartBasicBlock(bb); in TryMovInsnFolding()
96 builder.Gen<MovqRegImm>(vreg1, imm); in TryMovInsnFolding()
98 builder.Gen<MovlRegImm>(vreg1, imm); in TryMovInsnFolding()
[all …]
Dloop_guest_context_optimizer_test.cc39 MachineIRBuilder builder(&machine_ir); in TEST() local
42 builder.StartBasicBlock(bb); in TEST()
44 builder.GenGet(reg1, GetThreadStateRegOffset(0)); in TEST()
45 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
64 MachineIRBuilder builder(&machine_ir); in TEST() local
67 builder.StartBasicBlock(bb); in TEST()
69 builder.GenPut(GetThreadStateRegOffset(1), reg1); in TEST()
70 builder.Gen<PseudoJump>(kNullGuestAddr); in TEST()
89 MachineIRBuilder builder(&machine_ir); in TEST() local
92 builder.StartBasicBlock(bb); in TEST()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java60 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed() local
63 builder.allowReminders(false); in testZenPolicyApplyAllowedToDisallowed()
64 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
69 builder.allowReminders(true); in testZenPolicyApplyAllowedToDisallowed()
70 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
85 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset() local
88 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
91 builder.allowReminders(true); in testZenPolicyApplyAllowedToUnset()
92 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
102 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToUnset() local
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java61 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in testSetCurveIsUnmodified() local
63 BrightnessConfiguration config = builder.build(); in testSetCurveIsUnmodified()
131 BrightnessConfiguration.Builder builder = in testParceledConfigIsEquivalent() local
133 builder.setShouldCollectColorSamples(true); in testParceledConfigIsEquivalent()
134 builder.setShortTermModelTimeoutMillis(1234L); in testParceledConfigIsEquivalent()
135 builder.setShortTermModelLowerLuxMultiplier(0.9f); in testParceledConfigIsEquivalent()
136 builder.setShortTermModelUpperLuxMultiplier(0.2f); in testParceledConfigIsEquivalent()
137 builder.addCorrectionByCategory(3, in testParceledConfigIsEquivalent()
139 builder.addCorrectionByPackageName("a.package.name", in testParceledConfigIsEquivalent()
141 BrightnessConfiguration config = builder.build(); in testParceledConfigIsEquivalent()
[all …]
/frameworks/base/services/tests/VpnTests/java/android/net/
DIkev2VpnProfileTest.java86 final Ikev2VpnProfile.Builder builder = in getBuilderWithDefaultOptions() local
89 builder.setBypassable(true); in getBuilderWithDefaultOptions()
90 builder.setProxy(mProxy); in getBuilderWithDefaultOptions()
91 builder.setMaxMtu(TEST_MTU); in getBuilderWithDefaultOptions()
92 builder.setMetered(true); in getBuilderWithDefaultOptions()
94 return builder; in getBuilderWithDefaultOptions()
99 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildValidProfileWithOptions() local
101 builder.setAuthUsernamePassword(USERNAME_STRING, PASSWORD_STRING, mServerRootCa); in testBuildValidProfileWithOptions()
102 final Ikev2VpnProfile profile = builder.build(); in testBuildValidProfileWithOptions()
117 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildUsernamePasswordProfile() local
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DPropertyNode.java159 StringBuilder builder = new StringBuilder(); in toString() local
160 builder.append("propName: "); in toString()
161 builder.append(propName); in toString()
162 builder.append(", paramMap: "); in toString()
163 builder.append(paramMap.toString()); in toString()
164 builder.append(", paramMap_TYPE: ["); in toString()
170 builder.append(", "); in toString()
172 builder.append('"'); in toString()
173 builder.append(elem); in toString()
174 builder.append('"'); in toString()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareRequestParcelable.java110 StringBuilder builder = new StringBuilder(); in toString() local
111 builder.append("id="); in toString()
112 builder.append(mId); in toString()
113 builder.append(", type="); in toString()
114 builder.append(mRequest.getType()); in toString()
115 builder.append(", latitude="); in toString()
116 builder.append(mRequest.getLatitude()); in toString()
117 builder.append(", longitude="); in toString()
118 builder.append(mRequest.getLongitude()); in toString()
119 builder.append(", radius="); in toString()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V30.java90 StringBuilder builder = null; in getNonEmptyLine() local
99 if (builder == null) { in getNonEmptyLine()
100 builder = new StringBuilder(); in getNonEmptyLine()
103 builder.append(mPreviousLine); in getNonEmptyLine()
106 builder.append(line.substring(1)); in getNonEmptyLine()
108 if (builder != null || mPreviousLine != null) { in getNonEmptyLine()
116 if (builder != null) { in getNonEmptyLine()
117 ret = builder.toString(); in getNonEmptyLine()
210 StringBuilder builder = null; // Delay initialization. in splitAndPutParam() local
218 property.addParameter(paramName, encodeParamValue(builder.toString())); in splitAndPutParam()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayBrightnessState.java52 private DisplayBrightnessState(Builder builder) { in DisplayBrightnessState() argument
53 mBrightness = builder.getBrightness(); in DisplayBrightnessState()
54 mSdrBrightness = builder.getSdrBrightness(); in DisplayBrightnessState()
55 mBrightnessReason = builder.getBrightnessReason(); in DisplayBrightnessState()
56 mDisplayBrightnessStrategyName = builder.getDisplayBrightnessStrategyName(); in DisplayBrightnessState()
57 mShouldUseAutoBrightness = builder.getShouldUseAutoBrightness(); in DisplayBrightnessState()
58 mIsSlowChange = builder.isSlowChange(); in DisplayBrightnessState()
59 mMaxBrightness = builder.getMaxBrightness(); in DisplayBrightnessState()
60 mMinBrightness = builder.getMinBrightness(); in DisplayBrightnessState()
61 mCustomAnimationRate = builder.getCustomAnimationRate(); in DisplayBrightnessState()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java42 private final StringBuilder builder = new StringBuilder(); field in LoggingPrintStream
90 int length = builder.length(); in flush()
97 && (nextBreak = builder.indexOf("\n", start)) != -1) { in flush()
98 log(builder.substring(start, nextBreak)); in flush()
105 log(builder.substring(start)); in flush()
107 builder.setLength(0); in flush()
110 builder.delete(0, start); in flush()
149 builder.append(decodedChars); in write()
186 private final Formatter formatter = new Formatter(builder, null);
202 builder.append(charArray); in print()
[all …]
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DMultiChannelResampler.cpp30 MultiChannelResampler::MultiChannelResampler(const MultiChannelResampler::Builder &builder) in MultiChannelResampler() argument
31 : mNumTaps(builder.getNumTaps()) in MultiChannelResampler()
32 , mX(static_cast<size_t>(builder.getChannelCount()) in MultiChannelResampler()
33 * static_cast<size_t>(builder.getNumTaps()) * 2) in MultiChannelResampler()
34 , mSingleFrame(builder.getChannelCount()) in MultiChannelResampler()
35 , mChannelCount(builder.getChannelCount()) in MultiChannelResampler()
39 IntegerRatio ratio(builder.getInputRate(), builder.getOutputRate()); in MultiChannelResampler()
51 Builder builder; in make() local
52 builder.setInputRate(inputRate); in make()
53 builder.setOutputRate(outputRate); in make()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSatelliteStats.java95 private SatelliteControllerParams(Builder builder) { in SatelliteControllerParams() argument
97 builder.mCountOfSatelliteServiceEnablementsSuccess; in SatelliteControllerParams()
99 builder.mCountOfSatelliteServiceEnablementsFail; in SatelliteControllerParams()
100 this.mCountOfOutgoingDatagramSuccess = builder.mCountOfOutgoingDatagramSuccess; in SatelliteControllerParams()
101 this.mCountOfOutgoingDatagramFail = builder.mCountOfOutgoingDatagramFail; in SatelliteControllerParams()
102 this.mCountOfIncomingDatagramSuccess = builder.mCountOfIncomingDatagramSuccess; in SatelliteControllerParams()
103 this.mCountOfIncomingDatagramFail = builder.mCountOfIncomingDatagramFail; in SatelliteControllerParams()
104 this.mCountOfDatagramTypeSosSmsSuccess = builder.mCountOfDatagramTypeSosSmsSuccess; in SatelliteControllerParams()
105 this.mCountOfDatagramTypeSosSmsFail = builder.mCountOfDatagramTypeSosSmsFail; in SatelliteControllerParams()
107 builder.mCountOfDatagramTypeLocationSharingSuccess; in SatelliteControllerParams()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DHardwareConfig.java174 StringBuilder builder = new StringBuilder(); in toString() local
176 builder.append("Modem "); in toString()
177 builder.append("{ uuid=" + uuid); in toString()
178 builder.append(", state=" + state); in toString()
179 builder.append(", rilModel=" + rilModel); in toString()
180 builder.append(", rat=" + rat.toString()); in toString()
181 builder.append(", maxActiveVoiceCall=" + maxActiveVoiceCall); in toString()
182 builder.append(", maxActiveDataCall=" + maxActiveDataCall); in toString()
183 builder.append(", maxStandby=" + maxStandby); in toString()
184 builder.append(" }"); in toString()
[all …]
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dcall_intrinsic.h38 void SignExtend64(x86_64::MachineIRBuilder* builder, MachineReg dst, MachineReg src) { in SignExtend64() argument
44 builder->Gen<x86_64::MovsxbqRegReg>(dst, src); in SignExtend64()
46 builder->Gen<x86_64::MovzxbqRegReg>(dst, src); in SignExtend64()
50 builder->Gen<x86_64::MovsxwqRegReg>(dst, src); in SignExtend64()
52 builder->Gen<x86_64::MovzxwqRegReg>(dst, src); in SignExtend64()
55 builder->Gen<x86_64::MovsxlqRegReg>(dst, src); in SignExtend64()
63 void SignExtend64Result(x86_64::MachineIRBuilder* builder, MachineReg dst, MachineReg src) { in SignExtend64Result() argument
65 builder->Gen<PseudoCopy>(dst, src, 8); in SignExtend64Result()
68 call_intrinsic_internal::SignExtend64<IntrinsicType>(builder, dst, src); in SignExtend64Result()
78 x86_64::CallImm::Arg GenPrepareCallImmArg(x86_64::MachineIRBuilder* builder, AssemblerType val) { in GenPrepareCallImmArg() argument
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgramStore.java251 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() local
252 builder.setDepthFunc(ProgramStore.DepthFunc.LESS); in BLEND_NONE_DEPTH_TEST()
253 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_TEST()
254 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_TEST()
255 builder.setDepthMaskEnabled(true); in BLEND_NONE_DEPTH_TEST()
256 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
272 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() local
273 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); in BLEND_NONE_DEPTH_NONE()
274 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_NONE()
275 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_NONE()
[all …]

12345678910>>...44