/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | RpcProtocolVersionsUtilTest.java | 38 Version.newBuilder().setMajor(3).setMinor(2).build(), in compareVersions() 39 Version.newBuilder().setMajor(2).setMinor(1).build())); in compareVersions() 42 Version.newBuilder().setMajor(3).setMinor(2).build(), in compareVersions() 43 Version.newBuilder().setMajor(2).setMinor(1).build())); in compareVersions() 46 Version.newBuilder().setMajor(3).setMinor(2).build(), in compareVersions() 47 Version.newBuilder().setMajor(3).setMinor(2).build())); in compareVersions() 50 Version.newBuilder().setMajor(2).setMinor(3).build(), in compareVersions() 51 Version.newBuilder().setMajor(3).setMinor(2).build())); in compareVersions() 54 Version.newBuilder().setMajor(3).setMinor(1).build(), in compareVersions() 55 Version.newBuilder().setMajor(3).setMinor(2).build())); in compareVersions() [all …]
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/ |
D | ResTableConfigTest.java | 21 …assertThat(newBuilder().build().isBetterThan(newBuilder().build(), newBuilder().build())).isFalse(… in isBetterThan_emptyConfig() 31 assertThat(newBuilder().setMcc(MCC_US_CARRIER).build() in isBetterThan_mcc() 32 .isBetterThan(newBuilder().setMcc(MCC_US_CARRIER).build(), newBuilder().build())) in isBetterThan_mcc() 36 assertThat(newBuilder().setMcc(MCC_US_CARRIER).build() in isBetterThan_mcc() 37 .isBetterThan(newBuilder().build(), newBuilder().setMcc(MCC_US_CARRIER).build())) in isBetterThan_mcc() 48 …assertThat(newBuilder().build().isBetterThan(newBuilder().build(), newBuilder().build())).isFalse(… in isBetterThan_mnc() 51 assertThat(newBuilder().setMcc(MCC_US_CARRIER).setMnc(MCC_US_VERIZON).build() in isBetterThan_mnc() 52 .isBetterThan(newBuilder().setMcc(MCC_US_CARRIER).build(), newBuilder().build())) in isBetterThan_mnc() 56 assertThat(newBuilder().setMcc(MCC_US_CARRIER).setMnc(MCC_US_VERIZON).build() in isBetterThan_mnc() 57 .isBetterThan(newBuilder().build(), newBuilder().setMcc(MCC_US_CARRIER).build())) in isBetterThan_mnc() [all …]
|
/external/icing/java/src/com/google/android/icing/ |
D | IcingSearchEngine.java | 116 return InitializeResultProto.newBuilder() in initialize() 117 .setStatus(StatusProto.newBuilder().setCode(StatusProto.Code.INTERNAL)) in initialize() 125 return InitializeResultProto.newBuilder() in initialize() 126 .setStatus(StatusProto.newBuilder().setCode(StatusProto.Code.INTERNAL)) in initialize() 145 return SetSchemaResultProto.newBuilder() in setSchema() 146 .setStatus(StatusProto.newBuilder().setCode(StatusProto.Code.INTERNAL)) in setSchema() 154 return SetSchemaResultProto.newBuilder() in setSchema() 155 .setStatus(StatusProto.newBuilder().setCode(StatusProto.Code.INTERNAL)) in setSchema() 167 return GetSchemaResultProto.newBuilder() in getSchema() 168 .setStatus(StatusProto.newBuilder().setCode(StatusProto.Code.INTERNAL)) in getSchema() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractProto3LiteSchemaTest.java | 78 newBuilder() in mergeOptionalMessageFields() 79 .setFieldMessage10(newBuilder().setFieldInt643(123).clearFieldInt325().build()) in mergeOptionalMessageFields() 82 newBuilder() in mergeOptionalMessageFields() 83 .setFieldMessage10(newBuilder().clearFieldInt643().setFieldInt325(456).build()) in mergeOptionalMessageFields() 86 newBuilder() in mergeOptionalMessageFields() 87 .setFieldMessage10(newBuilder().setFieldInt643(789).clearFieldInt325().build()) in mergeOptionalMessageFields() 103 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 104 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 105 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 106 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() [all …]
|
D | AbstractProto3SchemaTest.java | 78 newBuilder() in mergeOptionalMessageFields() 79 .setFieldMessage10(newBuilder().setFieldInt643(123).clearFieldInt325().build()) in mergeOptionalMessageFields() 82 newBuilder() in mergeOptionalMessageFields() 83 .setFieldMessage10(newBuilder().clearFieldInt643().setFieldInt325(456).build()) in mergeOptionalMessageFields() 86 newBuilder() in mergeOptionalMessageFields() 87 .setFieldMessage10(newBuilder().setFieldInt643(789).clearFieldInt325().build()) in mergeOptionalMessageFields() 102 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 103 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 104 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 105 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() [all …]
|
D | AbstractProto2LiteSchemaTest.java | 57 newBuilder() in mergeOptionalMessageFields() 58 .setFieldMessage10(newBuilder().setFieldInt643(123).clearFieldInt325().build()) in mergeOptionalMessageFields() 61 newBuilder() in mergeOptionalMessageFields() 62 .setFieldMessage10(newBuilder().clearFieldInt643().setFieldInt325(456).build()) in mergeOptionalMessageFields() 65 newBuilder() in mergeOptionalMessageFields() 66 .setFieldMessage10(newBuilder().setFieldInt643(789).clearFieldInt325().build()) in mergeOptionalMessageFields() 82 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 83 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 84 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 85 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() [all …]
|
D | AbstractProto2SchemaTest.java | 57 newBuilder() in mergeOptionalMessageFields() 58 .setFieldMessage10(newBuilder().setFieldInt643(123).clearFieldInt325().build()) in mergeOptionalMessageFields() 61 newBuilder() in mergeOptionalMessageFields() 62 .setFieldMessage10(newBuilder().clearFieldInt643().setFieldInt325(456).build()) in mergeOptionalMessageFields() 65 newBuilder() in mergeOptionalMessageFields() 66 .setFieldMessage10(newBuilder().setFieldInt643(789).clearFieldInt325().build()) in mergeOptionalMessageFields() 81 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 82 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 83 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 84 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() [all …]
|
D | TextFormatTest.java | 136 TextFormat.Parser.newBuilder().setAllowUnknownFields(true).build(); 139 TextFormat.Parser.newBuilder().setAllowUnknownExtensions(true).build(); 142 TextFormat.Parser.newBuilder() 146 private final TextFormat.Parser defaultParser = TextFormat.Parser.newBuilder().build(); 187 return UnknownFieldSet.newBuilder() in makeUnknownFieldSet() 190 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet() 196 UnknownFieldSet.newBuilder() in makeUnknownFieldSet() 197 .addField(12, UnknownFieldSet.Field.newBuilder().addVarint(6).build()) in makeUnknownFieldSet() 201 UnknownFieldSet.newBuilder() in makeUnknownFieldSet() 202 .addField(10, UnknownFieldSet.Field.newBuilder().addVarint(5).build()) in makeUnknownFieldSet() [all …]
|
D | LazyMessageLiteTest.java | 58 LazyNestedInnerMessageLite nested = LazyNestedInnerMessageLite.newBuilder().setNum(3).build(); in testSetValues() 60 LazyInnerMessageLite.newBuilder().setNum(2).setNested(nested).build(); in testSetValues() 62 LazyMessageLite.newBuilder() in testSetValues() 89 LazyMessageLite.newBuilder() in testSetRepeatedValues() 91 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(119)) in testSetRepeatedValues() 92 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(122)) in testSetRepeatedValues() 103 LazyMessageLite.newBuilder() in testRepeatedMutability() 104 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(119)) in testRepeatedMutability() 105 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(122)) in testRepeatedMutability() 120 LazyInnerMessageLite inner = LazyInnerMessageLite.newBuilder().setNum(i).build(); in testAddAll() [all …]
|
D | MessageTest.java | 51 TestAllTypes.newBuilder() 59 TestAllTypes.newBuilder() 62 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build()) 86 TestAllTypes result = TestAllTypes.newBuilder(MERGE_DEST).mergeFrom(MERGE_SOURCE).build(); in testMergeFrom() 97 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFromDynamic() 98 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic() 107 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom() 108 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom() 119 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 122 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired() [all …]
|
D | DynamicMessageTest.java | 62 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() 69 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild() 88 Message.Builder builder = DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields() 90 UnknownFieldSet.newBuilder() in testUnknownFields() 91 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields() 92 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields() 97 Message.Builder newBuilder = builder.clone(); in testUnknownFields() local 98 assertEquals(2, newBuilder.getUnknownFields().asMap().size()); in testUnknownFields() 100 newBuilder.clear(); in testUnknownFields() 101 assertTrue(newBuilder.getUnknownFields().asMap().isEmpty()); in testUnknownFields() [all …]
|
D | GeneratedMessageTest.java | 88 TestAllTypes.getDefaultInstance(), TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance() 92 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() 99 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() 107 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 108 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 124 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes() 125 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes() 147 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testProtosShareRepeatedArraysIfDidntChange() 159 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedArraysAreImmutable() 215 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testSettersRejectNull() [all …]
|
D | UnknownFieldSetTest.java | 70 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder(); in getBizarroData() 72 UnknownFieldSet.Field varintField = UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData() 73 UnknownFieldSet.Field fixed32Field = UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData() 148 TestEmptyMessage message = TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom() 155 TestEmptyMessage.newBuilder() in testMergeFrom() 157 UnknownFieldSet.newBuilder() in testMergeFrom() 158 .addField(2, UnknownFieldSet.Field.newBuilder().addVarint(2).build()) in testMergeFrom() 159 .addField(3, UnknownFieldSet.Field.newBuilder().addVarint(4).build()) in testMergeFrom() 163 TestEmptyMessage.newBuilder() in testMergeFrom() 165 UnknownFieldSet.newBuilder() in testMergeFrom() [all …]
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | FieldMaskTreeTest.java | 114 Message.Builder newBuilder = in merge() local 115 DynamicMessage.newBuilder(source.getDescriptorForType()) in merge() 118 DynamicMessage.newBuilder(source.getDescriptorForType()) in merge() 121 newBuilder, in merge() local 124 builder.mergeFrom(newBuilder.buildPartial()); in merge() 131 TestRequired value = TestRequired.newBuilder().setA(4321).setB(8765).setC(233333).build(); in testMergeRequire() 132 TestRequiredMessage source = TestRequiredMessage.newBuilder().setRequiredMessage(value).build(); in testMergeRequire() 135 TestRequiredMessage.Builder builder = TestRequiredMessage.newBuilder(); in testMergeRequire() 161 TestAllTypes.newBuilder() in testMergeImpl() 163 .setOptionalNestedMessage(NestedMessage.newBuilder().setBb(5678)) in testMergeImpl() [all …]
|
D | JsonFormatTest.java | 175 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAllFields() 229 TestAllTypes.newBuilder() in testUnknownEnumValues() 242 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUnknownEnumValues() 259 TestAllTypes.newBuilder() in testSpecialFloatValues() 278 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptStringForNumericField() 304 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptFloatingPointValueForIntegerField() 333 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in assertRejects() 351 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in assertAccepts() 399 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptNull() 443 builder = TestAllTypes.newBuilder(); in testParserAcceptNull() [all …]
|
D | ValuesTest.java | 46 .isEqualTo(Value.newBuilder().setNullValue(NullValue.NULL_VALUE).build()); in testOfNull_IsNullValue() 50 assertThat(Values.of(true)).isEqualTo(Value.newBuilder().setBoolValue(true).build()); in testOfBoolean_ConstructsValue() 51 assertThat(Values.of(false)).isEqualTo(Value.newBuilder().setBoolValue(false).build()); in testOfBoolean_ConstructsValue() 55 assertThat(Values.of(100)).isEqualTo(Value.newBuilder().setNumberValue(100).build()); in testOfNumeric_ConstructsValue() 56 assertThat(Values.of(1000L)).isEqualTo(Value.newBuilder().setNumberValue(1000).build()); in testOfNumeric_ConstructsValue() 57 assertThat(Values.of(1000.23f)).isEqualTo(Value.newBuilder().setNumberValue(1000.23f).build()); in testOfNumeric_ConstructsValue() 58 assertThat(Values.of(10000.23)).isEqualTo(Value.newBuilder().setNumberValue(10000.23).build()); in testOfNumeric_ConstructsValue() 62 assertThat(Values.of("")).isEqualTo(Value.newBuilder().setStringValue("").build()); in testOfString_ConstructsValue() 63 assertThat(Values.of("foo")).isEqualTo(Value.newBuilder().setStringValue("foo").build()); in testOfString_ConstructsValue() 67 Struct.Builder builder = Struct.newBuilder(); in testOfStruct_ConstructsValue() [all …]
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | TextFormatTest.java | 151 return UnknownFieldSet.newBuilder() in makeUnknownFieldSet() 153 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet() 159 UnknownFieldSet.newBuilder() in makeUnknownFieldSet() 161 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet() 167 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet() 173 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet() 185 TestEmptyMessage.newBuilder() in testPrintUnknownFields() 215 final Object value = NestedMessage.newBuilder().setBb(42).build(); in testPrintField() 245 Message message = TestAllTypes.newBuilder() in testPrintExotic() 285 TestMessageSet.newBuilder() in testPrintMessageSet() [all …]
|
D | DynamicMessageTest.java | 60 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() 68 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild() 88 DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields() 89 builder.setUnknownFields(UnknownFieldSet.newBuilder() in testUnknownFields() 90 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields() 91 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields() 96 Message.Builder newBuilder = builder.clone(); in testUnknownFields() local 97 assertEquals(2, newBuilder.getUnknownFields().asMap().size()); in testUnknownFields() 99 newBuilder.clear(); in testUnknownFields() 100 assertTrue(newBuilder.getUnknownFields().asMap().isEmpty()); in testUnknownFields() [all …]
|
D | MessageTest.java | 55 TestAllTypes.newBuilder() 63 TestAllTypes.newBuilder() 66 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build()) 82 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFrom() 95 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFromDynamic() 96 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic() 105 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom() 106 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom() 118 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 121 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired() [all …]
|
D | GeneratedMessageTest.java | 84 TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance() 88 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() 95 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() 103 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 104 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 122 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes() 123 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes() 149 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedArraysAreImmutable() 207 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testSettersRejectNull() 273 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedSetters() [all …]
|
D | UnknownFieldSetTest.java | 69 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder(); in getBizarroData() 72 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData() 74 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData() 157 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom() 164 TestEmptyMessage.newBuilder() in testMergeFrom() 166 UnknownFieldSet.newBuilder() in testMergeFrom() 168 UnknownFieldSet.Field.newBuilder() in testMergeFrom() 171 UnknownFieldSet.Field.newBuilder() in testMergeFrom() 176 TestEmptyMessage.newBuilder() in testMergeFrom() 178 UnknownFieldSet.newBuilder() in testMergeFrom() [all …]
|
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/ |
D | AbstractInteropTest.java | 361 SimpleRequest.newBuilder() in cacheableUnary() 363 Payload.newBuilder() in cacheableUnary() 367 SimpleRequest.newBuilder() in cacheableUnary() 369 Payload.newBuilder() in cacheableUnary() 390 final SimpleRequest request = SimpleRequest.newBuilder() in largeUnary() 393 .setPayload(Payload.newBuilder() in largeUnary() 396 final SimpleResponse goldenResponse = SimpleResponse.newBuilder() in largeUnary() 397 .setPayload(Payload.newBuilder() in largeUnary() 415 SimpleRequest.newBuilder() in clientCompressedUnary() 416 .setExpectCompressed(BoolValue.newBuilder().setValue(true)) in clientCompressedUnary() [all …]
|
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/ |
D | ChannelzProtoUtilTest.java | 98 .newBuilder() 103 .newBuilder() 105 .setState(ChannelConnectivityState.newBuilder().setState(State.READY)) 112 .newBuilder() 119 .newBuilder() 124 .newBuilder() 126 .setState(ChannelConnectivityState.newBuilder().setState(State.READY)) 133 .newBuilder() 140 .newBuilder() 145 .newBuilder() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderTest.java | 57 CacheBuilder.newBuilder().removalListener(countingRemovalListener()).build(loader); in testNewBuilder() 64 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); in testInitialCapacity_negative() 73 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().initialCapacity(16); in testInitialCapacity_setTwice() 84 LoadingCache<?, ?> cache = CacheBuilder.newBuilder().initialCapacity(5).build(identityLoader()); in testInitialCapacity_small() 96 LoadingCache<?, ?> cache = CacheBuilder.newBuilder().initialCapacity(0).build(identityLoader()); in testInitialCapacity_smallest() 108 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE); in testInitialCapacity_large() 114 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); in testConcurrencyLevel_zero() 123 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().concurrencyLevel(16); in testConcurrencyLevel_setTwice() 135 CacheBuilder.newBuilder().concurrencyLevel(1).build(identityLoader()); in testConcurrencyLevel_small() 141 CacheBuilder.newBuilder().concurrencyLevel(Integer.MAX_VALUE); in testConcurrencyLevel_large() [all …]
|
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/routeguide/ |
D | RouteGuideServerTest.java | 90 Point point = Point.newBuilder().setLongitude(1).setLatitude(1).build(); in getFeature() 91 Feature unnamedFeature = Feature.newBuilder() in getFeature() 101 Feature namedFeature = Feature.newBuilder() in getFeature() 113 Rectangle rect = Rectangle.newBuilder() in listFeatures() 114 .setLo(Point.newBuilder().setLongitude(0).setLatitude(0).build()) in listFeatures() 115 .setHi(Point.newBuilder().setLongitude(10).setLatitude(10).build()) in listFeatures() 117 Feature f1 = Feature.newBuilder() in listFeatures() 118 .setLocation(Point.newBuilder().setLongitude(-1).setLatitude(-1).build()) in listFeatures() 121 Feature f2 = Feature.newBuilder() in listFeatures() 122 .setLocation(Point.newBuilder().setLongitude(2).setLatitude(2).build()) in listFeatures() [all …]
|