/external/puffin/src/include/puffin/ |
puffpatch.h | 16 // Applies the puffin patch to deflate stream |src| to create deflate stream 18 // apply the patch. The input streams are of type |shared_ptr| because 25 // |patch| IN The input patch. 26 // |patch_length| IN The length of the patch. 30 const uint8_t* patch,
|
puffdiff.h | 18 // Performs a diff operation between input deflate streams and creates a patch 29 // |puffin_patch| OUT The patch that later can be used in |PuffPatch|. 36 Buffer* patch); 46 Buffer* patch); 49 // patch data. 55 Buffer* patch);
|
/external/python/setuptools/pkg_resources/tests/ |
test_markers.py | 6 @mock.patch('platform.python_version', return_value='2.7.10')
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
cudnn_version.h | 29 CudnnVersion(int major, int minor, int patch) 30 : major_version(major), minor_version(minor), patch_level(patch) {}
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/gdiff/ |
GdiffTest.java | 31 * The intention is that a bad patch will *always* throw an IOException, either via explicit test 46 byte[] patch = new byte[] { 61 // Create "patch" file - this is just a stream 62 ByteArrayInputStream patchStream = new ByteArrayInputStream(patch); 67 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); 89 byte[] patch = new byte[] { 110 // Create "patch" file - this is just a stream 111 ByteArrayInputStream patchStream = new ByteArrayInputStream(patch); 116 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); 132 // First 5 bytes for copying into each patch [all...] |
/external/autotest/venv/lucifer/ |
autotest_unittest.py | 48 with mock.patch('importlib.import_module', autospec=True) \ 50 mock.patch.object(autotest, '_setup_done', True): 56 """Test load() without patch.""" 57 with mock.patch.object(autotest, '_setup_done', False): 67 with mock.patch('importlib.import_module', autospec=True) \ 69 mock.patch.object(autotest, '_setup_done', True): 79 with mock.patch('importlib.import_module', autospec=True) \ 81 mock.patch.object(autotest, '_setup_done', True):
|
/frameworks/av/services/audioflinger/ |
PatchPanel.cpp | 63 /* Connect a patch between several source and sink ports */ 64 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch, 68 return mPatchPanel.createAudioPatch(patch, handle); 71 /* Disconnect a patch */ 111 /* Connect a patch between several source and sink ports */ 112 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch, 115 if (handle == NULL || patch == NULL) { 119 __func__, patch->num_sources, patch->num_sinks, *handle); 123 if (!audio_patch_is_valid(patch) || (patch->num_sinks == 0 && patch->num_sources != 2)) 638 const struct audio_patch &patch = removedPatch.mAudioPatch; local 715 const Patch &patch = patch_iter->second; local [all...] |
/external/tensorflow/tensorflow/examples/get_started/regression/ |
test.py | 69 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset}) 70 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 71 @test.mock.patch.dict(linear_regression_categorical.__dict__, {"STEPS": 1}) 75 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset}) 76 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 77 @test.mock.patch.dict(dnn_regression.__dict__, {"STEPS": 1}) 81 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset}) 82 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)}) 83 @test.mock.patch.dict(custom_regression.__dict__, {"STEPS": 1})
|
/external/python/oauth2client/tests/ |
test_tools.py | 74 @mock.patch.object(sys, 'argv', ['ignored', '--noauth_local_webserver']) 75 @mock.patch('oauth2client.tools.logging') 76 @mock.patch('oauth2client.tools.input') 90 @mock.patch('oauth2client.tools.logging') 91 @mock.patch('oauth2client.tools.input') 105 @mock.patch('oauth2client.tools.logging') 106 @mock.patch('oauth2client.tools.input') 119 @mock.patch('oauth2client.tools.logging') 120 @mock.patch('oauth2client.tools.ClientRedirectServer') 121 @mock.patch('webbrowser.open' [all...] |
/external/python/cpython3/Lib/test/ |
test_script_helper.py | 38 @mock.patch('subprocess.Popen') 40 with mock.patch.object(script_helper, 56 @mock.patch('subprocess.Popen') 59 with mock.patch.object(script_helper, 85 @mock.patch('subprocess.check_call') 87 with mock.patch.dict(os.environ): 94 @mock.patch('subprocess.check_call') 96 with mock.patch.dict(os.environ): 103 @mock.patch('subprocess.check_call') 105 with mock.patch.dict(os.environ) [all...] |
/development/python-packages/adb/ |
test.py | 35 @mock.patch('adb.device.get_devices') 41 @mock.patch('adb.device.get_devices') 48 @mock.patch('adb.device.get_devices') 55 @mock.patch('adb.device.get_devices') 63 @mock.patch('adb.device.get_devices') 69 @mock.patch('adb.device.get_devices')
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_linux_s390.cc | 125 unsigned int major, minor, patch = 0; local 137 patch = internal_simple_strtoll(ptr+1, &ptr, 10); 143 if (minor == 2 && patch >= 79) 146 if (minor == 12 && patch >= 58) 152 if (minor == 1 && patch >= 21) 155 if (minor == 4 && patch >= 6)
|
/external/freetype/ |
autogen.sh | 35 # tricky: some version numbers don't include a patch 37 patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/g'` 38 if test "$patch" = "$1"; then 39 patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\-p\([0-9][0-9]*\).*/\1/g'` 40 # if there isn't any patch number, default to 0 41 if test "$patch" = "$1"; then 42 patch=0 45 echo $patch 144 # We set freetype-patch to an empty value if it is zero.
|
/external/bsdiff/ |
diff_encoder.h | 17 // produce an invalid or incomplete bsdiff patch, since it has checks in place 23 // the path writer used. The |patch| will be initialized when calling Init(). 24 DiffEncoder(PatchWriterInterface* patch, 29 : patch_(patch), 35 // Initialize the diff encoder and the underlying patch. 38 // Add a new control triplet entry to the patch. The |entry.diff_size| bytes 40 // will be computed and added to the corresponding streams in the patch. 45 // Finalize the patch writing process and close the underlying patch writer. 49 // Pointer to the patch we are writing to [all...] |
patch_writer_factory.cc | 35 std::vector<uint8_t>* patch, 39 new EndsleyPatchWriter(patch, type, brotli_quality)); 43 std::vector<uint8_t>* patch) { 45 new EndsleyPatchWriter(patch, CompressorType::kNoCompression, 0));
|
/external/bsdiff/include/bsdiff/ |
bsdiff.h | 17 // Generate bsdiff patch from |old_buf| to |new_buf|, save the patch file to 34 PatchWriterInterface* patch, 51 PatchWriterInterface* patch,
|
/external/clang/ |
clang-version-inc.py | 8 version_string = '%s.%s.%s' % (version.major, version.minor, version.patch) 19 '@CLANG_VERSION_PATCHLEVEL@': version.patch,
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
ConscryptTest.java | 42 assertTrue("Patch version: " + version.patch(), 0 <= version.patch());
|
/external/python/oauth2client/tests/contrib/ |
test_locked_file.py | 82 @mock.patch('oauth2client.contrib.locked_file.open', create=True) 94 @mock.patch('oauth2client.contrib.locked_file.open', create=True) 104 @mock.patch('oauth2client.contrib.locked_file.open', create=True) 108 with mock.patch('os.open') as mock_os_open: 113 @mock.patch('oauth2client.contrib.locked_file.open', create=True) 114 @mock.patch('oauth2client.contrib.locked_file.logger') 115 @mock.patch('time.time') 121 with mock.patch('os.open') as mock_os_open: 128 @mock.patch('oauth2client.contrib.locked_file.open', create=True) 129 @mock.patch('oauth2client.contrib.locked_file.logger' [all...] |
/external/python/mock/mock/tests/ |
testpatch.py | 15 NonCallableMock, CallableMixin, patch, sentinel, 16 MagicMock, Mock, NonCallableMagicMock, patch, 103 @patch.object(Something, 'attribute', sentinel.Patched) 109 "patch not restored") 116 @patch.object(Something, 'attribute', None) 122 "patch not restored") 130 @patch.object(Something, 'attribute', sentinel.Patched) 131 @patch.object(Something, 'next_attribute', sentinel.Patched2) 140 "patch not restored") 142 "patch not restored" [all...] |
/external/python/cpython3/Lib/unittest/test/testmock/ |
testwith.py | 5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call 17 with patch('%s.something' % __name__, sentinel.Something2): 24 with patch('%s.something' % __name__, sentinel.Something2): 30 self.fail("patch swallowed exception") 35 with patch('%s.something' % __name__) as mock_something: 46 with patch.object(Foo, 'something'): 53 with patch('%s.something' % __name__) as mock_something, patch('%s.something_else' % __name__) as mock_something_else: 63 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 65 self.assertEqual(mock_something, sentinel.Patched, "wrong patch") [all...] |
testpatch.py | 15 MagicMock, Mock, NonCallableMagicMock, patch, _patch, 99 @patch.object(Something, 'attribute', sentinel.Patched) 105 "patch not restored") 112 @patch.object(Something, 'attribute', None) 118 "patch not restored") 126 @patch.object(Something, 'attribute', sentinel.Patched) 127 @patch.object(Something, 'next_attribute', sentinel.Patched2) 136 "patch not restored") 138 "patch not restored") 144 @patch('%s.something' % __name__, sentinel.Something2 [all...] |
/art/dex2oat/linker/ |
relative_patcher_test.h | 172 for (const LinkerPatch& patch : compiled_method->GetPatches()) { 173 if (patch.GetType() == LinkerPatch::Type::kCallRelative) { 174 auto result = method_offset_map_.FindMethodOffset(patch.TargetMethod()); 177 patcher_->PatchCall(&patched_code_, patch.LiteralOffset(), 178 offset + patch.LiteralOffset(), target_offset); 179 } else if (patch.GetType() == LinkerPatch::Type::kStringBssEntry) { 181 bss_begin_ + string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); 183 patch, 184 offset + patch.LiteralOffset(), 186 } else if (patch.GetType() == LinkerPatch::Type::kStringRelative) [all...] |
/external/mesa3d/src/mapi/ |
entry_x86_tls.h | 87 char patch[8] = { local 93 *((unsigned long *) (patch + 2)) = x86_current_tls(); 96 memcpy(entry, patch, sizeof(patch));
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/ |
Compiler.h | 42 #define LLVM_GNUC_PREREQ(maj, min, patch) \ 44 ((maj) << 20) + ((min) << 10) + (patch)) 46 #define LLVM_GNUC_PREREQ(maj, min, patch) \ 49 #define LLVM_GNUC_PREREQ(maj, min, patch) 0
|