Home
last modified time | relevance | path

Searched refs:utils (Results 1 – 25 of 3223) sorted by relevance

12345678910>>...129

/external/skqp/gn/
Dutils.gni11 "$_include/utils/SkFrontBufferedStream.h",
12 "$_include/utils/SkCamera.h",
13 "$_include/utils/SkCanvasStateUtils.h",
14 "$_include/utils/SkDumpCanvas.h",
15 "$_include/utils/SkEventTracer.h",
16 "$_include/utils/SkInterpolator.h",
17 "$_include/utils/SkNoDrawCanvas.h",
18 "$_include/utils/SkNWayCanvas.h",
19 "$_include/utils/SkNullCanvas.h",
20 "$_include/utils/SkPaintFilterCanvas.h",
[all …]
/external/skia/gn/
Dutils.gni11 "$_include/utils/SkFrontBufferedStream.h",
12 "$_include/utils/SkCamera.h",
13 "$_include/utils/SkCanvasStateUtils.h",
14 "$_include/utils/SkDumpCanvas.h",
15 "$_include/utils/SkEventTracer.h",
16 "$_include/utils/SkInterpolator.h",
17 "$_include/utils/SkNoDrawCanvas.h",
18 "$_include/utils/SkNWayCanvas.h",
19 "$_include/utils/SkNullCanvas.h",
20 "$_include/utils/SkPaintFilterCanvas.h",
[all …]
/external/tensorflow/tensorflow/python/layers/
Dutils_test.py21 from tensorflow.python.layers import utils
29 self.assertEqual('NCDHW', utils.convert_data_format('channels_first', 5))
30 self.assertEqual('NCHW', utils.convert_data_format('channels_first', 4))
31 self.assertEqual('NCW', utils.convert_data_format('channels_first', 3))
32 self.assertEqual('NHWC', utils.convert_data_format('channels_last', 4))
33 self.assertEqual('NWC', utils.convert_data_format('channels_last', 3))
34 self.assertEqual('NDHWC', utils.convert_data_format('channels_last', 5))
37 utils.convert_data_format('invalid', 2)
40 self.assertEqual((2, 2, 2), utils.normalize_tuple(2, n=3, name='strides'))
42 (2, 1, 2), utils.normalize_tuple((2, 1, 2), n=3, name='strides'))
[all …]
/external/protobuf/js/binary/
Dutils.js58 jspb.utils.split64Low = 0;
66 jspb.utils.split64High = 0;
74 jspb.utils.splitUint64 = function(value) {
80 jspb.utils.split64Low = lowBits;
81 jspb.utils.split64High = highBits;
90 jspb.utils.splitInt64 = function(value) {
113 jspb.utils.split64Low = lowBits;
114 jspb.utils.split64High = highBits;
123 jspb.utils.splitZigzag64 = function(value) {
128 jspb.utils.splitUint64(value);
[all …]
Dutils_test.js83 jspb.utils.joinUnsignedDecimalString(0x89e80001, 0x8ac72304);
86 result = jspb.utils.joinUnsignedDecimalString(0xacd05f15, 0x1b69b4b);
89 result = jspb.utils.joinUnsignedDecimalString(0xeb1f0ad2, 0xab54a98c);
92 result = jspb.utils.joinUnsignedDecimalString(0xe3b70cb1, 0x891087b8);
96 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00000000);
99 result = jspb.utils.joinUnsignedDecimalString(0xFFFFFFFF, 0xFFFFFFFF);
105 result = jspb.utils.joinUnsignedDecimalString(low, 0);
112 result = jspb.utils.joinUnsignedDecimalString(0, high);
120 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00100000);
123 result = jspb.utils.joinUnsignedDecimalString(0x00000000, 0x00200000);
[all …]
/external/autotest/client/common_lib/
Dutils_unittest.py18 from autotest_lib.client.common_lib import utils
21 metrics = utils.metrics_mock
27 self.god.stub_function(utils, "open")
35 self.assertEqual(utils.ip_to_long('0.0.0.0'), 0)
36 self.assertEqual(utils.ip_to_long('255.255.255.255'), 4294967295)
37 self.assertEqual(utils.ip_to_long('192.168.0.1'), 3232235521)
38 self.assertEqual(utils.ip_to_long('1.2.4.8'), 16909320)
42 self.assertEqual(utils.long_to_ip(0), '0.0.0.0')
43 self.assertEqual(utils.long_to_ip(4294967295), '255.255.255.255')
44 self.assertEqual(utils.long_to_ip(3232235521), '192.168.0.1')
[all …]
/external/toolchain-utils/deprecated/repo_to_repo_files/
Dcrosperf.json.rtr7 "//depot2/gcctools/chromeos/v14/utils/__init__.py utils/__init__.py",
8 "//depot2/gcctools/chromeos/v14/utils/colortrans.py utils/colortrans.py",
9 "//depot2/gcctools/chromeos/v14/utils/command_executer.py utils/command_executer.py",
10 "//depot2/gcctools/chromeos/v14/utils/email_sender.py utils/email_sender.py",
11 "//depot2/gcctools/chromeos/v14/utils/file_utils.py utils/file_utils.py",
12 "//depot2/gcctools/chromeos/v14/utils/logger.py utils/logger.py",
13 "//depot2/gcctools/chromeos/v14/utils/misc.py utils/misc.py",
14 "//depot2/gcctools/chromeos/v14/utils/misc_test.py utils/misc_test.py",
15 "//depot2/gcctools/chromeos/v14/utils/stats.py utils/stats.py",
16 "//depot2/gcctools/chromeos/v14/utils/tabulator.py utils/tabulator.py",
[all …]
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dutils_test.py23 from tensorflow.contrib.layers.python.layers import utils
37 value = utils.constant_value(v)
43 value = utils.constant_value(c)
52 value = utils.constant_value(x)
61 value = utils.constant_value(p)
74 o = utils.static_cond(v, fn1, fn2)
82 o = utils.static_cond(v, fn1, fn2)
91 o = utils.static_cond(v, fn1, fn2)
101 o = utils.static_cond(v, fn1, fn2)
113 o = utils.smart_cond(constant_op.constant(v), fn1, fn2)
[all …]
/external/autotest/client/tests/dbt2/
Ddbt2.py2 from autotest_lib.client.bin import test, utils
17 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
18 utils.extract_tarball_to_dir(tarball, self.srcdir)
24 utils.system('cp -pR ' + self.srcdir + ' ' + self.srcdir + '.mysql')
26 utils.configure('--with-mysql=%s/deps/mysql/mysql' % self.autodir)
27 utils.make()
32 utils.system('cp -pR ' + self.srcdir + ' ' + self.srcdir + '.pgsql')
34 utils.configure('--with-postgresql=%s/deps/pgsql/pgsql' % self.autodir)
35 utils.make()
39 utils.system('ln -s %s %s' %
[all …]
/external/autotest/site_utils/rpm_control_system/
Drpm_integration_test.py7 from autotest_lib.site_utils.rpm_control_system import utils
18 info_1 = utils.PowerUnitInfo(
21 powerunit_type=utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
24 info_2 = utils.PowerUnitInfo(
27 powerunit_type=utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
30 info_3 = utils.PowerUnitInfo(
33 powerunit_type=utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
45 info_1 = utils.PowerUnitInfo(
48 powerunit_type=utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
51 info_2 = utils.PowerUnitInfo(
[all …]
Dutils_unittest.py13 import utils
40 utils.load_servo_interface_mapping('fake_file.csv'), expect)
46 self.mox.StubOutWithMock(utils, 'load_servo_interface_mapping')
52 utils.load_servo_interface_mapping('fake_file').AndReturn(
58 result = utils.reload_servo_interface_mapping_if_necessary(
79 p1 = utils.PowerUnitInfo(
80 'host1', utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
82 p2 = utils.PowerUnitInfo(
83 'host2', utils.PowerUnitInfo.POWERUNIT_TYPES.RPM,
85 p3 = utils.PowerUnitInfo(
[all …]
/external/v8/src/js/
Dprologue.js5 (function(global, utils, extrasUtils) { argument
161 function PostNatives(utils) { argument
197 utils.PostNatives = UNDEFINED;
198 utils.ImportFromExperimental = UNDEFINED;
202 function PostExperimentals(utils) { argument
212 utils.Export = UNDEFINED;
213 utils.PostDebug = UNDEFINED;
214 utils.PostExperimentals = UNDEFINED;
219 function PostDebug(utils) { argument
226 utils.Export = UNDEFINED;
[all …]
/external/autotest/client/tests/sysbench/
Dsysbench.py2 from autotest_lib.client.bin import test, utils
15 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
16 utils.extract_tarball_to_dir(tarball, self.srcdir)
25 utils.system(
28 utils.make('-j %d' % utils.count_cpus())
32 num_threads = utils.count_cpus(), max_time = 60, \
36 ld_path = utils.prepend_path(plib,
37 utils.environ('LD_LIBRARY_PATH'))
38 ld_path = utils.prepend_path(mlib, ld_path)
48 utils.system(self.sudo + '/bin/true')
[all …]
/external/autotest/server/cros/servo/
Dpd_device.py152 self.utils = pd_console.PDConsoleUtils(console)
163 state = self.utils.get_pd_state(self.port)
164 return bool(state == self.utils.SRC_CONNECT)
171 state = self.utils.get_pd_state(self.port)
172 return bool(state == self.utils.SNK_CONNECT)
179 state = self.utils.get_pd_state(self.port)
180 return bool(state == self.utils.SNK_CONNECT or
181 state == self.utils.SRC_CONNECT)
188 state = self.utils.get_pd_state(self.port)
189 return bool(state == self.utils.SRC_DISC or
[all …]
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/
D__init__.py21 from tensorflow.python.keras._impl.keras.utils.data_utils import GeneratorEnqueuer
22 from tensorflow.python.keras._impl.keras.utils.data_utils import get_file
23 from tensorflow.python.keras._impl.keras.utils.data_utils import OrderedEnqueuer
24 from tensorflow.python.keras._impl.keras.utils.data_utils import Sequence
25 from tensorflow.python.keras._impl.keras.utils.generic_utils import custom_object_scope
26 from tensorflow.python.keras._impl.keras.utils.generic_utils import CustomObjectScope
27 from tensorflow.python.keras._impl.keras.utils.generic_utils import deserialize_keras_object
28 from tensorflow.python.keras._impl.keras.utils.generic_utils import get_custom_objects
29 from tensorflow.python.keras._impl.keras.utils.generic_utils import Progbar
30 from tensorflow.python.keras._impl.keras.utils.generic_utils import serialize_keras_object
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_utils.py2 from email import utils
20 self.assertEqual(utils.format_datetime(self.naive_dt),
24 self.assertEqual(utils.format_datetime(self.aware_dt),
30 self.assertEqual(utils.format_datetime(utc_dt, usegmt=True),
35 utils.format_datetime(self.naive_dt, usegmt=True)
39 utils.format_datetime(self.aware_dt, usegmt=True)
43 utils.parsedate_to_datetime(self.datestring + self.offsetstring),
48 utils.parsedate_to_datetime(self.datestring + ' -0000'),
56 t = utils.localtime()
61 t = utils.localtime()
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
D__init__.py21 from tensorflow.python.keras._impl.keras.utils.data_utils import GeneratorEnqueuer
22 from tensorflow.python.keras._impl.keras.utils.data_utils import get_file
23 from tensorflow.python.keras._impl.keras.utils.data_utils import Sequence
24 from tensorflow.python.keras._impl.keras.utils.data_utils import SequenceEnqueuer
25 from tensorflow.python.keras._impl.keras.utils.generic_utils import custom_object_scope
26 from tensorflow.python.keras._impl.keras.utils.generic_utils import CustomObjectScope
27 from tensorflow.python.keras._impl.keras.utils.generic_utils import deserialize_keras_object
28 from tensorflow.python.keras._impl.keras.utils.generic_utils import get_custom_objects
29 from tensorflow.python.keras._impl.keras.utils.generic_utils import Progbar
30 from tensorflow.python.keras._impl.keras.utils.generic_utils import serialize_keras_object
[all …]
/external/autotest/client/profilers/oprofile/
Doprofile.py13 from autotest_lib.client.bin import utils, profiler
36 self.tarball = utils.unmap_url(self.bindir, tarball,
38 utils.extract_tarball_to_dir(self.tarball, self.srcdir)
42 utils.system('patch -p1 < %s' % patch)
43 utils.configure('--with-kernel-support --prefix=' + \
45 utils.make('-j %d' % utils.count_cpus())
46 utils.make('install')
71 utils.system(self.opcontrol + setup)
102 self.vmlinux = utils.get_vmlinux()
124 utils.system(self.opcontrol + ' --shutdown')
[all …]
/external/autotest/client/tests/cpu_hotplug/
Dcpu_hotplug.py2 from autotest_lib.client.bin import test, utils
10 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
11 utils.extract_tarball_to_dir(tarball, self.srcdir)
16 if utils.running_config():
17 utils.check_for_kernel_feature('HOTPLUG_CPU')
20 if utils.count_cpus() == 1:
25 utils.system('dmesg -c > /dev/null')
26 for cpu in utils.cpu_online_map():
28 utils.system('echo 0 > /sys/devices/system/cpu/cpu%s/online' % cpu, 1)
29 utils.system('dmesg -c')
[all …]
/external/tensorflow/tensorflow/contrib/keras/api/keras/utils/
D__init__.py21 from tensorflow.python.keras._impl.keras.utils.data_utils import GeneratorEnqueuer
22 from tensorflow.python.keras._impl.keras.utils.data_utils import get_file
23 from tensorflow.python.keras._impl.keras.utils.data_utils import Sequence
24 from tensorflow.python.keras._impl.keras.utils.data_utils import SequenceEnqueuer
25 from tensorflow.python.keras._impl.keras.utils.generic_utils import custom_object_scope
26 from tensorflow.python.keras._impl.keras.utils.generic_utils import CustomObjectScope
27 from tensorflow.python.keras._impl.keras.utils.generic_utils import deserialize_keras_object
28 from tensorflow.python.keras._impl.keras.utils.generic_utils import get_custom_objects
29 from tensorflow.python.keras._impl.keras.utils.generic_utils import Progbar
30 from tensorflow.python.keras._impl.keras.utils.generic_utils import serialize_keras_object
[all …]
/external/autotest/client/tests/libhugetlbfs/
Dlibhugetlbfs.py2 from autotest_lib.client.bin import utils, test
13 utils.check_kernel_ver("2.6.16")
18 utils.write_one_line('/proc/sys/vm/nr_hugepages',
20 nr_hugepages = utils.read_one_line('/proc/sys/vm/nr_hugepages')
29 if not utils.file_contains_pattern('/proc/mounts', 'hugetlbfs'):
33 utils.system('mount -t hugetlbfs none %s' % dir)
39 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
40 utils.extract_tarball_to_dir(tarball, self.srcdir)
43 utils.system('patch -p1 < ../elflink.patch')
47 utils.make()
[all …]
/external/autotest/client/cros/multimedia/
Dsystem_facade_native.py9 from autotest_lib.client.bin import utils
52 original_mode = utils.read_one_line(governor_path)
53 utils.open_write_close(governor_path, mode)
71 return utils.get_cpu_usage()
80 return utils.compute_active_cpu_time(cpu_usage_start,
86 return utils.get_mem_total()
91 return utils.get_mem_free()
103 return utils.get_mem_free_plus_buffers_and_cached()
108 return utils.get_ec_temperatures()
114 return utils.get_current_temperature_max()
[all …]
/external/autotest/client/bin/
Dutils_unittest.py8 from autotest_lib.client.bin import utils
16 utils._open_file = self.fake_open
25 self.assertEquals("nvme0n1p3", utils.concat_partition("nvme0n1", 3))
26 self.assertEquals("mmcblk1p3", utils.concat_partition("mmcblk1", 3))
27 self.assertEquals("sda3", utils.concat_partition("sda", 3))
36 usage = utils.get_cpu_usage()
52 usage = utils.get_cpu_usage()
91 usage = utils.compute_active_cpu_time(start_usage, end_usage)
119 usage = utils.compute_active_cpu_time(start_usage, end_usage)
127 self.assertAlmostEqual(utils.get_mem_total(), 2000)
[all …]
/external/autotest/client/site_tests/autoupdate_DisconnectReconnectNetwork/
Dautoupdate_DisconnectReconnectNetwork.py11 from autotest_lib.client.common_lib import utils
27 utils.run('ifconfig eth0 up', ignore_status=True)
28 utils.run('ifconfig eth1 up', ignore_status=True)
29 utils.start_service('recover_duts', ignore_status=True)
34 utils.poll_for_condition(lambda: utils.ping(self._update_server,
46 utils.stop_service('recover_duts', ignore_status=True)
49 utils.run('ifconfig eth0 down')
50 utils.run('ifconfig eth1 down')
53 result = utils.ping(self._update_server, deadline=5, timeout=5)
58 percent_before = utils.run('update_engine_client --status').stdout
[all …]
/external/autotest/client/tests/linus_stress/
Dlinus_stress.py2 from autotest_lib.client.bin import test, utils
11 utils.system('cp linus_stress.c src/')
13 utils.system(utils.get_cc() + ' linus_stress.c -D_POSIX_C_SOURCE=200112 -o linus_stress')
21 utils.write_one_line('/proc/sys/vm/dirty_ratio', '4')
22 utils.write_one_line('/proc/sys/vm/dirty_background_ratio', '2')
25 args = "%d" % (utils.memtotal() / 32)
32 utils.system(cmd + ' ' + args)
40 dirty_ratio = utils.read_one_line('/proc/sys/vm/dirty_ratio')
41 dirty_background_ratio = utils.read_one_line('/proc/sys/vm/dirty_background_ratio')
45 utils.write_one_line('/proc/sys/vm/dirty_ratio', dirty_ratio)
[all …]

12345678910>>...129