Home
last modified time | relevance | path

Searched refs:setField (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DWireFormatTest.java212 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions()
213 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions()
214 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions()
215 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
216 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
250 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic()
251 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic()
252 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
253 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
254 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
DTestUtil.java2043 message.setField(f("optional_int32" ), 101 ); in setAllFieldsViaReflection()
2044 message.setField(f("optional_int64" ), 102L); in setAllFieldsViaReflection()
2045 message.setField(f("optional_uint32" ), 103 ); in setAllFieldsViaReflection()
2046 message.setField(f("optional_uint64" ), 104L); in setAllFieldsViaReflection()
2047 message.setField(f("optional_sint32" ), 105 ); in setAllFieldsViaReflection()
2048 message.setField(f("optional_sint64" ), 106L); in setAllFieldsViaReflection()
2049 message.setField(f("optional_fixed32" ), 107 ); in setAllFieldsViaReflection()
2050 message.setField(f("optional_fixed64" ), 108L); in setAllFieldsViaReflection()
2051 message.setField(f("optional_sfixed32"), 109 ); in setAllFieldsViaReflection()
2052 message.setField(f("optional_sfixed64"), 110L); in setAllFieldsViaReflection()
[all …]
DMessageTest.java173 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic()
175 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic()
177 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic()
187 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign()
191 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign()
DGeneratedMessageTest.java843 fieldBuilder1.setField(subFieldDescriptor1, 1); in testGetFieldBuilder()
844 builder1.setField(fieldDescriptor, fieldBuilder1.build()); in testGetFieldBuilder()
852 foreignFieldBuilder1.setField(subForeignFieldDescriptor1, 2); in testGetFieldBuilder()
853 builder1.setField(foreignFieldDescriptor, foreignFieldBuilder1.build()); in testGetFieldBuilder()
861 importFieldBuilder1.setField(subImportFieldDescriptor1, 3); in testGetFieldBuilder()
862 builder1.setField(importFieldDescriptor, importFieldBuilder1.build()); in testGetFieldBuilder()
872 fieldBuilder2.setField(subFieldDescriptor2, 1); in testGetFieldBuilder()
873 builder2.setField(fieldDescriptor, fieldBuilder2.build()); in testGetFieldBuilder()
881 foreignFieldBuilder2.setField(subForeignFieldDescriptor2, 2); in testGetFieldBuilder()
882 builder2.setField(foreignFieldDescriptor, foreignFieldBuilder2.build()); in testGetFieldBuilder()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java95 ReflectionHelpers.setField(mLoader, "mPolicy", mPolicy); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData()
109 ReflectionHelpers.setField(mLoader, "mCycles", cycles); in loadInBackground_hasCyclePeriod_shouldLoadDataForSpecificCycles()
128 ReflectionHelpers.setField(mLoader, "mPolicy", mPolicy); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
138 ReflectionHelpers.setField(mLoader, "mNetworkStatsService", mNetworkStatsService); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
167 ReflectionHelpers.setField(mLoader, "mCycles", cycles); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DWireFormatTest.java278 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions()
279 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions()
280 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions()
281 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
282 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
316 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic()
317 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic()
318 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
319 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
320 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
DFieldPresenceTest.java281 .setField(optionalInt32Field, 1) in testFieldPresenceDynamicMessage()
282 .setField(optionalStringField, "x") in testFieldPresenceDynamicMessage()
283 .setField(optionalBytesField, ByteString.copyFromUtf8("y")) in testFieldPresenceDynamicMessage()
284 .setField(optionalNestedEnumField, nonDefaultEnumValueDescriptor) in testFieldPresenceDynamicMessage()
294 .setField(optionalInt32Field, 0) in testFieldPresenceDynamicMessage()
295 .setField(optionalStringField, "") in testFieldPresenceDynamicMessage()
296 .setField(optionalBytesField, ByteString.EMPTY) in testFieldPresenceDynamicMessage()
297 .setField(optionalNestedEnumField, defaultEnumValueDescriptor) in testFieldPresenceDynamicMessage()
DMessageTest.java172 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic()
174 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic()
176 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic()
186 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign()
190 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign()
DUnknownEnumValueTest.java136 builder.setField(optionalNestedEnumField, in testUnknownEnumValueInReflectionApi()
167 builder.setField(optionalNestedEnumField, unknown6543); in testUnknownEnumValueInReflectionApi()
188 builder.setField(optionalNestedEnumField, in testUnknownEnumValueWithDynamicMessage()
217 builder.setField(optionalNestedEnumField, in testUnknownEnumValueWithDynamicMessage()
226 builder.setField(optionalNestedEnumField, in testUnknownEnumValueWithDynamicMessage()
DTestUtil.java2802 message.setField(f("optional_int32" ), 101 ); in setAllFieldsViaReflection()
2803 message.setField(f("optional_int64" ), 102L); in setAllFieldsViaReflection()
2804 message.setField(f("optional_uint32" ), 103 ); in setAllFieldsViaReflection()
2805 message.setField(f("optional_uint64" ), 104L); in setAllFieldsViaReflection()
2806 message.setField(f("optional_sint32" ), 105 ); in setAllFieldsViaReflection()
2807 message.setField(f("optional_sint64" ), 106L); in setAllFieldsViaReflection()
2808 message.setField(f("optional_fixed32" ), 107 ); in setAllFieldsViaReflection()
2809 message.setField(f("optional_fixed64" ), 108L); in setAllFieldsViaReflection()
2810 message.setField(f("optional_sfixed32"), 109 ); in setAllFieldsViaReflection()
2811 message.setField(f("optional_sfixed64"), 110L); in setAllFieldsViaReflection()
[all …]
DGeneratedMessageTest.java1120 fieldBuilder1.setField(subFieldDescriptor1, 1); in testGetFieldBuilder()
1121 builder1.setField(fieldDescriptor, fieldBuilder1.build()); in testGetFieldBuilder()
1129 foreignFieldBuilder1.setField(subForeignFieldDescriptor1, 2); in testGetFieldBuilder()
1130 builder1.setField(foreignFieldDescriptor, foreignFieldBuilder1.build()); in testGetFieldBuilder()
1138 importFieldBuilder1.setField(subImportFieldDescriptor1, 3); in testGetFieldBuilder()
1139 builder1.setField(importFieldDescriptor, importFieldBuilder1.build()); in testGetFieldBuilder()
1149 fieldBuilder2.setField(subFieldDescriptor2, 1); in testGetFieldBuilder()
1150 builder2.setField(fieldDescriptor, fieldBuilder2.build()); in testGetFieldBuilder()
1158 foreignFieldBuilder2.setField(subForeignFieldDescriptor2, 2); in testGetFieldBuilder()
1159 builder2.setField(foreignFieldDescriptor, foreignFieldBuilder2.build()); in testGetFieldBuilder()
[all …]
DDynamicMessageTest.java257 DynamicMessage.newBuilder(message).setField(uint32Field, 123).build(); in testDynamicMessageCopy()
300 mergedBuilder.setField(mergedField, 123); in testDynamicOneofMessage()
321 builder.setField(repeatedEnumField, enumDescriptor.getValues()); in testSettersForRepeatedEnumField()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DIllustrationVideoViewTest.java124 ReflectionHelpers.setField(getShadowMediaPlayer(), "videoWidth", 720); in prepareVideo_shouldSetAspectRatio()
125 ReflectionHelpers.setField(getShadowMediaPlayer(), "videoHeight", 1280); in prepareVideo_shouldSetAspectRatio()
142 ReflectionHelpers.setField(getShadowMediaPlayer(), "videoWidth", 720); in prepareVideo_zeroHeight_shouldSetAspectRatioToZero()
143 ReflectionHelpers.setField(getShadowMediaPlayer(), "videoHeight", 0); in prepareVideo_zeroHeight_shouldSetAspectRatioToZero()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java271 MergeTarget setField(Descriptors.FieldDescriptor field, Object value); in setField() method
393 public MergeTarget setField(Descriptors.FieldDescriptor field, Object value) { in setField() method in MessageReflection.BuilderAdapter
394 builder.setField(field, value); in setField()
579 public MergeTarget setField(Descriptors.FieldDescriptor field, Object value) { in setField() method in MessageReflection.ExtensionAdapter
580 extensions.setField(field, value); in setField()
861 target.setField(field, value); in mergeFieldFrom()
971 target.setField(field, value); in mergeMessageSetExtensionFromBytes()
976 target.setField(field, lazyField); in mergeMessageSetExtensionFromBytes()
988 target.setField(field, value); in eagerlyMergeMessageSetExtension()
DAbstractMessage.java403 setField(field, entry.getValue()); in mergeFrom()
405 setField(field, in mergeFrom()
412 setField(field, entry.getValue()); in mergeFrom()
DMessage.java211 Builder setField(Descriptors.FieldDescriptor field, Object value); in setField() method
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java253 destination.setField(field, source.getField(field)); in merge()
265 destination.setField(field, source.getField(field)); in merge()
274 destination.setField(field, source.getField(field)); in merge()
DJsonFormat.java1231 builder.setField(typeUrlField, typeUrl); in mergeAny()
1243 builder.setField(valueField, contentBuilder.build().toByteString()); in mergeAny()
1298 builder.setField(type.findFieldByName("bool_value"), primitive.getAsBoolean()); in mergeValue()
1300 builder.setField(type.findFieldByName("number_value"), primitive.getAsDouble()); in mergeValue()
1302 builder.setField(type.findFieldByName("string_value"), primitive.getAsString()); in mergeValue()
1308 builder.setField(field, structBuilder.build()); in mergeValue()
1313 builder.setField(field, listBuilder.build()); in mergeValue()
1326 builder.setField(field, parseFieldValue(field, json, builder)); in mergeWrapper()
1364 builder.setField(field, value); in mergeField()
1388 entryBuilder.setField(keyField, key); in mergeMapField()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmessage.js788 jspb.Message.setField(msg, fieldNumber, arr);
804 jspb.Message.setField = function(msg, fieldNumber, value) { function in jspb.Message
828 jspb.Message.setField(msg, currentCase, undefined);
830 jspb.Message.setField(msg, fieldNumber, value);
860 jspb.Message.setField(msg, fieldNumber, undefined);
868 jspb.Message.setField(msg, oneofField, oneofValue);
941 jspb.Message.setField(msg, fieldNumber, data);
979 jspb.Message.setField(msg, fieldNumber, data);
/frameworks/base/services/core/java/com/android/server/om/
DDumpState.java49 public void setField(String field) { in setField() method in DumpState
/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.cpp71 output->mutableValue(num_matches)->mField.setField( in filterValues()
104 conditionDimension->mutableValue(i)->mField.setField( in getDimensionForCondition()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DCustomEditTextPreferenceTest.java65 ReflectionHelpers.setField(mPreference, "mFragment", in getEditText_noDialog_shouldNotCrash()
DCustomEditTextPreferenceComaptTest.java65 ReflectionHelpers.setField(mPreference, "mFragment", in getEditText_noDialog_shouldNotCrash()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DRawBatteryStats.java536 abstract void setField(int lineNumber, Record object, String value) throws ParseException; in setField() method in RawBatteryStats.FieldSetter
564 void setField(int lineNumber, Record object, String value) throws ParseException { in setField() method in RawBatteryStats.IntFieldSetter
604 void setField(int lineNumber, Record object, String value) throws ParseException { in setField() method in RawBatteryStats.LongFieldSetter
644 void setField(int lineNumber, Record object, String value) throws ParseException { in setField() method in RawBatteryStats.StringFieldSetter
715 void setField(int lineNumber, Record object, String value) throws ParseException { in setField() method in RawBatteryStats.EnumFieldSetter
814 setter.setField(lineNumber, record, value); in create()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java54 ReflectionHelpers.setField(mBatteryMeterDrawableBase, "mCriticalLevel", CRITICAL_LEVEL); in setUp()

123