Home
last modified time | relevance | path

Searched refs:kReadOnly (Results 1 – 25 of 32) sorted by relevance

12

/external/libchrome/base/memory/
Dplatform_shared_memory_region_posix.cc89 case Mode::kReadOnly: in Take()
146 mode_ = Mode::kReadOnly; in ConvertToReadOnly()
174 bool write_allowed = mode_ != Mode::kReadOnly; in MapAt()
203 CHECK_NE(mode, Mode::kReadOnly) << "Creating a region in read-only mode will " in Create()
282 mode == Mode::kReadOnly ? O_RDONLY : O_RDWR)) { in CheckPlatformHandlePermissionsCorrespondToMode()
307 bool expected_read_only = mode == Mode::kReadOnly; in CheckPlatformHandlePermissionsCorrespondToMode()
Dplatform_shared_memory_region_unittest.cc85 EXPECT_EQ(region.GetMode(), PlatformSharedMemoryRegion::Mode::kReadOnly); in TEST_F()
105 EXPECT_EQ(region.GetMode(), PlatformSharedMemoryRegion::Mode::kReadOnly); in TEST_F()
241 EXPECT_FALSE(check(region, Mode::kReadOnly)); in TEST_F()
245 EXPECT_TRUE(check(region, Mode::kReadOnly)); in TEST_F()
254 EXPECT_FALSE(check(region2, Mode::kReadOnly)); in TEST_F()
269 PlatformSharedMemoryRegion::Mode::kReadOnly, kRegionSize), in TEST_F()
Dplatform_shared_memory_region_mac.cc112 mode_ = Mode::kReadOnly; in ConvertToReadOnly()
139 bool write_allowed = mode_ != Mode::kReadOnly; in MapAt()
171 CHECK_NE(mode, Mode::kReadOnly) << "Creating a region in read-only mode will " in Create()
213 bool expected_read_only = mode == Mode::kReadOnly; in CheckPlatformHandlePermissionsCorrespondToMode()
Dplatform_shared_memory_region.h88 kReadOnly, // ReadOnlySharedMemoryRegion enumerator
219 Mode mode_ = Mode::kReadOnly;
Dread_only_shared_memory_region.cc93 subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in ReadOnlySharedMemoryRegion()
/external/libchrome/mojo/core/
Dplatform_shared_memory_mapping.cc42 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly in PlatformSharedMemoryMapping()
43 ? Type::kReadOnly in PlatformSharedMemoryMapping()
54 if (type_ == Type::kReadOnly) { in PlatformSharedMemoryMapping()
Dshared_buffer_dispatcher.cc167 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly; in Deserialize()
243 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in DuplicateBufferHandle()
249 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly) { in DuplicateBufferHandle()
332 case base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly: in EndSerialize()
Dplatform_shared_memory_mapping.h33 kReadOnly, enumerator
Dshared_buffer_unittest.cc250 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
312 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in TEST_F()
/external/libbrillo/brillo/dbus/
Dexported_property_set.h59 kReadOnly, enumerator
93 Access access_mode_{Access::kReadOnly};
199 if (GetAccessMode() == ExportedPropertyBase::Access::kReadOnly) { in SetValue()
/external/skqp/include/gpu/
DGrSurface.h72 bool readOnly() const { return fSurfaceFlags & GrInternalSurfaceFlags::kReadOnly; } in readOnly()
91 fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; in setReadOnly()
/external/skia/include/gpu/
DGrSurface.h86 bool readOnly() const { return fSurfaceFlags & GrInternalSurfaceFlags::kReadOnly; } in readOnly()
105 fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; in setReadOnly()
/external/libchrome/base/test/
Dtest_shared_memory_util.cc139 if (region.GetMode() != subtle::PlatformSharedMemoryRegion::Mode::kReadOnly) { in CheckReadOnlyPlatformSharedMemoryRegionForTesting()
142 subtle::PlatformSharedMemoryRegion::Mode::kReadOnly) in CheckReadOnlyPlatformSharedMemoryRegionForTesting()
/external/skia/src/gpu/
DGrTextureRenderTargetProxy.cpp133 SkASSERT(!(proxyFlags & GrInternalSurfaceFlags::kReadOnly)); in onValidateSurface()
134 SkASSERT(!(surfaceFlags & GrInternalSurfaceFlags::kReadOnly)); in onValidateSurface()
DGrAHardwareBufferImageGenerator.cpp188 GrInternalSurfaceFlags::kReadOnly, SkBackingFit::kExact, SkBudgeted::kNo); in makeProxy()
DGrBackendTextureImageGenerator.cpp184 format, desc, fSurfaceOrigin, mipMapped, GrInternalSurfaceFlags::kReadOnly, in onGenerateTexture()
/external/skqp/src/gpu/
DGrTextureRenderTargetProxy.cpp133 SkASSERT(!(proxyFlags & GrInternalSurfaceFlags::kReadOnly)); in onValidateSurface()
134 SkASSERT(!(surfaceFlags & GrInternalSurfaceFlags::kReadOnly)); in onValidateSurface()
DGrBackendTextureImageGenerator.cpp185 format, desc, fSurfaceOrigin, mipMapped, GrInternalSurfaceFlags::kReadOnly, in onGenerateTexture()
DGrSurfaceProxy.cpp78 fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; in GrSurfaceProxy()
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.cc43 case base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly: in WrapPlatformSharedMemoryRegion()
163 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly; in UnwrapPlatformSharedMemoryRegion()
256 if (protection == UnwrappedSharedMemoryHandleProtection::kReadOnly) { in WrapSharedMemoryHandle()
312 ? UnwrappedSharedMemoryHandleProtection::kReadOnly in UnwrapSharedMemoryHandle()
Dplatform_handle.h76 kReadOnly, enumerator
/external/skqp/include/private/
DGrSurfaceProxy.h370 bool readOnly() const { return fSurfaceFlags & GrInternalSurfaceFlags::kReadOnly; } in readOnly()
DGrTypesPriv.h871 kReadOnly = 1 << 1, enumerator
873 kTextureMask = kReadOnly,
/external/skia/include/private/
DGrSurfaceProxy.h372 bool readOnly() const { return fSurfaceFlags & GrInternalSurfaceFlags::kReadOnly; } in readOnly()
DGrTypesPriv.h781 kReadOnly = 1 << 1, enumerator
783 kTextureMask = kReadOnly,

12