HomeSort by relevance Sort by last modified time
    Searched full:uevent (Results 1 - 25 of 148) sorted by null

1 2 3 4 5 6

  /system/core/init/
uevent_listener.cpp 27 #include <cutils/uevent.h>
32 static void ParseEvent(const char* msg, Uevent* uevent) {
33 uevent->partition_num = -1;
34 uevent->major = -1;
35 uevent->minor = -1;
36 uevent->action.clear();
37 uevent->path.clear();
38 uevent->subsystem.clear();
39 uevent->firmware.clear()
136 Uevent uevent; local
211 Uevent uevent; local
    [all...]
firmware_handler.cpp 39 static void LoadFirmware(const Uevent& uevent, const std::string& root, int fw_fd, size_t fw_size,
47 PLOG(ERROR) << "firmware: sendfile failed { '" << root << "', '" << uevent.firmware
60 static void ProcessFirmwareEvent(const Uevent& uevent) {
63 LOG(INFO) << "firmware: loading '" << uevent.firmware << "' for '" << uevent.path << "'";
65 std::string root = "/sys" + uevent.path;
71 PLOG(ERROR) << "couldn't open firmware loading fd for " << uevent.firmware;
77 PLOG(ERROR) << "couldn't open firmware data fd for " << uevent.firmware
    [all...]
firmware_handler.h 20 #include "uevent.h"
25 void HandleFirmwareEvent(const Uevent& uevent);
init_first_stage.cpp 36 #include "uevent.h"
59 ListenerAction HandleBlockDevice(const std::string& name, const Uevent&);
64 virtual ListenerAction UeventCallback(const Uevent& uevent);
97 ListenerAction UeventCallback(const Uevent& uevent) override;
160 // Creates devices with uevent->partition_name matching one in the member variable
171 auto dm_callback = [this, &dm_path, &found](const Uevent& uevent) {
172 if (uevent.path == dm_path)
    [all...]
devices_test.cpp 32 void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent,
44 mkdir_recursive(android::base::Dirname(fake_sys_root.path + uevent.path), 0777);
47 result = device_handler_.GetBlockDeviceSymlinks(uevent);
66 Uevent uevent = { local
74 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result);
80 Uevent uevent = { local
91 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result)
96 Uevent uevent = { local
111 Uevent uevent = { local
127 Uevent uevent = { local
138 Uevent uevent = { local
149 Uevent uevent = { local
160 Uevent uevent = { local
171 Uevent uevent = { local
    [all...]
uevent_listener.h 28 #include "uevent.h"
40 using ListenerCallback = std::function<ListenerAction(const Uevent&)>;
53 bool ReadUevent(Uevent* uevent) const;
devices.h 31 #include "uevent.h"
78 // Returns the full path for a uevent of a device that is a member of this subsystem,
80 std::string ParseDevPath(const Uevent& uevent) const {
82 ? uevent.device_name
83 : android::base::Basename(uevent.path);
111 void HandleDeviceEvent(const Uevent& uevent);
113 std::vector<std::string> GetBlockDeviceSymlinks(const Uevent& uevent) const
    [all...]
devices.cpp 294 std::vector<std::string> DeviceHandler::GetBlockDeviceSymlinks(const Uevent& uevent) const {
298 if (FindPlatformDevice(uevent.path, &device)) {
310 } else if (FindPciDevicePrefix(uevent.path, &device)) {
312 } else if (FindVbdDevicePrefix(uevent.path, &device)) {
324 if (!uevent.partition_name.empty()) {
325 std::string partition_name_sanitized(uevent.partition_name);
327 if (partition_name_sanitized != uevent.partition_name) {
328 LOG(VERBOSE) << "Linking partition '" << uevent.partition_name << "' as '"
338 auto last_slash = uevent.path.rfind('/')
    [all...]
ueventd.cpp 45 // At a high level, ueventd listens for uevent messages generated by the kernel through a netlink
53 // /sys and writing 'add' to each 'uevent' file that it finds. This causes the kernel to generate
54 // and resend uevent messages for all of the currently registered devices. This is done, because
56 // to receive their uevent messages and handle them appropriately. This process is known as
64 // Handling of uevent messages has two unique properties:
67 // that no file system operations are done while the uevent process has an abnormal egid or
76 // device when its uevent is handled, results in multiple restorecon operations being done on a
78 // than to do restorecon on each device as its uevent is handled. This only applies to cold boot;
79 // once that has completed, restorecon is done for each device as its uevent is handled.
85 // 2) ueventd forks 'n' separate uevent handler subprocesses and has each of them to handle th
135 auto& uevent = uevent_queue_[i]; local
    [all...]
uevent.h 25 struct Uevent {
  /frameworks/base/core/java/android/os/
UEventObserver.java 27 * Subclass UEventObserver, implementing onUEvent(UEvent event), then call
28 * startObserving() with a match string. The UEvent thread will then call your
29 * onUEvent() method when a UEvent occurs that contains your match string.<p>
33 * There is only one UEvent thread per process, even if that process has
34 * multiple UEventObserver subclass instances. The UEvent thread starts when
36 * started the UEvent thread will not stop (although it can stop notifying
82 * This method will cause the UEvent thread to start if this is the first
84 * Once called, the UEvent thread will call onUEvent() when an incoming
85 * UEvent matches the specified string.<p>
90 * @param match A substring of the UEvent to match. Try to be as specifi
    [all...]
  /external/iproute2/etc/iproute2/
nl_protos 18 15 uevent
  /hardware/libhardware_legacy/
Android.bp 60 "uevent.c",
  /prebuilts/abi-dumps/vndk/28/32/x86/source-based/
libhardware_legacy.so.lsdump.gz 
  /prebuilts/abi-dumps/vndk/28/64/arm64_armv8-a/source-based/
libhardware_legacy.so.lsdump.gz 
  /prebuilts/abi-dumps/vndk/28/64/x86/source-based/
libhardware_legacy.so.lsdump.gz 
  /prebuilts/abi-dumps/vndk/28/64/x86_64/source-based/
libhardware_legacy.so.lsdump.gz 
  /prebuilts/abi-dumps/vndk/28/64/x86_x86_64/source-based/
libhardware_legacy.so.lsdump.gz 
  /system/vold/
NetlinkManager.cpp 61 PLOG(ERROR) << "Unable to create uevent socket";
70 PLOG(ERROR) << "Unable to set uevent socket SO_RCVBUF/SO_RCVBUFFORCE option";
75 PLOG(ERROR) << "Unable to set uevent socket SO_PASSCRED option";
80 PLOG(ERROR) << "Unable to bind uevent socket";
  /hardware/intel/img/hwcomposer/merrifield/common/observers/
UeventObserver.cpp 53 ETRACE("failed to create uevent observer thread");
57 // init uevent socket
70 DEINIT_AND_RETURN_FALSE("failed to create uevent socket");
137 ETRACE("listener for uevent %s exists", event);
143 ETRACE("failed to create Uevent Listener");
155 ETRACE("invalid uEvent file descriptor");
199 DTRACE("received Uevent: %s", msg);
204 ETRACE("no listener for uevent %s", msg);
  /hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
UeventObserver.cpp 53 ELOGTRACE("failed to create uevent observer thread");
57 // init uevent socket
70 DEINIT_AND_RETURN_FALSE("failed to create uevent socket");
137 ELOGTRACE("listener for uevent %s exists", event);
143 ELOGTRACE("failed to create Uevent Listener");
155 ELOGTRACE("invalid uEvent file descriptor");
199 DLOGTRACE("received Uevent: %s", msg);
204 ELOGTRACE("no listener for uevent %s", msg);
  /prebuilts/abi-dumps/vndk/28/32/arm_armv7-a-neon/source-based/
libhardware_legacy.so.lsdump.gz 
  /prebuilts/abi-dumps/vndk/28/64/arm_armv8-a/source-based/
libhardware_legacy.so.lsdump.gz 
  /hardware/qcom/display/msm8994/libhwcomposer/
hwc_uevents.cpp 22 #include <hardware_legacy/uevent.h>
41 /* Parse uevent data for devices which we are interested */
74 /* Parse uevent data for action requested for the display */
104 ALOGE_IF(UEVENT_DEBUG,"%s: uevent received: %s switch state: %d",
181 "uevent thread", __FUNCTION__);
218 ALOGE("%s: failed to init uevent ",__FUNCTION__);
235 ALOGI("Initializing UEVENT Thread");
  /cts/tests/tests/security/src/android/security/cts/
HwRngTest.java 90 // We achieve this by inspecting /sys/class/misc/hw_random/dev and uevent.
97 Map<String, String> ueventVars = parseUeventFile(new File(SYSFS_HW_RANDOM, "uevent"));
98 assertEquals("uevent MAJOR", String.valueOf(HWRNG_DRIVER_MAJOR), ueventVars.get("MAJOR"));
99 assertEquals("uevent MINOR", String.valueOf(HWRNG_DRIVER_MINOR), ueventVars.get("MINOR"));
100 assertEquals("uevent DEVNAME", HWRNG_DRIVER_NAME, ueventVars.get("DEVNAME"));

Completed in 838 milliseconds

1 2 3 4 5 6