/external/mockito/src/test/java/org/mockitousage/bugs/varargs/ |
VarargsAndAnyObjectPicksUpExtraInvocationsTest.java | 22 TableBuilder table; field in class:VarargsAndAnyObjectPicksUpExtraInvocationsTest 27 table.newRow("qux", "foo", "bar", "baz"); 28 table.newRow("abc", "def"); 31 verify(table, times(2)).newRow(anyString(), (String[]) anyVararg()); 37 table.newRow("x", "foo", "bar", "baz"); 38 table.newRow("x", "def"); 41 verify(table, times(2)).newRow(eq("x"), (String[]) anyVararg()); 47 table.newRow("qux", "foo", "bar", "baz"); 48 table.newRow("abc", "def"); 51 verify(table).newRow(anyString(), eq("foo"), anyString(), anyString()) [all...] |
/external/skia/include/effects/ |
SkTableMaskFilter.h | 16 Applies a table lookup on each of the alpha values in the mask. 21 /** Utility that sets the gamma table 23 static void MakeGammaTable(uint8_t table[256], SkScalar gamma); 25 /** Utility that creates a clipping table: clamps values below min to 0 28 static void MakeClipTable(uint8_t table[256], uint8_t min, uint8_t max); 30 static SkMaskFilter* Create(const uint8_t table[256]) { 31 return new SkTableMaskFilter(table); 35 uint8_t table[256]; local 36 MakeGammaTable(table, gamma); 37 return new SkTableMaskFilter(table); 41 uint8_t table[256]; local [all...] |
/external/bison/lib/ |
hash.c | 1 /* hash - hashing table processing. 20 /* A generic hash table package. */ 56 are not empty, there are N_ENTRIES active entries in the table. */ 86 /* A hash table contains many internal entries, each holding a pointer to 91 and the current table size. At each slot position in the hash table, 97 entries divided by the table size. Finding the slot for a data is usually 100 larger hash table size (that is, a larger number of buckets) is prone to 103 Long buckets slow down the lookup algorithm. One might use big hash table 105 become inordinate, as unused slots in the hash table take some space. Th 598 Hash_table *table; local [all...] |
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/ |
package-info.java | 14 * Internal: Sortable HTML table for coverage node elements. 16 package org.jacoco.report.internal.html.table
|
/external/javasqlite/src/main/java/SQLite/ |
BusyHandler.java | 10 * Invoked when a table is locked by another process 12 * until the table becomes unlocked, or false in order 15 * @param table the name of the locked table 16 * @param count number of times the table was locked 19 public boolean busy(String table, int count);
|
/external/mesa3d/src/glx/tests/ |
indirect_api.cpp | 28 * Tests various apsects of the dispatch table generated by 31 * * No entry in the table should be \c NULL. 33 * * Entries in the table that correspond to "known" functions with GLX 36 * * Entries beyond the end of the "known" part of the table (i.e., entries 40 * * Entries in the table that correspond to "known" functions that lack 713 _glapi_proc *table; member in class:IndirectAPI 719 this->table = (_glapi_proc *) __glXNewIndirectAPI(); 725 free(this->table); 726 this->table = NULL; 733 /* __glXNewIndirectAPI determines the size of the dispatch table by callin 738 _glapi_table *table = __glXNewIndirectAPI(); local [all...] |
/external/clang/test/Analysis/ |
malloc-overflow2.c | 9 struct table { struct 11 unsigned *table; member in struct:table 15 static int table_build(struct table *t) { 18 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); // expected-warning {{the computation of the size of the memory allocation may overflow}} 28 static int table_build_1(struct table *t) { 29 t->nentry = (sizeof(struct table) * 2 + 31) / 32; 30 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); // no-warning
|
/external/valgrind/include/ |
pub_tool_hashtable.h | 3 /*--- A hash table implementation. pub_tool_hashtable.h ---*/ 36 /* Generic type for a separately-chained hash table. Via a kind of dodgy 54 /* Make a new table. Allocates the memory with VG_(calloc)(), so can 55 be freed with VG_(free)(). The table starts small but will 60 /* Count the number of nodes in a table. */ 61 extern UInt VG_(HT_count_nodes) ( const VgHashTable *table ); 63 /* Add a node to the table. Duplicate keys are permitted. */ 66 /* Looks up a VgHashNode by key in the table. 70 extern void* VG_(HT_lookup) ( const VgHashTable *table, UWord key ); 72 /* Removes a VgHashNode by key from the table. Returns NULL if not found. * [all...] |
/external/freetype/src/base/ |
ftdbgmem.c | 226 ft_mem_table_alloc( FT_MemTable table, 229 FT_Memory memory = table->memory; 233 memory->user = table->memory_user; 234 block = table->alloc( memory, size ); 235 memory->user = table; 242 ft_mem_table_free( FT_MemTable table, 245 FT_Memory memory = table->memory; 248 memory->user = table->memory_user; 249 table->free( memory, block ); 250 memory->user = table; 308 FT_MemTable table; local 681 FT_MemTable table = (FT_MemTable)memory->user; local 717 FT_MemTable table = (FT_MemTable)memory->user; local 743 FT_MemTable table = (FT_MemTable)memory->user; local 825 FT_MemTable table; local 888 FT_MemTable table = (FT_MemTable)memory->user; local 923 FT_MemTable table = (FT_MemTable)memory->user; local [all...] |
/external/pdfium/third_party/freetype/src/base/ |
ftdbgmem.c | 226 ft_mem_table_alloc( FT_MemTable table, 229 FT_Memory memory = table->memory; 233 memory->user = table->memory_user; 234 block = table->alloc( memory, size ); 235 memory->user = table; 242 ft_mem_table_free( FT_MemTable table, 245 FT_Memory memory = table->memory; 248 memory->user = table->memory_user; 249 table->free( memory, block ); 250 memory->user = table; 308 FT_MemTable table; local 680 FT_MemTable table = (FT_MemTable)memory->user; local 716 FT_MemTable table = (FT_MemTable)memory->user; local 742 FT_MemTable table = (FT_MemTable)memory->user; local 824 FT_MemTable table; local 887 FT_MemTable table = (FT_MemTable)memory->user; local 922 FT_MemTable table = (FT_MemTable)memory->user; local [all...] |
/external/libdrm/tests/ |
hash.c | 1 /* xf86drmHash.c -- Small hash table support for integer -> integer mapping 31 * hash table using self-organizing linked lists [Knuth73, pp. 398-399] for 35 * 1) The table is power-of-two sized. Prime sized tables are more 37 * sized table, especially when double hashing is not used for collision 40 * 2) The hash computation uses a table of random integers [Hanson97, 45 * With a table size of 512, the current implementation is sufficient for a 49 * naive) approach to dynamic hash table implementation simply creates a 50 * new hash table when necessary, rehashes all the data into the new table, 51 * and destroys the old table. The approach in [Larson88] is superior i 157 HashTablePtr table; local [all...] |
/external/mesa3d/src/mesa/main/ |
hash.c | 3 * Generic hash table. 44 #define TABLE_SIZE 1023 /**< Size of lookup table/array */ 50 * An entry in the hash table. 60 * The hash table data structure. 63 struct HashEntry *Table[TABLE_SIZE]; /**< the lookup table */ 73 * Create a new hash table. 75 * \return pointer to a new, empty hash table. 80 struct _mesa_HashTable *table = CALLOC_STRUCT(_mesa_HashTable); local 81 if (table) { [all...] |
/external/webrtc/webrtc/base/ |
latebindingsymboltable_unittest.cc | 39 LibmTestSymbolTable table; local 40 EXPECT_FALSE(table.IsLoaded()); 41 ASSERT_TRUE(table.Load()); 42 EXPECT_TRUE(table.IsLoaded()); 43 EXPECT_EQ(table.acosf()(0.5f), acosf(0.5f)); 44 EXPECT_EQ(table.sinf()(0.5f), sinf(0.5f)); 45 EXPECT_EQ(table.tanf()(0.5f), tanf(0.5f)); 48 table.Unload(); 49 EXPECT_FALSE(table.IsLoaded());
|
/external/icu/icu4c/source/samples/layout/ |
FontTableCache.cpp | 22 const void *table; member in struct:FontTableCacheEntry 37 fTableCache[i].table = NULL; 44 freeFontTable(fTableCache[i].table); 47 fTableCache[i].table = NULL; 56 void FontTableCache::freeFontTable(const void *table) const 58 LE_DELETE_ARRAY(table); 65 return fTableCache[i].table; 69 const void *table = readFontTable(tableTag); local 71 ((FontTableCache *) this)->add(tableTag, table); 73 return table; [all...] |
/toolchain/binutils/binutils-2.25/bfd/ |
hash.c | 1 /* hash.c -- hash table routines for BFD 33 BFD provides a simple set of hash table functions. Routines 34 are provided to initialize a hash table, to free a hash table, 35 to look up a string in a hash table and optionally create an 36 entry for it, and to traverse a hash table. There is 37 currently no routine to delete an string from a hash table. 39 The basic hash table does not permit any data to be stored 40 with a string. However, a hash table is designed to present a 44 rather than simply providing a data pointer in a hash table 709 struct bfd_hash_table table; member in struct:bfd_strtab_hash 763 struct bfd_strtab_hash *table; local [all...] |
/external/libxml2/ |
hash.c | 51 * A single entry in the hash table 65 * The entire hash table 68 struct _xmlHashEntry *table; member in struct:_xmlHashTable 82 xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name, 88 value = table->random_seed; 108 return (value % table->size); 112 xmlHashComputeQKey(xmlHashTablePtr table, 120 value = table->random_seed; 162 return (value % table->size); 167 * @size: the size of the hash table 175 xmlHashTablePtr table; local 209 xmlHashTablePtr table; local [all...] |
/system/security/keystore/tests/ |
auth_token_table_test.cpp | 66 AuthTokenTable table; local 99 AuthTokenTable table; local 101 table.AddAuthenticationToken(make_token(1, 2)); 102 table.AddAuthenticationToken(make_token(3, 4)); 103 EXPECT_EQ(2U, table.size()); 107 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(1), KM_PURPOSE_SIGN, 0, &found)); 111 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(2), KM_PURPOSE_SIGN, 0, &found)); 115 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(3), KM_PURPOSE_SIGN, 0, &found)); 119 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(4), KM_PURPOSE_SIGN, 0, &found)); 124 table.FindAuthorization(make_set(5), KM_PURPOSE_SIGN, 0, &found)) 224 AuthTokenTable table; local 234 AuthTokenTable table; local 251 AuthTokenTable table; local 261 AuthTokenTable table; local 298 AuthTokenTable table; local 304 AuthTokenTable table; local [all...] |
/external/guava/guava/src/com/google/common/base/ |
SmallCharMatcher.java | 26 * An immutable version of CharMatcher for smallish sets of characters that uses a hash table 34 private final char[] table; field in class:SmallCharMatcher 38 private SmallCharMatcher(char[] table, long filter, boolean containsZero, 41 this.table = table; 72 * Returns an array size suitable for the backing array of a hash table that 95 // Compute the hash table. 96 char[] table = new char[chooseTableSize(size)]; local 97 int mask = table.length - 1; 104 if (table[index] == 0) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
TableMaskFilter.java | 24 public TableMaskFilter(byte[] table) { 25 if (table.length < 256) { 26 throw new RuntimeException("table.length must be >= 256"); 28 native_instance = nativeNewTable(table); 43 private static native long nativeNewTable(byte[] table);
|
/external/libexif/libexif/fuji/ |
mnote-fuji-tag.c | 34 } table[] = { variable in typeref:struct:__anon23158 76 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) 77 if (table[i].tag == t) return (table[i].name); 87 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) 88 if (table[i].tag == t) return (_(table[i].title)); 97 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++ [all...] |
/external/lzma/C/ |
7zCrcOpt.c | 8 #define CRC_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
12 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table)
21 table[0x300 + (v & 0xFF)] ^
22 table[0x200 + ((v >> 8) & 0xFF)] ^
23 table[0x100 + ((v >> 16) & 0xFF)] ^
24 table[0x000 + ((v >> 24))];
31 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table)
33 return CrcUpdateT4(v, data, size, table);
43 UInt32 MY_FAST_CALL CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table)
49 table += 0x100; [all...] |
/external/speex/libspeex/ |
fftwrap.c | 86 struct drft_lookup *table; local 87 table = speex_alloc(sizeof(struct drft_lookup)); 88 spx_drft_init((struct drft_lookup *)table, size); 89 return (void*)table; 92 void spx_fft_destroy(void *table) 94 spx_drft_clear(table); 95 speex_free(table); 98 void spx_fft(void *table, float *in, float *out) 103 float scale = 1./((struct drft_lookup *)table)->n; 105 for (i=0;i<((struct drft_lookup *)table)->n;i++ 139 struct mkl_config *table = (struct mkl_config *) speex_alloc(sizeof(struct mkl_config)); local 182 struct fftw_config *table = (struct fftw_config *) speex_alloc(sizeof(struct fftw_config)); local 255 struct kiss_config *table; local [all...] |
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/ |
table.pass.cpp | 14 // const mask* table() const throw(); 25 assert(f.table() == f.classic_table()); 28 std::ctype<char>::mask table[256]; local 29 std::locale l(std::locale::classic(), new std::ctype<char>(table)); 31 assert(f.table() == table);
|
/hardware/qcom/gps/msm8909/utils/ |
loc_log.h | 55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) 58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask); 59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
|
/hardware/qcom/gps/msm8996/utils/ |
loc_log.h | 55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) 58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask); 59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
|