/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
D | test_cmd.py | 6 from distutils.cmd import Command 19 self.cmd = MyCmd(dist) 23 cmd = self.cmd 24 cmd.not_string_list = ['one', 2, 'three'] 25 cmd.yes_string_list = ['one', 'two', 'three'] 26 cmd.not_string_list2 = object() 27 cmd.yes_string_list2 = 'ok' 28 cmd.ensure_string_list('yes_string_list') 29 cmd.ensure_string_list('yes_string_list2') 32 cmd.ensure_string_list, 'not_string_list') [all …]
|
D | test_build_ext.py | 53 def _fixup_command(self, cmd): argument 67 cmd.library_dirs = ['.'] 70 cmd.library_dirs = value.split(os.pathsep) 80 cmd = build_ext(dist) 81 self._fixup_command(cmd) 85 cmd.debug = sys.executable.endswith("_d.exe") 86 cmd.build_lib = self.tmp_dir 87 cmd.build_temp = self.tmp_dir 94 cmd.ensure_finalized() 95 cmd.run() [all …]
|
D | test_build_clib.py | 19 cmd = build_clib(dist) 22 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 'foo') 25 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 30 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 34 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 39 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 45 cmd.check_library_list(libs) 49 cmd = build_clib(dist) 53 cmd.libraries = [('name', {})] 54 self.assertRaises(DistutilsSetupError, cmd.get_source_files) [all …]
|
D | test_install_lib.py | 19 cmd = install_lib(dist) 21 cmd.finalize_options() 22 self.assertEqual(cmd.compile, 1) 23 self.assertEqual(cmd.optimize, 0) 26 cmd.optimize = 'foo' 27 self.assertRaises(DistutilsOptionError, cmd.finalize_options) 28 cmd.optimize = '4' 29 self.assertRaises(DistutilsOptionError, cmd.finalize_options) 31 cmd.optimize = '2' 32 cmd.finalize_options() [all …]
|
D | test_sdist.py | 90 cmd = sdist(dist) 91 cmd.dist_dir = 'dist' 94 cmd.warn = _warn 95 return dist, cmd 116 dist, cmd = self.get_cmd() 120 cmd.formats = ['zip'] 122 cmd.ensure_finalized() 123 cmd.run() 148 dist, cmd = self.get_cmd() 151 cmd.formats = ['gztar', 'tar'] [all …]
|
D | test_check.py | 17 cmd = check(dist) 18 cmd.initialize_options() 20 setattr(cmd, name, value) 21 cmd.ensure_finalized() 22 cmd.run() 23 return cmd 29 cmd = self._run() 30 self.assertEqual(cmd._warnings, 2) 38 cmd = self._run(metadata) 39 self.assertEqual(cmd._warnings, 0) [all …]
|
D | test_build.py | 17 cmd = build(dist) 18 cmd.finalize_options() 21 self.assertEqual(cmd.plat_name, get_platform()) 24 wanted = os.path.join(cmd.build_base, 'lib') 25 self.assertEqual(cmd.build_purelib, wanted) 30 plat_spec = '.%s-%s' % (cmd.plat_name, sys.version[0:3]) 32 self.assertTrue(cmd.build_platlib.endswith('-pydebug')) 34 wanted = os.path.join(cmd.build_base, 'lib' + plat_spec) 35 self.assertEqual(cmd.build_platlib, wanted) 38 self.assertEqual(cmd.build_lib, cmd.build_purelib) [all …]
|
D | test_install_data.py | 18 cmd = install_data(dist) 19 cmd.install_dir = inst = os.path.join(pkg_dir, 'inst') 30 cmd.data_files = [one, (inst2, [two])] 31 self.assertEqual(cmd.get_inputs(), [one, (inst2, [two])]) 34 cmd.ensure_finalized() 35 cmd.run() 38 self.assertEqual(len(cmd.get_outputs()), 2) 43 cmd.outfiles = [] 46 cmd.warn_dir = 1 47 cmd.ensure_finalized() [all …]
|
D | test_register.py | 97 cmd = self._get_cmd() 114 cmd.run() 136 cmd.show_response = 1 137 cmd.run() 150 cmd = self._get_cmd() 151 cmd._set_config() 152 cmd.finalize_options() 153 cmd.send_metadata() 157 self.assertEqual(cmd.distribution.password, 'password') 161 cmd = self._get_cmd() [all …]
|
D | test_install_scripts.py | 26 cmd = install_scripts(dist) 27 self.assertTrue(not cmd.force) 28 self.assertTrue(not cmd.skip_build) 29 self.assertTrue(cmd.build_dir is None) 30 self.assertTrue(cmd.install_dir is None) 32 cmd.finalize_options() 34 self.assertTrue(cmd.force) 35 self.assertTrue(cmd.skip_build) 36 self.assertEqual(cmd.build_dir, "/foo/bar") 37 self.assertEqual(cmd.install_dir, "/splat/funk") [all …]
|
D | test_install.py | 31 cmd = install(dist) 32 cmd.home = destination 33 cmd.ensure_finalized() 35 self.assertEqual(cmd.install_base, destination) 36 self.assertEqual(cmd.install_platbase, destination) 44 check_path(cmd.install_lib, libdir) 45 check_path(cmd.install_platlib, libdir) 46 check_path(cmd.install_purelib, libdir) 47 check_path(cmd.install_headers, 49 check_path(cmd.install_scripts, os.path.join(destination, "bin")) [all …]
|
D | test_bdist_dumb.py | 65 cmd = bdist_dumb(dist) 69 cmd.format = 'zip' 71 cmd.ensure_finalized() 72 cmd.run() 76 base = "%s.%s" % (dist.get_fullname(), cmd.plat_name) 89 cmd = bdist_dumb(dist) 90 self.assertEqual(cmd.bdist_dir, None) 91 cmd.finalize_options() 94 base = cmd.get_finalized_command('bdist').bdist_base 95 self.assertEqual(cmd.bdist_dir, os.path.join(base, 'dumb')) [all …]
|
D | test_config_cmd.py | 44 cmd = config(dist) 47 match = cmd.search_cpp(pattern='xxx', body='// xxx') 50 match = cmd.search_cpp(pattern='_configtest', body='// xxx') 57 cmd = config(dist) 58 cmd.include_dirs = 'one%stwo' % os.pathsep 59 cmd.libraries = 'one' 60 cmd.library_dirs = 'three%sfour' % os.pathsep 61 cmd.ensure_finalized() 63 self.assertEqual(cmd.include_dirs, ['one', 'two']) 64 self.assertEqual(cmd.libraries, ['one']) [all …]
|
D | test_build_scripts.py | 19 cmd = self.get_build_scripts_cmd("/foo/bar", []) 20 self.assertTrue(not cmd.force) 21 self.assertTrue(cmd.build_dir is None) 23 cmd.finalize_options() 25 self.assertTrue(cmd.force) 26 self.assertEqual(cmd.build_dir, "/foo/bar") 33 cmd = self.get_build_scripts_cmd(target, 36 cmd.finalize_options() 37 cmd.run() 86 cmd = self.get_build_scripts_cmd(target, [all …]
|
D | test_clean.py | 17 cmd = clean(dist) 26 setattr(cmd, name, path) 33 cmd.all = 1 34 cmd.ensure_finalized() 35 cmd.run() 43 cmd.all = 1 44 cmd.ensure_finalized() 45 cmd.run()
|
D | test_upload.py | 77 cmd = upload(dist) 78 cmd.finalize_options() 82 self.assertEqual(getattr(cmd, attr), waited) 90 cmd = upload(dist) 91 cmd.finalize_options() 92 self.assertEqual(cmd.password, None) 97 cmd = upload(dist) 98 cmd.finalize_options() 99 self.assertEqual(cmd.password, 'xxx') 111 cmd = upload(dist) [all …]
|
D | test_bdist_rpm.py | 71 cmd = bdist_rpm(dist) 72 cmd.fix_python = True 75 cmd.quiet = 1 76 cmd.ensure_finalized() 77 cmd.run() 112 cmd = bdist_rpm(dist) 113 cmd.fix_python = True 115 cmd.quiet = 1 116 cmd.ensure_finalized() 117 cmd.run()
|
D | test_build_py.py | 46 cmd = build_py(dist) 47 cmd.compile = 1 48 cmd.ensure_finalized() 49 self.assertEqual(cmd.package_data, dist.package_data) 51 cmd.run() 57 self.assertEqual(len(cmd.get_outputs()), 3) 105 cmd = build_py(dist) 106 cmd.compile = 1 107 cmd.optimize = 1 112 cmd.byte_compile([])
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | pipes.py | 110 def append(self, cmd, kind): argument 112 if type(cmd) is not type(''): 124 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd): 127 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd): 130 self.steps.append((cmd, kind)) 132 def prepend(self, cmd, kind): argument 134 if type(cmd) is not type(''): 146 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd): 149 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd): 152 self.steps.insert(0, (cmd, kind)) [all …]
|
D | popen2.py | 40 def __init__(self, cmd, capturestderr=False, bufsize=-1): argument 51 self.cmd = cmd 63 self._run_child(cmd) 82 def _run_child(self, cmd): argument 83 if isinstance(cmd, basestring): 84 cmd = ['/bin/sh', '-c', cmd] 87 os.execvp(cmd[0], cmd) 119 def __init__(self, cmd, bufsize=-1): argument 121 self.cmd = cmd 130 self._run_child(cmd) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | spawn.py | 17 def spawn(cmd, search_path=1, verbose=0, dry_run=0): argument 34 _spawn_posix(cmd, search_path, dry_run=dry_run) 36 _spawn_nt(cmd, search_path, dry_run=dry_run) 38 _spawn_os2(cmd, search_path, dry_run=dry_run) 59 def _spawn_nt(cmd, search_path=1, verbose=0, dry_run=0): argument 60 executable = cmd[0] 61 cmd = _nt_quote_args(cmd) 65 log.info(' '.join([executable] + cmd[1:])) 69 rc = os.spawnv(os.P_WAIT, executable, cmd) 73 "command '%s' failed: %s" % (cmd[0], exc[-1]) [all …]
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 70 uint8_t cmd; member 88 static int setType(struct ConfigCmd *cmd, char *sensor) in setType() argument 91 cmd->sensorType = SENS_TYPE_ACCEL; in setType() 93 cmd->sensorType = SENS_TYPE_GYRO; in setType() 95 cmd->sensorType = SENS_TYPE_MAG; in setType() 97 cmd->sensorType = SENS_TYPE_GYRO; in setType() 99 cmd->sensorType = SENS_TYPE_MAG; in setType() 101 cmd->sensorType = SENS_TYPE_ALS; in setType() 103 cmd->sensorType = SENS_TYPE_PROX; in setType() 105 cmd->sensorType = SENS_TYPE_BARO; in setType() [all …]
|
/device/generic/goldfish/keymaster/ |
D | trusty_keymaster_ipc.cpp | 50 int trusty_keymaster_call(uint32_t cmd, void* in, uint32_t in_size, uint8_t* out, in trusty_keymaster_call() argument 56 msg->cmd = cmd; in trusty_keymaster_call() 64 (int)cmd, KEYMASTER_PORT, strerror(errno)); in trusty_keymaster_call() 69 if (in_size == 157 && cmd == KM_FINISH_OPERATION) { in trusty_keymaster_call() 78 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, strerror(errno)); in trusty_keymaster_call() 84 ALOGE("failed to retrieve response length for cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, in trusty_keymaster_call() 91 ALOGE("failed to retrieve response for cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, in trusty_keymaster_call()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
D | rcslib.py | 101 cmd = "rcs -l%s %s" % (rev, name) 102 return self._system(cmd) 107 cmd = "rcs -u%s %s" % (rev, name) 108 return self._system(cmd) 124 cmd = 'co %s%s %s %s' % (lockflag, rev, otherflags, name) 125 return self._system(cmd) 150 cmd = 'ci %s%s -t%s %s %s' % \ 154 cmd = 'ci %s%s -m"%s" %s %s' % \ 156 return self._system(cmd) 240 def _open(self, name_rev, cmd = 'co -p', rflag = '-r'): argument [all …]
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 569 struct MsgCmd *cmd; in setLeftyMode() local 576 cmd = (struct MsgCmd *)malloc(sizeof(struct MsgCmd) + sizeof(bool)); in setLeftyMode() 578 if (cmd) { in setLeftyMode() 579 cmd->evtType = EVT_APP_FROM_HOST; in setLeftyMode() 580 cmd->msg.appId = APP_ID_MAKE(APP_ID_VENDOR_GOOGLE, APP_ID_APP_GAZE_DETECT); in setLeftyMode() 581 cmd->msg.dataLen = sizeof(bool); in setLeftyMode() 582 memcpy((bool *)(cmd+1), &enable, sizeof(bool)); in setLeftyMode() 584 ret = sendCmd(cmd, sizeof(*cmd) + sizeof(bool)); in setLeftyMode() 585 if (ret == sizeof(*cmd) + sizeof(bool)) in setLeftyMode() 592 cmd->msg.appId = APP_ID_MAKE(APP_ID_VENDOR_GOOGLE, APP_ID_APP_UNGAZE_DETECT); in setLeftyMode() [all …]
|