Home
last modified time | relevance | path

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

12345678910>>...14

/external/libvncserver/webclients/novnc/include/
Dinput.js24 Util.set_defaults(this, defaults, {
52 Util.Debug("onKeyPress " + (e.type == 'keydown' ? "down" : "up") +
63 Util.stopEvent(e);
77 Util.stopEvent(e);
91 Util.stopEvent(e);
101 Util.Debug(">> Keyboard.allKeysUp");
103 Util.Debug("<< Keyboard.allKeysUp");
112 Util.addEvent(c, 'keydown', this._eventHandlers.keydown);
113 Util.addEvent(c, 'keyup', this._eventHandlers.keyup);
114 Util.addEvent(c, 'keypress', this._eventHandlers.keypress);
[all …]
Dutil.js13 var Util = {}; variable
186 Util._log_level = 'warn';
187 Util.init_logging = function (level) {
190 level = Util._log_level;
192 Util._log_level = level;
210 Util.Debug = Util.Info = Util.Warn = Util.Error = function (msg) {};
214 Util.Debug = function (msg) { console.log(msg); };
216 Util.Info = function (msg) { console.log(msg); };
218 Util.Warn = function (msg) { console.warn(msg); };
220 Util.Error = function (msg) { console.error(msg); };
[all …]
Dwebsock.js38 window.WEB_SOCKET_SWF_LOCATION = Util.get_include_uri() +
40 if (Util.Engine.trident) {
41 Util.Debug("Forcing uncached load of WebSocketMain.swf");
44 Util.load_scripts(["web-socket-js/swfobject.js",
174 Util.Debug("bufferedAmount: " + this._websocket.bufferedAmount);
185 Util.Info("Delaying send, bufferedAmount: " +
228 Util.Info("Detected binaryType support in WebSockets");
254 Util.Error('Skipping unsupported WebSocket binary sub-protocol');
283 Util.Debug('>> WebSock.onopen');
286 Util.Info("Server choose sub-protocol: " + this._websocket.protocol);
[all …]
Drfb.js116 Util.set_defaults(this, defaults, {
143 Util.Debug(">> RFB.constructor");
160 Util.Error("Display exception: " + exc);
182 Util.Warn("WebSocket on-close event");
196 Util.Error("Received onclose while disconnected" + msg);
202 Util.Warn("WebSocket on-error event");
209 Util.Info("Using native WebSockets");
212 Util.Warn("Using web-socket-js bridge. Flash version: " + Util.Flash.version);
213 if (!Util.Flash || Util.Flash.version < 9) {
222 Util.Debug("<< RFB.constructor");
[all …]
Ddisplay.js37 Util.set_defaults(this, defaults, {
45 Util.Debug(">> Display.constructor");
63 Util.Debug("User Agent: " + navigator.userAgent);
64 if (Util.Engine.gecko) { Util.Debug("Browser: gecko " + Util.Engine.gecko); }
65 if (Util.Engine.webkit) { Util.Debug("Browser: webkit " + Util.Engine.webkit); }
66 if (Util.Engine.trident) { Util.Debug("Browser: trident " + Util.Engine.trident); }
67 if (Util.Engine.presto) { Util.Debug("Browser: presto " + Util.Engine.presto); }
79 Util.Info("Prefering javascript operations");
95 Util.Info("Data URI scheme cursor supported");
100 Util.Warn("Data URI scheme cursor not supported");
[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 …]
DMDC.java32 import org.slf4j.helpers.Util;
95 Util.report("Failed to load class \"org.slf4j.impl.StaticMDCBinder\".");
96 Util.report("Defaulting to no-operation MDCAdapter implementation.");
97 Util.report("See " + NO_STATIC_MDC_BINDER_URL + " for further details.");
103 Util.report("MDC binding unsuccessful.", e);
/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/lzma/Java/Tukaani/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/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/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/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/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/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/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/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/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/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/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);
DResponseBody.java18 import com.squareup.okhttp.internal.Util;
28 import static com.squareup.okhttp.internal.Util.UTF_8;
59 Util.closeQuietly(source); in bytes()
100 Charset charset = Util.UTF_8; in create()
104 charset = Util.UTF_8; in create()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue55/
DYamlFieldAccessCollectionTest.java23 import org.yaml.snakeyaml.Util;
35 assertEquals(Util.getLocalResource("issues/issue55_1.txt"), serialized); in testYaml()
45 Map<String, Object> map = (Map<String, Object>) yaml.load(Util in testYamlWithoutConfiguration()
53 beanLoader.loadAs(Util.getLocalResource("issues/issue55_1.txt"), Blog.class); in testYamlFailure()
65 assertEquals(Util.getLocalResource("issues/issue55_1_rootTag.txt"), serialized); in testYamlDefaultWithFeildAccess()

12345678910>>...14