/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_regions.c | 113 struct intel_region *region; in intel_region_alloc_internal() local 115 region = calloc(sizeof(*region), 1); in intel_region_alloc_internal() 116 if (region == NULL) in intel_region_alloc_internal() 117 return region; in intel_region_alloc_internal() 119 region->cpp = cpp; in intel_region_alloc_internal() 120 region->width = width; in intel_region_alloc_internal() 121 region->height = height; in intel_region_alloc_internal() 122 region->pitch = pitch; in intel_region_alloc_internal() 123 region->refcount = 1; in intel_region_alloc_internal() 124 region->bo = buffer; in intel_region_alloc_internal() [all …]
|
D | intel_mipmap_tree.c | 195 mt->region = intel_region_alloc(intel->intelScreen, in intel_miptree_create() 206 if (y_or_x && mt->region->bo->size >= intel->max_gtt_map_object_size) { in intel_miptree_create() 209 intel_region_release(&mt->region); in intel_miptree_create() 211 mt->region = intel_region_alloc(intel->intelScreen, in intel_miptree_create() 221 if (!mt->region) { in intel_miptree_create() 241 struct intel_region *region = calloc(1, sizeof(*region)); in intel_miptree_create_for_bo() local 242 if (!region) in intel_miptree_create_for_bo() 260 free(region); in intel_miptree_create_for_bo() 264 region->cpp = mt->cpp; in intel_miptree_create_for_bo() 265 region->width = width; in intel_miptree_create_for_bo() [all …]
|
D | intel_screen.c | 131 assert(irb->mt->region->pitch % irb->mt->region->cpp == 0); in aub_dump_bmp() 132 drm_intel_gem_bo_aub_dump_bmp(irb->mt->region->bo, in aub_dump_bmp() 138 irb->mt->region->pitch, in aub_dump_bmp() 273 intel_region_get_tile_masks(mt->region, &mask_x, &mask_y, false); in intel_setup_image_from_mipmap_tree() 281 image->offset = intel_region_get_aligned_offset(mt->region, in intel_setup_image_from_mipmap_tree() 286 intel_region_reference(&image->region, mt->region); in intel_setup_image_from_mipmap_tree() 292 image->width = image->region->width; in intel_setup_image_from_dimensions() 293 image->height = image->region->height; in intel_setup_image_from_dimensions() 315 image->region = intel_region_alloc_for_handle(intelScreen, in intel_create_image_from_name() 318 if (image->region == NULL) { in intel_create_image_from_name() [all …]
|
D | intel_blit.c | 161 if (src_mt->region->pitch > 32768 || in intel_miptree_blit() 162 dst_mt->region->pitch > 32768) { in intel_miptree_blit() 173 int src_pitch = src_mt->region->pitch; in intel_miptree_blit() 192 src_mt->region->bo, src_mt->offset, in intel_miptree_blit() 193 src_mt->region->tiling, in intel_miptree_blit() 194 dst_mt->region->pitch, in intel_miptree_blit() 195 dst_mt->region->bo, dst_mt->offset, in intel_miptree_blit() 196 dst_mt->region->tiling, in intel_miptree_blit() 398 struct intel_region *region; in intelClearWithBlit() local 406 region = irb->mt->region; in intelClearWithBlit() [all …]
|
/external/ImageMagick/MagickCore/ |
D | distribute-cache.c | 548 region; in ReadDistributeCacheMetacontent() local 565 length=sizeof(region.width)+sizeof(region.height)+sizeof(region.x)+ in ReadDistributeCacheMetacontent() 566 sizeof(region.y)+sizeof(length); in ReadDistributeCacheMetacontent() 571 (void) memcpy(®ion.width,q,sizeof(region.width)); in ReadDistributeCacheMetacontent() 572 q+=sizeof(region.width); in ReadDistributeCacheMetacontent() 573 (void) memcpy(®ion.height,q,sizeof(region.height)); in ReadDistributeCacheMetacontent() 574 q+=sizeof(region.height); in ReadDistributeCacheMetacontent() 575 (void) memcpy(®ion.x,q,sizeof(region.x)); in ReadDistributeCacheMetacontent() 576 q+=sizeof(region.x); in ReadDistributeCacheMetacontent() 577 (void) memcpy(®ion.y,q,sizeof(region.y)); in ReadDistributeCacheMetacontent() [all …]
|
/external/webrtc/webrtc/modules/desktop_capture/ |
D | screen_capturer_helper_unittest.cc | 24 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() local 25 capturer_helper_.InvalidateRegion(region); in TEST_F() 27 capturer_helper_.TakeInvalidRegion(®ion); in TEST_F() 28 EXPECT_TRUE(region.is_empty()); in TEST_F() 32 DesktopRegion region; in TEST_F() local 33 capturer_helper_.TakeInvalidRegion(®ion); in TEST_F() 34 EXPECT_TRUE(region.is_empty()); in TEST_F() 36 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() 37 capturer_helper_.InvalidateRegion(region); in TEST_F() 38 capturer_helper_.TakeInvalidRegion(®ion); in TEST_F() [all …]
|
/external/mesa3d/src/gallium/state_trackers/clover/api/ |
D | transfer.cpp | 40 pitch(const vector_t ®ion, vector_t pitch) { in pitch() argument 42 map(multiplies(), region, pitch))) { in pitch() 56 size(const vector_t &pitch, const vector_t ®ion) { in size() argument 57 if (any_of(is_zero(), region)) in size() 60 return dot(pitch, region - vector_t{ 0, 1, 1 }); in size() 80 const vector_t &pitch, const vector_t ®ion) { in validate_object() argument 85 if (any_of(greater(), map(multiplies(), pitch, region), tail(pitch))) in validate_object() 89 if (dot(pitch, origin) + size(pitch, region) > mem.size()) in validate_object() 92 if (any_of(is_zero(), region)) in validate_object() 101 const vector_t &orig, const vector_t ®ion) { in validate_object() argument [all …]
|
/external/e2fsprogs/e2fsck/ |
D | region.c | 37 region_t region; in region_create() local 39 region = malloc(sizeof(struct region_struct)); in region_create() 40 if (!region) in region_create() 42 memset(region, 0, sizeof(struct region_struct)); in region_create() 43 region->min = min; in region_create() 44 region->max = max; in region_create() 45 return region; in region_create() 48 void region_free(region_t region) in region_free() argument 52 for (r = region->allocated; r; r = next) { in region_free() 56 memset(region, 0, sizeof(struct region_struct)); in region_free() [all …]
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_ioctl.c | 68 vmw_region_size(struct vmw_region *region) in vmw_region_size() argument 70 return region->size; in vmw_region_size() 204 struct vmw_region *region = NULL; in vmw_ioctl_gb_surface_create() local 210 region = CALLOC_STRUCT(vmw_region); in vmw_ioctl_gb_surface_create() 211 if (!region) in vmw_ioctl_gb_surface_create() 251 region->handle = rep->buffer_handle; in vmw_ioctl_gb_surface_create() 252 region->map_handle = rep->buffer_map_handle; in vmw_ioctl_gb_surface_create() 253 region->drm_fd = vws->ioctl.drm_fd; in vmw_ioctl_gb_surface_create() 254 region->size = rep->backup_size; in vmw_ioctl_gb_surface_create() 255 *p_region = region; in vmw_ioctl_gb_surface_create() [all …]
|
D | vmw_context.c | 77 } region; member 127 } region; member 191 for(i = 0; i < vswc->region.used; ++i) { in vmw_swc_flush() 192 struct vmw_buffer_relocation *reloc = &vswc->region.relocs[i]; in vmw_swc_flush() 209 *reloc->region.where = ptr; in vmw_swc_flush() 247 vswc->region.used = 0; in vmw_swc_flush() 248 vswc->region.reserved = 0; in vmw_swc_flush() 293 vswc->region.used + nr_relocs > vswc->region.size) { in vmw_swc_reserve() 305 assert(vswc->region.used + nr_relocs <= vswc->region.size); in vmw_swc_reserve() 312 vswc->region.reserved = nr_relocs; in vmw_swc_reserve() [all …]
|
/external/libtextclassifier/util/i18n/ |
D | locale.cc | 59 bool CheckRegion(StringPiece region) { in CheckRegion() argument 60 if (region.size() == 2) { in CheckRegion() 61 return std::isupper(region[0]) && std::isupper(region[1]); in CheckRegion() 62 } else if (region.size() == 3) { in CheckRegion() 63 return std::isdigit(region[0]) && std::isdigit(region[1]) && in CheckRegion() 64 std::isdigit(region[2]); in CheckRegion() 95 StringPiece region; in FromBCP47() local 97 region = *parts_it; in FromBCP47() 98 if (!CheckRegion(region)) { in FromBCP47() 99 region = ""; in FromBCP47() [all …]
|
/external/ImageMagick/MagickWand/ |
D | pixel-iterator.c | 79 region; member 126 iterator->region.width); in ClearPixelIterator() 128 iterator->pixel_wands=NewPixelWands(iterator->region.width); in ClearPixelIterator() 176 clone_iterator->region=iterator->region; in ClonePixelIterator() 180 iterator->pixel_wands,iterator->region.width); in ClonePixelIterator() 219 iterator->region.width); in DestroyPixelIterator() 329 SetGeometry(image,&iterator->region); in NewPixelIterator() 330 iterator->region.width=image->columns; in NewPixelIterator() 331 iterator->region.height=image->rows; in NewPixelIterator() 332 iterator->region.x=0; in NewPixelIterator() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CurrencyMetaInfo.java | 86 public final String region; field in CurrencyMetaInfo.CurrencyFilter 114 … private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) { in CurrencyFilter() argument 115 this.region = region; in CurrencyFilter() 152 public static CurrencyFilter onRegion(String region) { in onRegion() argument 153 return ALL.withRegion(region); in onRegion() 232 public CurrencyFilter withRegion(String region) { in withRegion() argument 233 return new CurrencyFilter(region, this.currency, this.from, this.to, this.tenderOnly); in withRegion() 245 return new CurrencyFilter(this.region, currency, this.from, this.to, this.tenderOnly); in withCurrency() 256 …return new CurrencyFilter(this.region, this.currency, date.getTime(), date.getTime(), this.tenderO… in withDate() 270 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CurrencyMetaInfo.java | 83 public final String region; field in CurrencyMetaInfo.CurrencyFilter 108 … private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) { in CurrencyFilter() argument 109 this.region = region; in CurrencyFilter() 143 public static CurrencyFilter onRegion(String region) { in onRegion() argument 144 return ALL.withRegion(region); in onRegion() 216 public CurrencyFilter withRegion(String region) { in withRegion() argument 217 return new CurrencyFilter(region, this.currency, this.from, this.to, this.tenderOnly); in withRegion() 228 return new CurrencyFilter(this.region, currency, this.from, this.to, this.tenderOnly); in withCurrency() 238 …return new CurrencyFilter(this.region, this.currency, date.getTime(), date.getTime(), this.tenderO… in withDate() 251 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange() [all …]
|
/external/autotest/client/site_tests/login_OobeLocalization/ |
D | login_OobeLocalization.py | 43 for region in self._get_regions(): 47 if region.get('confirmed', True) is False: 49 region['region_code']) 55 self._set_vpd({'region': region['region_code'], 56 'initial_locale': ','.join(region['locales']), 57 'initial_timezone': ','.join(region['time_zones']), 58 'keyboard_layout': ','.join(region['keyboards'])}) 59 self._run_with_chrome(self._run_localization_test, region) 77 def _run_localization_test(self, region): argument 81 initial_locale = ','.join(region['locales']) [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
D | XLikelySubtags.java | 109 public final String region; 114 public static LSR from(String language, String script, String region) { 115 return new LSR(language, script, region); 170 public static LSR fromMaximalized(String language, String script, String region) { 173 …String canonicalRegion = REGION_ALIASES.getCanonical(region); // getCanonical(REGION_ALIASES.get(r… 178 public LSR(String language, String script, String region) { 181 this.region = region; 190 if (!region.isEmpty()) { 191 result.append('-').append(region); 200 region2 == null ? region : region2); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | XLikelySubtags.java | 105 public final String region; 110 public static LSR from(String language, String script, String region) { 111 return new LSR(language, script, region); 166 public static LSR fromMaximalized(String language, String script, String region) { 169 …String canonicalRegion = REGION_ALIASES.getCanonical(region); // getCanonical(REGION_ALIASES.get(r… 174 public LSR(String language, String script, String region) { 177 this.region = region; 186 if (!region.isEmpty()) { 187 result.append('-').append(region); 196 region2 == null ? region : region2); [all …]
|
/external/libchrome/base/trace_event/ |
D | process_memory_maps.cc | 45 for (const auto& region : vm_regions_) { in AsValueInto() local 48 value->SetString("sa", StringPrintf(kHexFmt, region.start_address)); in AsValueInto() 49 value->SetString("sz", StringPrintf(kHexFmt, region.size_in_bytes)); in AsValueInto() 50 value->SetInteger("pf", region.protection_flags); in AsValueInto() 51 value->SetString("mf", region.mapped_file); in AsValueInto() 55 "pss", StringPrintf(kHexFmt, region.byte_stats_proportional_resident)); in AsValueInto() 57 "pd", StringPrintf(kHexFmt, region.byte_stats_private_dirty_resident)); in AsValueInto() 59 "pc", StringPrintf(kHexFmt, region.byte_stats_private_clean_resident)); in AsValueInto() 61 "sd", StringPrintf(kHexFmt, region.byte_stats_shared_dirty_resident)); in AsValueInto() 63 "sc", StringPrintf(kHexFmt, region.byte_stats_shared_clean_resident)); in AsValueInto() [all …]
|
/external/libmojo/base/android/library_loader/ |
D | library_prefetcher.cc | 36 bool IsReadableAndPrivate(const base::debug::MappedMemoryRegion& region) { in IsReadableAndPrivate() argument 37 return region.permissions & base::debug::MappedMemoryRegion::READ && in IsReadableAndPrivate() 38 region.permissions & base::debug::MappedMemoryRegion::PRIVATE; in IsReadableAndPrivate() 85 const base::debug::MappedMemoryRegion& region) { in IsGoodToPrefetch() argument 86 return PathMatchesSuffix(region.path) && in IsGoodToPrefetch() 87 IsReadableAndPrivate(region); // .text and .data mappings are private. in IsGoodToPrefetch() 95 for (const base::debug::MappedMemoryRegion& region : regions) { in FilterLibchromeRangesOnlyIfPossible() local 96 if (EndsWith(region.path, kLibchromeSuffix, CompareCase::SENSITIVE)) { in FilterLibchromeRangesOnlyIfPossible() 101 for (const base::debug::MappedMemoryRegion& region : regions) { in FilterLibchromeRangesOnlyIfPossible() local 103 !EndsWith(region.path, kLibchromeSuffix, CompareCase::SENSITIVE)) { in FilterLibchromeRangesOnlyIfPossible() [all …]
|
/external/skqp/fuzz/oss_fuzz/ |
D | FuzzRegionDeserialize.cpp | 15 SkRegion region; in FuzzRegionDeserialize() local 16 if (!region.readFromMemory(bytes->data(), bytes->size())) { in FuzzRegionDeserialize() 19 region.computeRegionComplexity(); in FuzzRegionDeserialize() 20 region.isComplex(); in FuzzRegionDeserialize() 22 if (region == r2) { in FuzzRegionDeserialize() 23 region.contains(0,0); in FuzzRegionDeserialize() 25 region.contains(1,1); in FuzzRegionDeserialize() 32 s->getCanvas()->drawRegion(region, SkPaint()); in FuzzRegionDeserialize() 33 SkDEBUGCODE(region.validate()); in FuzzRegionDeserialize()
|
/external/skia/fuzz/oss_fuzz/ |
D | FuzzRegionDeserialize.cpp | 15 SkRegion region; in FuzzRegionDeserialize() local 16 if (!region.readFromMemory(bytes->data(), bytes->size())) { in FuzzRegionDeserialize() 19 region.computeRegionComplexity(); in FuzzRegionDeserialize() 20 region.isComplex(); in FuzzRegionDeserialize() 22 if (region == r2) { in FuzzRegionDeserialize() 23 region.contains(0,0); in FuzzRegionDeserialize() 25 region.contains(1,1); in FuzzRegionDeserialize() 32 s->getCanvas()->drawRegion(region, SkPaint()); in FuzzRegionDeserialize() 33 SkDEBUGCODE(region.validate()); in FuzzRegionDeserialize()
|
/external/libchrome/base/posix/ |
D | global_descriptors.cc | 15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { in Descriptor() 20 base::MemoryMappedFile::Region region) in Descriptor() argument 21 : key(key), fd(fd), region(region) { in Descriptor() 52 base::MemoryMappedFile::Region* region) { in TakeFD() argument 57 *region = i->region; in TakeFD() 72 base::MemoryMappedFile::Region region) { in Set() argument 76 i.region = region; in Set() 81 descriptors_.push_back(Descriptor(key, fd, region)); in Set() 87 return i.region; in GetRegion()
|
/external/skqp/tests/ |
D | RegionTest.cpp | 269 static void test_write(const SkRegion& region, skiatest::Reporter* r) { in test_write() argument 270 const size_t bytesNeeded = region.writeToMemory(nullptr); in test_write() 272 const size_t bytesWritten = region.writeToMemory(storage.get()); in test_write() 278 REPORTER_ASSERT(r, region == copy); in test_write() 283 SkRegion region; in DEF_TEST() local 284 REPORTER_ASSERT(r, region.isEmpty()); in DEF_TEST() 285 test_write(region, r); in DEF_TEST() 288 bool nonEmpty = region.setRect(0, 0, 50, 50); in DEF_TEST() 290 REPORTER_ASSERT(r, region.isRect()); in DEF_TEST() 291 test_write(region, r); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | RegionTest.cpp | 269 static void test_write(const SkRegion& region, skiatest::Reporter* r) { in test_write() argument 270 const size_t bytesNeeded = region.writeToMemory(nullptr); in test_write() 272 const size_t bytesWritten = region.writeToMemory(storage.get()); in test_write() 278 REPORTER_ASSERT(r, region == copy); in test_write() 283 SkRegion region; in DEF_TEST() local 284 REPORTER_ASSERT(r, region.isEmpty()); in DEF_TEST() 285 test_write(region, r); in DEF_TEST() 288 bool nonEmpty = region.setRect(0, 0, 50, 50); in DEF_TEST() 290 REPORTER_ASSERT(r, region.isRect()); in DEF_TEST() 291 test_write(region, r); in DEF_TEST() [all …]
|
/external/libmojo/base/debug/ |
D | proc_maps_linux.cc | 114 MappedMemoryRegion region; in ParseProcMaps() local 131 ®ion.start, ®ion.end, permissions, ®ion.offset, in ParseProcMaps() 137 region.permissions = 0; in ParseProcMaps() 140 region.permissions |= MappedMemoryRegion::READ; in ParseProcMaps() 145 region.permissions |= MappedMemoryRegion::WRITE; in ParseProcMaps() 150 region.permissions |= MappedMemoryRegion::EXECUTE; in ParseProcMaps() 155 region.permissions |= MappedMemoryRegion::PRIVATE; in ParseProcMaps() 160 regions.push_back(region); in ParseProcMaps()
|