Home
last modified time | relevance | path

Searched refs:control (Results 1 – 25 of 210) sorted by relevance

123456789

/system/incremental_delivery/incfs/include/
Dincfs_ndk.h158 void IncFs_DeleteControl(IncFsControl* control);
159 IncFsFd IncFs_GetControlFd(const IncFsControl* control, IncFsFdType type);
160 IncFsSize IncFs_ReleaseControlFds(IncFsControl* control, IncFsFd out[], IncFsSize outSize);
162 IncFsErrorCode IncFs_SetOptions(const IncFsControl* control, IncFsMountOptions options);
167 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize);
169 IncFsErrorCode IncFs_MakeFile(const IncFsControl* control, const char* path, int32_t mode,
171 IncFsErrorCode IncFs_MakeDir(const IncFsControl* control, const char* path, int32_t mode);
172 IncFsErrorCode IncFs_MakeDirs(const IncFsControl* control, const char* path, int32_t mode);
174 IncFsErrorCode IncFs_GetMetadataById(const IncFsControl* control, IncFsFileId id, char buffer[],
176 IncFsErrorCode IncFs_GetMetadataByPath(const IncFsControl* control, const char* path, char buffer[],
[all …]
Dincfs_inline.h127 auto control = IncFs_Mount(details::c_str(backingPath), details::c_str(targetDir), options); in mount() local
128 return UniqueControl(control); in mount()
132 auto control = IncFs_Open(details::c_str(dir)); in open() local
133 return UniqueControl(control); in open()
140 inline ErrorCode setOptions(const Control& control, MountOptions newOptions) { in setOptions() argument
141 return IncFs_SetOptions(control, newOptions); in setOptions()
152 inline std::string root(const Control& control) { in root() argument
156 if (auto err = IncFs_Root(control, result.data(), &size); err < 0) { in root()
164 inline ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, in makeFile() argument
166 return IncFs_MakeFile(control, details::c_str(path), mode, fileId, params); in makeFile()
[all …]
Dincfs.h87 UniqueControl(IncFsControl* control = nullptr) : mControl(control) {} in mControl() argument
201 ErrorCode setOptions(const Control& control, MountOptions newOptions);
206 std::string root(const Control& control);
208 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId,
210 ErrorCode makeDir(const Control& control, std::string_view path, int mode = 0555);
211 ErrorCode makeDirs(const Control& control, std::string_view path, int mode = 0555);
213 RawMetadata getMetadata(const Control& control, FileId fileId);
214 RawMetadata getMetadata(const Control& control, std::string_view path);
215 FileId getFileId(const Control& control, std::string_view path);
217 RawSignature getSignature(const Control& control, FileId fileId);
[all …]
/system/incremental_delivery/incfs/
Dincfs.cpp317 auto control = IncFs_CreateControl(cmd.get(), pendingReads.get(), logs.get()); in makeControl() local
318 if (control) { in makeControl()
323 return control; in makeControl()
466 auto control = makeControl(targetDir); in IncFs_Mount() local
467 if (control == nullptr) { in IncFs_Mount()
470 return control; in IncFs_Mount()
482 IncFsFd IncFs_GetControlFd(const IncFsControl* control, IncFsFdType type) { in IncFs_GetControlFd() argument
483 if (!control) { in IncFs_GetControlFd()
488 return control->cmd; in IncFs_GetControlFd()
490 return control->pendingReads; in IncFs_GetControlFd()
[all …]
/system/core/adb/daemon/
Dusb.cpp120 struct iocb control = {}; member
123 TransferId id() const { return TransferId::from_value(control.aio_data); } in id()
173 UsbFfsConnection(unique_fd control, unique_fd read, unique_fd write, in UsbFfsConnection()
178 control_fd_(std::move(control)), in UsbFfsConnection()
495 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
496 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload.data()); in PrepareReadBlock()
497 block->control.aio_nbytes = block->payload.size(); in PrepareReadBlock()
503 block.control.aio_rw_flags = 0; in CreateReadBlock()
504 block.control.aio_lio_opcode = IOCB_CMD_PREAD; in CreateReadBlock()
505 block.control.aio_reqprio = 0; in CreateReadBlock()
[all …]
Dusb_ffs.cpp254 unique_fd control, bulk_out, bulk_in; in open_functionfs() local
276 control.reset(adb_open(USB_FFS_ADB_EP0, O_RDWR)); in open_functionfs()
277 if (control < 0) { in open_functionfs()
282 if (adb_write(control.get(), &v2_descriptor, sizeof(v2_descriptor)) < 0) { in open_functionfs()
291 if (adb_write(control.get(), &v1_descriptor, sizeof(v1_descriptor)) < 0) { in open_functionfs()
297 if (adb_write(control.get(), &strings, sizeof(strings)) < 0) { in open_functionfs()
317 *out_control = std::move(control); in open_functionfs()
Dusb_ffs.h21 bool open_functionfs(android::base::unique_fd* control, android::base::unique_fd* bulk_out,
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp147 auto control = FindClassOrDie(env, "android/content/pm/FileSystemControlParcel"); in JniIds() local
149 GetFieldIDOrDie(env, control, "incremental", in JniIds()
151 service = GetFieldIDOrDie(env, control, "service", in JniIds()
154 GetFieldIDOrDie(env, control, "callback", in JniIds()
291 DataLoaderConnector(JNIEnv* env, jobject service, jint storageId, UniqueControl control, in DataLoaderConnector() argument
299 mControl(std::move(control)) { in DataLoaderConnector()
465 const UniqueControl& control() const { return mControl; } in control() function in __anon3f07e4fb0111::DataLoaderConnector
655 bool DataLoaderService_OnCreate(JNIEnv* env, jobject service, jint storageId, jobject control, in DataLoaderService_OnCreate() argument
665 auto nativeControl = createIncFsControlFromManaged(env, control); in DataLoaderService_OnCreate()
679 auto serviceConnector = createServiceConnector(env, control); in DataLoaderService_OnCreate()
[all …]
/system/core/logd/
DLogListener.cpp60 alignas(4) char control[CMSG_SPACE(sizeof(struct ucred))]; in HandleData() local
62 nullptr, 0, &iov, 1, control, sizeof(control), 0, in HandleData()
/system/core/fastboot/device/
Dusb_client.cpp192 h->control.reset(); in CloseFunctionFs()
198 if (h->control < 0) { // might have already done this before in InitFunctionFs()
200 h->control.reset(open(kUsbFfsFastbootEp0, O_RDWR)); in InitFunctionFs()
201 if (h->control < 0) { in InitFunctionFs()
206 auto ret = write(h->control.get(), &v2_descriptor, sizeof(v2_descriptor)); in InitFunctionFs()
212 ret = write(h->control.get(), &strings, sizeof(strings)); in InitFunctionFs()
Dusb.h50 android::base::unique_fd control; member
/system/core/libcutils/
Duevent.cpp56 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_kernel_recv() local
58 &addr, sizeof(addr), &iov, 1, control, sizeof(control), 0, in uevent_kernel_recv()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_utils.cc51 std::bitset<8> control; in GetControlField() local
52 control |= frame_type; in GetControlField()
53 control.set(4, pf); in GetControlField()
54 return static_cast<uint8_t>(control.to_ulong()); in GetControlField()
111 std::vector<uint8_t> CreateRfcommPacket(uint8_t address, uint8_t control, in CreateRfcommPacket() argument
117 result.push_back(control); in CreateRfcommPacket()
133 if (GetFrameTypeFromControlField(control) == RFCOMM_UIH) { in CreateRfcommPacket()
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendBenchmark.cpp40 static sp<IBinder> control = in BM_getWakeLockStats() local
43 android::interface_cast<ISuspendControlService>(control); in BM_getWakeLockStats()
/system/nvram/core/include/nvram/core/
Dpersistence.h108 bool HasControl(uint32_t control) const { in HasControl()
109 return (controls & (1 << control)) != 0; in HasControl()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp239 auto control = IncFs_CreateControl(fds[0].release(), fds[1].release(), fds[2].release()); in TEST_F() local
240 ASSERT_TRUE(control); in TEST_F()
241 EXPECT_GE(IncFs_GetControlFd(control, CMD), 0); in TEST_F()
242 EXPECT_GE(IncFs_GetControlFd(control, PENDING_READS), 0); in TEST_F()
243 EXPECT_GE(IncFs_GetControlFd(control, LOGS), 0); in TEST_F()
246 EXPECT_EQ(-EINVAL, IncFs_ReleaseControlFds(control, nullptr, 3)); in TEST_F()
247 EXPECT_EQ(-ERANGE, IncFs_ReleaseControlFds(control, rawFds, 2)); in TEST_F()
248 EXPECT_EQ(3, IncFs_ReleaseControlFds(control, rawFds, 3)); in TEST_F()
255 IncFs_DeleteControl(control); in TEST_F()
306 auto control{createControl(tmp_file.fd, -1, -1)}; in TEST_F() local
[all …]
/system/nvram/client/
Dnvram_client.c64 nvram_control_t control; member
77 static const char* ControlToString(nvram_control_t control) { in ControlToString() argument
79 if (kControlNameTable[i].control == control) { in ControlToString()
90 static int StringToControl(const char* name, nvram_control_t* control) { in StringToControl() argument
93 *control = kControlNameTable[i].control; in StringToControl()
/system/bt/gd/os/linux_generic/
Dreactor.cc163 auto control = eventfd_write(control_fd_, kStopReactor); in Stop() local
164 ASSERT(control != -1); in Stop()
238 auto control = eventfd_write(control_fd_, kWaitForIdle); in WaitForIdle() local
239 ASSERT(control != -1); in WaitForIdle()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp392 static void CheckCreateLoopDevice(LoopControl* control, const std::string& file, in CheckCreateLoopDevice() argument
397 CHECK(control->Attach(file_fd, timeout_ms, path)) in CheckCreateLoopDevice()
403 AutoDetachLoopDevice(LoopControl* control, const std::string& device) in AutoDetachLoopDevice() argument
404 : AutoDevice(device), control_(control) {} in AutoDetachLoopDevice()
412 uint64_t size, LoopControl* control, in CheckMapImage() argument
415 CheckCreateLoopDevice(control, img_path, 1s, mapped_path); in CheckMapImage()
417 return std::make_unique<AutoDetachLoopDevice>(control, *mapped_path); in CheckMapImage()
/system/core/adb/
DSOCKET-ACTIVATION.txt2 allowing the daemon to start automatically when the adb control port
33 control port), even after adb kill-server kills the server.
/system/sepolicy/vendor/
Dhal_bootctl_default.te1 # Boot control subsystem
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp319 static bool CreateLoopDevice(LoopControl& control, const std::string& file, in CreateLoopDevice() argument
327 if (!control.Attach(file_fd, timeout_ms, path)) { in CreateLoopDevice()
337 AutoDetachLoopDevices(LoopControl& control, const std::vector<std::string>& devices) in AutoDetachLoopDevices() argument
338 : control_(control), devices_(devices), commit_(false) {} in AutoDetachLoopDevices()
456 LoopControl control; in MapWithLoopDevice() local
458 AutoDetachLoopDevices auto_detach(control, loop_devices); in MapWithLoopDevice()
466 if (!CreateLoopDevice(control, file, timeout_ms - elapsed, &loop_device)) { in MapWithLoopDevice()
/system/nvram/core/
Dnvram_manager.cpp52 for (size_t control = 0; control < sizeof(uint32_t) * 8; ++control) { in GetControlsVector() local
53 if (space.HasControl(control)) { in GetControlsVector()
58 (*controls)[controls->size() - 1] = static_cast<nvram_control_t>(control); in GetControlsVector()
226 for (uint32_t control : request.controls) { in CreateSpace() local
227 controls |= (1 << control); in CreateSpace()
/system/extras/simpleperf/demo/CppApi/app/
Dproguard-rules.pro2 # You can control the set of applied configuration files using the
/system/extras/simpleperf/demo/JavaApi/app/
Dproguard-rules.pro2 # You can control the set of applied configuration files using the

123456789