/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | LiteTest.java | 34 import static java.util.Collections.singletonList; 539 builder.addAllRepeatedBool(singletonList(true)); in testSanityCopyOnWrite() 541 assertEquals(singletonList(true), builder.getRepeatedBoolList()); in testSanityCopyOnWrite() 546 assertEquals(singletonList(true), messageAfterBuild.getRepeatedBoolList()); in testSanityCopyOnWrite() 549 builder.addAllRepeatedBytes(singletonList(ByteString.copyFromUtf8("hi"))); in testSanityCopyOnWrite() 552 singletonList(ByteString.copyFromUtf8("hi")), in testSanityCopyOnWrite() 559 singletonList(ByteString.copyFromUtf8("hi")), in testSanityCopyOnWrite() 563 builder.addAllRepeatedCord(singletonList("hi")); in testSanityCopyOnWrite() 565 assertEquals(singletonList("hi"), builder.getRepeatedCordList()); in testSanityCopyOnWrite() 570 assertEquals(singletonList("hi"), messageAfterBuild.getRepeatedCordList()); in testSanityCopyOnWrite() [all …]
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/ |
D | MethodAnalyzerTest.java | 78 … Collections.singletonList(new ImmutableMethodParameter("Ljava/lang/Object;", null, null)), "V", in testInstanceOfNarrowingEqz_art() 81 null, null, null, Collections.singletonList(method)); in testInstanceOfNarrowingEqz_art() 82 … DexFile dexFile = new ImmutableDexFile(forArtVersion(56), Collections.singletonList(classDef)); in testInstanceOfNarrowingEqz_art() 109 … Collections.singletonList(new ImmutableMethodParameter("Ljava/lang/Object;", null, null)), "V", in testInstanceOfNarrowingEqz_dalvik() 112 null, null, null, Collections.singletonList(method)); in testInstanceOfNarrowingEqz_dalvik() 113 … DexFile dexFile = new ImmutableDexFile(Opcodes.forApi(19), Collections.singletonList(classDef)); in testInstanceOfNarrowingEqz_dalvik() 141 … Collections.singletonList(new ImmutableMethodParameter("Ljava/lang/Object;", null, null)), "V", in testInstanceOfNarrowingNez_art() 144 null, null, null, Collections.singletonList(method)); in testInstanceOfNarrowingNez_art() 145 … DexFile dexFile = new ImmutableDexFile(forArtVersion(56), Collections.singletonList(classDef)); in testInstanceOfNarrowingNez_art() 172 … Collections.singletonList(new ImmutableMethodParameter("Ljava/lang/Object;", null, null)), "V", in testInstanceOfNarrowingNez_dalvik() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | SummaryTest.java | 63 10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createAndGet_Snapshot() 74 null, null, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createAndGet_Snapshot_WithNullCountAndSum() 85 Snapshot.create(-10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createSnapshot_NegativeCount() 92 Snapshot.create(10L, -87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createSnapshot_NegativeSum() 99 Snapshot.create(0L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createSnapshot_ZeroCountAndNonZeroSum() 113 Snapshot.create(10L, 87.07, Collections.<ValueAtPercentile>singletonList(null)); in createSnapshot_OneNullValueAtPercentile() 120 10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))); in createAndGet_Summary() 166 10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2)))), in testEquals() 171 10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))))) in testEquals() 177 10L, 87.07, Collections.singletonList(ValueAtPercentile.create(99.5, 10.2))))) in testEquals() [all …]
|
D | MetricTest.java | 57 Collections.singletonList(KEY_1)); 72 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Collections.singletonList(POINT_1), null); 75 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Collections.singletonList(POINT_2), null); 78 Collections.singletonList(LABEL_VALUE_EMPTY), 79 Collections.singletonList(POINT_3), 96 Collections.singletonList(CUMULATIVE_TIME_SERIES), in typeMismatch_GaugeDouble_Long() 104 Collections.singletonList(GAUGE_TIME_SERIES_1), in typeMismatch_CumulativeInt64_Double()
|
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
D | PatchExplainerTest.java | 162 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesIdentical() 176 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 177 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 193 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() 194 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() 221 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited() 222 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited() 248 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged() 249 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged() 265 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesChanged() [all …]
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | PreDiffPlannerTest.java | 288 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() 306 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 307 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_9)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 333 UnitTestZipArchive.makeTestZip(Collections.singletonList(FIXED_LENGTH_ENTRY_C1_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged() 335 UnitTestZipArchive.makeTestZip(Collections.singletonList(FIXED_LENGTH_ENTRY_C2_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged() 360 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneUncompressedEntry() 361 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneUncompressedEntry() 379 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_9)); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed() 380 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed() 402 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneEntry_UncompressedToCompressed() [all …]
|
D | PreDiffExecutorTest.java | 123 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6)); in testPrepareForDiffing_OneCompressedEntry_Unchanged() 145 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6)); in testPrepareForDiffing_OneCompressedEntry_Changed() 147 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9)); in testPrepareForDiffing_OneCompressedEntry_Changed() 209 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6)); 211 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9));
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/ |
D | com_github_javaparser_ast_expr_VariableDeclarationExpr.txt | 3 …Line 68) setVariables(singletonList(new VariableDeclarator(variableName))) ==> com.github.javapars… 4 …Line 68) singletonList(new VariableDeclarator(variableName)) ==> java.util.Collections.singletonLi… 6 …Line 73) setVariables(singletonList(var)) ==> com.github.javaparser.ast.expr.VariableDeclarationEx… 7 Line 73) singletonList(var) ==> java.util.Collections.singletonList(T) 9 …Line 78) setVariables(singletonList(new VariableDeclarator(variableName))) ==> com.github.javapars… 10 …Line 78) singletonList(new VariableDeclarator(variableName)) ==> java.util.Collections.singletonLi… 17 …Line 85) setVariables(singletonList(var)) ==> com.github.javaparser.ast.expr.VariableDeclarationEx… 18 Line 85) singletonList(var) ==> java.util.Collections.singletonList(T)
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | AbstractJavaParserContext.java | 159 … return singletonList(symbolReference.getCorrespondingDeclaration().asReferenceType()); in findTypeDeclarations() 171 …return singletonList(typeOfScope.asWildcard().getBoundedType().asReferenceType().getTypeDeclaratio… in findTypeDeclarations() 173 … return singletonList(new ReflectionClassDeclaration(Object.class, typeSolver).asReferenceType()); in findTypeDeclarations() 177 … return singletonList(new ReflectionClassDeclaration(Object.class, typeSolver).asReferenceType()); in findTypeDeclarations() 185 …return singletonList(typeOfScope.asConstraintType().getBound().asReferenceType().getTypeDeclaratio… in findTypeDeclarations() 187 return singletonList(typeOfScope.asReferenceType().getTypeDeclaration()); in findTypeDeclarations() 190 return singletonList(typeOfScope.asReferenceType().getTypeDeclaration()); in findTypeDeclarations()
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/ |
D | MetricRegistryTest.java | 41 Collections.singletonList(LabelKey.create("key", "key description")); 43 Collections.singletonList(LabelValue.create("value")); 77 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddLongGauge_WithNullElement() 113 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDoubleGauge_WithNullElement() 149 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDerivedLongGauge_WithNullElement() 185 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDerivedDoubleGauge_WithNullElement()
|
D | DerivedDoubleGaugeTest.java | 39 Collections.singletonList(LabelKey.create("key", "key description")); 41 Collections.singletonList(LabelValue.create("value")); 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement()
|
D | DerivedLongGaugeTest.java | 39 Collections.singletonList(LabelKey.create("key", "key description")); 41 Collections.singletonList(LabelValue.create("value")); 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement()
|
D | DoubleGaugeTest.java | 39 Collections.singletonList(LabelKey.create("key", "key description")); 41 Collections.singletonList(LabelValue.create("value")); 58 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement()
|
D | LongGaugeTest.java | 39 Collections.singletonList(LabelKey.create("key", "key description")); 41 Collections.singletonList(LabelValue.create("value")); 57 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | AutoConfiguredLoadBalancerFactoryTest.java | 112 Collections.singletonList( in handleResolvedAddressGroups_keepOldBalancer() 144 Collections.singletonList( in handleResolvedAddressGroups_shutsDownOldBalancer() 192 Collections.singletonList( in decideLoadBalancerFactory_noBalancerAddresses_noServiceConfig_pickFirst() 204 Collections.singletonList( in decideLoadBalancerFactory_oneBalancer_noServiceConfig_grpclb() 219 Collections.singletonList( in decideLoadBalancerFactory_grpclbOverridesServiceConfig() 234 Collections.singletonList( in decideLoadBalancerFactory_serviceConfigOverridesDefault() 249 Collections.singletonList( in decideLoadBalancerFactory_serviceConfigFailsOnUnknown()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/ |
D | DoubleGaugeImplTest.java | 53 Collections.singletonList(LabelKey.create("key", "key description")); 55 Collections.singletonList(LabelValue.create("value")); 57 Collections.singletonList(LabelValue.create("value1")); 59 Collections.singletonList(UNSET_VALUE); 112 Collections.singletonList( in getOrCreateTimeSeries() 151 Collections.singletonList( in getDefaultTimeSeries() 166 Collections.singletonList( in removeTimeSeries()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/ |
D | BundleCoverageImplTest.java | 98 assertEquals(Collections.singletonList(ca), p1.getClasses()); in testGroupByPackage() 103 assertEquals(Collections.singletonList(cb), p2.getClasses()); in testGroupByPackage() 104 assertEquals(Collections.singletonList(sb), p2.getSourceFiles()); in testGroupByPackage() 109 assertEquals(Collections.singletonList(sc), p3.getSourceFiles()); in testGroupByPackage()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLParametersTest.java | 153 Collections.singletonList((SNIServerName) new SNIHostName("www.example.com"))); in test_SSLParameters_setServerNames_setNull_getNull() 174 Collections.singletonList((SNIServerName) new SNIHostName("www.example.com"))); in test_SSLParameters_getServerNames_unmodifiable() 204 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_setSNIMatchers_setNull_getNull() 215 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty() 228 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_getSNIMatchers_unmodifiable()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLParametersTest.java | 157 Collections.singletonList((SNIServerName) new SNIHostName("www.example.com"))); in test_SSLParameters_setServerNames_setNull_getNull() 178 Collections.singletonList((SNIServerName) new SNIHostName("www.example.com"))); in test_SSLParameters_getServerNames_unmodifiable() 208 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_setSNIMatchers_setNull_getNull() 219 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty() 232 Collections.singletonList(SNIHostName.createSNIMatcher("www\\.example\\.com"))); in test_SSLParameters_getSNIMatchers_unmodifiable()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/ |
D | VariableDeclarationExpr.java | 68 setVariables(singletonList(new VariableDeclarator(variableName))); in VariableDeclarationExpr() 73 setVariables(singletonList(var)); in VariableDeclarationExpr() 78 setVariables(singletonList(new VariableDeclarator(variableName))); in VariableDeclarationExpr() 85 setVariables(singletonList(var)); in VariableDeclarationExpr()
|
/external/junit/src/main/java/org/junit/validator/ |
D | PublicClassValidator.java | 4 import static java.util.Collections.singletonList; 29 return singletonList(new Exception("The class " in validateTestClass()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | SingletonImmutableList.java | 20 import static java.util.Collections.singletonList; 38 this.delegate = singletonList(checkNotNull(element)); in SingletonImmutableList()
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/ |
D | CounterColumnTest.java | 100 column.init(Collections.singletonList(item), item.getNode()); in testItemTotal() 113 column.init(Collections.singletonList(item), item.getNode()); in testItemMissed() 126 column.init(Collections.singletonList(item), item.getNode()); in testItemCovered() 139 column.init(Collections.singletonList(item), item.getNode()); in testLocale() 152 column.init(Collections.singletonList(item), item.getNode()); in testFooter()
|
/external/testng/src/test/java/test/asserttests/ |
D | ArrayEqualityAssertTest.java | 144 List<List<int[]>> list = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInListsAssertEquals() 145 List<List<int[]>> listCopy = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInListsAssertEquals() 206 List<List<int[]>> iterable = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInIterablesAssertEquals() 207 List<List<int[]>> iterableCopy = Collections.singletonList(Arrays.asList(new int[]{ 42 })); in arrayDeepInIterablesAssertEquals()
|
/external/testng/src/test/java/test/testnames/ |
D | TestNamesTest.java | 17 tng.setTestNames(Collections.singletonList("testGroup2")); in checkWithoutChildSuites() 18 … tng.setTestSuites(Collections.singletonList(getPathToResource("testnames/upstream-suite.xml"))); in checkWithoutChildSuites()
|