Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 1226) sorted by relevance

12345678910>>...50

/external/brotli/c/include/brotli/
Dport.h28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument
29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument
50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument
52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \ argument
[all …]
/external/pdfium/third_party/lcms/
DREADME.pdfium12 0000-cmserr-changes.patch: change LCMS memory management methods to use PDFium's.
13 0001-fix-include.patch: fix include in lcms2_internal.h.
14 0002-old-performance-fix.patch: https://codereview.chromium.org/534363002/
15 0003-old-uninitialized-in-LUTevalFloat.patch: https://codereview.chromium.org/380293002/
16 0004-old-uninitialized-in-LUTeval16.patch: https://codereview.chromium.org/387273002/
17 0005-old-fix-e-with-tilde.patch: like https://codereview.chromium.org/2411123003/ but better.
18 0006-tag-type-confusion.patch: Fix a type confusion.
19 0008-infinite-loop-GrowNamedColorList.patch: Fix infinite loop when calling GrowNamedColorList.
20 0009-uninit.patch: Fix use uninitialized value and stack buffer overflow read.
21 0010-memory-leak-Type_Curve_Read.patch: Fix memory leak in Type_Curve_Read.
[all …]
/external/python/mock/mock/tests/
Dtestpatch.py15 NonCallableMock, CallableMixin, patch, sentinel,
16 MagicMock, Mock, NonCallableMagicMock, patch,
103 @patch.object(Something, 'attribute', sentinel.Patched)
116 @patch.object(Something, 'attribute', None)
130 @patch.object(Something, 'attribute', sentinel.Patched)
131 @patch.object(Something, 'next_attribute', sentinel.Patched2)
148 @patch('%s.something' % __name__, sentinel.Something2)
161 @patch('%s.something' % __name__, sentinel.Something2)
170 @patch('%s.something' % __name__, sentinel.Something2)
171 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
[all …]
Dtestwith.py10 from mock import MagicMock, Mock, patch, sentinel, mock_open, call
21 with patch('%s.something' % __name__, sentinel.Something2):
28 with patch('%s.something' % __name__, sentinel.Something2):
39 with patch('%s.something' % __name__) as mock_something:
50 with patch.object(Foo, 'something'):
57 with patch('%s.something' % __name__) as mock_something:
58 with patch('%s.something_else' % __name__) as mock_something_else:
68 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
97 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
100 with patch('%s.something' % __name__) as mock_again:
[all …]
/external/python/cpython3/Lib/test/
Dtest_getpass.py17 @mock.patch('os.environ')
39 with mock.patch('os.getuid') as uid, \
40 mock.patch('pwd.getpwuid') as getpw:
62 with mock.patch('sys.stderr') as stderr:
66 @mock.patch('sys.stdin')
72 @mock.patch('sys.stdin')
98 with mock.patch('os.open') as open, \
99 mock.patch('io.FileIO') as fileio, \
100 mock.patch('io.TextIOWrapper') as textio:
112 with mock.patch('os.open') as open, \
[all …]
Dtest_script_helper.py38 @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 …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py15 MagicMock, Mock, NonCallableMagicMock, patch, _patch,
99 @patch.object(Something, 'attribute', sentinel.Patched)
112 @patch.object(Something, 'attribute', None)
126 @patch.object(Something, 'attribute', sentinel.Patched)
127 @patch.object(Something, 'next_attribute', sentinel.Patched2)
144 @patch('%s.something' % __name__, sentinel.Something2)
157 @patch('%s.something' % __name__, sentinel.Something2)
166 @patch('%s.something' % __name__, sentinel.Something2)
167 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
189 @patch('%s.open' % builtin_string, mock)
[all …]
Dtestwith.py5 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):
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 …
63 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
92 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
95 with patch('%s.something' % __name__) as mock_again:
105 with patch('%s.something' % __name__) as mock_something:
[all …]
/external/pdfium/third_party/libopenjpeg20/
DREADME.pdfium12 0000-use-colorspace.patch: Makes it possible to not call opj_jp2_apply_pclr().
13 0003-dwt-decode.patch: Check array bounds for opj_dwt_decode_1() and friends.
14 0005-jp2_apply_pclr.patch: Fix out of bounds access.
15 0006-tcd_init_tile.patch: Fix a divide by zero bug in opj_tcd_init_tile().
16 0007-jp2_read_cmap.patch: Fix wrong rendering on greyscale images with index colorspace.
17 0009-opj_pi_next.patch: Fix potential bad precno value in opj_pi_next* functions.
18 0011-j2k_update_image_data.patch: Prevent bad signed -> unsigned casting.
19 0012-mct_sse.patch: Don't use SSE intrinsics in 32-bit builds.
20 0014-opj_jp2_read_ihdr_leak.patch: Memory leak in opj_jp2_read_ihdr().
21 0015-read_SPCod_SPCoc_overflow.patch: Prevent a buffer overflow in opj_j2k_read_SPCod_SPCoc.
[all …]
/external/bsdiff/
Dpatch_writer_unittest.cc62 test_utils::BsdiffPatchFile patch; in TEST_F() local
63 EXPECT_TRUE(patch.LoadFromFile(patch_file_.filename())); in TEST_F()
64 EXPECT_TRUE(patch.IsValid()); in TEST_F()
67 EXPECT_EQ(sizeof(kCompressedEmpty), static_cast<uint64_t>(patch.diff_len)); in TEST_F()
68 EXPECT_EQ(sizeof(kCompressedEmpty), patch.extra_len); in TEST_F()
79 test_utils::BsdiffPatchFile patch; in TEST_F() local
80 EXPECT_TRUE(patch.LoadFromFile(patch_file_.filename())); in TEST_F()
81 EXPECT_TRUE(patch.IsValid()); in TEST_F()
82 EXPECT_EQ(patch.bz2_diff, in TEST_F()
85 EXPECT_EQ(patch.bz2_extra, in TEST_F()
[all …]
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/gdiff/
DGdiffTest.java46 byte[] patch = new byte[] { in testExample()
62 ByteArrayInputStream patchStream = new ByteArrayInputStream(patch); in testExample()
67 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); in testExample()
89 byte[] patch = new byte[] { in testOpcodes()
111 ByteArrayInputStream patchStream = new ByteArrayInputStream(patch); in testOpcodes()
116 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); in testOpcodes()
151 byte[] patch = new byte[patchLength]; in testInlineDataCommands()
152 System.arraycopy(magicAndVersion, 0, patch, 0, magicAndVersion.length); in testInlineDataCommands()
153 patch[5] = (byte) spanLength; in testInlineDataCommands()
154 System.arraycopy(data, 0, patch, 6, spanLength); in testInlineDataCommands()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_extensions.py98 self.patch = int(split[2])
100 self.patch = None
105 assert self.patch is None or self.patch < 4096
110 if self.patch is not None:
111 ver_list.append(str(self.patch))
115 patch = self.patch if self.patch is not None else 0
116 ver_list = [str(self.major), str(self.minor), str(patch)]
121 patch = self.patch if self.patch is not None else 0
122 return (self.major << 22) | (self.minor << 12) | patch
127 if (self.patch is None) != (other.patch is None):
[all …]
/external/skqp/site/dev/contrib/
Dpatch.md5 externally-submitted patch, this is how to do it. (This technique is useful in
6 other situations too, like if you just want to try out somebody else's patch
12 to patch into your local checkout: https://codereview.appspot.com/6201055/
14 because there is no standard Windows "patch" tool.
17 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe…
22 git cl patch 6201055
27 1. Prepare your local workspace to accept the patch.
30 want to apply the patch.
32 clean enough" for your purposes). If the codereview patch was against
36 2. Download the raw patch set.
[all …]
/external/skia/site/dev/contrib/
Dpatch.md5 externally-submitted patch, this is how to do it. (This technique is useful in
6 other situations too, like if you just want to try out somebody else's patch
12 to patch into your local checkout: https://codereview.appspot.com/6201055/
14 because there is no standard Windows "patch" tool.
17 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe…
22 git cl patch 6201055
27 1. Prepare your local workspace to accept the patch.
30 want to apply the patch.
32 clean enough" for your purposes). If the codereview patch was against
36 2. Download the raw patch set.
[all …]
/external/python/httplib2/tests/
Dtest_cacerts_from_env.py32 @mock.patch("httplib2.certs.certifi_available", False)
33 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
38 @mock.patch("httplib2.certs.certifi_available", False)
39 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
50 @mock.patch("httplib2.certs.certifi_where", mock.MagicMock(return_value=CERTIFI_CERTS_FILE))
51 @mock.patch("httplib2.certs.certifi_available", True)
52 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
57 @mock.patch("httplib2.certs.certifi_available", False)
58 @mock.patch("httplib2.certs.custom_ca_locater_available", True)
59 @mock.patch("httplib2.certs.custom_ca_locater_where", mock.MagicMock(return_value=CUSTOM_CA_CERTS))
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_locked_file.py82 @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/oauth2client/tests/
Dtest_tools.py74 @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/mesa3d/src/amd/vulkan/
Dradv_extensions.py101 self.patch = int(split[2])
103 self.patch = None
108 assert self.patch is None or self.patch < 4096
113 if self.patch is not None:
114 ver_list.append(str(self.patch))
118 ver_list = [str(self.major), str(self.minor), str(self.patch)]
123 patch = self.patch if self.patch is not None else 0
124 return (self.major << 22) | (self.minor << 12) | patch
129 if (self.patch is None) != (other.patch is None):
131 other.patch = self.patch
/external/scrypt/
Dimport_scrypt.sh90 declare -r patch=$1
94 regenerate $patch
96 declare -r patch=$1
100 generate $patch $tar
353 declare -r patch=$1
355 generatepatch $patch
359 declare -r patch=$1
363 applypatches $SCRYPT_DIR_ORIG $patch
372 generatepatch $patch
431patch -p1 --merge < ../patches/$i || die "Could not apply patches/$i. Fix source and run: $0 regen…
[all …]
/external/python/apitools/apitools/scripts/
Doauth2l_test.py82 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/chromium-trace/catapult/devil/devil/android/tools/
Ddevice_monitor_test.py86 @mock.patch('devil.android.battery_utils.BatteryUtils')
87 @mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices')
95 @mock.patch('devil.android.battery_utils.BatteryUtils')
96 @mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices')
112 @mock.patch('devil.android.battery_utils.BatteryUtils')
113 @mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices')
128 @mock.patch('devil.android.battery_utils.BatteryUtils')
129 @mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices')
142 @mock.patch('devil.android.battery_utils.BatteryUtils')
143 @mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices')
[all …]
/external/deqp-deps/glslang/Test/
Dspv.450.tesc5 layout(location=1) patch out vec4 patchOut;
8 float sMem1; // should not see a patch decoration
9 float sMem2; // should not see a patch decoration
12 layout(location = 12) patch out TheBlock {
15 S s; // should see a patch decoration
23 layout(location = 2) patch out SingleBlock {
26 S s; // should see a patch decoration
29 layout(location = 20) patch out bn {
/external/puffin/src/
Dpuffdiff.cc59 Buffer* patch) { in CreatePatch() argument
74 patch->resize(kMagicLength + sizeof(header_size) + header_size + in CreatePatch()
77 memcpy(patch->data() + offset, kMagic, kMagicLength); in CreatePatch()
82 memcpy(patch->data() + offset, &be_header_size, sizeof(be_header_size)); in CreatePatch()
86 header.SerializeToArray(patch->data() + offset, header_size)); in CreatePatch()
89 memcpy(patch->data() + offset, bsdiff_patch.data(), bsdiff_patch.size()); in CreatePatch()
91 if (bsdiff_patch.size() > patch->size()) { in CreatePatch()
105 Buffer* patch) { in PuffDiff() argument
150 src_puff_buffer.size(), dst_puff_buffer.size(), patch)); in PuffDiff()
160 Buffer* patch) { in PuffDiff() argument
[all …]
/external/tensorflow/tensorflow/examples/get_started/regression/
Dtest.py69 @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/tensorflow/tensorflow/python/distribute/cluster_resolver/
Dslurm_cluster_resolver_test.py47 @mock.patch.dict(os.environ, {'SLURM_PROCID': '0', 'SLURM_NTASKS': '3'})
48 @mock.patch.object(SlurmClusterResolver, '_resolve_hostnames',
70 @mock.patch.dict(os.environ, {'SLURM_PROCID': '0', 'SLURM_NTASKS': '3'})
71 @mock.patch.object(SlurmClusterResolver, '_resolve_hostnames',
95 @mock.patch.dict(os.environ, {
100 @mock.patch.object(SlurmClusterResolver, '_resolve_hostnames',
121 @mock.patch.dict(
128 @mock.patch.object(SlurmClusterResolver, '_resolve_hostnames',
153 @mock.patch.dict(
160 @mock.patch.object(SlurmClusterResolver, '_resolve_hostnames',

12345678910>>...50