/third_party/libevdev/libevdev/ |
H A D | libevdev-names.c | 25 const struct name_lookup *lookup = vlookup; in cmp_entry() local 29 r = strncmp(lookup->name, entry->name, lookup->len); in cmp_entry() 31 if (entry->name[lookup->len]) in cmp_entry() 42 struct name_lookup *lookup) in lookup_name() 46 entry = bsearch(lookup, array, asize, sizeof(*array), cmp_entry); in lookup_name() 62 struct name_lookup lookup; in libevdev_event_type_from_name_n() local 65 lookup.name = name; in libevdev_event_type_from_name_n() 66 lookup.len = len; in libevdev_event_type_from_name_n() 68 entry = lookup_name(ev_names, ARRAY_LENGTH(ev_names), &lookup); in libevdev_event_type_from_name_n() 41 lookup_name(const struct name_entry *array, size_t asize, struct name_lookup *lookup) lookup_name() argument 111 struct name_lookup lookup; libevdev_event_code_from_name_n() local 138 struct name_lookup lookup; libevdev_event_value_from_name_n() local 161 struct name_lookup lookup; libevdev_property_from_name_n() local 182 struct name_lookup lookup; libevdev_event_code_from_code_name_n() local 203 struct name_lookup lookup; libevdev_event_type_from_code_name_n() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_symtable.py | 106 self.assertTrue(self.spam.lookup("glob").is_global()) 107 self.assertFalse(self.spam.lookup("glob").is_declared_global()) 108 self.assertTrue(self.spam.lookup("bar").is_global()) 109 self.assertTrue(self.spam.lookup("bar").is_declared_global()) 110 self.assertFalse(self.internal.lookup("x").is_global()) 111 self.assertFalse(self.Mine.lookup("instance_var").is_global()) 112 self.assertTrue(self.spam.lookup("bar").is_global()) 114 self.assertTrue(self.top.lookup("some_non_assigned_global_var").is_global()) 115 self.assertTrue(self.top.lookup("some_assigned_global_var").is_global()) 118 self.assertFalse(self.spam.lookup("some_va [all...] |
H A D | test_ucn.py | 72 code = unicodedata.lookup(name) 110 self.assertEqual(unicodedata.lookup(name), char) 139 self.assertEqual(unicodedata.lookup(alias), 140 unicodedata.lookup(name)) 142 unicodedata.ucd_3_2_0.lookup(alias) 168 self.assertEqual(unicodedata.lookup(seqname), codepoints) 172 unicodedata.ucd_3_2_0.lookup(seqname) 193 self.assertEqual(unicodedata.lookup(seqname), codepoints) 197 unicodedata.ucd_3_2_0.lookup(seqname) 202 self.assertRaises(TypeError, unicodedata.lookup) [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/SystemUnitTests/ |
H A D | LRUCacheTests.cpp | 47 ASSERT_EQ(cache.lookup(""), ""); in TEST() 48 ASSERT_EQ(cache.lookup("123"), ""); in TEST() 70 ASSERT_EQ(cache.lookup("1"), "one"); in TEST() 71 ASSERT_EQ(cache.lookup("2"), "two"); in TEST() 72 ASSERT_EQ(cache.lookup("3"), "three"); in TEST() 73 ASSERT_EQ(cache.lookup("4"), "four"); in TEST() 94 ASSERT_EQ(cache.lookup("1"), ""); in TEST() 95 ASSERT_EQ(cache.lookup("2"), ""); in TEST() 96 ASSERT_EQ(cache.lookup("3"), "three"); in TEST() 97 ASSERT_EQ(cache.lookup(" in TEST() [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsTextureTestUtil.cpp | 181 const char* lookup = DE_NULL; in getProgram() local 187 case PROGRAM_2D_FLOAT: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord)"; break; in getProgram() 188 case PROGRAM_2D_INT: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; in getProgram() 189 case PROGRAM_2D_UINT: sampler = "usampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; in getProgram() 190 case PROGRAM_2D_SHADOW: sampler = "sampler2DShadow"; lookup = "vec4(texture(u_sampler, vec3(v_texCoord, u_ref)), 0.0, 0.0, 1.0)"; break; in getProgram() 191 case PROGRAM_2D_FLOAT_BIAS: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord, u_bias)"; break; in getProgram() 192 case PROGRAM_2D_INT_BIAS: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord, u_bias))"; break; in getProgram() 193 case PROGRAM_2D_UINT_BIAS: sampler = "usampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord, u_bias))"; break; in getProgram() 194 case PROGRAM_2D_SHADOW_BIAS: sampler = "sampler2DShadow"; lookup = "vec4(texture(u_sampler, vec3(v_texCoord, u_ref), u_bias), 0.0, 0.0, 1.0)"; break; in getProgram() 195 case PROGRAM_1D_FLOAT: sampler = "sampler1D"; lookup in getProgram() [all...] |
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/ |
H A D | Context.java | 10 * Common context lookup table for all context modes. 20 private static void unpackLookupTable(int[] lookup, String map, String rle) { in unpackLookupTable() argument 23 lookup[i] = i & 0x3F; in unpackLookupTable() 24 lookup[512 + i] = i >> 2; in unpackLookupTable() 25 lookup[1792 + i] = 2 + (i >> 6); in unpackLookupTable() 29 lookup[1024 + i] = 4 * (map.charAt(i) - 32); in unpackLookupTable() 32 lookup[1152 + i] = i & 1; in unpackLookupTable() 33 lookup[1216 + i] = 2 + (i & 1); in unpackLookupTable() 40 lookup[offset++] = value; in unpackLookupTable() 45 lookup[179 in unpackLookupTable() [all...] |
/third_party/node/test/parallel/ |
H A D | test-dns-lookup.js | 22 assert.throws(() => dns.lookup(1, {}), err); 23 assert.throws(() => dnsPromises.lookup(1, {}), err); 32 // For calling `dns.lookup` with falsy `hostname`. 40 dns.lookup(false, 'cb'); 47 dns.lookup(false, 'options', 'cb'); 65 assert.throws(() => { dnsPromises.lookup(false, options); }, err); 67 dns.lookup(false, options, common.mustNotCall()); 84 assert.throws(() => { dnsPromises.lookup(false, options); }, err); 86 dns.lookup(false, options, common.mustNotCall()); 94 assert.throws(() => { dnsPromises.lookup(fals [all...] |
H A D | test-dns-set-default-order.js | 55 await allowFailed(promisify(dns.lookup)('example.org')); 57 await allowFailed(dnsPromises.lookup('example.org')); 59 await allowFailed(promisify(dns.lookup)('example.org', {})); 61 await allowFailed(dnsPromises.lookup('example.org', {})); 65 await allowFailed(promisify(dns.lookup)('example.org')); 67 await allowFailed(dnsPromises.lookup('example.org')); 69 await allowFailed(promisify(dns.lookup)('example.org', {})); 71 await allowFailed(dnsPromises.lookup('example.org', {})); 75 await allowFailed(promisify(dns.lookup)('example.org')); 77 await allowFailed(dnsPromises.lookup('exampl [all...] |
H A D | test-dns.js | 168 // dns.lookup should accept only falsey and string values 176 assert.throws(() => dns.lookup({}, common.mustNotCall()), errorReg); 178 assert.throws(() => dns.lookup([], common.mustNotCall()), errorReg); 180 assert.throws(() => dns.lookup(true, common.mustNotCall()), errorReg); 182 assert.throws(() => dns.lookup(1, common.mustNotCall()), errorReg); 184 assert.throws(() => dns.lookup(common.mustNotCall(), common.mustNotCall()), 187 assert.throws(() => dnsPromises.lookup({}), errorReg); 188 assert.throws(() => dnsPromises.lookup([]), errorReg); 189 assert.throws(() => dnsPromises.lookup(true), errorReg); 190 assert.throws(() => dnsPromises.lookup( [all...] |
H A D | test-dns-lookup-promises.js | 37 factory: () => dnsPromises.lookup('example.com'), 42 factory: () => dnsPromises.lookup('example.com'), 47 factory: () => dnsPromises.lookup('example.com'), 52 factory: () => dnsPromises.lookup('example.com'), 57 factory: () => dnsPromises.lookup('example.com', { family: 6 }), 73 return assert.rejects(dnsPromises.lookup('example.com'), expected); 80 factory: () => dnsPromises.lookup('example', { all: true }), 88 factory: () => dnsPromises.lookup('example', { all: true, family: 4 }), 96 factory: () => dnsPromises.lookup('example', { all: true }), 104 factory: () => dnsPromises.lookup('exampl [all...] |
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | x509_d2.c | 18 X509_LOOKUP *lookup; in X509_STORE_set_default_paths_ex() local 20 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file()); in X509_STORE_set_default_paths_ex() 21 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 23 X509_LOOKUP_load_file_ex(lookup, NULL, X509_FILETYPE_DEFAULT, libctx, propq); in X509_STORE_set_default_paths_ex() 25 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_hash_dir()); in X509_STORE_set_default_paths_ex() 26 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 28 X509_LOOKUP_add_dir(lookup, NULL, X509_FILETYPE_DEFAULT); in X509_STORE_set_default_paths_ex() 30 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_store()); in X509_STORE_set_default_paths_ex() 31 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 33 X509_LOOKUP_add_store_ex(lookup, NUL in X509_STORE_set_default_paths_ex() 48 X509_LOOKUP *lookup; X509_STORE_load_file_ex() local 66 X509_LOOKUP *lookup; X509_STORE_load_path() local 79 X509_LOOKUP *lookup; X509_STORE_load_store_ex() local [all...] |
/third_party/openssl/crypto/x509/ |
H A D | x509_d2.c | 18 X509_LOOKUP *lookup; in X509_STORE_set_default_paths_ex() local 20 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file()); in X509_STORE_set_default_paths_ex() 21 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 23 X509_LOOKUP_load_file_ex(lookup, NULL, X509_FILETYPE_DEFAULT, libctx, propq); in X509_STORE_set_default_paths_ex() 25 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_hash_dir()); in X509_STORE_set_default_paths_ex() 26 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 28 X509_LOOKUP_add_dir(lookup, NULL, X509_FILETYPE_DEFAULT); in X509_STORE_set_default_paths_ex() 30 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_store()); in X509_STORE_set_default_paths_ex() 31 if (lookup == NULL) in X509_STORE_set_default_paths_ex() 33 X509_LOOKUP_add_store_ex(lookup, NUL in X509_STORE_set_default_paths_ex() 48 X509_LOOKUP *lookup; X509_STORE_load_file_ex() local 66 X509_LOOKUP *lookup; X509_STORE_load_path() local 79 X509_LOOKUP *lookup; X509_STORE_load_store_ex() local [all...] |
/third_party/node/lib/internal/ |
H A D | dgram.js | 23 function lookup4(lookup, address, callback) { 24 return lookup(address || '127.0.0.1', 4, callback); 28 function lookup6(lookup, address, callback) { 29 return lookup(address || '::1', 6, callback); 32 function newHandle(type, lookup) { 33 if (lookup === undefined) { 38 lookup = dns.lookup; 40 validateFunction(lookup, 'lookup'); [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/localedistance/ |
H A D | PartitionInfoTest.java | 70 // The partition lookup array maps regions to the index of their partition string. in testPartitionInfo() 71 byte[] lookup = info.getPartitionLookupArray(); in testPartitionInfo() 72 assertThat(lookup[LSR.indexForRegion("CA")]).isEqualTo(1); in testPartitionInfo() 73 assertThat(lookup[LSR.indexForRegion("VI")]).isEqualTo(1); in testPartitionInfo() 74 assertThat(lookup[LSR.indexForRegion("DE")]).isEqualTo(2); in testPartitionInfo() 75 assertThat(lookup[LSR.indexForRegion("FR")]).isEqualTo(2); in testPartitionInfo() 76 assertThat(lookup[LSR.indexForRegion("GB")]).isEqualTo(3); in testPartitionInfo() 77 assertThat(lookup[LSR.indexForRegion("PR")]).isEqualTo(4); in testPartitionInfo() 78 assertThat(lookup[LSR.indexForRegion("US")]).isEqualTo(4); in testPartitionInfo() 79 assertThat(lookup[LS in testPartitionInfo() [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_tls_test.cc | 61 CU_ASSERT(0 == tree->lookup(hostnames[0])); in test_shrpx_tls_create_lookup_tree() 62 CU_ASSERT(1 == tree->lookup(hostnames[1])); in test_shrpx_tls_create_lookup_tree() 63 CU_ASSERT(2 == tree->lookup(StringRef::from_lit("2www.example.org"))); in test_shrpx_tls_create_lookup_tree() 64 CU_ASSERT(-1 == tree->lookup(StringRef::from_lit("www2.example.org"))); in test_shrpx_tls_create_lookup_tree() 65 CU_ASSERT(3 == tree->lookup(StringRef::from_lit("xy1.host.domain"))); in test_shrpx_tls_create_lookup_tree() 68 CU_ASSERT(-1 == tree->lookup(StringRef::from_lit("yy.host.domain"))); in test_shrpx_tls_create_lookup_tree() 69 CU_ASSERT(4 == tree->lookup(StringRef::from_lit("xyy.host.domain"))); in test_shrpx_tls_create_lookup_tree() 70 CU_ASSERT(-1 == tree->lookup(StringRef{})); in test_shrpx_tls_create_lookup_tree() 71 CU_ASSERT(5 == tree->lookup(hostnames[5])); in test_shrpx_tls_create_lookup_tree() 72 CU_ASSERT(6 == tree->lookup(hostname in test_shrpx_tls_create_lookup_tree() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_wm_iz.cpp | 120 * \param lookup bitmask of BRW_WM_IZ_* flags 130 int lookup = key->iz_lookup; in setup_fs_payload_gfx4() local 132 assert(lookup < BRW_WM_IZ_BIT_MAX); in setup_fs_payload_gfx4() 140 (lookup & BRW_WM_IZ_PS_KILL_ALPHATEST_BIT) && in setup_fs_payload_gfx4() 141 wm_iz_table[lookup].mode == P) { in setup_fs_payload_gfx4() 147 if (wm_iz_table[lookup].sd_present || prog_data->uses_src_depth || in setup_fs_payload_gfx4() 153 if (wm_iz_table[lookup].sd_to_rt || kill_stats_promoted_workaround) in setup_fs_payload_gfx4() 156 if (wm_iz_table[lookup].ds_present || key->line_aa != BRW_WM_AA_NEVER) { in setup_fs_payload_gfx4() 159 !wm_iz_table[lookup].ds_present && key->line_aa == BRW_WM_AA_SOMETIMES; in setup_fs_payload_gfx4() 163 if (wm_iz_table[lookup] in setup_fs_payload_gfx4() [all...] |
/third_party/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/ |
H A D | PhonePrefixMapTest.java | 99 assertEquals("New York", phonePrefixMapForUS.lookup(number)); in testLookupInvalidNumber_US() 104 assertEquals("Westwood, NJ", phonePrefixMapForUS.lookup(number)); in testLookupNumber_NJ() 109 assertEquals("New York", phonePrefixMapForUS.lookup(number)); in testLookupNumber_NY() 114 assertEquals("San Mateo, CA", phonePrefixMapForUS.lookup(number)); in testLookupNumber_CA_1() 119 assertEquals("California", phonePrefixMapForUS.lookup(number)); in testLookupNumber_CA_2() 124 assertEquals("Richardson, TX", phonePrefixMapForUS.lookup(number)); in testLookupNumberFound_TX() 129 assertNull(phonePrefixMapForUS.lookup(number)); in testLookupNumberNotFound_TX() 134 assertNull(phonePrefixMapForUS.lookup(number)); in testLookupNumber_CH() 139 assertEquals("Milan", phonePrefixMapForIT.lookup(number)); in testLookupNumber_IT() 142 assertEquals("Rome", phonePrefixMapForIT.lookup(numbe in testLookupNumber_IT() [all...] |
/third_party/skia/tests/graphite/ |
H A D | UniformCacheTest.cpp | 57 sk_sp<UniformData> lookup = cache->lookup(result1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 58 REPORTER_ASSERT(reporter, lookup->id() == result1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 70 sk_sp<UniformData> lookup = cache->lookup(result2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 71 REPORTER_ASSERT(reporter, lookup->id() == result2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 83 sk_sp<UniformData> lookup = cache->lookup(result3->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 84 REPORTER_ASSERT(reporter, lookup->id() == result3->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
|
H A D | ProgramCacheTest.cpp | 30 sk_sp<ProgramCache::ProgramInfo> lookup = cache->lookup(pi1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 31 REPORTER_ASSERT(reporter, lookup->id() == pi1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 43 sk_sp<ProgramCache::ProgramInfo> lookup = cache->lookup(pi2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 44 REPORTER_ASSERT(reporter, lookup->id() == pi2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() 59 sk_sp<ProgramCache::ProgramInfo> lookup = cache->lookup(pi3->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local 60 REPORTER_ASSERT(reporter, lookup->id() == pi3->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
|
/third_party/protobuf/ruby/tests/ |
H A D | basic_proto2.rb | 25 BadFieldNames = pool.lookup("BadFieldNames").msgclass 39 assert !TestMessage.descriptor.lookup('optional_int32').has?(m) 41 assert !TestMessage.descriptor.lookup('optional_int64').has?(m) 43 assert !TestMessage.descriptor.lookup('optional_uint32').has?(m) 45 assert !TestMessage.descriptor.lookup('optional_uint64').has?(m) 47 assert !TestMessage.descriptor.lookup('optional_bool').has?(m) 49 assert !TestMessage.descriptor.lookup('optional_float').has?(m) 51 assert !TestMessage.descriptor.lookup('optional_double').has?(m) 53 assert !TestMessage.descriptor.lookup('optional_string').has?(m) 55 assert !TestMessage.descriptor.lookup('optional_byte [all...] |
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
H A D | string_piece.cc | 93 // the lookup table in constant time. 116 bool lookup[UCHAR_MAX + 1] = { false }; in find_first_of() 117 BuildLookupTable(s, lookup); in find_first_of() 119 if (lookup[static_cast<unsigned char>(ptr_[i])]) { in find_first_of() 138 bool lookup[UCHAR_MAX + 1] = { false }; in find_first_not_of() 139 BuildLookupTable(s, lookup); in find_first_not_of() 141 if (!lookup[static_cast<unsigned char>(ptr_[i])]) { in find_first_not_of() 168 bool lookup[UCHAR_MAX + 1] = { false }; in find_last_of() 169 BuildLookupTable(s, lookup); in find_last_of() 171 if (lookup[static_cas in find_last_of() [all...] |
/third_party/rust/crates/syn/codegen/src/ |
H A D | parse.rs | 33 let mut lookup = Lookup { in parse() variables 39 load_file(SYN_CRATE_ROOT, &[], &mut lookup)?; in parse() 43 let types = lookup in parse() 46 .map(|item| introspect_item(item, &lookup)) in parse() 49 let tokens = lookup in parse() 68 fn introspect_item(item: &AstItem, lookup: &Lookup) -> types::Node { in introspect_item() 75 data: types::Data::Enum(introspect_enum(data, lookup)), in introspect_item() 84 types::Data::Struct(introspect_struct(data, lookup)) in introspect_item() 95 fn introspect_enum(item: &DataEnum, lookup: &Lookup) -> types::Variants { in introspect_enum() 106 .map(|field| introspect_type(&field.ty, lookup)) in introspect_enum() [all...] |
/third_party/node/test/internet/ |
H A D | test-dns-ipv4.js | 91 validateResult(await dnsPromises.lookup(addresses.INET4_HOST, 4)); 93 const req = dns.lookup( 109 validateResult(await dnsPromises.lookup(addresses.INET4_HOST)); 111 const req = dns.lookup( 127 validateResult(await dnsPromises.lookup(addresses.INET4_HOST, { family: 4 })); 129 const req = dns.lookup(addresses.INET4_HOST, { 145 validateResult(await dnsPromises.lookup(addresses.INET4_HOST, { 149 const req = dns.lookup(addresses.INET4_HOST, { 165 validateResult(await dnsPromises.lookup('127.0.0.1')); 167 const req = dns.lookup('127. [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | vima.c | 169 int lookup_size, lookup, highbit, lowbits; in decode_frame() local 173 lookup = get_bits(&gb, lookup_size); in decode_frame() 177 if (lookup & highbit) in decode_frame() 178 lookup ^= highbit; in decode_frame() 182 if (lookup == lowbits) { in decode_frame() 187 predict_index = (lookup << (7 - lookup_size)) | (step_index << 6); in decode_frame() 190 if (lookup) in decode_frame() 201 step_index += step_index_tables[lookup_size - 2][lookup]; in decode_frame()
|
/third_party/node/deps/v8/src/ic/ |
H A D | ic.cc | 215 // If there is a getter, return; otherwise loop to perform the lookup. in LookupForRead() 464 // Named lookup in the object. in Load() 484 // IC handling of private symbols/fields lookup on JSProxy is not in Load() 502 // Named lookup in the object. in Load() 615 // Check if current lookup object is an API object in UpdateMegaDOMIC() 807 void LoadIC::UpdateCaches(LookupIterator* lookup) { in UpdateCaches() argument 809 if (lookup->state() == LookupIterator::ACCESS_CHECK) { in UpdateCaches() 811 } else if (!lookup->IsFound()) { in UpdateCaches() 817 } else if (IsLoadGlobalIC() && lookup->state() == LookupIterator::JSPROXY) { in UpdateCaches() 824 if (lookup in UpdateCaches() 896 MakeLoadWasmStructFieldHandler(Isolate* isolate, Handle<JSReceiver> holder, LookupIterator* lookup) MakeLoadWasmStructFieldHandler() argument 931 ComputeHandler(LookupIterator* lookup) ComputeHandler() argument 1913 UpdateCaches(LookupIterator* lookup, Handle<Object> value, StoreOrigin store_origin) UpdateCaches() argument 1939 ComputeHandler(LookupIterator* lookup) ComputeHandler() argument [all...] |