Home
last modified time | relevance | path

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

12345678

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLocaleData.java73 ReflectionHelpers.setField(localeData, "timeFormat12", "h:mm a"); in setEnUsLocaleData()
74 ReflectionHelpers.setField(localeData, "timeFormat24", "HH:mm"); in setEnUsLocaleData()
92 ReflectionHelpers.setField(localeData, "percent", '%'); in setEnUsLocaleData()
100 ReflectionHelpers.setField(localeData, "perMill", '‰'); in setEnUsLocaleData()
110 ReflectionHelpers.setField(localeData, "minusSign", '-'); in setEnUsLocaleData()
119 ReflectionHelpers.setField(localeData, "currencySymbol", "$"); in setEnUsLocaleData()
120 ReflectionHelpers.setField(localeData, "internationalCurrencySymbol", "USD"); in setEnUsLocaleData()
121 ReflectionHelpers.setField(localeData, "yesterday", "Yesterday"); in setEnUsLocaleData()
DShadowSubscriptionManager.java253 ReflectionHelpers.setField(subscriptionInfo, "mId", id); in setId()
258 ReflectionHelpers.setField(subscriptionInfo, "mIccId", iccId); in setIccId()
263 ReflectionHelpers.setField(subscriptionInfo, "mSimSlotIndex", index); in setSimSlotIndex()
268 ReflectionHelpers.setField(subscriptionInfo, "mDisplayName", name); in setDisplayName()
273 ReflectionHelpers.setField(subscriptionInfo, "mCarrierName", carrierName); in setCarrierName()
278 ReflectionHelpers.setField(subscriptionInfo, "mIconTint", iconTint); in setIconTint()
283 ReflectionHelpers.setField(subscriptionInfo, "mNumber", number); in setNumber()
288 ReflectionHelpers.setField(subscriptionInfo, "mDataRoaming", dataRoaming); in setDataRoaming()
293 ReflectionHelpers.setField(subscriptionInfo, "mCountryIso", countryIso); in setCountryIso()
DShadowMessageQueue.java13 import static org.robolectric.util.ReflectionHelpers.setField;
85 setField(realQueue, "mMessages", msg); in setHead()
90 setField(realQueue, "mIdleHandlers", new ArrayList<>()); in reset()
91 setField(realQueue, "mNextBarrierToken", 0); in reset()
DShadowSystemServiceRegistry.java37 ReflectionHelpers.setField( in reset()
40 ReflectionHelpers.setField(staticServiceFetcherClass, o, "mCachedInstance", null); in reset()
DShadowAccessibilityManager.java65 …ReflectionHelpers.setField(accessibilityManager, "mHandler", new MyHandler(context.getMainLooper()… in createInstance()
69 …ReflectionHelpers.setField(accessibilityManager, "mHandler", new MyHandler(context.getMainLooper()… in createInstance()
121 ReflectionHelpers.setField(realAccessibilityManager, "mIsEnabled", enabled); in setEnabled()
/external/protobuf/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 …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_expr_FieldAccessExpr.txt2 …Line 48) setField(field) ==> com.github.javaparser.ast.expr.FieldAccessExpr.setField(java.lang.Str…
5 …Line 55) setField(field) ==> com.github.javaparser.ast.expr.FieldAccessExpr.setField(java.lang.Str…
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DWireFormatTest.java211 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions()
212 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions()
213 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions()
214 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
215 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
269 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic()
270 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic()
271 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
272 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
273 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
DFieldPresenceTest.java239 .setField(optionalInt32Field, 1) in testFieldPresenceDynamicMessage()
240 .setField(optionalStringField, "x") in testFieldPresenceDynamicMessage()
241 .setField(optionalBytesField, ByteString.copyFromUtf8("y")) in testFieldPresenceDynamicMessage()
242 .setField(optionalNestedEnumField, nonDefaultEnumValueDescriptor) in testFieldPresenceDynamicMessage()
254 .setField(optionalInt32Field, 0) in testFieldPresenceDynamicMessage()
255 .setField(optionalStringField, "") in testFieldPresenceDynamicMessage()
256 .setField(optionalBytesField, ByteString.EMPTY) in testFieldPresenceDynamicMessage()
257 .setField(optionalNestedEnumField, defaultEnumValueDescriptor) in testFieldPresenceDynamicMessage()
DMessageTest.java174 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic()
176 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic()
178 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic()
188 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_UNINITIALIZED); in testRequiredDynamicForeign()
191 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_INITIALIZED); in testRequiredDynamicForeign()
DTestUtil.java2815 message.setField(f("optional_int32"), 101); in setAllFieldsViaReflection()
2816 message.setField(f("optional_int64"), 102L); in setAllFieldsViaReflection()
2817 message.setField(f("optional_uint32"), 103); in setAllFieldsViaReflection()
2818 message.setField(f("optional_uint64"), 104L); in setAllFieldsViaReflection()
2819 message.setField(f("optional_sint32"), 105); in setAllFieldsViaReflection()
2820 message.setField(f("optional_sint64"), 106L); in setAllFieldsViaReflection()
2821 message.setField(f("optional_fixed32"), 107); in setAllFieldsViaReflection()
2822 message.setField(f("optional_fixed64"), 108L); in setAllFieldsViaReflection()
2823 message.setField(f("optional_sfixed32"), 109); in setAllFieldsViaReflection()
2824 message.setField(f("optional_sfixed64"), 110L); in setAllFieldsViaReflection()
[all …]
DUnknownEnumValueTest.java139 builder.setField(optionalNestedEnumField, enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueInReflectionApi()
166 builder.setField(optionalNestedEnumField, unknown6543); in testUnknownEnumValueInReflectionApi()
187 builder.setField(optionalNestedEnumField, enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueWithDynamicMessage()
216 builder.setField(optionalNestedEnumField, enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueWithDynamicMessage()
224 builder.setField(optionalNestedEnumField, enumType.findValueByNumberCreatingIfUnknown(0)); in testUnknownEnumValueWithDynamicMessage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/expr/
DFieldAccessExpr.java46 setField(field); in FieldAccessExpr()
54 setField(field); in FieldAccessExpr()
81 public void setField(final String field) { in setField() method in FieldAccessExpr
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/
DFieldAccessExpr.java48 setField(field); in FieldAccessExpr()
55 setField(field); in FieldAccessExpr()
78 public FieldAccessExpr setField(final String field) { in setField() method in FieldAccessExpr
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java186 ReflectionHelpers.setField(activityThread, "mCompatConfiguration", configuration); in setUpApplicationState()
200 ReflectionHelpers.setField(activityThread, "mConfigurationController", configController); in setUpApplicationState()
229 ReflectionHelpers.setField(data, "processName", "org.robolectric"); in setUpApplicationState()
230 ReflectionHelpers.setField(data, "appInfo", applicationInfo); in setUpApplicationState()
231 ReflectionHelpers.setField(activityThread, "mBoundApplication", data); in setUpApplicationState()
243 .setField(ActivityThread.class, activityThread, "mInitialApplication", application); in setUpApplicationState()
257 ReflectionHelpers.setField(loadedApk, "mResources", appResources); in setUpApplicationState()
258 ReflectionHelpers.setField(loadedApk, "mApplication", application); in setUpApplicationState()
293 .setField(ActivityThread.class, activityThread, "mInitialApplication", application); in createInitialApplication()
393 ReflectionHelpers.setField(activityThread, "mInstrumentation", androidInstrumentation); in createInstrumentation()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java253 destination.setField(field, childBuilder.buildPartial()); in merge()
258 destination.setField(field, source.getField(field)); in merge()
270 destination.setField(field, source.getField(field)); in merge()
274 destination.setField( in merge()
284 destination.setField(field, source.getField(field)); in merge()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/filter/
DTerminalMockCandidateFilter.java14 import static org.mockito.internal.util.reflection.FieldSetter.setField;
36 setField(injectee, candidateFieldToBeInjected,matchingMock); in filterCandidate()
/external/llvm-project/clang/test/Modules/
Dmodule-private.cpp25 vs.setField(1); // expected-error{{no member named 'setField' in 'VisibleStruct'}} in test_broken()
94 virtual void setField(int f);
/external/clang/test/Modules/
Dmodule-private.cpp27 vs.setField(1); // expected-error{{no member named 'setField' in 'VisibleStruct'}} in test_broken()
92 virtual void setField(int f);
/external/grpc-grpc/examples/node/static_codegen/route_guide/
Droute_guide_pb.js184 jspb.Message.setField(this, 1, value);
199 jspb.Message.setField(this, 2, value);
574 jspb.Message.setField(this, 1, value);
789 jspb.Message.setField(this, 2, value);
984 jspb.Message.setField(this, 1, value);
999 jspb.Message.setField(this, 2, value);
1014 jspb.Message.setField(this, 3, value);
1029 jspb.Message.setField(this, 4, value);
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DSpyOnInjectedFieldsHandler.java18 import static org.mockito.internal.util.reflection.FieldSetter.setField;
47 setField(fieldOwner, field, mock); in processInjection()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DInstanceField.java9 import static org.mockito.internal.util.reflection.FieldSetter.setField;
53 setField(instance, field,value); in set()

12345678