/third_party/python/Lib/test/ |
H A D | test_copyreg.py | 51 mod, func, code = 'junk1 ', ' junk2', 0xabcd 52 e = ExtensionSaver(code) 56 mod, func, code) 57 copyreg.add_extension(mod, func, code) 59 self.assertTrue(copyreg._extension_registry[mod, func] == code) 60 self.assertTrue(copyreg._inverted_registry[code] == (mod, func)) 62 self.assertNotIn(code, copyreg._extension_cache) 64 copyreg.add_extension(mod, func, code) # shouldn't blow up 65 # Conflicting code. 67 mod, func, code [all...] |
H A D | test_utf8_mode.py | 42 code = 'import sys; print(sys.flags.utf8_mode)' 46 out = self.get_output('-c', code, LC_ALL=loc) 50 code = 'import sys; print(sys.flags.utf8_mode)' 52 out = self.get_output('-X', 'utf8', '-c', code) 56 out = self.get_output('-X', 'utf8=1', '-c', code) 59 out = self.get_output('-X', 'utf8=0', '-c', code) 65 out = self.get_output('-X', 'utf8', '-c', code, 70 code = 'import sys; print(sys.flags.utf8_mode)' 72 out = self.get_output('-c', code, PYTHONUTF8='1') 75 out = self.get_output('-c', code, PYTHONUTF [all...] |
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/entry/src/ohosTest/js/test/ |
H A D | RelationalStoreCloudSync.test.js | 49 console.log(TAG + "create rdb store failed" + `, error code is ${err.code}, message is ${err.message}`);
75 console.log(TAG + "create table cloud_text cloud_int cloud_integer failed" + `, error code is ${err.code}, message is ${err.message}`)
88 console.log(TAG + "set disTable fail" + `, error code is ${err.code}, message is ${err.message}`);
114 console.log(TAG + "create rdb store failed" + `, error code is ${err.code}, message is ${err.message}`);
152 console.log(TAG + `get modify time, err code is ${err.code}, messag [all...] |
/test/xts/acts/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/entry/src/ohosTest/js/test/ |
H A D | KvManagerKVCallbackJsTest.js | 92 console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_0100 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`); 113 console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_0200 getKVStore err ' + `, error code is ${err.code}, message is ${err.message}`); 119 console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_0200 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`); 120 expect(e.code == 401).assertTrue(); 150 console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_0300 getKVStore e ' + `, error code is ${e.code}, message is ${e.message}`); 180 console.error('SUB_DDM_DKV_KVMANAGER_GETKVSTORE_0400 getKVStore e ' + `, error code i [all...] |
H A D | SingleKvStoreKVCallbackJsTest.js | 110 console.error('afterEach closeKVStore err ' + `, error code is ${err.code}, message is ${err.message}`); 127 console.error('SingleKvStorePutStringCallbackTest001 put fail' + `, error code is ${err.code}, message is ${err.message}`); 133 console.error('SingleKvStorePutStringCallbackTest001 put e' + `, error code is ${e.code}, message is ${e.message}`); 162 console.error('SingleKvStorePutStringCallbackTest002 put e' + `, error code is ${e.code}, message is ${e.message}`); 182 console.error('SingleKvStoreGetStringCallbackTest001 get fail' + `, error code is ${err.code}, messag [all...] |
H A D | DeviceKvStoreKVCallbackJsTest.js | 84 console.error('beforeAll getKVStore err ' + `, error code is ${err.code}, message is ${err.message}`); 103 console.error('beforeAll can NOT getDeviceId, fail: ' + `, error code is ${error.code}, message is ${error.message}`); 154 console.error('SUB_DDM_DKV_DEVICESTORE_PUTSTRING_0100 put fail' + `, error code is ${err.code}, message is ${err.message}`); 160 console.error('SUB_DDM_DKV_DEVICESTORE_PUTSTRING_0100 put e' + `, error code is ${e.code}, message is ${e.message}`); 189 console.error('SUB_DDM_DKV_DEVICESTORE_PUTSTRING_0200 put e' + `, error code is ${e.code}, messag [all...] |
/third_party/python/Lib/ |
H A D | locale.py | 362 def _replace_encoding(code, encoding): 363 if '.' in code: 364 langname = code[:code.index('.')] 366 langname = code 385 def _append_modifier(code, modifier): 387 if '.' not in code: 388 return code + '.ISO8859-15' 389 _, _, encoding = code.partition('.') 391 return code [all...] |
/third_party/node/test/parallel/ |
H A D | test-crypto-keygen.js | 35 code: 'ERR_INVALID_ARG_VALUE', 46 code: 'ERR_INVALID_ARG_TYPE', 54 code: 'ERR_INVALID_ARG_VALUE', 63 code: 'ERR_INVALID_ARG_TYPE', 72 code: 'ERR_INVALID_ARG_TYPE', 90 code: 'ERR_INVALID_ARG_VALUE', 110 code: 'ERR_INVALID_ARG_VALUE', 130 code: 'ERR_INVALID_ARG_VALUE', 147 code: 'ERR_INVALID_ARG_VALUE', 167 code [all...] |
/third_party/glfw/src/ |
H A D | linux_joystick.c | 50 static void handleKeyEvent(_GLFWjoystick* js, int code, int value) in handleKeyEvent() argument 53 js->linjs.keyMap[code - BTN_MISC], in handleKeyEvent() 59 static void handleAbsEvent(_GLFWjoystick* js, int code, int value) in handleAbsEvent() argument 61 const int index = js->linjs.absMap[code]; in handleAbsEvent() 63 if (code >= ABS_HAT0X && code <= ABS_HAT3Y) in handleAbsEvent() 72 const int hat = (code - ABS_HAT0X) / 2; in handleAbsEvent() 73 const int axis = (code - ABS_HAT0X) % 2; in handleAbsEvent() 89 const struct input_absinfo* info = &js->linjs.absInfo[code]; in handleAbsEvent() 109 for (int code in pollAbsState() [all...] |
/third_party/node/deps/v8/src/codegen/s390/ |
H A D | assembler-s390.h | 8 // - Redistributions of source code must retain the above copyright notice, 33 // The original source code covered by the above license above has been 231 // GetCode emits any pending (non-emitted) code and fills the descriptor desc. 238 // Convenience wrapper for code without safepoint or handler tables. 261 void bind(Label* L); // binds an unbound label L to the current code position 268 // Returns the branch offset to the given label from the current code position 274 // Read/Modify the code target address in the branch/call instruction at pc. 278 // Read/Modify the code target address in the branch/call instruction at pc. 293 // This is for calls and branches within generated code. 295 Address instruction_payload, Code code, Addres 473 uint64_t code = rsy_format() local 506 uint32_t code = rs_format() local 553 uint64_t code = rxe_format() local 616 uint32_t code = rrf_format() local 682 uint32_t code = rsi_format() local 698 uint64_t code = rsl_format() local 727 uint32_t code = getfield<uint32_t, 4, 0, 16>(op) | s_format() local 749 uint32_t code = si_format() local 769 uint64_t code = getfield<uint64_t, 6, 0, 8>(op >> 8) | siy_format() local 791 uint64_t code = rrs_format() local 815 uint64_t code = ris_format() local 841 uint64_t code = sil_format() local 860 uint64_t code = rie_d_format() local 877 uint64_t code = rie_e_format() local 895 uint64_t code = rie_f_format() local 920 uint64_t code = ss_a_format() local [all...] |
/test/xts/acts/communication/nfc_ErrorCode/entry/src/ohosTest/js/test/ |
H A D | NDEFTag.test.js | 119 * @tc.desc Creates an ndef message using the original bytes. The error code is 401 136 console.info("[NFC_test]ndef1 createNdefMessage errorcode: " + error.code); 137 expect(401).assertEqual(error.code); 148 * @tc.desc Creates an ndef message using the original bytes. The error code is 401 171 console.info("[NFC_test]ndef2 createNdefMessage errorcode: " + error.code); 172 expect(401).assertEqual(error.code); 183 * @tc.desc Read the ndef message on the tag promise. The error code is 401 195 console.info("[NFC_test]ndef3 readNdef errorcode: " + error.code); 196 expect(401).assertEqual(error.code); 210 * @tc.desc Read the ndef message on the tag callback .The error code i [all...] |
/third_party/skia/src/gpu/tessellate/shaders/ |
H A D | GrPathTessellationShader_Hardware.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 76 SkString code(versionAndExtensionDecls); in makeProgramImpl() 77 code.appendf(R"( in makeProgramImpl() 79 code.appendf(R"( in makeProgramImpl() 81 code.append(kSkSLTypeDefs); in makeProgramImpl() 82 code.append(skgpu::wangs_formula::as_sksl()); in makeProgramImpl() 84 code.append(R"( in makeProgramImpl() 125 return code; in makeProgramImpl() 131 SkString code(versionAndExtensionDecls); in makeProgramImpl() 132 code in makeProgramImpl() [all...] |
/third_party/rust/crates/regex/bench/src/ffi/ |
H A D | pcre2.rs | 10 code: *mut code, 21 pcre2_code_free_8(self.code); in drop() 27 code: c_int, 35 let code = unsafe { in new() 49 if code.is_null() { in new() 50 return Err(Error { code: error_code, offset: error_offset }); in new() 52 let err = unsafe { pcre2_jit_compile_8(code, PCRE2_JIT_COMPLETE) }; in new() 57 pcre2_match_data_create_from_pattern_8(code, ptr::null_mut()) in new() 66 Ok(Regex { code in new() 151 type code = c_void; global() types [all...] |
/third_party/vixl/test/aarch64/ |
H A D | test-utils-aarch64.h | 7 // * Redistributions of source code must retain the above copyright notice, 107 // The Dump method generates code to store a snapshot of the register values. 111 // The dumping code is generated though the given MacroAssembler. No registers 117 inline int32_t wreg(unsigned code) const { in wreg() 118 if (code == kSPRegInternalCode) { in wreg() 121 VIXL_ASSERT(RegAliasesMatch(code)); in wreg() 122 return dump_.w_[code]; in wreg() 125 inline int64_t xreg(unsigned code) const { in xreg() 126 if (code == kSPRegInternalCode) { in xreg() 129 VIXL_ASSERT(RegAliasesMatch(code)); in xreg() 164 zreg_lane(unsigned code, int lane) const zreg_lane() argument [all...] |
/third_party/libinput/test/ |
H A D | litest-device-magic-trackpad.c | 30 { .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_MT_SLOT, .value = LITEST_AUTO_ASSIGN }, 33 { .type = EV_ABS, .code = ABS_MT_TRACKING_ID, .value = LITEST_AUTO_ASSIGN }, 34 { .type = EV_ABS, .code = ABS_MT_TOUCH_MAJOR, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_MT_TOUCH_MINOR, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_ABS, .code = ABS_MT_POSITION_X, .value = LITEST_AUTO_ASSIGN }, 37 { .type = EV_ABS, .code = ABS_MT_POSITION_Y, .value = LITEST_AUTO_ASSIGN }, 38 { .type = EV_ABS, .code = ABS_MT_ORIENTATION, .value = LITEST_AUTO_ASSIGN }, 39 { .type = EV_SYN, .code [all...] |
H A D | litest-device-wacom-isdv4-e6-finger.c | 30 { .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_MT_SLOT, .value = LITEST_AUTO_ASSIGN }, 33 { .type = EV_ABS, .code = ABS_MT_TRACKING_ID, .value = LITEST_AUTO_ASSIGN }, 34 { .type = EV_ABS, .code = ABS_MT_POSITION_X, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_MT_POSITION_Y, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_KEY, .code = BTN_TOUCH, .value = 1 }, 37 { .type = EV_SYN, .code = SYN_REPORT, .value = 0 }, 38 { .type = -1, .code = -1 }, 42 { .type = EV_ABS, .code [all...] |
H A D | litest-device-apple-magicmouse.c | 30 { .type = EV_ABS, .code = ABS_MT_SLOT, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_MT_TRACKING_ID, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_MT_TOUCH_MAJOR, .value = 272 }, 33 { .type = EV_ABS, .code = ABS_MT_TOUCH_MINOR, .value = 400 }, 34 { .type = EV_ABS, .code = ABS_MT_POSITION_X, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_MT_POSITION_Y, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_ABS, .code = ABS_MT_PRESSURE, .value = LITEST_AUTO_ASSIGN }, 37 { .type = EV_SYN, .code = SYN_REPORT, .value = 0 }, 38 { .type = -1, .code = -1 }, 42 { .type = EV_ABS, .code [all...] |
/third_party/libevdev/libevdev/ |
H A D | libevdev.h | 121 * @code 149 * libevdev_event_code_get_name(ev.type, ev.code), 189 * code `SYN_REPORT`. Such an event marks the end of a frame of hardware 192 * @code 210 * type `EV_SYN` and code `SYN_DROPPED` into the buffer, effectively notifying 213 * @code 245 * changed, libevdev generates an event for each code with the new value and 249 * For events of type `EV_ABS` and an event code less than `ABS_MT_SLOT`, the 258 * @code 278 * * for each event code betwee [all...] |
/third_party/libevdev/export_include/libevdev/ |
H A D | libevdev.h | 121 * @code 149 * libevdev_event_code_get_name(ev.type, ev.code), 189 * code `SYN_REPORT`. Such an event marks the end of a frame of hardware 192 * @code 210 * type `EV_SYN` and code `SYN_DROPPED` into the buffer, effectively notifying 213 * @code 245 * changed, libevdev generates an event for each code with the new value and 249 * For events of type `EV_ABS` and an event code less than `ABS_MT_SLOT`, the 258 * @code 278 * * for each event code betwee [all...] |
/third_party/libinput/src/ |
H A D | evdev-fallback.h | 192 get_key_type(uint16_t code) in get_key_type() argument 194 switch (code) { in get_key_type() 211 if (code >= KEY_ESC && code <= KEY_MICMUTE) in get_key_type() 213 if (code >= BTN_MISC && code <= BTN_GEAR_UP) in get_key_type() 215 if (code >= KEY_OK && code <= KEY_LIGHTS_TOGGLE) in get_key_type() 217 if (code >= BTN_DPAD_UP && code < in get_key_type() 227 hw_set_key_down(struct fallback_dispatch *dispatch, int code, int pressed) hw_set_key_down() argument 233 hw_key_has_changed(struct fallback_dispatch *dispatch, int code) hw_key_has_changed() argument 252 hw_is_key_down(struct fallback_dispatch *dispatch, int code) hw_is_key_down() argument 258 get_key_down_count(struct evdev_device *device, int code) get_key_down_count() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/ |
H A D | gen_mtl_internal_shaders.py | 3 # Use of this source code is governed by a BSD-style license that can be 23 // Use of this source code is governed by a BSD-style license that can be 30 code = """// This file is similar to src/libANGLE/renderer/FormatID_autogen.h but is used by Metal default 31 // shaders instead of C++ code. 35 code += "namespace rx\n" 36 code += "{\n" 37 code += "namespace mtl_shader\n" 38 code += "{\n" 39 code += "\n" 40 code [all...] |
/third_party/python/Lib/xml/dom/ |
H A D | __init__.py | 25 # the values given in the W3C recommendation. Client code can 73 return self.code 77 code = INDEX_SIZE_ERR variable in IndexSizeErr 80 code = DOMSTRING_SIZE_ERR variable in DomstringSizeErr 83 code = HIERARCHY_REQUEST_ERR variable in HierarchyRequestErr 86 code = WRONG_DOCUMENT_ERR variable in WrongDocumentErr 89 code = INVALID_CHARACTER_ERR variable in InvalidCharacterErr 92 code = NO_DATA_ALLOWED_ERR variable in NoDataAllowedErr 95 code = NO_MODIFICATION_ALLOWED_ERR variable in NoModificationAllowedErr 98 code variable in NotFoundErr 101 code = NOT_SUPPORTED_ERR global() variable in NotSupportedErr 104 code = INUSE_ATTRIBUTE_ERR global() variable in InuseAttributeErr 107 code = INVALID_STATE_ERR global() variable in InvalidStateErr 110 code = SYNTAX_ERR global() variable in SyntaxErr 113 code = INVALID_MODIFICATION_ERR global() variable in InvalidModificationErr 116 code = NAMESPACE_ERR global() variable in NamespaceErr 119 code = INVALID_ACCESS_ERR global() variable in InvalidAccessErr 122 code = VALIDATION_ERR global() variable in ValidationErr [all...] |
/third_party/python/Modules/clinic/ |
H A D | fcntlmodule.c.h | 3 [clinic start generated code]*/ 19 "corresponding to the return value of the fcntl call in the C code."); 25 fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg); 32 int code; in fcntl_fcntl() local 41 code = _PyLong_AsInt(args[1]); in fcntl_fcntl() 42 if (code == -1 && PyErr_Occurred()) { in fcntl_fcntl() 50 return_value = fcntl_fcntl_impl(module, fd, code, arg); in fcntl_fcntl() 87 "code."); 93 fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code, 101 unsigned int code; in fcntl_ioctl() local 153 int code; fcntl_flock() local 210 int code; fcntl_lockf() local [all...] |
/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/main/cpp/ |
H A D | imageEffect.cpp | 194 int code = IMAGE_EFFECT_CODE_401; in OHImageEffectCreate() local 197 code = 0; in OHImageEffectCreate() 200 napi_create_int32(env, code, &ret); in OHImageEffectCreate() 246 ImageEffect_ErrorCode code = OH_ImageEffect_Configure(imageEffect, key, &value); in OHImageEffectConfigure() local 250 napi_create_int32(env, code, &ret); in OHImageEffectConfigure() 279 int code = IMAGE_EFFECT_CODE_401; in OHImageEffectAddFilter() local 281 code = 0; in OHImageEffectAddFilter() 284 napi_create_int32(env, code, &ret); in OHImageEffectAddFilter() 416 ImageEffect_ErrorCode code = OH_ImageEffect_GetInputSurface(imageEffect, &nativeWindow); in OHImageEffectGetInputSurface() local 420 napi_create_int32(env, code, in OHImageEffectGetInputSurface() 590 ImageEffect_ErrorCode code = OH_ImageEffect_Release(imageEffect); OHImageEffectRelease() local 678 ImageEffect_ErrorCode code; OHImageEffectSave() local 726 int32_t code = 401; OHImageEffectRestore() local 748 ImageEffect_ErrorCode code = OH_EffectFilter_SetValue(filter, KEY_FILTER_INTENSITY, &value); OHImageEffectSetInputNativeBuffer() local 768 ImageEffect_ErrorCode code = EFFECT_UNKNOWN; OHImageEffectSetInputPixelmap() local 791 ImageEffect_ErrorCode code; SetInputUri1() local 826 ImageEffect_ErrorCode code; SetInputUri2() local 868 ImageEffect_ErrorCode code; OHImageEffectSetInputUri() local 911 ImageEffect_ErrorCode code = OH_EffectFilter_SetValue(filter, KEY_FILTER_INTENSITY, &value); OHImageEffectSetOutputNativeBuffer() local 937 ImageEffect_ErrorCode code = EFFECT_UNKNOWN; OHImageEffectSetOutputPixelmap() local 967 ImageEffect_ErrorCode code; OHImageEffectSetOutputSurface() local 989 ImageEffect_ErrorCode code; SetInputUri3() local 1024 ImageEffect_ErrorCode code; SetInputUri4() local 1066 ImageEffect_ErrorCode code; OHImageEffectSetOutputUri() local [all...] |
/third_party/node/deps/v8/src/logging/ |
H A D | code-events.h | 2 // Use of this source code is governed by a BSD-style license that can be 13 #include "src/objects/code.h" 33 V(CODE_CREATION_EVENT, code-creation) \ 34 V(CODE_DISABLE_OPT_EVENT, code-disable-optimization) \ 35 V(CODE_MOVE_EVENT, code-move) \ 36 V(CODE_DELETE_EVENT, code-delete) \ 37 V(CODE_MOVING_GC, code-moving-gc) \ 39 V(SNAPSHOT_CODE_NAME_EVENT, snapshot-code-name) \ 76 virtual void CodeCreateEvent(LogEventsAndTags tag, Handle<AbstractCode> code, 78 virtual void CodeCreateEvent(LogEventsAndTags tag, Handle<AbstractCode> code, [all...] |