/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
run_config_test.py | 35 patch = test.mock.patch variable 39 with patch.dict("os.environ", {"TF_CONFIG": tf_config_str}): 71 with patch.dict("os.environ", {"TF_CONFIG": json.dumps(tf_config)}): 95 with patch.dict("os.environ", {"TF_CONFIG": json.dumps(tf_config)}): 110 with patch.dict("os.environ", {"TF_CONFIG": json.dumps(tf_config)}): 122 with patch.dict("os.environ", {"TF_CONFIG": json.dumps(tf_config)}): 137 with patch.dict( 155 with patch.dict( 177 with patch.dict("os.environ", {"TF_CONFIG": json.dumps(tf_config)}) [all...] |
/external/tensorflow/tensorflow/security/advisory/ |
tfsa-2018-001.md | 27 encouraged to apply this patch. 29 Additionally, this patch has already been integrated into TensorFlow 1.7.0 and
|
tfsa-2018-002.md | 26 encouraged to apply this patch. 28 Additionally, this patch has already been integrated into TensorFlow 1.6.0 and
|
/external/v8/src/ |
version.h | 52 friend void SetVersion(int major, int minor, int build, int patch,
|
/external/autotest/client/common_lib/cros/ |
gs_cache_client_unittest.py | 35 with mock.patch('autotest_lib.client.common_lib.utils.run') as m: 44 with mock.patch('requests.get') as m: 53 with mock.patch('requests.get') as m: 61 @mock.patch('time.sleep') 62 @mock.patch('time.time', side_effect=itertools.cycle([0, 400])) 67 with mock.patch('autotest_lib.client.common_lib.utils.run') as m: 86 @mock.patch('time.sleep') 87 @mock.patch('time.time', side_effect=itertools.cycle([0, 400])) 90 with mock.patch('requests.get') as m:
|
/external/chromium-trace/catapult/devil/devil/android/ |
logcat_monitor_test.py | 65 @mock.patch('time.sleep', mock.Mock()) 80 @mock.patch('time.sleep', mock.Mock()) 91 @mock.patch('time.sleep', mock.Mock()) 116 @mock.patch('time.sleep', mock.Mock()) 140 @mock.patch('time.sleep', mock.Mock()) 152 @mock.patch('time.sleep', mock.Mock()) 167 @mock.patch('time.sleep', mock.Mock()) 182 @mock.patch('time.sleep', mock.Mock()) 200 @mock.patch('time.sleep', mock.Mock())
|
fastboot_utils_test.py | 108 @mock.patch('time.sleep', mock.Mock()) 214 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 215 with mock.patch('os.listdir', return_value=_VALID_FILES): 220 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 221 with mock.patch('os.listdir', return_value=_INVALID_FILES): 225 with mock.patch('os.listdir', return_value=[_BOARD + '.zip']): 230 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 231 with mock.patch('os.listdir', return_value=['android-info.txt']): 236 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 237 with mock.patch('os.listdir', return_value=_INVALID_FILES) [all...] |
/external/python/oauth2client/tests/contrib/ |
test_keyring_storage.py | 64 with mock.patch.object(keyring, 'get_password', 68 with mock.patch(class_name) as MockCreds: 82 with mock.patch.object(keyring, 'set_password', 98 with mock.patch.object(keyring, 'set_password', 105 with mock.patch.object(keyring, 'get_password', 114 with mock.patch.object(keyring, 'get_password', 137 # we patch twice. 138 with mock.patch.object(keyring, 'get_password', 141 with mock.patch.object(keyring, 'set_password', 153 with mock.patch.object(keyring, 'get_password' [all...] |
/external/python/apitools/apitools/scripts/ |
oauth2l_test.py | 82 with mock.patch.object(oauth2l, '_FetchCredentials', 90 with mock.patch.object(oauth2l, '_FetchCredentials', 99 with mock.patch.object(oauth2l, '_FetchCredentials', 108 with mock.patch.object(oauth2l, '_FetchCredentials', 122 with mock.patch.object(oauth2l, '_FetchCredentials', 136 with mock.patch.object(oauth2l, '_FetchCredentials', 171 with mock.patch.object(apitools_base, 'GetCredentials', 174 with mock.patch.object(oauth2l, '_GetTokenScopes', 188 with mock.patch.object(apitools_base, 'GetCredentials', 191 with mock.patch.object(oauth2l, '_ValidateToken' [all...] |
/external/aac/libSBRdec/src/ |
lpp_tran.cpp | 283 int patch; local 320 highband (because the last patch would be too short). Possible 346 /* init bwIndex for each patch */ 704 patch = 0; 706 while (patch < pSettings->noOfPatches) { /* inner loop over every patch */ 708 int hiBand = loBand + patchParam[patch].targetBandOffs; 710 if (loBand < patchParam[patch].sourceStartBand || 711 loBand >= patchParam[patch].sourceStopBand 714 /* Lowband not in current patch - proceed * 1325 int i, patch; local [all...] |
/bootable/recovery/tests/component/ |
imgdiff_test.cpp | 38 // Sanity check for the given imgdiff patch header. 39 static void verify_patch_header(const std::string& patch, size_t* num_normal, size_t* num_raw, 41 const size_t size = patch.size(); 42 const char* data = patch.data(); 75 FAIL() << "Invalid patch type: " << type; 84 static void GenerateTarget(const std::string& src, const std::string& patch, std::string* patched) { 87 reinterpret_cast<const unsigned char*>(patch.data()), patch.size(), 94 static void verify_patched_image(const std::string& src, const std::string& patch, 97 GenerateTarget(src, patch, &patched) 134 std::string patch; local 183 std::string patch; local 237 std::string patch; local 285 std::string patch; local 333 std::string patch; local 372 std::string patch; local 415 std::string patch; local 479 std::string patch; local 516 std::string patch; local 552 std::string patch; local 588 std::string patch; local 627 std::string patch; local 670 std::string patch; local [all...] |
/art/dex2oat/linker/arm/ |
relative_patcher_thumb2.h | 42 const LinkerPatch& patch, 46 const LinkerPatch& patch,
|
/art/dex2oat/linker/ |
multi_oat_relative_patcher.cc | 28 void MultiOatRelativePatcher::ThunkProvider::GetThunkCode(const LinkerPatch& patch, 31 *code = storage_->GetThunkCode(patch, debug_name);
|
multi_oat_relative_patcher.h | 109 const LinkerPatch& patch, 114 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); 118 const LinkerPatch& patch, 121 relative_patcher_->PatchBakerReadBarrierBranch(code, patch, patch_offset); 140 void GetThunkCode(const LinkerPatch& patch,
|
/external/bsdiff/ |
endsley_patch_writer.h | 21 // implementation of this format. See also Google's APK patch size estimator for 23 // https://github.com/googlesamples/apk-patch-size-estimator 33 // This format is easier to parse and allows the patch to be streamed, but by 39 // Create the patch writer that will write the data to the passed vector 40 // |patch|, resizing it as needed. The |patch| vector must be valid until 41 // Close() is called or this patch is destroyed. The data in |patch| will be 43 EndsleyPatchWriter(std::vector<uint8_t>* patch, 46 : patch_(patch), [all...] |
/external/mesa3d/src/glx/apple/ |
apple_glx.c | 101 int major, minor, patch; local 106 if (!XAppleDRIQueryVersion(dpy, &major, &minor, &patch))
|
/external/python/apitools/apitools/base/py/ |
http_wrapper_test.py | 24 from mock import patch 85 with patch('time.sleep', return_value=None):
|
/external/python/google-api-python-client/tests/ |
test_discovery_cache.py | 36 @mock.patch('googleapiclient.discovery_cache.file_cache.FILENAME', 53 with mock.patch('googleapiclient.discovery_cache.file_cache.datetime',
|
/external/tensorflow/tensorflow/core/util/ |
semver_test.cc | 52 uint64 major, minor, patch; local 61 // the patch version number. Let that slide. 70 ASSERT_TRUE(str_util::ConsumeLeadingDigits(&semver, &patch));
|
/external/toolchain-utils/crosperf/ |
schedv2_unittest.py | 70 @mock.patch('benchmark_run.BenchmarkRun', new=benchmark_run.MockBenchmarkRun) 101 with mock.patch( 117 @mock.patch('schedv2.BenchmarkRunCacheReader') 139 @mock.patch('schedv2.BenchmarkRunCacheReader') 154 @mock.patch('schedv2.BenchmarkRunCacheReader') 167 @mock.patch('schedv2.BenchmarkRunCacheReader') 185 with mock.patch( 203 with mock.patch(
|
/bootable/recovery/applypatch/ |
applypatch_modes.cpp | 75 PLOG(ERROR) << "Failed to read patch file \"" << patch_file << "\""; 79 Value patch(Value::Type::BLOB, std::move(patch_contents)); 90 return PatchPartition(target, source, patch, bonus.get()) ? 0 : 1; 101 "patch mode\n" 103 " --patch <patch-file>\n" 118 { "patch", required_argument, nullptr, 0 }, 128 std::string patch; local 153 } else if (option == "patch") { 154 patch = optarg [all...] |
/external/puffin/scripts/ |
test_corpus.py | 95 with tempfile.NamedTemporaryFile() as patch, \ 107 '--patch_file={}'.format(patch.name)] 114 logging.debug('Patch size is: %d', os.stat(patch.name).st_size) 117 logging.debug('Running %s on src file %s and patch %s', 118 operation, os.path.basename(src), patch.name) 123 '--patch_file={}'.format(patch.name)]
|
/external/v8/tools/node/ |
backport_node.py | 17 the Node.js checkout, increment patch level, and copy over the original 49 print ">> Apply patch." 50 patch = subprocess.Popen(["git", "diff-tree", "-p", options.commit], 52 patch.wait() 55 stdin=patch.stdout, cwd=options.node_path) 57 print ">> In another shell, please resolve patch conflicts" 64 print ">> Increment patch level." 68 patch = int(match.group(0)) 69 return str(patch + 1)
|
/external/toolchain-utils/ |
remote_gcc_build.py | 41 def GetPatchString(patch): 42 if patch: 43 return '+'.join(patch) 215 """Return a gerrit patch number given a version of manifest file.""" 223 """Up load patch to gerrit, return patch number.""" 315 patch = '' 317 patch += ' -g {0}'.format(p) 329 ' --chrome_rev=tot'.format(patch, branch_flag, chrome_version, 394 '--patch', [all...] |
/external/aac/libSBRenc/src/ |
ton_corr.cpp | 493 \brief resets the patch 503 INT xposctrl, /*!< Different patch modes. */ 511 INT patch, k, i; 544 /* First patch */ 550 patch = 0; 553 if (patch >= MAX_NUM_PATCHES) return (1); /*Number of patches to high */ 555 patchParam[patch].guardStartBand = targetStopBand; 557 patchParam[patch].targetStartBand = targetStopBand; 560 goalSb - targetStopBand; /* get the desired range of the patch */ 563 /* desired number bands are not available -> patch whole source range * [all...] |