Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 2617) sorted by relevance

12345678910>>...105

/external/libchrome/base/memory/
Dplatform_shared_memory_region_unittest.cc29 PlatformSharedMemoryRegion region; in TEST_F() local
30 EXPECT_FALSE(region.IsValid()); in TEST_F()
31 WritableSharedMemoryMapping mapping = MapForTesting(&region); in TEST_F()
33 PlatformSharedMemoryRegion duplicate = region.Duplicate(); in TEST_F()
35 EXPECT_FALSE(region.ConvertToReadOnly()); in TEST_F()
40 PlatformSharedMemoryRegion region = in TEST_F() local
42 EXPECT_FALSE(region.IsValid()); in TEST_F()
54 PlatformSharedMemoryRegion region = in TEST_F() local
56 EXPECT_FALSE(region.IsValid()); in TEST_F()
69 PlatformSharedMemoryRegion region = in TEST_F() local
[all …]
Dshared_memory_region_unittest.cc55 TypeParam region; in TYPED_TEST() local
56 EXPECT_FALSE(region.IsValid()); in TYPED_TEST()
58 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST()
121 TypeParam region = TypeParam::Deserialize(std::move(platform_region)); in TYPED_TEST() local
122 EXPECT_TRUE(region.IsValid()); in TYPED_TEST()
124 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST()
160 TypeParam region; in TYPED_TEST() local
162 std::tie(region, rw_mapping) = CreateMappedRegion<TypeParam>(kDataSize); in TYPED_TEST()
163 ASSERT_TRUE(region.IsValid()); in TYPED_TEST()
173 region.MapAt(bytes_offset, kDataSize - bytes_offset); in TYPED_TEST()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_regions.c113 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 …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c257 struct userspace_mem_region *region; in kvm_vm_restart() local
263 for (region = vmp->userspace_mem_region_head; region; in kvm_vm_restart()
264 region = region->next) { in kvm_vm_restart()
265 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
270 ret, errno, region->region.slot, in kvm_vm_restart()
271 region->region.flags, in kvm_vm_restart()
272 region->region.guest_phys_addr, in kvm_vm_restart()
273 region->region.memory_size); in kvm_vm_restart()
322 struct userspace_mem_region *region; in userspace_mem_region_find() local
324 for (region = vm->userspace_mem_region_head; region; in userspace_mem_region_find()
[all …]
/external/skqp/docs/
DSkRegion_Reference.bmh42 Iterator(const SkRegion& region);
44 void reset(const SkRegion& region);
63 SkRegion region;
64 region.setRect({1, 2, 3, 4});
65 iter.reset(region);
79 #Method Iterator(const SkRegion& region)
84 SkRegion region;
85 region.setRect({1, 2, 3, 4});
86 SkRegion::Iterator iter(region);
116 SkRegion region;
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_blit.c44 VkImageResolve region = {}; in blit_resolve() local
46 region.srcSubresource.aspectMask = src->aspect; in blit_resolve()
47 region.srcSubresource.mipLevel = info->src.level; in blit_resolve()
48 region.srcOffset.x = info->src.box.x; in blit_resolve()
49 region.srcOffset.y = info->src.box.y; in blit_resolve()
52 region.srcOffset.z = 0; in blit_resolve()
53 region.srcSubresource.baseArrayLayer = info->src.box.z; in blit_resolve()
54 region.srcSubresource.layerCount = info->src.box.depth; in blit_resolve()
57 region.srcOffset.z = info->src.box.z; in blit_resolve()
58 region.srcSubresource.baseArrayLayer = 0; in blit_resolve()
[all …]
/external/ImageMagick/MagickCore/
Ddistribute-cache.c549 region; in ReadDistributeCacheMetacontent() local
561 length=sizeof(region.width)+sizeof(region.height)+sizeof(region.x)+ in ReadDistributeCacheMetacontent()
562 sizeof(region.y)+sizeof(length); in ReadDistributeCacheMetacontent()
567 (void) memcpy(&region.width,q,sizeof(region.width)); in ReadDistributeCacheMetacontent()
568 q+=sizeof(region.width); in ReadDistributeCacheMetacontent()
569 (void) memcpy(&region.height,q,sizeof(region.height)); in ReadDistributeCacheMetacontent()
570 q+=sizeof(region.height); in ReadDistributeCacheMetacontent()
571 (void) memcpy(&region.x,q,sizeof(region.x)); in ReadDistributeCacheMetacontent()
572 q+=sizeof(region.x); in ReadDistributeCacheMetacontent()
573 (void) memcpy(&region.y,q,sizeof(region.y)); in ReadDistributeCacheMetacontent()
[all …]
/external/webrtc/modules/desktop_capture/
Dscreen_capturer_helper_unittest.cc23 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() local
24 capturer_helper_.InvalidateRegion(region); in TEST_F()
26 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
27 EXPECT_TRUE(region.is_empty()); in TEST_F()
31 DesktopRegion region; in TEST_F() local
32 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
33 EXPECT_TRUE(region.is_empty()); in TEST_F()
35 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
36 capturer_helper_.InvalidateRegion(region); in TEST_F()
37 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
[all …]
/external/e2fsprogs/e2fsck/
Dregion.c38 region_t region; in region_create() local
40 region = malloc(sizeof(struct region_struct)); in region_create()
41 if (!region) in region_create()
43 memset(region, 0, sizeof(struct region_struct)); in region_create()
44 region->min = min; in region_create()
45 region->max = max; in region_create()
46 region->last = NULL; in region_create()
47 return region; in region_create()
50 void region_free(region_t region) in region_free() argument
54 for (r = region->allocated; r; r = next) { in region_free()
[all …]
/external/openscreen/platform/impl/
Dtls_write_buffer_unittest.cc60 auto region = buffer.GetReadableRegion(); in TEST() local
61 auto* const buffer_begin = region.data(); in TEST()
63 EXPECT_EQ(region.size(), partial_buffer_size); in TEST()
64 EXPECT_TRUE(std::all_of(region.begin(), region.end(), in TEST()
69 region = buffer.GetReadableRegion(); in TEST()
70 EXPECT_EQ(region.data(), buffer_begin + buffer_size / 2); in TEST()
71 EXPECT_EQ(region.size(), buffer_size / 4); in TEST()
72 EXPECT_TRUE(std::all_of(region.begin(), region.end(), in TEST()
79 region = buffer.GetReadableRegion(); in TEST()
80 EXPECT_EQ(region.data(), buffer_begin + buffer_size / 2); in TEST()
[all …]
/external/cldr/tools/java/org/unicode/cldr/icu/
DidList.txt592 # region codes: ISO 3166 and UN codes
595 region; AA; PRIVATE USE; 2004-08-01; ;
596 region; AD; Andorra; 2004-07-06; ;
597 region; AE; United Arab Emirates; 2004-07-06; ;
598 region; AF; Afghanistan; 2004-07-06; ;
599 region; AG; Antigua and Barbuda; 2004-07-06; ;
600 region; AI; Anguilla; 2004-07-06; ;
601 region; AL; Albania; 2004-07-06; ;
602 region; AM; Armenia; 2004-07-06; ;
603 region; AN; Netherlands Antilles; 2004-07-06; ;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLSR.java25 public final String region; field in LSR
30 public LSR(String language, String script, String region, int flags) { in LSR() argument
33 this.region = region; in LSR()
34 regionIndex = indexForRegion(region); in LSR()
43 public static final int indexForRegion(String region) { in indexForRegion() argument
44 if (region.length() == 2) { in indexForRegion()
45 int a = region.charAt(0) - 'A'; in indexForRegion()
47 int b = region.charAt(1) - 'A'; in indexForRegion()
50 } else if (region.length() == 3) { in indexForRegion()
51 int a = region.charAt(0) - '0'; in indexForRegion()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLSR.java21 public final String region; field in LSR
26 public LSR(String language, String script, String region, int flags) { in LSR() argument
29 this.region = region; in LSR()
30 regionIndex = indexForRegion(region); in LSR()
39 public static final int indexForRegion(String region) { in indexForRegion() argument
40 if (region.length() == 2) { in indexForRegion()
41 int a = region.charAt(0) - 'A'; in indexForRegion()
43 int b = region.charAt(1) - 'A'; in indexForRegion()
46 } else if (region.length() == 3) { in indexForRegion()
47 int a = region.charAt(0) - '0'; in indexForRegion()
[all …]
/external/arm-trusted-firmware/plat/mediatek/mt8192/drivers/emi_mpu/
Demi_mpu.c23 unsigned int region; in _emi_mpu_set_protection() local
25 region = (start >> 24) & 0xFF; in _emi_mpu_set_protection()
30 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
31 WARN("Region:%u or dgroup:%u is wrong!\n", region, dgroup); in _emi_mpu_set_protection()
46 mmio_write_32(EMI_MPU_SA(region), start); in _emi_mpu_set_protection()
47 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
48 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
57 int region, i; in dump_emi_mpu_regions() local
60 for (region = 0; region < 8; ++region) { in dump_emi_mpu_regions()
62 apc[i] = mmio_read_32(EMI_MPU_APC(region, i)); in dump_emi_mpu_regions()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator_primary64.h116 RegionInfo *region = GetRegionInfo(class_id); in ReturnToAllocator() local
120 BlockingMutexLock l(&region->mutex); in ReturnToAllocator()
121 uptr old_num_chunks = region->num_freed_chunks; in ReturnToAllocator()
125 if (UNLIKELY(!EnsureFreeArraySpace(region, region_beg, in ReturnToAllocator()
134 region->num_freed_chunks = new_num_freed_chunks; in ReturnToAllocator()
135 region->stats.n_freed += n_chunks; in ReturnToAllocator()
142 RegionInfo *region = GetRegionInfo(class_id); in GetFromAllocator() local
146 BlockingMutexLock l(&region->mutex); in GetFromAllocator()
147 if (UNLIKELY(region->num_freed_chunks < n_chunks)) { in GetFromAllocator()
148 if (UNLIKELY(!PopulateFreeArray(stat, class_id, region, in GetFromAllocator()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/Utility/
DLinuxProcMaps.cpp28 MemoryRegionInfo region; in ParseMemoryRegionInfoFromProcMapsLine() local
53 region.GetRange().SetRangeBase(start_address); in ParseMemoryRegionInfoFromProcMapsLine()
54 region.GetRange().SetRangeEnd(end_address); in ParseMemoryRegionInfoFromProcMapsLine()
58 region.SetMapped(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine()
70 region.SetReadable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine()
72 region.SetReadable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine()
80 region.SetWritable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine()
82 region.SetWritable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine()
90 region.SetExecutable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine()
92 region.SetExecutable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine()
[all …]
/external/OpenCL-CTS/test_conformance/mem_host_flags/
DC_host_memory_block.h43 size_t * region,
50 size_t * region,
56 size_t * region,
166 size_t * region, in Equal_rect() argument
170 size_t row_pitch = host_row_pitch ? host_row_pitch : region[0]; in Equal_rect()
171 size_t slice_pitch = host_slice_pitch ? host_row_pitch : region[1]; in Equal_rect()
175 size_t total = region[0] * region[1] * region[2]; in Equal_rect()
179 for (z=0; z<region[2]; z++) in Equal_rect()
180 for (y=0; y<region[1]; y++) in Equal_rect()
181 for (x=0; x<region[0]; x++) in Equal_rect()
[all …]
/external/mesa3d/src/gallium/frontends/clover/api/
Dtransfer.cpp43 pitch(const vector_t &region, vector_t pitch) { in pitch() argument
45 map(multiplies(), region, pitch))) { in pitch()
59 size(const vector_t &pitch, const vector_t &region) { in size() argument
60 if (any_of(is_zero(), region)) in size()
63 return dot(pitch, region - vector_t{ 0, 1, 1 }); in size()
83 const vector_t &pitch, const vector_t &region) { in validate_object() argument
88 if (any_of(greater(), map(multiplies(), pitch, region), tail(pitch))) in validate_object()
92 if (dot(pitch, origin) + size(pitch, region) > mem.size()) in validate_object()
95 if (any_of(is_zero(), region)) in validate_object()
104 const vector_t &orig, const vector_t &region) { in validate_object() argument
[all …]
/external/llvm-project/mlir/lib/Transforms/Utils/
DRegionUtils.cpp24 Region &region) { in replaceAllUsesInRegionWith() argument
26 if (region.isAncestor(use.getOwner()->getParentRegion())) in replaceAllUsesInRegionWith()
32 Region &region, Region &limit, function_ref<void(OpOperand *)> callback) { in visitUsedValuesDefinedAbove() argument
33 assert(limit.isAncestor(&region) && in visitUsedValuesDefinedAbove()
44 region.walk([callback, &properAncestors](Operation *op) { in visitUsedValuesDefinedAbove()
54 for (Region &region : regions) in visitUsedValuesDefinedAbove()
55 visitUsedValuesDefinedAbove(region, region, callback); in visitUsedValuesDefinedAbove()
58 void mlir::getUsedValuesDefinedAbove(Region &region, Region &limit, in getUsedValuesDefinedAbove() argument
60 visitUsedValuesDefinedAbove(region, limit, [&](OpOperand *operand) { in getUsedValuesDefinedAbove()
67 for (Region &region : regions) in getUsedValuesDefinedAbove()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_meta_copy.c128 const VkBufferImageCopy2KHR* region) in copy_buffer_to_image() argument
162 meta_region_offset_el(image, &region->imageOffset); in copy_buffer_to_image()
164 .width = region->bufferRowLength ? in copy_buffer_to_image()
165 region->bufferRowLength : region->imageExtent.width, in copy_buffer_to_image()
166 .height = region->bufferImageHeight ? in copy_buffer_to_image()
167 region->bufferImageHeight : region->imageExtent.height, in copy_buffer_to_image()
174 meta_region_extent_el(image, image->type, &region->imageExtent); in copy_buffer_to_image()
184 &region->imageSubresource, in copy_buffer_to_image()
185 region->imageSubresource.aspectMask); in copy_buffer_to_image()
194 .aspectMask = region->imageSubresource.aspectMask, in copy_buffer_to_image()
[all …]
/external/llvm-project/mlir/lib/IR/
DVisitors.cpp17 for (auto &region : op->getRegions()) { in walk() local
18 callback(&region); in walk()
19 for (auto &block : region) { in walk()
27 for (auto &region : op->getRegions()) { in walk() local
28 for (auto &block : region) { in walk()
38 for (auto &region : op->getRegions()) { in walk() local
39 for (auto &block : region) { in walk()
53 for (auto &region : op->getRegions()) { in walk() local
54 if (callback(&region).wasInterrupted()) in walk()
56 for (auto &block : region) { in walk()
[all …]
/external/libtextclassifier/native/utils/i18n/
Dlocale.cc69 bool CheckRegion(StringPiece region) { in CheckRegion() argument
70 if (region.size() == 2) { in CheckRegion()
71 return std::isupper(region[0]) && std::isupper(region[1]); in CheckRegion()
72 } else if (region.size() == 3) { in CheckRegion()
73 return std::isdigit(region[0]) && std::isdigit(region[1]) && in CheckRegion()
74 std::isdigit(region[2]); in CheckRegion()
105 StringPiece region; in FromBCP47() local
107 region = *parts_it; in FromBCP47()
108 if (!CheckRegion(region)) { in FromBCP47()
109 region = ""; in FromBCP47()
[all …]
/external/icu/icu4c/source/common/
Dlsr.cpp19 language(nullptr), script(nullptr), region(r), in LSR()
20 regionIndex(indexForRegion(region)), flags(f) { in LSR()
35 language(other.language), script(other.script), region(other.region), owned(other.owned), in LSR()
53 region = other.region; in operator =()
72 (regionIndex > 0 || uprv_strcmp(region, other.region) == 0); in isEquivalentTo()
81 (regionIndex > 0 || uprv_strcmp(region, other.region) == 0) && in operator ==()
85 int32_t LSR::indexForRegion(const char *region) { in indexForRegion() argument
86 int32_t c = region[0]; in indexForRegion()
89 int32_t b = region[1] - '0'; in indexForRegion()
91 c = region[2] - '0'; in indexForRegion()
[all …]
/external/google-breakpad/src/processor/
Dproc_maps_linux.cc53 MappedMemoryRegion region; in ParseProcMaps() local
67 SCNd64 " %n", &region.start, &region.end, permissions, in ParseProcMaps()
68 &region.offset, &region.major_device, &region.minor_device, in ParseProcMaps()
69 &region.inode, &path_index) < 7) { in ParseProcMaps()
74 region.permissions = 0; in ParseProcMaps()
77 region.permissions |= MappedMemoryRegion::READ; in ParseProcMaps()
82 region.permissions |= MappedMemoryRegion::WRITE; in ParseProcMaps()
87 region.permissions |= MappedMemoryRegion::EXECUTE; in ParseProcMaps()
92 region.permissions |= MappedMemoryRegion::PRIVATE; in ParseProcMaps()
97 regions.push_back(region); in ParseProcMaps()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2RegionCoverer.java89 S2Region region; field in S2RegionCoverer
144 this.region = null; in S2RegionCoverer()
251 public void getCovering(S2Region region, ArrayList<S2CellId> covering) { in getCovering() argument
260 S2CellUnion tmp = getCovering(region); in getCovering()
271 public void getInteriorCovering(S2Region region, ArrayList<S2CellId> interior) { in getInteriorCovering() argument
272 S2CellUnion tmp = getInteriorCovering(region); in getInteriorCovering()
284 public S2CellUnion getCovering(S2Region region) { in getCovering() argument
286 getCovering(region, covering); in getCovering()
290 public void getCovering(S2Region region, S2CellUnion covering) { in getCovering() argument
292 getCoveringInternal(region); in getCovering()
[all …]

12345678910>>...105