/external/toolchain-utils/binary_search_tool/ndk/ |
DO_BISECTION.sh | 32 # Apply small setup patch. This patch makes a small change to the build system 34 # build for an arm7. See the patch file for details. 35 # (This patch file was generated with git, -p1 will remove the a/ and b/) 36 patch -p1 -i PATCH1 54 # Inserting "compiler error". Really this is just a patch that inserts a simple 55 # error in the code, but this is used to simulate our compiler error. This patch 56 # will simply cause the app to crash as soon as it starts. See the patch file 58 # (This patch file was generated with git, -p1 will remove the a/ and b/) 59 patch -p1 -i PATCH [all...] |
/external/python/mock/mock/tests/ |
testwith.py | 10 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): 34 self.fail("patch swallowed exception") 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: 70 self.assertEqual(mock_something, sentinel.Patched, "wrong patch") [all...] |
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/ |
slurm_cluster_resolver_test.py | 47 @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' [all...] |
/external/mesa3d/src/amd/vulkan/ |
radv_extensions.py | 101 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 [all...] |
/external/autotest/client/cros/multimedia/ |
cfm_facade_native_unittest.py | 21 with mock.patch.dict('sys.modules', modules): 45 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 56 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 66 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 76 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 86 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 97 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 110 @mock.patch.object(cfm_facade_native, 'kiosk_utils') 118 @mock.patch.object(cfm_facade_native, 'kiosk_utils')
|
/frameworks/av/services/audiopolicy/tests/ |
audiopolicymanager_tests.cpp | 83 status_t createAudioPatch(const struct audio_patch* /*patch*/, 95 ALOGE("%s: Patch handle %d has not been allocated yet (next is %d)", 98 ALOGE("%s: Attempt to release patch %d twice", __func__, handle); 231 audio_patch patch{}; 235 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, nullptr, 0)); 236 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); 237 patch.num_sources = AUDIO_PATCH_PORTS_MAX + 1; 238 patch.num_sinks = 1; 239 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); 240 patch.num_sources = 1 [all...] |
/bootable/recovery/applypatch/ |
imgpatch.cpp | 17 // See imgdiff.cpp in this directory for a description of the patch file 54 const Value& patch, size_t patch_offset, 76 // Define a custom sink wrapper that feeds to bspatch. It deflates the available patch data on 83 // The input patch length for an update never exceeds INT_MAX. 113 int bspatch_result = ApplyBSDiffPatch(src_data, src_len, patch, patch_offset, compression_sink); 137 Value patch(Value::Type::BLOB, 139 return ApplyImagePatch(old_data, old_size, patch, sink, nullptr); 142 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, 144 if (patch.data.size() < 12) { 145 printf("patch too short to contain header\n") [all...] |
/external/curl/packages/vms/ |
make_pcsi_curl_kit_name.com | 147 $ patch = "" 153 $ patch = vtype + daily_tag 157 $ if eco_level .nes. "" then patch = eco_level 164 $ if update .nes. "" .or. patch .nes. "" 166 $! The presence of a patch implies an update 167 $ if update .eqs. "" .and. patch .nes. "" then update = "0" 168 $ version = version + "-" + update + patch
|
/external/autotest/server/cros/network/ |
rf_switch_controller_test.py | 41 @mock.patch('autotest_lib.server.frontend.AFE') 55 @mock.patch('autotest_lib.server.frontend.AFE') 70 @mock.patch('autotest_lib.server.frontend.AFE') 75 with mock.patch('logging.Logger.error') as mock_logger: 84 @mock.patch('autotest_lib.server.frontend.AFE') 90 with mock.patch('logging.Logger.error') as mock_logger:
|
/external/autotest/site_utils/ |
automated_deploy_unittest.py | 33 @mock.patch.object(infra, 'local_runner') 46 @mock.patch.object(infra, 'local_runner') 61 @mock.patch.object(infra, 'local_runner') 78 @mock.patch.object(infra, 'local_runner') 89 @mock.patch.object(infra, 'local_runner') 101 @mock.patch.object(infra, 'local_runner')
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/ |
base_test.py | 32 with mock.patch.object(base, "time") as mock_time: 33 with mock.patch.object(base, "urllib") as mock_urllib: 47 with mock.patch.object(base, "time") as mock_time: 48 with mock.patch.object(base, "urllib") as mock_urllib: 68 with mock.patch.object(base, "time") as mock_time: 69 with mock.patch.object(base, "urllib") as mock_urllib:
|
/external/toolchain-utils/cros_utils/ |
buildbot_utils_unittest.py | 10 from mock import patch 49 with patch.object(buildbot_utils, 'SubmitTryjob') as mock_submit: 50 with patch.object(buildbot_utils, 'PeekTrybotImage') as mock_peek: 51 with patch.object(time, 'sleep', return_value=None): 78 with patch.object(command_executer.CommandExecuter, 86 with patch.object(command_executer.CommandExecuter,
|
/external/scrypt/ |
import_scrypt.sh | 52 echo " ./import_scrypt.sh regenerate <patch/*.patch>" 53 echo " ./import_scrypt.sh generate <patch/*.patch> </path/to/scrypt-*.tar.gz>" 59 die "scrypt patch directory patches/ not found" 90 declare -r patch=$1 91 shift || usage "No patch file specified." 94 regenerate $patch 96 declare -r patch=$1 97 shift || usage "No patch file specified. [all...] |
/external/puffin/src/ |
puffdiff.cc | 48 // Structure of a puffin patch 59 Buffer* patch) { 74 patch->resize(kMagicLength + sizeof(header_size) + header_size + 77 memcpy(patch->data() + offset, kMagic, kMagicLength); 82 memcpy(patch->data() + offset, &be_header_size, sizeof(be_header_size)); 86 header.SerializeToArray(patch->data() + offset, header_size)); 89 memcpy(patch->data() + offset, bsdiff_patch.data(), bsdiff_patch.size()); 91 if (bsdiff_patch.size() > patch->size()) { 92 LOG(ERROR) << "Puffin patch is invalid"; 105 Buffer* patch) { [all...] |
/art/dex2oat/linker/arm64/ |
relative_patcher_arm64.cc | 43 // Maximum positive and negative displacement for method call measured from the patch location. 49 // Maximum positive and negative displacement for a conditional branch measured from the patch 58 inline bool IsAdrpPatch(const LinkerPatch& patch) { 59 switch (patch.GetType()) { 71 return patch.LiteralOffset() == patch.PcInsnOffset(); 119 for (const LinkerPatch& patch : compiled_method->GetPatches()) { 120 if (IsAdrpPatch(patch)) { 136 for (const LinkerPatch& patch : compiled_method->GetPatches()) { 137 if (IsAdrpPatch(patch)) { [all...] |
/art/dex2oat/linker/mips/ |
relative_patcher_mips.h | 41 const LinkerPatch& patch, 45 const LinkerPatch& patch,
|
relative_patcher_mips.cc | 49 const LinkerPatch& patch, 52 uint32_t anchor_literal_offset = patch.PcInsnOffset(); 53 uint32_t literal_offset = patch.LiteralOffset(); 73 // Apply patch. 90 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
/art/dex2oat/linker/mips64/ |
relative_patcher_mips64.h | 39 const LinkerPatch& patch, 43 const LinkerPatch& patch,
|
relative_patcher_mips64.cc | 49 const LinkerPatch& patch, 52 uint32_t anchor_literal_offset = patch.PcInsnOffset(); 53 uint32_t literal_offset = patch.LiteralOffset(); 67 // Apply patch. 88 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
/external/autotest/venv/lucifer/ |
loglib_unittest.py | 22 with mock.patch('logging.config.dictConfig', 32 with mock.patch.object(loglib, 'configure_logging',
|
/external/bsdiff/include/bsdiff/ |
patch_writer_factory.h | 18 // Create a patch writer compatible with upstream's "BSDIFF40" patch format 24 // Create a patch writer using the "BSDF2" patch format. It uses the compressor 33 // Create a patch writer using the "BSDF2" patch format. It also tries all the 34 // compressors in |types| to generate the smallest patch. 41 // Create a patch writer compatible with Android Play Store bsdiff patches. 42 // The data will be written to the passed |patch| vector, which must be valid 43 // until Close() is called or this patch is destroyed. The data will b [all...] |
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
ConscryptTest.java | 46 assertTrue("Patch version: " + version.patch(), 0 <= version.patch());
|
/external/sqlite/ |
UPDATE-SOURCE.bash | 78 echo "# Applying Android.patch ..." 81 echo_and_exec patch -i Android.patch 85 echo "# Regenerating Android.patch ..." 88 echo_and_exec bash -c '(for x in orig/*; do diff -u -d $x ${x#orig/}; done) > Android.patch'
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
AudioPatch.h | 32 AudioPatch(const struct audio_patch *patch, uid_t uid); 45 status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch);
|
/art/dex2oat/linker/x86/ |
relative_patcher_x86.cc | 26 const LinkerPatch& patch, 29 uint32_t anchor_literal_offset = patch.PcInsnOffset(); 30 uint32_t literal_offset = patch.LiteralOffset(); 51 // Apply patch. 61 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|