Home
last modified time | relevance | path

Searched refs:forName (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/external/guava/guava/src/com/google/common/base/
DCharsets.java49 public static final Charset US_ASCII = Charset.forName("US-ASCII");
59 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
68 public static final Charset UTF_8 = Charset.forName("UTF-8");
78 public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
88 public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
99 public static final Charset UTF_16 = Charset.forName("UTF-16");
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java37 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii()
42 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591()
46 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8()
51 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be()
56 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le()
61 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
/external/opencensus-java/api/src/test/java/io/opencensus/internal/
DProviderTest.java52 Class.forName( in createInstance_ThrowsErrorWhenClassIsPrivate()
63 Class.forName( in createInstance_ThrowsErrorWhenClassHasPrivateConstructor()
74 Class.forName( in createInstance_ThrowsErrorWhenClassDoesNotHaveDefaultConstructor()
84 Class.forName( in createInstance_ThrowsErrorWhenClassIsNotASubclass()
95 Class.forName( in createInstance_GoodClass()
107 Class.forName( in createInstance_GoodSubclass()
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/
DBsDiffTestData.java186 public static final byte[] LONG_DATA_99 = LONG_DATA_99_S.getBytes(Charset.forName("US-ASCII"));
188 LONGER_DATA_349_S.getBytes(Charset.forName("US-ASCII"));
302 LONG_DATA_104_NEW_S.getBytes(Charset.forName("US-ASCII"));
304 LONGER_DATA_354_NEW_S.getBytes(Charset.forName("US-ASCII"));
DBsDiffTest.java41 byte[] s1b = s1.getBytes(Charset.forName("US-ASCII")); in lengthOfMatchTest()
42 byte[] s2b = s2.getBytes(Charset.forName("US-ASCII")); in lengthOfMatchTest()
59 final byte[] s1b = s1.getBytes(Charset.forName("US-ASCII")); in searchForMatchBaseCaseShortGroupArrayTest()
60 final byte[] s2b = s2.getBytes(Charset.forName("US-ASCII")); in searchForMatchBaseCaseShortGroupArrayTest()
148 final byte[] s1b = s1.getBytes(Charset.forName("US-ASCII")); in searchForMatchShortGroupArrayTest()
149 final byte[] s2b = s2.getBytes(Charset.forName("US-ASCII")); in searchForMatchShortGroupArrayTest()
496 byte[] oldBytes = oldData.getBytes(Charset.forName("US-ASCII")); in generatePatchAndCheckCtrlEntries()
497 byte[] newBytes = newData.getBytes(Charset.forName("US-ASCII")); in generatePatchAndCheckCtrlEntries()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowFilter.java17 Class<?> forName = Class.forName("android.widget.Filter$FilterResults"); in filter() local
24 filtering = ReflectionHelpers.newInstance(forName); in filter()
29 ClassParameter.from(forName, filtering)); in filter()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboCharsets.java10 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
15 public static final Charset US_ASCII = Charset.forName("US-ASCII");
20 public static final Charset UTF_8 = Charset.forName("UTF-8");
/external/testng/src/main/java/org/testng/internal/
DClassHelper.java88 public static Class<?> forName(final String className) { in forName() method in ClassHelper
114 return Class.forName(className); in forName()
192 Class.forName("org.junit.Test"); in createTestRunner()
193 … IJUnitTestRunner tr = (IJUnitTestRunner) ClassHelper.forName(JUNIT_4_TESTRUNNER).newInstance(); in createTestRunner()
200 Class.forName("junit.framework.Test"); in createTestRunner()
201 … IJUnitTestRunner tr = (IJUnitTestRunner) ClassHelper.forName(JUNIT_TESTRUNNER).newInstance(); in createTestRunner()
272 Class<?> cls = Class.forName(selector.getClassName()); in createSelector()
417 result = Class.forName(ecn); in getEnclosingClass()
513 result = ClassHelper.forName(file); in fileToClass()
560 result = ClassHelper.forName(className.toString()); in fileToClass()
[all …]
/external/javasqlite/src/main/java/SQLite/
DJDBCDriver.java22 args[0] = Class.forName("java.lang.String");
40 Class.forName(cvers);
47 Class.forName(cvers);
51 Class.forName(cvers);
57 connClass = Class.forName(cvers);
/external/antlr/gunit/src/main/java/org/antlr/gunit/
DgUnitBaseTest.java78 lexer = Class.forName(lexerPath).asSubclass(Lexer.class); in execLexer()
170 lexer = Class.forName(lexerPath).asSubclass(Lexer.class); in execParser()
176 parser = Class.forName(parserPath).asSubclass(Parser.class); in execParser()
183 …Class<? extends TreeAdaptor> _treeAdaptor = Class.forName(treeAdaptorPath).asSubclass(TreeAdaptor.… in execParser()
206 Class<?> _return = Class.forName(parserPath+"$"+testRuleName+"_return"); in execParser()
310 lexer = Class.forName(lexerPath).asSubclass(Lexer.class); in execTreeParser()
316 parser = Class.forName(parserPath).asSubclass(Parser.class); in execTreeParser()
324 …Class<? extends TreeAdaptor> _treeAdaptor = Class.forName(treeAdaptorPath).asSubclass(TreeAdaptor.… in execTreeParser()
343 Class<?> _return = Class.forName(parserPath+"$"+testRuleName+"_return"); in execTreeParser()
358 treeParser = Class.forName(treeParserPath).asSubclass(TreeParser.class); in execTreeParser()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DPlatform.java133 sslParametersClass = Class.forName("com.android.org.conscrypt.SSLParametersImpl"); in findPlatform()
136 sslParametersClass = Class.forName( in findPlatform()
151 Class<?> trafficStats = Class.forName("android.net.TrafficStats"); in findPlatform()
157 Class.forName("android.net.Network"); // Arbitrary class added in Android 5.0. in findPlatform()
174 Class<?> sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl"); in findPlatform()
179 Class<?> negoClass = Class.forName(negoClassName); in findPlatform()
180 Class<?> providerClass = Class.forName(negoClassName + "$Provider"); in findPlatform()
181 Class<?> clientProviderClass = Class.forName(negoClassName + "$ClientProvider"); in findPlatform()
182 Class<?> serverProviderClass = Class.forName(negoClassName + "$ServerProvider"); in findPlatform()
249 Class<?> gmsSslParametersClass = Class.forName( in trustManager()
/external/apache-http/src/org/apache/commons/logging/
DLogSource.java84 if (null != Class.forName("org.apache.log4j.Logger")) {
95 if ((null != Class.forName("java.util.logging.Logger")) &&
96 (null != Class.forName("org.apache.commons.logging.impl.Jdk14Logger"))) {
173 Class logclass = Class.forName(classname); in setLogImplementation()
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/
DTransportBenchmark.java82 serverBuilder = InProcessServerBuilder.forName(name); in setUp()
83 channelBuilder = InProcessChannelBuilder.forName(name); in setUp()
110 Class<?> groupClass = Class.forName("io.netty.channel.epoll.EpollEventLoopGroup"); in setUp()
115 Class.forName("io.netty.channel.epoll.EpollServerSocketChannel"); in setUp()
122 Class.forName("io.netty.channel.epoll.EpollSocketChannel"); in setUp()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderBomTest.java51 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testNoBom()
77 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testUtf8Bom()
95 assertEquals(Charset.forName("UTF-16LE"), reader.getEncoding()); in testUnicodeLeBom()
113 assertEquals(Charset.forName("UTF-16BE"), reader.getEncoding()); in testUnicodeBeBom()
/external/volley/src/test/java/com/android/volley/toolbox/
DJsonRequestCharsetTest.java55 byte[] data = jsonObjectString().getBytes(Charset.forName("UTF-8")); in defaultCharsetJsonObject()
69 byte[] data = jsonArrayString().getBytes(Charset.forName("UTF-8")); in defaultCharsetJsonArray()
82 byte[] data = jsonObjectString().getBytes(Charset.forName("ISO-8859-1")); in specifiedCharsetJsonObject()
97 byte[] data = jsonArrayString().getBytes(Charset.forName("ISO-8859-2")); in specifiedCharsetJsonArray()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderTest.java96 Class.forName("test", false, loader); in test_Constructor$Ljava_net_URL()
246 assertNotNull(Class.forName("cpack.CNothing", true, ucl)); in test_findClassLjava_lang_String()
276 assertNotNull(Class.forName("bpack.Homer", true, ucl)); in test_findClassLjava_lang_String()
279 Class.forName("bpack.Bart", true, ucl); in test_findClassLjava_lang_String()
286 Class.forName("Main4", true, ucl); in test_findClassLjava_lang_String()
301 Class.forName("cpack.Mock", true, ucl); in test_findClassLjava_lang_String()
334 Class.forName("foo.Foo", false, cl); in test_findClassLjava_lang_String()
340 Class.forName("foo.Foo", false, cl); in test_findClassLjava_lang_String()
518 assertNotNull(Class.forName("Main2", true, ucl)); in test_findClassLjava_lang_String_Jar_Class_Path()
/external/grpc-grpc-java/core/src/jmh/java/io/grpc/
DStatusBenchmark.java60 "Unexpected RST in stream".getBytes(Charset.forName("US-ASCII"))); in messageDecodePlain()
71 "Some Error%10Wasabi and Horseradish are the same".getBytes(Charset.forName("US-ASCII"))); in messageDecodeEscape()
91 return Status.CODE_KEY.parseBytes("15".getBytes(Charset.forName("US-ASCII"))); in codeDecode()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/
DUnicodeReader.java54 private static final Charset UTF8 = Charset.forName("UTF-8");
55 private static final Charset UTF16BE = Charset.forName("UTF-16BE");
56 private static final Charset UTF16LE = Charset.forName("UTF-16LE");
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/
DInvokeMethodDebuggee.java83 …c = Class.forName("org.apache.harmony.jpda.tests.jdwp.share.debuggee.InvokeMethodDebuggee$testClas… in run()
84 c = Class.forName("org.apache.harmony.jpda.tests.jdwp.share.debuggee.testClass2"); in run()
85 c = Class.forName("org.apache.harmony.jpda.tests.jdwp.share.debuggee.testClass3"); in run()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DGpuDelegateHelper.java31 Class.forName("org.tensorflow.lite.experimental.GpuDelegate"); in isGpuDelegateAvailable()
41 return Class.forName("org.tensorflow.lite.experimental.GpuDelegate") in createGpuDelegate()
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/
DClassDefinitionUtils.java102 Class<?> loader = Class.forName("java.lang.ClassLoader"); // JVM crash w/o this in AccessController.doPrivileged()
137 Class.forName(className, true, loader); in defineClass()
224 return (Class<T>) Class.forName(className, true, classLoader); in getExistingClass()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DCharsetsTest.java37 Assert.assertEquals(Charset.forName("UTF-8"), Charsets.toCharset(Charset.forName("UTF-8"))); in testToCharset()
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java153 Class<?> c_Libcore = Class.forName("libcore.io.Libcore"); in setSocketWriteTimeout()
358 return Class.forName(klass); in getClass()
456 Class.forName("org.apache.harmony.xnet.provider.jsse.OpenSSLRSAPrivateKey"); in wrapRsaKey()
533 Class<?> processClass = Class.forName("android.os.Process"); in logEvent()
538 Class<?> eventLogClass = Class.forName("android.util.EventLog"); in logEvent()
682 gcmSpecClass = Class.forName("javax.crypto.spec.GCMParameterSpec"); in fromGCMParameterSpec()
717 gcmSpecClass = Class.forName("javax.crypto.spec.GCMParameterSpec"); in fromGCMParameters()
739 gcmSpecClass = Class.forName("javax.crypto.spec.GCMParameterSpec"); in toGCMParameterSpec()
813 Class.forName("org.apache.harmony.security.utils.AlgNameMapper"); in oidToAlgorithmName()
831 Class<?> algorithmIdClass = Class.forName("sun.security.x509.AlgorithmId"); in oidToAlgorithmName()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DClassPrepareDebuggee.java52 Class.forName("org.apache.harmony.jpda.tests.jdwp.Events.Class2Prepare"); in run()
56 … Class.forName("org.apache.harmony.jpda.tests.jdwp.Events.SourceDebugExtensionMockClass"); in run()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/brotli/
DBrotliUtils.java37 Class.forName("org.osgi.framework.BundleEvent");
62 Class.forName("org.brotli.dec.BrotliInputStream"); in internalIsBrotliCompressionAvailable()

12345678910>>...19