/frameworks/base/libs/androidfw/tests/ |
ResTable_test.cpp | 32 * Include a binary resource table. 41 ResTable table; local 42 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 46 ResTable table; local 47 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 49 EXPECT_TRUE(IsStringEqual(table, base::R::string::test1, "test1")); 53 ResTable table; local 54 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 58 uint32_t resID = table.identifierForName(testName.string(), testName.size(), 66 ResTable table; local 86 ResTable table; local 106 ResTable table; local 121 ResTable table; local 137 ResTable table; local 165 ResTable table; local 191 ResTable table; local [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/processes/process_monitor/ |
popup.js | 9 var table = "<table>\n" + 22 table = displayProcessInfo(processes[pid], table); 24 table += "</table>\n"; 26 div.innerHTML = table; 35 function displayProcessInfo(process, table) { 46 table += 56 table += "<td>" + (process.privateMemory / 1024) + "K</td>" [all...] |
/external/chromium_org/device/usb/tools/ |
usb_ids.py | 23 table = {} 30 table[vendor["id"]] = vendor 46 return table 48 def GenerateDeviceDefinitions(table): 51 for vendor_id in sorted(table.keys()): 52 vendor = table[vendor_id] 65 def GenerateVendorDefinitions(table): 66 output = "const size_t UsbIds::vendor_size_ = %d;\n" % len(table.keys()) 69 for vendor_id in sorted(table.keys()): 70 vendor = table[vendor_id 88 table = ParseTable(opts.input) variable [all...] |
/external/e2fsprogs/lib/ss/ |
invocation.c | 30 register ss_data **table; local 33 table = _ss_table; 36 if (table == (ss_data **) NULL) { 37 table = (ss_data **) malloc(2 * size); 38 table[0] = table[1] = (ss_data *)NULL; 42 for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++) 44 table = (ss_data **) realloc((char *)table, 46 if (table == NULL) [all...] |
/external/chromium_org/net/spdy/ |
hpack_huffman_table.cc | 21 // How many bits to index in the root decode table. 126 const DecodeTable table = decode_tables_[table_index]; local 129 uint32 index = (it->code << table.prefix_length); 130 index = index >> (32 - table.indexed_length); 132 CHECK_LT(index, table.size()); 133 DecodeEntry entry = Entry(table, index); 135 uint8 total_indexed = table.prefix_length + table.indexed_length; 141 SetEntry(table, index, entry); 146 // First visit to this placeholder. We need to create a new table 161 const DecodeTable& table = decode_tables_[i]; local 188 DecodeTable table; local 280 const DecodeTable* table = &decode_tables_[0]; local [all...] |
/external/chromium_org/third_party/ots/src/ |
os2.cc | 15 Buffer table(data, length); 20 if (!table.ReadU16(&os2->version) || 21 !table.ReadS16(&os2->avg_char_width) || 22 !table.ReadU16(&os2->weight_class) || 23 !table.ReadU16(&os2->width_class) || 24 !table.ReadU16(&os2->type) || 25 !table.ReadS16(&os2->subscript_x_size) || 26 !table.ReadS16(&os2->subscript_y_size) || 27 !table.ReadS16(&os2->subscript_x_offset) || 28 !table.ReadS16(&os2->subscript_y_offset) | [all...] |
head.cc | 15 Buffer table(data, length); 19 if (!table.ReadU32(&version) || 20 !table.ReadU32(&file->head->revision)) { 29 if (!table.Skip(4)) { 34 if (!table.ReadTag(&magic) || 39 if (!table.ReadU16(&file->head->flags)) { 46 if (!table.ReadU16(&file->head->ppem)) { 65 if (!table.ReadR64(&file->head->created) || 66 !table.ReadR64(&file->head->modified)) { 70 if (!table.ReadS16(&file->head->xmin) | [all...] |
metrics.cc | 16 bool ParseMetricsHeader(OpenTypeFile *file, Buffer *table, 18 if (!table->ReadS16(&header->ascent) || 19 !table->ReadS16(&header->descent) || 20 !table->ReadS16(&header->linegap) || 21 !table->ReadU16(&header->adv_width_max) || 22 !table->ReadS16(&header->min_sb1) || 23 !table->ReadS16(&header->min_sb2) || 24 !table->ReadS16(&header->max_extent) || 25 !table->ReadS16(&header->caret_slope_rise) || 26 !table->ReadS16(&header->caret_slope_run) | [all...] |
hhea.cc | 16 Buffer table(data, length); 20 if (!table.ReadU32(&hhea->header.version)) { 27 if (!ParseMetricsHeader(file, &table, &hhea->header)) {
|
/external/chromium_org/v8/test/cctest/ |
test-dictionary.cc | 45 static void TestHashMap(Handle<HashMap> table) { 51 table = HashMap::Put(table, a, b); 52 CHECK_EQ(table->NumberOfElements(), 1); 53 CHECK_EQ(table->Lookup(a), *b); 55 CHECK_EQ(table->Lookup(b), CcTest::heap()->the_hole_value()); 59 CHECK_EQ(table->NumberOfElements(), 1); 60 CHECK_EQ(table->Lookup(a), *b); 61 CHECK_EQ(table->Lookup(b), CcTest::heap()->the_hole_value()); 64 table = HashMap::Put(table, a, factory->NewJSArray(13)) 141 Handle<ObjectHashTable> table = ObjectHashTable::New(isolate, 100); local 154 Handle<ObjectHashTable> table = ObjectHashTable::New(isolate, 100); local [all...] |
/system/core/fastbootd/other/ |
gptedit.c | 65 void printGPT(struct GPT_entry_table *table); 66 void addGPT(struct GPT_entry_table *table, const char *arg, const char *guid, const char *tguid); 67 void deleteGPT(struct GPT_entry_table *table, const char *name); 68 void configPrintGPT(struct GPT_entry_table *table); 152 struct GPT_entry_table *table = GPT_get_device(path, gpt_location); local 153 if (table == NULL) { 154 fprintf(stderr, "unable to get GPT table from %s\n", path); 159 addGPT(table, new_partition, partition_guid, type_guid); 161 deleteGPT(table, old_partition); 163 printGPT(table); [all...] |
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/ |
test_mock.py | 115 table = mock.MockTable({'Key': 'Value'}) 116 self.assertEqual('Value', table.get('KEY')) 117 self.assertEqual('Value', table['key']) 120 table = mock.MockTable([('Key', 'Value')]) 121 self.assertEqual('Value', table.get('KEY')) 122 self.assertEqual('Value', table['key']) 125 table = mock.MockTable((('Key', 'Value'),)) 126 self.assertEqual('Value', table.get('KEY')) 127 self.assertEqual('Value', table['key']) 130 table = mock.MockTable( [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
NewCustomTableTest.java | 35 @Override protected Table<String, Integer, Character> create( 46 Table<String, Integer, Character> table local 48 populate(table, data); 49 return table; 53 table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c'); 54 ASSERT.that(table.rowKeySet()).hasContentsInOrder("foo", "bar"); 58 table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c'); 59 ASSERT.that(table.row("foo").keySet()).hasContentsInOrder(2, 3);
|
TablesTransformValuesTest.java | 40 @Override protected Table<String, Integer, Character> create( 42 Table<String, Integer, String> table = HashBasedTable.create(); local 46 table.put((String) data[i], (Integer) data[i+1], value); 48 return Tables.transformValues(table, FIRST_CHARACTER); 51 // Null support depends on the underlying table and function. 58 table.put("foo", 1, 'a'); 65 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); 66 Table<String, Integer, Character> other = HashBasedTable.create(); 71 table.putAll(other) [all...] |
/frameworks/base/core/jni/android/graphics/ |
NinePatchPeeker.cpp | 42 SkImageDecoder::PrefConfigTable table; local 43 table.fPrefFor_8Index_NoAlpha_src = SkBitmap::kIndex8_Config; 44 table.fPrefFor_8Index_YesAlpha_src = SkBitmap::kIndex8_Config; 45 table.fPrefFor_8Gray_src = SkBitmap::kARGB_8888_Config; 46 table.fPrefFor_8bpc_NoAlpha_src = SkBitmap::kARGB_8888_Config; 47 table.fPrefFor_8bpc_YesAlpha_src = SkBitmap::kARGB_8888_Config; 49 mHost->setPrefConfigTable(table);
|
/external/stlport/src/ |
time_facets.cpp | 65 // _Init_time_info: initialize table with 69 static void _Init_timeinfo_base(_Time_Info_Base& table) { 70 table._M_time_format = "%H:%M:%S"; 71 table._M_date_format = "%m/%d/%y"; 72 table._M_date_time_format = "%m/%d/%y"; 75 static void _Init_timeinfo(_Time_Info& table) { 78 table._M_dayname[i] = default_dayname[i]; 80 table._M_monthname[i] = default_monthname[i]; 81 table._M_am_pm[0] = "AM"; 82 table._M_am_pm[1] = "PM" 149 const string& format, const _TimeInfo& table, const tm* t) { variable 216 const _TimeInfo& table, const tm* t) { variable [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
time_facets.cpp | 65 // _Init_time_info: initialize table with 69 static void _Init_timeinfo_base(_Time_Info_Base& table) { 70 table._M_time_format = "%H:%M:%S"; 71 table._M_date_format = "%m/%d/%y"; 72 table._M_date_time_format = "%m/%d/%y"; 75 static void _Init_timeinfo(_Time_Info& table) { 78 table._M_dayname[i] = default_dayname[i]; 80 table._M_monthname[i] = default_monthname[i]; 81 table._M_am_pm[0] = "AM"; 82 table._M_am_pm[1] = "PM" 149 const string& format, const _TimeInfo& table, const tm* t) { variable 216 const _TimeInfo& table, const tm* t) { variable [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
ucol_cnt.h | 16 * This module maintains a contraction table structure in expanded form 63 uprv_cnttab_clone(CntTable *table, UErrorCode *status); 65 uprv_cnttab_close(CntTable *table); 67 /* construct the table for output */ 69 uprv_cnttab_constructTable(CntTable *table, uint32_t mainOffset, UErrorCode *status); 70 /* adds more contractions in table. If element is non existant, it creates on. Returns element handle */ 72 uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status); 73 /* sets a part of contraction sequence in table. If element is non existant, it creates on. Returns element handle */ 75 uprv_cnttab_setContraction(CntTable *table, uint32_t element, uint32_t offset, UChar codePoint, uint32_t value, UErrorCode *status); 76 /* inserts a part of contraction sequence in table. Sequences behind the offset are moved back. If element is non existant, it creates on. Returns el (…) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_linkage.h | 57 util_semantic_table_from_layout(unsigned char *table, size_t table_size, unsigned char *layout, 61 memset(table, 0xff, table_size); 64 table[layout[i]] = first_slot_value + i;
|
/external/libsepol/tests/ |
test-expander-attr-map.c | 93 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5")); 94 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_1_t")); 95 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_2_t")); 96 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8")); 97 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_1_t")); 98 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_2_t")); 99 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4")); 100 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_1_t")); 101 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_2_t")); 102 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_7")) [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_linkage.h | 57 util_semantic_table_from_layout(unsigned char *table, size_t table_size, unsigned char *layout, 61 memset(table, 0xff, table_size); 64 table[layout[i]] = first_slot_value + i;
|
/frameworks/rs/cpu_ref/linkloader/include/ |
ELFSectionHeaderTable.h | 33 std::vector<ELFSectionHeaderTy *> table; member in class:ELFSectionHeaderTable 47 return table[i]; 51 return table[i];
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
string-fasta.js | 36 function makeCumulative(table) { 38 for (var c in table) { 39 if (last) table[c] += table[last]; 60 function fastaRandom(n, table) { 62 makeCumulative(table); 67 for (var c in table) { 68 if (r < table[c]) {
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
string-fasta.js | 36 function makeCumulative(table) { 38 for (var c in table) { 39 if (last) table[c] += table[last]; 60 function fastaRandom(n, table) { 62 makeCumulative(table); 67 for (var c in table) { 68 if (r < table[c]) {
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
string-fasta.js | 36 function makeCumulative(table) { 38 for (var c in table) { 39 if (last) table[c] += table[last]; 60 function fastaRandom(n, table) { 62 makeCumulative(table); 67 for (var c in table) { 68 if (r < table[c]) {
|