Home
last modified time | relevance | path

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

12345678910>>...60

/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/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 …]
/external/pdfium/third_party/libopenjpeg20/
DREADME.pdfium12 0003-dwt-decode.patch: Check array bounds for opj_dwt_decode_1() and friends.
13 0005-jp2_apply_pclr.patch: Fix out of bounds access.
14 0006-tcd_init_tile.patch: Fix a divide by zero bug in opj_tcd_init_tile().
15 0007-jp2_read_cmap.patch: Fix wrong rendering on greyscale images with index colorspace.
16 0009-opj_pi_next.patch: Fix potential bad precno value in opj_pi_next* functions.
17 0011-j2k_update_image_data.patch: Prevent bad signed -> unsigned casting.
18 0012-mct_sse.patch: Don't use SSE intrinsics in 32-bit builds.
19 0014-opj_jp2_read_ihdr_leak.patch: Memory leak in opj_jp2_read_ihdr().
20 0015-read_SPCod_SPCoc_overflow.patch: Prevent a buffer overflow in opj_j2k_read_SPCod_SPCoc.
21 0016-read_SQcd_SQcc_overflow.patch: Prevent a buffer overflow in opj_j2k_read_SQcd_SQcc.
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py15 MagicMock, Mock, NonCallableMagicMock, patch, _patch,
100 @patch.object(Something, 'attribute', sentinel.Patched)
111 patch.object('Something', 'do_something')
117 @patch.object(Something, 'attribute', None)
131 @patch.object(Something, 'attribute', sentinel.Patched)
132 @patch.object(Something, 'next_attribute', sentinel.Patched2)
149 @patch('%s.something' % __name__, sentinel.Something2)
162 @patch('%s.something' % __name__, sentinel.Something2)
171 @patch('%s.something' % __name__, sentinel.Something2)
172 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
[all …]
Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
19 with patch('%s.something' % __name__, sentinel.Something2):
26 with patch('%s.something' % __name__, sentinel.Something2):
33 with patch('%s.something' % __name__) as mock_something:
44 with patch.object(Foo, 'something'):
51 …with patch('%s.something' % __name__) as mock_something, patch('%s.something_else' % __name__) as …
61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
90 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
93 with patch('%s.something' % __name__) as mock_again:
103 with patch('%s.something' % __name__) as mock_something:
[all …]
/external/python/mock/mock/tests/
Dtestpatch.py15 NonCallableMock, CallableMixin, patch, sentinel,
104 @patch.object(Something, 'attribute', sentinel.Patched)
117 @patch.object(Something, 'attribute', None)
131 @patch.object(Something, 'attribute', sentinel.Patched)
132 @patch.object(Something, 'next_attribute', sentinel.Patched2)
149 @patch('%s.something' % __name__, sentinel.Something2)
162 @patch('%s.something' % __name__, sentinel.Something2)
171 @patch('%s.something' % __name__, sentinel.Something2)
172 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
194 @patch('%s.open' % builtin_string, mock)
[all …]
Dtestwith.py10 from mock import MagicMock, Mock, patch, sentinel, mock_open, call
23 with patch('%s.something' % __name__, sentinel.Something2):
30 with patch('%s.something' % __name__, sentinel.Something2):
37 with patch('%s.something' % __name__) as mock_something:
48 with patch.object(Foo, 'something'):
55 with patch('%s.something' % __name__) as mock_something:
56 with patch('%s.something_else' % __name__) as mock_something_else:
66 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
95 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
98 with patch('%s.something' % __name__) as mock_again:
[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/toolchain-utils/llvm_tools/
Dauto_llvm_bisection_unittest.py29 @mock.patch.object(
33 @mock.patch.object(time, 'sleep')
36 @mock.patch.object(traceback, 'print_exc')
39 @mock.patch.object(llvm_bisection, 'main')
41 @mock.patch.object(os.path, 'isfile', return_value=False)
45 @mock.patch.object(
51 @mock.patch.object(
82 @mock.patch.object(subprocess, 'call', return_value=0)
85 @mock.patch.object(
89 @mock.patch.object(time, 'sleep')
[all …]
Dupdate_chromeos_llvm_next_hash_unittest.py29 @mock.patch.object(update_chromeos_llvm_next_hash, 'ChrootRunCommand')
71 @mock.patch.object(os.path, 'islink', return_value=False)
86 @mock.patch.object(os.path, 'islink', return_value=True)
87 @mock.patch.object(os.path, 'realpath')
110 @mock.patch.object(os.path, 'isfile', return_value=False)
128 @mock.patch.object(os.path, 'isfile', return_value=True)
152 @mock.patch.object(os.path, 'isfile', return_value=True)
155 @mock.patch.object(
197 @mock.patch.object(os.path, 'islink', return_value=False)
211 @mock.patch.object(os.path, 'islink', return_value=True)
[all …]
Dllvm_patch_management_unittest.py28 @mock.patch.object(os.path, 'isdir', return_value=False)
45 @mock.patch.object(os.path, 'isdir', return_value=True)
46 @mock.patch.object(llvm_patch_management, 'ChrootRunCommand')
47 @mock.patch.object(llvm_patch_management, '_GetRelativePathOfChrootPath')
102 @mock.patch.object(os.path, 'isfile', return_value=False)
119 @mock.patch.object(os.path, 'isfile', return_value=True)
134 @mock.patch.object(os.path, 'isfile')
148 @mock.patch.object(
152 @mock.patch.object(llvm_patch_management, 'CreateTempLLVMRepo')
155 @mock.patch.object(llvm_patch_management, '_MoveSrcTreeHEADToGitHash')
[all …]
Dupdate_packages_and_run_tryjobs_unittest.py99 @mock.patch.object(
105 @mock.patch.object(update_packages_and_run_tryjobs, 'AddTryjobLinkToCL')
108 @mock.patch.object(update_packages_and_run_tryjobs, 'ChrootRunCommand')
156 @mock.patch.object(
180 @mock.patch.object(update_packages_and_run_tryjobs, 'GetCommandLineArgs')
183 @mock.patch.object(update_packages_and_run_tryjobs,
187 @mock.patch.object(
193 @mock.patch.object(
219 @mock.patch.object(update_packages_and_run_tryjobs, 'RunTryJobs')
222 @mock.patch.object(update_chromeos_llvm_next_hash, 'UpdatePackages')
[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 0019-utf8.patch: Encode source files as utf-8.
21 0026-more-unsupported-characters.patch: remove other unsupported characters.
[all …]
/external/mesa3d/src/vulkan/util/
Dvk_extensions.py31 self.patch = int(split[2])
33 self.patch = None
38 assert self.patch is None or self.patch < 4096
43 if self.patch is not None:
44 ver_list.append(str(self.patch))
48 patch = self.patch if self.patch is not None else 0
49 ver_list = [str(self.major), str(self.minor), str(patch)]
54 patch = self.patch if self.patch is not None else 0
55 return (self.major << 22) | (self.minor << 12) | patch
60 if (self.patch is None) != (other.patch is None):
[all …]
Dvk_util.c36 int patch = patch_string ? atoi(patch_string + 1) : 0; in vk_get_driver_version() local
38 if (patch == 0) { in vk_get_driver_version()
39 patch = 99; in vk_get_driver_version()
46 --patch; in vk_get_driver_version()
48 return VK_MAKE_VERSION(major, minor, patch); in vk_get_driver_version()
62 int patch = patch_str ? atoi(patch_str + 1) : 0; in vk_get_version_override() local
65 if (major < 1 || minor < 0 || patch < 0 || minor > 1023 || patch > 4095) in vk_get_version_override()
68 return VK_MAKE_VERSION(major, minor, patch); in vk_get_version_override()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_extensions.py106 self.patch = int(split[2])
108 self.patch = None
113 assert self.patch is None or self.patch < 4096
118 if self.patch is not None:
119 ver_list.append(str(self.patch))
123 patch = self.patch if self.patch is not None else 0
124 ver_list = [str(self.major), str(self.minor), str(patch)]
129 patch = self.patch if self.patch is not None else 0
130 return (self.major << 22) | (self.minor << 12) | patch
135 if (self.patch is None) != (other.patch is None):
[all …]
/external/toolchain-utils/heatmaps/
Dheat_map_test.py46 @mock.patch('shutil.copy2')
47 @mock.patch('tempfile.mkdtemp')
60 @mock.patch('shutil.copy2')
61 @mock.patch('tempfile.mkdtemp', fake_mkdtemp)
71 @mock.patch.object(command_executer.CommandExecuter, 'ChrootRunCommand')
85 @mock.patch.object(heatmap_generator, 'HeatmapGenerator')
91 @mock.patch.object(heat_map.HeatMapProducer, '_EnsureFileInChroot')
92 @mock.patch.object(heat_map.HeatMapProducer, '_GeneratePerfReport')
93 @mock.patch.object(heat_map.HeatMapProducer, '_GetHeatMap')
94 @mock.patch.object(heat_map.HeatMapProducer, '_RemoveFiles')
[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/v8/third_party/zlib/patches/
DREADME3 - 0000-build.patch: changes from the upstream version, mostly related to the
5 - 0001-simd.patch: integrate Intel SIMD optimizations from
7 - 0002-uninitializedcheck.patch: prevent uninitialized use of state->check
9 == Procedure to create a patch file ==
12 - git format-patch master --stdout > foo.patch # where naming follows a growing
13 # number plus patch description.
14 - git add foo.patch
15 - git commit -a -m "Local patch."
19 the need to append this file with a description of what the patch does. This
29 intention is not immediately clear, generate a .patch file to go with your
[all …]
/external/python/mock/
Dbackport.py53 def munge(rev, patch): argument
56 patch = patch.replace(sign_off, f'Backports: {rev}\n{sign_off}', 1)
64 patch = re.sub(pattern, sub, patch)
65 return patch
68 def apply_patch(mock_repo, rev, patch): argument
72 target.write(patch)
128 patch = extract_patch_for(args.cpython, rev)
129 patch = munge(rev, patch)
130 apply_patch(args.mock, rev, patch)
/external/zlib/patches/
DREADME3 - 0000-build.patch: changes from the upstream version, mostly related to the
5 - 0001-simd.patch: integrate Intel SIMD optimizations from
7 - 0002-uninitializedcheck.patch: prevent uninitialized use of state->check
9 == Procedure to create a patch file ==
12 - git format-patch master --stdout > foo.patch # where naming follows a growing
13 # number plus patch description.
14 - git add foo.patch
15 - git commit -a -m "Local patch."
19 the need to append this file with a description of what the patch does. This
29 intention is not immediately clear, generate a .patch file to go with your
[all …]

12345678910>>...60