/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/livepatch/ |
H A D | test-livepatch.sh | 21 if [[ "$(cat /proc/cmdline)" != "$MOD_LIVEPATCH: this has been live patched" ]] ; then 29 if [[ "$(cat /proc/cmdline)" == "$MOD_LIVEPATCH: this has been live patched" ]] ; then 58 grep 'live patched' /proc/cmdline > /dev/kmsg 59 grep 'live patched' /proc/meminfo > /dev/kmsg 63 grep 'live patched' /proc/cmdline > /dev/kmsg 64 grep 'live patched' /proc/meminfo > /dev/kmsg 69 grep 'live patched' /proc/cmdline > /dev/kmsg 70 grep 'live patched' /proc/meminfo > /dev/kmsg 75 grep 'live patched' /proc/cmdline > /dev/kmsg 76 grep 'live patched' /proc/meminfo > /dev/kmsg [all …]
|
H A D | test-sysfs.sh | 23 check_sysfs_rights "$MOD_LIVEPATCH" "vmlinux/patched" "-r--r--r--" 24 check_sysfs_value "$MOD_LIVEPATCH" "vmlinux/patched" "1" 43 start_test "sysfs test object/patched" 50 check_sysfs_value "$MOD_LIVEPATCH" "$MOD_TARGET/patched" "0" 52 check_sysfs_value "$MOD_LIVEPATCH" "$MOD_TARGET/patched" "1" 54 check_sysfs_value "$MOD_LIVEPATCH" "$MOD_TARGET/patched" "0"
|
/aosp_15_r20/external/python/python-api-core/tests/unit/operations_v1/ |
D | test_operations_rest_client.py | 202 with mock.patch.object(transport_class, "__init__") as patched: 203 patched.return_value = None 205 patched.assert_called_once_with( 219 with mock.patch.object(transport_class, "__init__") as patched: 220 patched.return_value = None 222 patched.assert_called_once_with( 236 with mock.patch.object(transport_class, "__init__") as patched: 237 patched.return_value = None 239 patched.assert_called_once_with( 265 with mock.patch.object(transport_class, "__init__") as patched: [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 101 @patch.object(Something, 'attribute', sentinel.Patched) 103 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched") 110 msg = "'Something' must be the actual object to be patched, not a str" 132 @patch.object(Something, 'attribute', sentinel.Patched) 135 self.assertEqual(Something.attribute, sentinel.Patched, 198 "open not patched") 235 "Patched function didn't receive initial argument") 237 "Patched function didn't receive second argument") 413 @patch.object(Foo, 'woot', staticmethod(lambda: sentinel.Patched)) 415 self.assertEqual(Foo.woot(), sentinel.Patched) [all …]
|
D | testwith.py | 61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 63 self.assertEqual(mock_something, sentinel.Patched, "wrong patch") 90 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 146 with patch('%s.open' % __name__, mock, create=True) as patched: 147 self.assertIs(patched, mock) 184 with patch('%s.open' % __name__, mock, create=True) as patched: 185 self.assertIs(patched, mock)
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/testmock/ |
H A D | testpatch.py | 101 @patch.object(Something, 'attribute', sentinel.Patched) 103 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched") 110 msg = "'Something' must be the actual object to be patched, not a str" 132 @patch.object(Something, 'attribute', sentinel.Patched) 135 self.assertEqual(Something.attribute, sentinel.Patched, 198 "open not patched") 235 "Patched function didn't receive initial argument") 237 "Patched function didn't receive second argument") 413 @patch.object(Foo, 'woot', staticmethod(lambda: sentinel.Patched)) 415 self.assertEqual(Foo.woot(), sentinel.Patched) [all …]
|
H A D | testwith.py | 61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 63 self.assertEqual(mock_something, sentinel.Patched, "wrong patch") 90 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 146 with patch('%s.open' % __name__, mock, create=True) as patched: 147 self.assertIs(patched, mock) 184 with patch('%s.open' % __name__, mock, create=True) as patched: 185 self.assertIs(patched, mock)
|
/aosp_15_r20/bootable/deprecated-ota/applypatch/ |
H A D | applypatch.cpp | 364 FileContents patched; in GenerateTarget() local 367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget() 369 patched.data.insert(patched.data.end(), data, data + len); in GenerateTarget() 386 SHA1_Final(patched.sha1, &ctx); in GenerateTarget() 387 if (memcmp(patched.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in GenerateTarget() 390 LOG(ERROR) << "target size " << patched.data.size() << " SHA-1 " << short_sha1(patched.sha1); in GenerateTarget() 412 if (!WriteBufferToPartition(patched, target)) { in GenerateTarget() 413 LOG(ERROR) << "Failed to write patched data to " << target.name; in GenerateTarget()
|
/aosp_15_r20/external/pytorch/.github/scripts/amd/ |
H A D | patch_triton_wheel.sh | 65 patched=() 77 patched+=("$patchedname") 83 echo "replacing "${deps_soname[i]} ${patched[i]} 84 replace_needed_sofiles $PREFIX/$ROCM_LIB ${deps_soname[i]} ${patched[i]} 85 replace_needed_sofiles $PREFIX/_C ${deps_soname[i]} ${patched[i]} 86 replace_needed_sofiles $PREFIX/$ROCM_LD ${deps_soname[i]} ${patched[i]}
|
/aosp_15_r20/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem_unittest.py | 215 to be patched dynamically; may be needed if the module 220 fully qualified patched module names. Can be used to add patching 525 to be patched dynamically; may be needed if the module 530 fully qualified patched module names. Can be used to add 537 patch_open_code: If True, `io.open_code` is patched. The default 541 file system functions, which are patched. This check is 543 use_cache: If True (default), patched and non-patched modules are 681 # each patched function name has to be looked up separately 710 Ensure that all patched modules are removed in case of an 756 patched in top-level functions and members of top-level classes.""" [all …]
|
D | fake_filesystem_shutil.py | 18 work fine with the fake file system if `os`/`os.path` are patched. 41 """Return the list of patched function names. Used for patching 88 """Make sure the default argument is patched.""" 102 """Make sure the default argument is patched."""
|
/aosp_15_r20/external/python/pyfakefs/docs/ |
D | troubleshooting.rst | 18 exclusively these patched functions, specifically ``shutil`` (except for 25 not or not correctly patched. Mostly these are functions that are seldom 29 - It uses file system related functions in a way that will not be patched 36 functions or classes, they may be patched by using the ``modules_to_patch`` 98 patched by ``pyfakefs`` to use normal file system functions that can be 99 patched. 126 functions that are patched to do nothing
|
D | usage.rst | 335 Additionally, functions from file system related modules are patched 354 Initializing a default argument with a file system function is not patched 395 will be patched using this second mechanism. 441 first, so that on reloading the depending module it is already correctly patched. 447 patched in standard ``pyfakefs``. To allow patching such modules, 512 This may be used to add modules that shall not be patched. This is mostly 557 function is not patched, because the files it opens usually belong to the 582 system function is not patched automatically: 626 If True (the default), patched and non-patched modules are cached between tests
|
/aosp_15_r20/frameworks/libs/native_bridge_support/android_api/vdso/include/native_bridge_support/vdso/ |
D | interceptable_functions.h | 26 // cache line so that unpatched functions adjacent to the patched one may lose trampoline 31 // if the regular symbol is patched the stub still remains correctly connected to the trampoline. 32 // Since the stub is hidden it's unlikely that it'll be patched on purpose. 34 // When a symbol is patched the corresponding instruction cache invalidation instruction is 36 // adjacent to the patched one may also lose trampoline connection. Since currently regular and stub
|
/aosp_15_r20/external/pytorch/torchgen/static_runtime/ |
H A D | generator.py | 230 "_nested_view_from_jagged", # testing needs to be patched 231 "_nested_view_from_jagged_copy", # testing needs to be patched 232 "_nested_view_from_buffer", # testing needs to be patched 233 "_nested_view_from_buffer_copy", # testing needs to be patched 234 "_int_mm", # testing needs to be patched 235 "_to_sparse_csc", # testing needs to be patched 236 "_to_sparse_csr", # testing needs to be patched 237 "segment_reduce", # testing needs to be patched
|
/aosp_15_r20/external/pigweed/pw_build/ |
H A D | pw_copy_and_patch_file.bzl | 21 The source file will not be patched in place, but instead copied before 22 patching. The output of this target will be the patched file. 26 src: The source file to be patched. 27 out: The output file containing the patched contents. This value
|
H A D | copy_and_patch.gni | 18 # Applies a patch to a copy of file. The source file will not be patched in place, 20 # The output of this target will be the patched file. 23 # source: (required) The source file to be patched. 24 # out: (required) The output file containing the patched contents. This value
|
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_filesystem_unittest_test.py | 272 """Attributes of module under test are not patched""" 284 """Tests that `path` is not patched if it is not `os.path`. 309 patched automatically. 319 make sure that the module is patched by default.""" 364 """Make sure that modules in additional_skip_names are not patched. 413 """Make sure that modules in additional_skip_names are not patched. 463 cannot be patched automatically.""" 480 patched automatically. 499 patched automatically - use patchfs decorator with parameter.
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/unittest/ |
D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/unittest/ |
D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/unittest/ |
D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/unittest/ |
D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/ |
H A D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/unittest/ |
D | mock.py | 1350 def decoration_helper(self, patched, args, keywargs): argument 1353 for patching in patched.patchings: 1371 def patched(*args, **keywargs): function 1372 with self.decoration_helper(patched, 1377 patched.patchings = [self] 1378 return patched 1388 async def patched(*args, **keywargs): function 1389 with self.decoration_helper(patched, 1394 patched.patchings = [self] 1395 return patched [all …]
|
/aosp_15_r20/external/grpc-grpc/src/csharp/Grpc.Tools/ |
H A D | ProtoCompilerOutputs.cs | 44 /// All Proto files in the project. A patched copy of all items from 79 var patched = new List<ITaskItem>(); in Execute() 83 patched.Add(patchedProto); in Execute() 94 PatchedProtobuf = patched.ToArray(); in Execute()
|