Home
last modified time | relevance | path

Searched refs:Util (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/external/javapoet/src/test/java/com/squareup/javapoet/
DUtilTest.java24 assertEquals("a", Util.characterLiteralWithoutSingleQuotes('a')); in characterLiteral()
25 assertEquals("b", Util.characterLiteralWithoutSingleQuotes('b')); in characterLiteral()
26 assertEquals("c", Util.characterLiteralWithoutSingleQuotes('c')); in characterLiteral()
27 assertEquals("%", Util.characterLiteralWithoutSingleQuotes('%')); in characterLiteral()
29 assertEquals("\\b", Util.characterLiteralWithoutSingleQuotes('\b')); in characterLiteral()
30 assertEquals("\\t", Util.characterLiteralWithoutSingleQuotes('\t')); in characterLiteral()
31 assertEquals("\\n", Util.characterLiteralWithoutSingleQuotes('\n')); in characterLiteral()
32 assertEquals("\\f", Util.characterLiteralWithoutSingleQuotes('\f')); in characterLiteral()
33 assertEquals("\\r", Util.characterLiteralWithoutSingleQuotes('\r')); in characterLiteral()
34 assertEquals("\"", Util.characterLiteralWithoutSingleQuotes('"')); in characterLiteral()
[all …]
/external/slf4j/slf4j-api/src/main/java/org/slf4j/
DLoggerFactory.java39 import org.slf4j.helpers.Util;
149 Util.report("Failed to load class \"org.slf4j.impl.StaticLoggerBinder\"."); in bind()
150 Util.report("Defaulting to no-operation (NOP) logger implementation"); in bind()
151 Util.report("See " + NO_STATICLOGGERBINDER_URL + " for further details."); in bind()
160 Util.report("slf4j-api 1.6.x (or later) is incompatible with this binding."); in bind()
161 Util.report("Your binding is version 1.5.5 or earlier."); in bind()
162 Util.report("Upgrade your binding to version 1.6.x."); in bind()
173 Util.report("Failed to instantiate SLF4J LoggerFactory", t); in failedBinding()
183 Util.report("The following set of substitute loggers may have been accessed"); in fixSubstitutedLoggers()
184 Util.report("during the initialization phase. Logging calls during this"); in fixSubstitutedLoggers()
[all …]
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/
DUtilTest.java44 assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(10)); in testSelectDurationUnitForDisplay()
45 …assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MICR… in testSelectDurationUnitForDisplay()
46 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_MI… in testSelectDurationUnitForDisplay()
47 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MIL… in testSelectDurationUnitForDisplay()
48 …assertEquals(DurationUnit.MILLISSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_M… in testSelectDurationUnitForDisplay()
49 …assertEquals(DurationUnit.SECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_SECOND)… in testSelectDurationUnitForDisplay()
/external/mesa3d/scons/
Dcrossmingw.py42 import SCons.Util
46 prefixes32 = SCons.Util.Split("""
49 prefixes64 = SCons.Util.Split("""
60 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
66 cmd = SCons.Util.CLVar(['$SHLINK', '$SHLINKFLAGS'])
124 …dir = os.path.dirname(env.WhereIs(mingw_prefix + 'gcc') or SCons.Util.WhereIs(mingw_prefix + 'gcc'…
130 if SCons.Util.is_String(path):
142 env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
144 env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS')
145 env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared')
[all …]
/external/xz-java/src/org/tukaani/xz/index/
DIndexBase.java12 import org.tukaani.xz.common.Util;
28 return 1 + Util.getVLISize(recordCount) + indexListSize + 4; in getUnpaddedIndexSize()
36 return Util.STREAM_HEADER_SIZE + blocksSum + getIndexSize() in getStreamSize()
37 + Util.STREAM_HEADER_SIZE; in getStreamSize()
47 indexListSize += Util.getVLISize(unpaddedSize) in add()
48 + Util.getVLISize(uncompressedSize); in add()
52 || getIndexSize() > Util.BACKWARD_SIZE_MAX in add()
/external/deqp-deps/SPIRV-Tools/test/opt/loop_optimizations/
Dlcssa.cpp143 LoopUtils Util(context.get(), loop); in TEST_F() local
144 Util.MakeLoopClosedSSA(); in TEST_F()
229 LoopUtils Util(context.get(), loop); in TEST_F() local
230 Util.MakeLoopClosedSSA(); in TEST_F()
328 LoopUtils Util(context.get(), loop); in TEST_F() local
329 Util.MakeLoopClosedSSA(); in TEST_F()
421 LoopUtils Util(context.get(), loop); in TEST_F() local
422 Util.MakeLoopClosedSSA(); in TEST_F()
516 LoopUtils Util(context.get(), loop); in TEST_F() local
517 Util.MakeLoopClosedSSA(); in TEST_F()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Dlcssa.cpp143 LoopUtils Util(context.get(), loop); in TEST_F() local
144 Util.MakeLoopClosedSSA(); in TEST_F()
229 LoopUtils Util(context.get(), loop); in TEST_F() local
230 Util.MakeLoopClosedSSA(); in TEST_F()
328 LoopUtils Util(context.get(), loop); in TEST_F() local
329 Util.MakeLoopClosedSSA(); in TEST_F()
421 LoopUtils Util(context.get(), loop); in TEST_F() local
422 Util.MakeLoopClosedSSA(); in TEST_F()
516 LoopUtils Util(context.get(), loop); in TEST_F() local
517 Util.MakeLoopClosedSSA(); in TEST_F()
[all …]
/external/libese/apps/boot/card/src/com/android/verifiedboot/storage/
DJcopBackupImpl.java23 import javacard.framework.Util;
74 if (Util.getShort(in, (short)1) != (short)2) { in restore()
77 if (Util.getShort(in, (short)3) != MAGIC) { in restore()
91 length = Util.getShort(in, (short)1); in restore()
152 Util.setShort(buffer, offset, (short)2); in backup()
154 Util.setShort(buffer, offset, MAGIC); in backup()
160 Util.setShort(buffer, offset, objects[i].backupSize()); in backup()
162 Util.setShort(buffer, offset, (short)0); in backup()
DVersionStorage.java20 import javacard.framework.Util;
35 Util.arrayFillNonAtomic(storage, (short) 0, (short) storage.length, (byte) 0x00); in VersionStorage()
51 Util.arrayCopy(storage, (short)(SLOT_BYTES * slot), in getSlot()
78 Util.arrayCopy(in, iOffset, in setSlot()
101 Util.arrayCopy(inBytes, inBytesOffset, storage, (short) 0, inBytesLength); in restore()
120 Util.arrayCopy(storage, (short) 0, outBytes, (short)(outBytesOffset + 1), in backup()
DCarrierLock.java21 import javacard.framework.Util;
224 Util.arrayFillNonAtomic(extStorage, extStorageOffset, in initialize()
239 Util.arrayCopy(storage, lockOffset(), in get()
327 Util.arrayCopy(unlockToken, (short)(unlockTokenOffset + VERSION_SIZE), in verifyUnlock()
330 Util.arrayCopy(deviceData, deviceDataOffset, in verifyUnlock()
436 Util.arrayCopy(lockMeta, (short)(VERSION_SIZE + lockMetaOffset), in setWithMetadata()
441 Util.arrayFillNonAtomic(storage, (short)(NONCE_SIZE + 1 + storageOffset), in setWithMetadata()
495 Util.arrayCopy(storage, storageOffset, in backup()
510 Util.arrayCopy(inBytes, inBytesOffset, in restore()
DBasicLock.java21 import javacard.framework.Util;
72 Util.arrayCopy(storage, storageOffset, in backup()
87 Util.arrayCopy(inBytes, inBytesOffset, in restore()
176 Util.arrayFillNonAtomic(extStorage, extStorageOffset, in initialize()
191 Util.arrayCopy(storage, storageOffset, in get()
340 Util.arrayFillNonAtomic(storage, metadataOffset(), in setWithMetadata()
343 Util.arrayCopyNonAtomic(lockMeta, lockMetaOffset, in setWithMetadata()
/external/libese/apps/weaver/card/src/com/android/weaver/core/
DCoreSlots.java22 import javacard.framework.Util;
109 Util.arrayCopy(keyBuffer, keyOffset, mKey, (short) 0, Consts.SLOT_KEY_BYTES); in write()
110 Util.arrayCopy(valueBuffer, valueOffset, mValue, (short) 0, Consts.SLOT_VALUE_BYTES); in write()
121 Util.arrayFillNonAtomic(mValue, (short) 0, Consts.SLOT_VALUE_BYTES, (byte) 0); in eraseValue()
150 Util.arrayCopyNonAtomic( in read()
156 final byte result = (Util.arrayCompare( in read()
181 Util.arrayCopyNonAtomic(data, (short) 0, outBuffer, outOffset, Consts.SLOT_VALUE_BYTES); in read()
238 Util.setShort(bArray, bOff, highWord); in throttle()
239 Util.setShort(bArray, (short) (bOff + 2), lowWord); in throttle()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DIdmapEntries.java13 return (Util.dtohs(mData[0]) > 0); in hasEntries()
28 return (byte) Util.dtohs(mData[0]); in targetTypeId()
35 return (byte) Util.dtohs(mData[1]); in overlayTypeId()
39 short entryCount = Util.dtohs(mData[2]); in lookup()
40 short offset = Util.dtohs(mData[3]); in lookup()
DIdmap.java7 import static org.robolectric.res.android.Util.ATRACE_CALL;
8 import static org.robolectric.res.android.Util.SIZEOF_CPTR;
9 import static org.robolectric.res.android.Util.SIZEOF_INT;
10 import static org.robolectric.res.android.Util.dtohl;
11 import static org.robolectric.res.android.Util.dtohs;
12 import static org.robolectric.res.android.Util.logError;
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/representer/
DDumpStackTraceTest.java21 import org.yaml.snakeyaml.Util;
28 String input = Util.getLocalResource("representer/stacktrace1.txt"); in testJavaStackTrace()
38 String input = Util.getLocalResource("representer/stacktrace2.txt"); in testJavaStackTraceWithNoSpecialCharacters()
48 String input = Util.getLocalResource("representer/stacktrace3.txt"); in testJavaStackTraceWithTabs()
58 String input = Util.getLocalResource("representer/stacktrace1.txt"); in testJavaStackTraceWithoutTabs()
61 String etalon = Util.getLocalResource("representer/stacktrace1.yaml"); in testJavaStackTraceWithoutTabs()
/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeSpec.java34 import static com.squareup.javapoet.Util.checkArgument;
35 import static com.squareup.javapoet.Util.checkNotNull;
36 import static com.squareup.javapoet.Util.checkState;
37 import static com.squareup.javapoet.Util.requireExactlyOneOf;
63 this.annotations = Util.immutableList(builder.annotations); in TypeSpec()
64 this.modifiers = Util.immutableSet(builder.modifiers); in TypeSpec()
65 this.typeVariables = Util.immutableList(builder.typeVariables); in TypeSpec()
67 this.superinterfaces = Util.immutableList(builder.superinterfaces); in TypeSpec()
68 this.enumConstants = Util.immutableMap(builder.enumConstants); in TypeSpec()
69 this.fieldSpecs = Util.immutableList(builder.fieldSpecs); in TypeSpec()
[all …]
/external/adhd/cras/src/tests/
Dutil_unittest.cc18 TEST(Util, SendRecvTwoFileDescriptors) { in TEST() argument
66 TEST(Util, SendOneRecvTwoFileDescriptors) { in TEST() argument
103 TEST(Util, SendRecvFileDescriptor) { in TEST() argument
137 TEST(Util, SendRecvNoDescriptors) { in TEST() argument
154 TEST(Util, TimevalAfter) { in TEST() argument
170 TEST(Util, FramesToTime) { in TEST() argument
190 TEST(Util, TimeToFrames) { in TEST() argument
210 TEST(Util, FramesToMs) { in TEST() argument
219 TEST(Util, TimespecToMs) { in TEST() argument
247 TEST(Util, FramesSinceTime) { in TEST() argument
[all …]
/external/swiftshader/third_party/LLVM/utils/lit/lit/
DLitConfig.py18 import Util as util
70 import os, Util
75 self.bashPath = Util.which('bash', os.pathsep.join(self.path))
90 import os, Util
92 if not Util.checkToolsPath(dir, tools):
95 dir = Util.whichTools(tools, paths)
98 self.bashPath = Util.which('bash', dir)
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafeMapImplementationsTest.java27 import org.yaml.snakeyaml.Util;
47 String etalon = Util.getLocalResource("examples/map-bean-1.yaml"); in testDumpMap()
52 String output = Util.getLocalResource("examples/map-bean-1.yaml"); in testLoadMap()
119 String etalon = Util.getLocalResource("examples/map-bean-2.yaml"); in testNoJavaBeanMap()
145 String etalon = Util.getLocalResource("examples/map-recursive-1.yaml"); in testRecursiveNoJavaBeanMap1()
149 Map<Object, Object> map1 = (Map<Object, Object>) yaml.load(Util in testRecursiveNoJavaBeanMap1()
169 String etalon = Util.getLocalResource("examples/map-recursive-2.yaml"); in testRecursiveNoJavaBeanProperties2()
180 String output = Util.getLocalResource("examples/map-recursive-3.yaml"); in testRecursiveNoJavaBeanMap3()
194 String output = Util.getLocalResource("examples/map-recursive-4.yaml"); in testRecursiveNoJavaBeanProperties4()
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DCaliperConfigLoader.java20 import com.google.caliper.util.Util;
50 defaults = Util.loadProperties( in loadOrCreate()
51 Util.resourceSupplier(CaliperConfig.class, "global-config.properties")); in loadOrCreate()
61 Util.loadProperties(Files.asByteSource(configFile)); in loadOrCreate()
67 ByteSource supplier = Util.resourceSupplier(CaliperConfig.class, "default-config.properties"); in loadOrCreate()
72 user = Util.loadProperties(supplier); in loadOrCreate()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
DSizeStrategy.java7 import com.bumptech.glide.util.Util;
24 int size = Util.getBitmapByteSize(bitmap); in put()
35 final int size = Util.getBitmapByteSize(width, height, config); in get()
58 final int removedSize = Util.getBitmapByteSize(removed); in removeLast()
80 int size = Util.getBitmapByteSize(width, height, config); in logBitmap()
86 return Util.getBitmapByteSize(bitmap); in getSize()
115 int size = Util.getBitmapByteSize(bitmap); in getBitmapString()
/external/gemmlowp/meta/
Dmulti_thread_transform.h34 Util; in PrepareTransform1DTasks() typedef
37 const int task_size = Util::EstimateComputeCost(params.kernel); in PrepareTransform1DTasks()
52 task.input = Util::OffsetInput(params.kernel, params.input, i * chunk); in PrepareTransform1DTasks()
53 task.output = Util::OffsetOutput(params.kernel, params.output, i * chunk); in PrepareTransform1DTasks()
59 task.input = Util::OffsetInput(params.kernel, params.input, sum_chunk); in PrepareTransform1DTasks()
60 task.output = Util::OffsetOutput(params.kernel, params.output, sum_chunk); in PrepareTransform1DTasks()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DClassTagsTest.java24 import org.yaml.snakeyaml.Util;
42 assertEquals(Util.getLocalResource("constructor/car-with-tags.yaml"), new Yaml().dump(car)); in testDefaultRepresenter()
60 assertEquals(Util.getLocalResource("constructor/car-without-tags.yaml"), output); in testDumpClassTag()
66 yaml.load(Util.getLocalResource("constructor/car-without-tags.yaml")); in testLoadUnknounClassTag()
78 String source = Util.getLocalResource("constructor/car-without-tags.yaml"); in testLoadClassTag()
99 Car car = (Car) yaml.load(Util.getLocalResource("constructor/car-no-root-class.yaml")); in testLoadClassNoRoot()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DRequestBody.java19 import com.android.okhttp.internal.Util;
51 Charset charset = Util.UTF_8; in create()
55 charset = Util.UTF_8; in create()
89 Util.checkOffsetAndCount(content.length, offset, byteCount);
124 Util.closeQuietly(source);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRequestBody.java18 import com.squareup.okhttp.internal.Util;
47 Charset charset = Util.UTF_8; in create()
51 charset = Util.UTF_8; in create()
85 Util.checkOffsetAndCount(content.length, offset, byteCount);
120 Util.closeQuietly(source);

12345678910>>...19