/art/test/710-varhandle-creation/src/ |
Main.java | 19 import java.lang.invoke.VarHandle.AccessMode; 255 private static void checkVarHandleAccessMode(VarHandle v, VarHandle.AccessMode accessMode, 257 boolean actualSupported = v.isAccessModeSupported(accessMode); 259 fail("isAccessModeSupported(" + accessMode + ") is " + 263 String actualAccessModeType = v.accessModeType(accessMode).toString(); 265 fail("accessModeType(" + accessMode + ") is " + 277 checkVarHandleAccessMode(vz, VarHandle.AccessMode.GET, true, "(Main)boolean"); 278 checkVarHandleAccessMode(vz, VarHandle.AccessMode.SET, true, "(Main,boolean)void"); 279 checkVarHandleAccessMode(vz, VarHandle.AccessMode.GET_VOLATILE, true, "(Main)boolean") [all...] |
/libcore/ojluni/src/main/java/java/nio/file/ |
AccessMode.java | 34 public enum AccessMode {
|
/art/runtime/mirror/ |
var_handle_test.cc | 123 static int32_t AccessModesBitMask(VarHandle::AccessMode mode) { 128 static int32_t AccessModesBitMask(VarHandle::AccessMode first, Args... args) { 255 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, 256 VarHandle::AccessMode::kGetAndSet, 257 VarHandle::AccessMode::kGetAndBitwiseXor); 264 EXPECT_TRUE(fvh->IsAccessModeSupported(VarHandle::AccessMode::kGet)); 265 EXPECT_FALSE(fvh->IsAccessModeSupported(VarHandle::AccessMode::kSet)); 266 EXPECT_FALSE(fvh->IsAccessModeSupported(VarHandle::AccessMode::kGetVolatile)); 267 EXPECT_FALSE(fvh->IsAccessModeSupported(VarHandle::AccessMode::kSetVolatile)); 268 EXPECT_FALSE(fvh->IsAccessModeSupported(VarHandle::AccessMode::kGetAcquire)) [all...] |
var_handle.cc | 41 VarHandle::AccessMode access_mode; 59 { "compareAndExchange", VarHandle::AccessMode::kCompareAndExchange }, 60 { "compareAndExchangeAcquire", VarHandle::AccessMode::kCompareAndExchangeAcquire }, 61 { "compareAndExchangeRelease", VarHandle::AccessMode::kCompareAndExchangeRelease }, 62 { "compareAndSet", VarHandle::AccessMode::kCompareAndSet }, 63 { "get", VarHandle::AccessMode::kGet }, 64 { "getAcquire", VarHandle::AccessMode::kGetAcquire }, 65 { "getAndAdd", VarHandle::AccessMode::kGetAndAdd }, 66 { "getAndAddAcquire", VarHandle::AccessMode::kGetAndAddAcquire }, 67 { "getAndAddRelease", VarHandle::AccessMode::kGetAndAddRelease } [all...] |
var_handle.h | 61 enum class AccessMode : uint32_t { 95 constexpr static size_t kNumberOfAccessModes = static_cast<size_t>(AccessMode::kLast) + 1u; 97 // Returns true if the AccessMode specified is a supported operation. 98 bool IsAccessModeSupported(AccessMode accessMode) REQUIRES_SHARED(Locks::mutator_lock_) { 99 return (GetAccessModesBitMask() & (1u << static_cast<uint32_t>(accessMode))) != 0; 103 // method type associated with the specified AccessMode. The 106 // value when the return value for the AccessMode is non-void. This 108 bool IsMethodTypeCompatible(AccessMode access_mode, MethodType* method_type) 115 bool IsInvokerMethodTypeCompatible(AccessMode access_mode, MethodType* method_type [all...] |
/external/libbrillo/brillo/streams/ |
stream_utils.h | 62 inline bool IsReadAccessMode(Stream::AccessMode mode) { 63 return mode == Stream::AccessMode::READ || 64 mode == Stream::AccessMode::READ_WRITE; 68 inline bool IsWriteAccessMode(Stream::AccessMode mode) { 69 return mode == Stream::AccessMode::WRITE || 70 mode == Stream::AccessMode::READ_WRITE; 74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) { 77 return Stream::AccessMode::READ_WRITE; 78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ [all...] |
file_stream.h | 36 using DataCallback = base::Callback<void(Stream::AccessMode)>; 48 virtual bool WaitForData(AccessMode mode, 51 virtual int WaitForDataBlocking(AccessMode in_mode, 53 AccessMode* out_mode) = 0; 73 AccessMode mode, 135 bool WaitForData(AccessMode mode, 136 const base::Callback<void(AccessMode)>& callback, 141 bool WaitForDataBlocking(AccessMode in_mode, 143 AccessMode* out_mode, 155 AccessMode mode) [all...] |
fake_stream_unittest.cc | 30 void CreateStream(Stream::AccessMode mode) { 69 CreateStream(Stream::AccessMode::READ); 81 CreateStream(Stream::AccessMode::WRITE); 93 CreateStream(Stream::AccessMode::READ_WRITE); 105 CreateStream(Stream::AccessMode::READ); 114 CreateStream(Stream::AccessMode::READ); 128 CreateStream(Stream::AccessMode::READ); 146 CreateStream(Stream::AccessMode::READ); 179 CreateStream(Stream::AccessMode::READ); 204 CreateStream(Stream::AccessMode::READ) [all...] |
mock_stream.h | 63 MOCK_METHOD3(WaitForData, bool(AccessMode, 64 const base::Callback<void(AccessMode)>&, 67 bool(AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*));
|
input_stream_set.h | 97 bool WaitForData(AccessMode mode, 98 const base::Callback<void(AccessMode)>& callback, 101 bool WaitForDataBlocking(AccessMode in_mode, 103 AccessMode* out_mode,
|
tls_stream.h | 63 bool WaitForData(AccessMode mode, 64 const base::Callback<void(AccessMode)>& callback, 66 bool WaitForDataBlocking(AccessMode in_mode, 68 AccessMode* out_mode,
|
stream_unittest.cc | 26 using AccessMode = Stream::AccessMode; 64 MOCK_METHOD3(WaitForData, bool(AccessMode, 65 const base::Callback<void(AccessMode)>&, 68 bool(AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*)); 112 base::Callback<void(AccessMode)> data_callback; 120 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) 156 data_callback.Run(AccessMode::READ); 220 base::Callback<void(AccessMode)> data_callback [all...] |
stream.h | 29 // StreamPtr input_stream = FileStream::Open(path, AccessMode::READ); 89 enum class AccessMode { READ, WRITE, READ_WRITE }; 373 virtual bool WaitForData(AccessMode mode, 374 const base::Callback<void(AccessMode)>& callback, 385 virtual bool WaitForDataBlocking(AccessMode in_mode, 387 AccessMode* out_mode, 436 AccessMode mode); 469 AccessMode mode);
|
fake_stream.h | 40 FakeStream(Stream::AccessMode mode, 108 bool WaitForData(AccessMode mode, 109 const base::Callback<void(AccessMode)>& callback, 111 bool WaitForDataBlocking(AccessMode in_mode, 113 AccessMode* out_mode, 147 Stream::AccessMode mode_;
|
file_stream_unittest.cc | 134 bool(Stream::AccessMode, const DataCallback&, ErrorPtr*)); 136 int(Stream::AccessMode, base::TimeDelta, Stream::AccessMode*)); 143 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); 150 void CreateStream(mode_t file_mode, Stream::AccessMode access_mode) { 177 bool CallWaitForData(Stream::AccessMode mode, ErrorPtr* error) { 199 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); 203 CreateStream(S_IFREG, Stream::AccessMode::READ); 205 CreateStream(S_IFREG, Stream::AccessMode::WRITE); 210 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE) [all...] |
tls_stream.cc | 96 bool WaitForData(AccessMode mode, 97 const base::Callback<void(AccessMode)>& callback, 99 bool WaitForDataBlocking(AccessMode in_mode, 101 AccessMode* out_mode, 113 Stream::AccessMode mode); 225 if (!socket_->WaitForDataBlocking(AccessMode::READ, kTimeout, nullptr, 230 if (!socket_->WaitForDataBlocking(AccessMode::WRITE, kTimeout, nullptr, 244 AccessMode mode, 245 const base::Callback<void(AccessMode)>& callback, 254 callback.Run(AccessMode::READ) [all...] |
/external/libmojo/mojo/public/cpp/system/ |
buffer.h | 48 enum class AccessMode { 64 ScopedSharedBufferHandle Clone(AccessMode = AccessMode::READ_WRITE) const;
|
buffer.cc | 19 SharedBufferHandle::AccessMode access_mode) const { 26 if (access_mode == AccessMode::READ_ONLY)
|
/frameworks/base/libs/androidfw/include/androidfw/ |
Asset.h | 56 typedef enum AccessMode { 67 } AccessMode; 146 AccessMode getAccessMode(void) const { return mAccessMode; } 160 static Asset* createFromFile(const char* fileName, AccessMode mode); 166 AccessMode mode); 176 AccessMode mode); 190 size_t uncompressedLength, AccessMode mode); 198 static Asset* createFromUncompressedMap(FileMap* dataMap, AccessMode mode); 201 AccessMode mode); 210 size_t uncompressedLen, AccessMode mode) [all...] |
ApkAssets.h | 66 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM) const;
|
AssetManager.h | 140 typedef Asset::AccessMode AccessMode; // typing shortcut 148 Asset* open(const char* fileName, AccessMode mode); 157 Asset* openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie = NULL); 163 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode); 229 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode, 236 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode); 238 const ZipEntryRO entry, AccessMode mode, const String8& entryName);
|
/art/test/712-varhandle-invocations/src/ |
VarHandleReflectiveTest.java | 38 for (VarHandle.AccessMode accessMode : VarHandle.AccessMode.values()) { 40 VarHandle.class.getMethod(accessMode.methodName(), Object[].class);
|
/frameworks/base/libs/hwui/ |
PixelBuffer.h | 34 * buffer using the map(AccessMode) method. This method returns a 50 enum AccessMode { 86 virtual uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) = 0; 92 AccessMode getAccessMode() const { return mAccessMode; } 191 AccessMode mAccessMode;
|
/external/v8/src/compiler/ |
js-native-context-specialization.h | 23 enum class AccessMode; 72 AccessMode access_mode, 77 KeyedICNexus const& nexus, AccessMode access_mode, 83 AccessMode access_mode, 87 Handle<Name> name, AccessMode access_mode, 92 Handle<Name> name, AccessMode access_mode, 117 PropertyAccessInfo const& access_info, AccessMode access_mode, 126 AccessMode access_mode,
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
VarHandle.java | 76 * specifies an {@link #accessModeType(AccessMode) access mode type}, 286 * VarHandle.AccessMode am = VarHandle.AccessMode.valueFromMethodName("{access-mode}"); 312 * VarHandle.AccessMode am = VarHandle.AccessMode.valueFromMethodName("{access-mode}"); 461 /** BitMask of supported access mode indexed by AccessMode.ordinal(). */ 476 * {@code accessModeType(VarHandle.AccessMode.GET)} on this VarHandle. 507 * {@code accessModeType(VarHandle.AccessMode.SET)} on this VarHandle. 536 * {@code accessModeType(VarHandle.AccessMode.GET_VOLATILE)} on this 566 * {@code accessModeType(VarHandle.AccessMode.SET_VOLATILE)} on thi [all...] |