Home
last modified time | relevance | path

Searched full:accessmode (Results 1 – 25 of 81) sorted by relevance

1234

/external/libbrillo/brillo/streams/
Dfake_stream_test.cc31 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 …]
Dfile_stream_test.cc146 (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 …]
Dstream_test.cc35 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 …]
Dstream_utils.h62 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()
Dfile_stream.h38 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 …]
Dfile_stream.cc85 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 …]
Dtls_stream.cc102 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 …]
Dfake_stream.h40 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_;
Dtls_stream.h63 bool WaitForData(AccessMode mode,
64 const base::Callback<void(AccessMode)>& callback,
66 bool WaitForDataBlocking(AccessMode in_mode,
68 AccessMode* out_mode,
Dmock_stream.h89 (AccessMode, const base::Callback<void(AccessMode)>&, ErrorPtr*),
93 (AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*),
Dinput_stream_set.cc161 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()
Dstream.cc77 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()
Dmemory_stream.cc185 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()
Dinput_stream_set.h97 bool WaitForData(AccessMode mode,
98 const base::Callback<void(AccessMode)>& callback,
101 bool WaitForDataBlocking(AccessMode in_mode,
103 AccessMode* out_mode,
Dfake_stream.cc38 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()
Dstream.h29 // StreamPtr input_stream = FileStream::Open(path, AccessMode::READ);
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);
Dmemory_stream.h182 bool WaitForData(AccessMode mode,
183 const base::Callback<void(AccessMode)>& callback,
186 bool WaitForDataBlocking(AccessMode in_mode,
188 AccessMode* out_mode,
/external/llvm-project/llvm/test/tools/obj2yaml/Archives/
Dregular.yaml29 # MULTIPLE-NEXT: AccessMode: '644'
36 # MULTIPLE-NEXT: AccessMode: '987'
43 # MULTIPLE-NEXT: AccessMode: ''
55 AccessMode: '644'
63 AccessMode: '987'
73 AccessMode: ''
82 AccessMode: '0'
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAsset.java3 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()
188 // static Asset createFromFile(final String fileName, AccessMode mode);
194 // AccessMode mode);
204 // AccessMode mode);
218 // int uncompressedLength, AccessMode mode);
[all …]
DCppApkAssets.java18 import org.robolectric.res.android.Asset.AccessMode;
50 // Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM) const;
190 // return Asset.createFromUncompressedMap(std.move(file_map), Asset.AccessMode.ACCESS_RANDOM); in CreateAssetFromFile()
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/llvm-project/llvm/test/tools/yaml2obj/Archives/
Dregular.yaml77 AccessMode: '87654321'
88 AccessMode: '456'
104 # RUN: FileCheck %s --check-prefix=ERROR -DFIELD="AccessMode" -DVAL=8
118 AccessMode: '[[ACCESSMODE=""]]'
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager.java46 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()
365 int accessMode) throws FileNotFoundException { in openNonAssetNative() argument
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()
[all …]
/external/llvm-project/llvm/tools/obj2yaml/
Darchive2yaml.cpp56 C.Fields["AccessMode"].Value = ToString(Hdr.AccessMode); in dump()
95 char AccessMode[8]; member
/external/libchrome/mojo/public/cpp/system/
Dbuffer.cc19 SharedBufferHandle::AccessMode access_mode) const { in Clone()
26 if (access_mode == AccessMode::READ_ONLY) in Clone()
Dbuffer.h47 enum class AccessMode { enum
63 ScopedSharedBufferHandle Clone(AccessMode access_mode) const;

1234