/external/libbrillo/brillo/streams/ |
D | fake_stream_test.cc | 31 void CreateStream(Stream::AccessMode mode) { in CreateStream() 70 CreateStream(Stream::AccessMode::READ); in TEST_F() 82 CreateStream(Stream::AccessMode::WRITE); in TEST_F() 94 CreateStream(Stream::AccessMode::READ_WRITE); in TEST_F() 106 CreateStream(Stream::AccessMode::READ); in TEST_F() 115 CreateStream(Stream::AccessMode::READ); in TEST_F() 129 CreateStream(Stream::AccessMode::READ); in TEST_F() 147 CreateStream(Stream::AccessMode::READ); in TEST_F() 180 CreateStream(Stream::AccessMode::READ); in TEST_F() 205 CreateStream(Stream::AccessMode::READ); in TEST_F() [all …]
|
D | file_stream.h | 38 using DataCallback = base::Callback<void(Stream::AccessMode)>; 50 virtual bool WaitForData(AccessMode mode, 53 virtual int WaitForDataBlocking(AccessMode in_mode, 55 AccessMode* out_mode) = 0; 75 AccessMode mode, 137 bool WaitForData(AccessMode mode, 138 const base::Callback<void(AccessMode)>& callback, 143 bool WaitForDataBlocking(AccessMode in_mode, 145 AccessMode* out_mode, 157 AccessMode mode); [all …]
|
D | stream_utils.h | 62 inline bool IsReadAccessMode(Stream::AccessMode mode) { in IsReadAccessMode() 63 return mode == Stream::AccessMode::READ || in IsReadAccessMode() 64 mode == Stream::AccessMode::READ_WRITE; in IsReadAccessMode() 68 inline bool IsWriteAccessMode(Stream::AccessMode mode) { in IsWriteAccessMode() 69 return mode == Stream::AccessMode::WRITE || in IsWriteAccessMode() 70 mode == Stream::AccessMode::READ_WRITE; in IsWriteAccessMode() 74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) { in MakeAccessMode() 77 return Stream::AccessMode::READ_WRITE; in MakeAccessMode() 78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ; in MakeAccessMode()
|
D | stream_test.cc | 35 using AccessMode = Stream::AccessMode; typedef 81 (AccessMode, const base::Callback<void(AccessMode)>&, ErrorPtr*), 85 (AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*), 129 base::Callback<void(AccessMode)> data_callback; in TEST() 137 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() 161 data_callback.Run(AccessMode::READ); in TEST() 214 base::Callback<void(AccessMode)> data_callback; in TEST() 222 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() 239 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() 241 data_callback.Run(AccessMode::READ); in TEST() [all …]
|
D | file_stream_test.cc | 146 (Stream::AccessMode, const DataCallback&, ErrorPtr*), 150 (Stream::AccessMode, base::TimeDelta, Stream::AccessMode*), 158 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in SetUp() 165 void CreateStream(mode_t file_mode, Stream::AccessMode access_mode) { in CreateStream() 192 bool CallWaitForData(Stream::AccessMode mode, ErrorPtr* error) { in CallWaitForData() 214 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in TEST_F() 218 CreateStream(S_IFREG, Stream::AccessMode::READ); in TEST_F() 220 CreateStream(S_IFREG, Stream::AccessMode::WRITE); in TEST_F() 225 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in TEST_F() 229 CreateStream(S_IFREG, Stream::AccessMode::READ); in TEST_F() [all …]
|
D | tls_stream.cc | 102 bool WaitForData(AccessMode mode, 103 const base::Callback<void(AccessMode)>& callback, 105 bool WaitForDataBlocking(AccessMode in_mode, 107 AccessMode* out_mode, 119 Stream::AccessMode mode); 231 if (!socket_->WaitForDataBlocking(AccessMode::READ, kTimeout, nullptr, in Close() 236 if (!socket_->WaitForDataBlocking(AccessMode::WRITE, kTimeout, nullptr, in Close() 250 AccessMode mode, in WaitForData() 251 const base::Callback<void(AccessMode)>& callback, in WaitForData() 260 callback.Run(AccessMode::READ); in WaitForData() [all …]
|
D | file_stream.cc | 85 bool WaitForData(Stream::AccessMode mode, in WaitForData() 119 int WaitForDataBlocking(Stream::AccessMode in_mode, in WaitForDataBlocking() 121 Stream::AccessMode* out_mode) override { in WaitForDataBlocking() 165 cb.Run(Stream::AccessMode::READ); in OnReadable() 173 cb.Run(Stream::AccessMode::WRITE); in OnWritable() 199 AccessMode mode, in Open() 205 case AccessMode::READ: in Open() 208 case AccessMode::WRITE: in Open() 211 case AccessMode::READ_WRITE: in Open() 294 AccessMode access_mode = AccessMode::READ_WRITE; in FromFileDescriptor() [all …]
|
D | 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_;
|
D | stream.h | 89 enum class AccessMode { READ, WRITE, READ_WRITE }; enum 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);
|
D | 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,
|
D | 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,
|
D | mock_stream.h | 89 (AccessMode, const base::Callback<void(AccessMode)>&, ErrorPtr*), 93 (AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*),
|
D | memory_stream.h | 182 bool WaitForData(AccessMode mode, 183 const base::Callback<void(AccessMode)>& callback, 186 bool WaitForDataBlocking(AccessMode in_mode, 188 AccessMode* out_mode,
|
D | input_stream_set.cc | 161 AccessMode mode, in WaitForData() 162 const base::Callback<void(AccessMode)>& callback, in WaitForData() 179 bool InputStreamSet::WaitForDataBlocking(AccessMode in_mode, in WaitForDataBlocking() 181 AccessMode* out_mode, in WaitForDataBlocking()
|
D | stream.cc | 77 if (!WaitForDataBlocking(AccessMode::READ, base::TimeDelta::Max(), nullptr, in ReadBlocking() 149 if (!WaitForDataBlocking(AccessMode::WRITE, base::TimeDelta::Max(), nullptr, in WriteBlocking() 227 AccessMode::READ, in ReadAsyncImpl() 247 AccessMode mode) { in OnReadAvailable() 291 AccessMode::WRITE, in WriteAsyncImpl() 310 AccessMode mode) { in OnWriteAvailable()
|
D | memory_stream.cc | 185 bool MemoryStream::WaitForData(AccessMode mode, in WaitForData() 186 const base::Callback<void(AccessMode)>& callback, in WaitForData() 192 bool MemoryStream::WaitForDataBlocking(AccessMode in_mode, in WaitForDataBlocking() 194 AccessMode* out_mode, in WaitForDataBlocking()
|
D | fake_stream.cc | 38 Stream::AccessMode* mode, base::TimeDelta* delay) { in GetMinDelayAndMode() 58 FakeStream::FakeStream(Stream::AccessMode mode, in FakeStream() 359 bool FakeStream::WaitForData(AccessMode mode, in WaitForData() 360 const base::Callback<void(AccessMode)>& callback, in WaitForData() 381 bool FakeStream::WaitForDataBlocking(AccessMode in_mode, in WaitForDataBlocking() 383 AccessMode* out_mode, in WaitForDataBlocking()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Asset.java | 3 import static org.robolectric.res.android.Asset.AccessMode.ACCESS_BUFFER; 53 public enum AccessMode { enum in Asset 64 AccessMode(int mode) { in AccessMode() method in Asset.AccessMode 72 public static AccessMode fromInt(int mode) { in fromInt() 73 for (AccessMode enumMode : values()) { in fromInt() 175 AccessMode getAccessMode() { return mAccessMode; } in getAccessMode() 243 AccessMode mAccessMode; // how the asset was opened 328 mAccessMode = AccessMode.ACCESS_UNKNOWN; in Asset() 337 static Asset createFromFile(final String fileName, AccessMode mode) in createFromFile() 400 AccessMode mode) in createFromCompressedFile() [all …]
|
D | CppAssetManager.java | 31 import org.robolectric.res.android.Asset.AccessMode; 457 public Asset open(final String fileName, AccessMode mode) { in open() 487 public Asset openNonAsset(final String fileName, AccessMode mode, Ref<Integer> outCookie) { in openNonAsset() 516 public Asset openNonAsset(final int cookie, final String fileName, AccessMode mode) { in openNonAsset() 629 AccessMode.ACCESS_BUFFER, in appendPathToResTable_measured() 657 AccessMode.ACCESS_BUFFER, in appendPathToResTable_measured() 745 ass = openAssetFromFileLocked(ap.idmap, AccessMode.ACCESS_BUFFER); in openIdmapLocked() 837 static Asset openNonAssetInPathLocked(final String fileName, AccessMode mode, in openNonAssetInPathLocked() 934 AccessMode mode) { in openAssetFromFileLocked() 955 final ZipEntryRO entry, AccessMode mode, final String8 entryName) { in openAssetFromZipLocked()
|
D | CppApkAssets.java | 18 import org.robolectric.res.android.Asset.AccessMode; 247 loaded_apk.resources_asset_ = loaded_apk.Open(kResourcesArsc, Asset.AccessMode.ACCESS_BUFFER); in LoadImpl_measured() 278 public Asset Open(String path, AccessMode mode) { in Open()
|
/external/libchrome/mojo/public/cpp/system/ |
D | buffer.h | 47 enum class AccessMode { enum 63 ScopedSharedBufferHandle Clone(AccessMode access_mode) const;
|
D | buffer.cc | 19 SharedBufferHandle::AccessMode access_mode) const { in Clone() 26 if (access_mode == AccessMode::READ_ONLY) in Clone()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowArscAssetManager.java | 46 import org.robolectric.res.android.Asset.AccessMode; 327 if (mode != AccessMode.ACCESS_UNKNOWN.mode() && mode != AccessMode.ACCESS_RANDOM.mode() in openAsset() 328 && mode != AccessMode.ACCESS_STREAMING.mode() && mode != AccessMode.ACCESS_BUFFER.mode()) { in openAsset() 332 Asset a = am.open(fileName8, AccessMode.fromInt(mode)); in openAsset() 354 Asset a = am.open(fileName8, Asset.AccessMode.ACCESS_RANDOM); in openAssetFd() 375 AccessMode mode = AccessMode.fromInt(accessMode); in openNonAssetNative() 376 if (mode != Asset.AccessMode.ACCESS_UNKNOWN && mode != Asset.AccessMode.ACCESS_RANDOM in openNonAssetNative() 377 && mode != Asset.AccessMode.ACCESS_STREAMING && mode != Asset.AccessMode.ACCESS_BUFFER) { in openNonAssetNative() 405 ? am.openNonAsset(cookie, fileName, Asset.AccessMode.ACCESS_RANDOM) in openNonAssetFdNative() 406 : am.openNonAsset(fileName, Asset.AccessMode.ACCESS_RANDOM, null); in openNonAssetFdNative() [all …]
|
D | ShadowArscAssetManager10.java | 693 if (access_mode != Asset.AccessMode.ACCESS_UNKNOWN.mode() in nativeOpenAsset() 694 && access_mode != Asset.AccessMode.ACCESS_RANDOM.mode() in nativeOpenAsset() 695 && access_mode != Asset.AccessMode.ACCESS_STREAMING.mode() in nativeOpenAsset() 696 && access_mode != Asset.AccessMode.ACCESS_BUFFER.mode()) { in nativeOpenAsset() 702 assetmanager.Open(asset_path_utf8, Asset.AccessMode.fromInt(access_mode)); in nativeOpenAsset() 723 Asset asset = assetmanager.Open(asset_path_utf8, Asset.AccessMode.ACCESS_RANDOM); in nativeOpenAssetFd() 744 if (access_mode != Asset.AccessMode.ACCESS_UNKNOWN.mode() in nativeOpenNonAsset() 745 && access_mode != Asset.AccessMode.ACCESS_RANDOM.mode() in nativeOpenNonAsset() 746 && access_mode != Asset.AccessMode.ACCESS_STREAMING.mode() in nativeOpenNonAsset() 747 && access_mode != Asset.AccessMode.ACCESS_BUFFER.mode()) { in nativeOpenNonAsset() [all …]
|
D | ShadowArscAssetManager9.java | 689 if (access_mode != Asset.AccessMode.ACCESS_UNKNOWN.mode() in nativeOpenAsset() 690 && access_mode != Asset.AccessMode.ACCESS_RANDOM.mode() in nativeOpenAsset() 691 && access_mode != Asset.AccessMode.ACCESS_STREAMING.mode() in nativeOpenAsset() 692 && access_mode != Asset.AccessMode.ACCESS_BUFFER.mode()) { in nativeOpenAsset() 698 assetmanager.Open(asset_path_utf8, Asset.AccessMode.fromInt(access_mode)); in nativeOpenAsset() 719 Asset asset = assetmanager.Open(asset_path_utf8, Asset.AccessMode.ACCESS_RANDOM); in nativeOpenAssetFd() 740 if (access_mode != Asset.AccessMode.ACCESS_UNKNOWN.mode() in nativeOpenNonAsset() 741 && access_mode != Asset.AccessMode.ACCESS_RANDOM.mode() in nativeOpenNonAsset() 742 && access_mode != Asset.AccessMode.ACCESS_STREAMING.mode() in nativeOpenNonAsset() 743 && access_mode != Asset.AccessMode.ACCESS_BUFFER.mode()) { in nativeOpenNonAsset() [all …]
|