/system/core/rootdir/ |
D | ueventd.rc | 7 # format for /dev rules: devname mode uid gid 9 # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" 11 /dev/null 0666 root root 12 /dev/zero 0666 root root 13 /dev/full 0666 root root 14 /dev/ptmx 0666 root root 15 /dev/tty 0666 root root 16 /dev/random 0666 root root 17 /dev/urandom 0666 root root 19 /dev/hw_random 0440 root system [all …]
|
D | init.rc | 35 copy /proc/cmdline /dev/urandom 36 copy /default.prop /dev/urandom 50 mkdir /dev/stune 51 mount cgroup none /dev/stune schedtune 52 mkdir /dev/stune/foreground 53 mkdir /dev/stune/background 54 mkdir /dev/stune/top-app 55 chown system system /dev/stune 56 chown system system /dev/stune/foreground 57 chown system system /dev/stune/background [all …]
|
/system/core/adf/libadfhwc/ |
D | adfhwc.cpp | 41 int adf_eventControl(struct adf_hwc_helper *dev, int disp, int event, in adf_eventControl() argument 47 if ((size_t)disp >= dev->intf_fds.size()) in adf_eventControl() 52 return adf_set_event(dev->intf_fds[disp], ADF_EVENT_VSYNC, enabled); in adf_eventControl() 65 int adf_blank(struct adf_hwc_helper *dev, int disp, int blank) in adf_blank() argument 67 if ((size_t)disp >= dev->intf_fds.size()) in adf_blank() 71 return adf_interface_blank(dev->intf_fds[disp], dpms_mode); in adf_blank() 74 int adf_query_display_types_supported(struct adf_hwc_helper *dev, int *value) in adf_query_display_types_supported() argument 77 if (dev->intf_fds.size() > 0) in adf_query_display_types_supported() 79 if (dev->intf_fds.size() > 1) in adf_query_display_types_supported() 85 int adf_getDisplayConfigs(struct adf_hwc_helper *dev, int disp, in adf_getDisplayConfigs() argument [all …]
|
/system/keymaster/include/keymaster/ |
D | soft_keymaster_device.h | 101 static int close_device(hw_device_t* dev); 109 static keymaster_error_t get_supported_algorithms(const keymaster1_device_t* dev, 112 static keymaster_error_t get_supported_block_modes(const keymaster1_device_t* dev, 117 static keymaster_error_t get_supported_padding_modes(const keymaster1_device_t* dev, 122 static keymaster_error_t get_supported_digests(const keymaster1_device_t* dev, 127 static keymaster_error_t get_supported_import_formats(const keymaster1_device_t* dev, 131 static keymaster_error_t get_supported_export_formats(const keymaster1_device_t* dev, 135 static keymaster_error_t add_rng_entropy(const keymaster1_device_t* dev, const uint8_t* data, 137 static keymaster_error_t generate_key(const keymaster1_device_t* dev, 141 static keymaster_error_t get_key_characteristics(const keymaster1_device_t* dev, [all …]
|
/system/security/keystore/ |
D | keystore_main.cpp | 58 static int keymaster0_device_initialize(const hw_module_t* mod, keymaster2_device_t** dev) { in keymaster0_device_initialize() argument 77 *dev = soft_keymaster.release()->keymaster2_device(); in keymaster0_device_initialize() 91 *dev = soft_keymaster.release()->keymaster2_device(); in keymaster0_device_initialize() 97 *dev = NULL; in keymaster0_device_initialize() 101 static int keymaster1_device_initialize(const hw_module_t* mod, keymaster2_device_t** dev) { in keymaster1_device_initialize() argument 125 *dev = soft_keymaster.release()->keymaster2_device(); in keymaster1_device_initialize() 131 *dev = NULL; in keymaster1_device_initialize() 135 static int keymaster2_device_initialize(const hw_module_t* mod, keymaster2_device_t** dev) { in keymaster2_device_initialize() argument 148 *dev = km2_device; in keymaster2_device_initialize() 154 *dev = nullptr; in keymaster2_device_initialize() [all …]
|
/system/core/fastboot/ |
D | usb_osx.cpp | 85 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { in try_interfaces() argument 108 (*dev)->GetConfiguration(dev, &configuration); in try_interfaces() 110 (*dev)->SetConfiguration(dev, 1); in try_interfaces() 113 kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator); in try_interfaces() 280 IOUSBDeviceInterface182 **dev = NULL; in try_device() local 299 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID*) &dev); in try_device() 300 if ((result != 0) || (dev == NULL)) { in try_device() 314 kr = (*dev)->USBDeviceOpen(dev); in try_device() 320 kr = (*dev)->GetDeviceVendor(dev, &handle->info.dev_vendor); in try_device() 326 kr = (*dev)->GetDeviceProduct(dev, &handle->info.dev_product); in try_device() [all …]
|
/system/sepolicy/ |
D | file_contexts | 47 /dev(/.*)? u:object_r:device:s0 48 /dev/akm8973.* u:object_r:sensors_device:s0 49 /dev/accelerometer u:object_r:sensors_device:s0 50 /dev/adf[0-9]* u:object_r:graphics_device:s0 51 /dev/adf-interface[0-9]*\.[0-9]* u:object_r:graphics_device:s0 52 /dev/adf-overlay-engine[0-9]*\.[0-9]* u:object_r:graphics_device:s0 53 /dev/alarm u:object_r:alarm_device:s0 54 /dev/android_adb.* u:object_r:adb_device:s0 55 /dev/ashmem u:object_r:ashmem_device:s0 56 /dev/audio.* u:object_r:audio_device:s0 [all …]
|
/system/keymaster/ |
D | soft_keymaster_device.cpp | 83 static keymaster_error_t add_digests(keymaster1_device_t* dev, keymaster_algorithm_t algorithm, in add_digests() argument 91 dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length); in add_digests() 102 static keymaster_error_t map_digests(keymaster1_device_t* dev, in map_digests() argument 110 keymaster_error_t error = add_digests(dev, algorithm, purpose, map); in map_digests() 119 keymaster_error_t error = add_digests(dev, algorithm, purpose, map); in map_digests() 331 template <typename T> SoftKeymasterDevice* convert_device(const T* dev) { in convert_device() argument 336 return reinterpret_cast<SoftKeymasterDevice*>(dev->context); in convert_device() 348 keymaster_error_t GetAlgorithm(const keymaster1_device_t* dev, const keymaster_key_blob_t& key, in GetAlgorithm() argument 362 dev->get_key_characteristics(dev, &key, client_id_ptr, app_data_ptr, &characteristics); in GetAlgorithm() 380 int SoftKeymasterDevice::close_device(hw_device_t* dev) { in close_device() argument [all …]
|
D | android_keymaster_test_utils.h | 362 static keymaster0_device_t* device(const keymaster0_device_t* dev) { in device() 364 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context); in device() 368 static void increment(const keymaster0_device_t* dev) { in increment() 370 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context); in increment() 374 static int counting_close_device(hw_device_t* dev) { in counting_close_device() 375 keymaster0_device_t* k0_dev = reinterpret_cast<keymaster0_device_t*>(dev); in counting_close_device() 385 static int counting_generate_keypair(const struct keymaster0_device* dev, in counting_generate_keypair() 388 increment(dev); in counting_generate_keypair() 389 int result = device(dev)->generate_keypair(device(dev), key_type, key_params, key_blob, in counting_generate_keypair() 396 static int counting_import_keypair(const struct keymaster0_device* dev, const uint8_t* key, in counting_import_keypair() [all …]
|
D | android_keymaster_test_utils.cpp | 733 static int close_device(hw_device_t* dev) { in close_device() argument 734 Sha256OnlyWrapper* wrapper = reinterpret_cast<Sha256OnlyWrapper*>(dev); in close_device() 740 static const keymaster1_device_t* unwrap(const keymaster1_device_t* dev) { in unwrap() argument 741 return reinterpret_cast<const Sha256OnlyWrapper*>(dev)->wrapped_device_; in unwrap() 744 static keymaster_error_t get_supported_algorithms(const struct keymaster1_device* dev, in get_supported_algorithms() argument 747 return unwrap(dev)->get_supported_algorithms(unwrap(dev), algorithms, algorithms_length); in get_supported_algorithms() 749 static keymaster_error_t get_supported_block_modes(const struct keymaster1_device* dev, in get_supported_block_modes() argument 754 return unwrap(dev)->get_supported_block_modes(unwrap(dev), algorithm, purpose, modes, in get_supported_block_modes() 757 static keymaster_error_t get_supported_padding_modes(const struct keymaster1_device* dev, in get_supported_padding_modes() argument 762 return unwrap(dev)->get_supported_padding_modes(unwrap(dev), algorithm, purpose, modes, in get_supported_padding_modes() [all …]
|
/system/core/adf/libadf/include/adf/ |
D | adf.h | 50 int adf_device_open(adf_id_t id, int flags, struct adf_device *dev); 54 void adf_device_close(struct adf_device *dev); 61 int adf_get_device_data(struct adf_device *dev, struct adf_device_data *data); 73 int adf_device_post(struct adf_device *dev, 80 int adf_device_attach(struct adf_device *dev, adf_id_t overlay_engine, 85 int adf_device_detach(struct adf_device *dev, adf_id_t overlay_engine, 93 ssize_t adf_interfaces(struct adf_device *dev, adf_id_t **interfaces); 101 ssize_t adf_interfaces_for_overlay_engine(struct adf_device *dev, 111 ssize_t adf_interfaces_filter_by_type(struct adf_device *dev, 119 ssize_t adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag, [all …]
|
/system/extras/tests/ext4/ |
D | android_emmc_perf_tests.sh | 4 PERF_LOC=/dev 22 if ! adb shell true >/dev/null 2>&1 86 adb push "$PERF" /dev 99 adb shell umount /sdcard >/dev/null 2>&1 100 adb shell umount /mnt/sdcard >/dev/null 2>&1 101 adb shell umount /mnt/shell/sdcard0 >/dev/null 2>&1 102 adb shell umount /mnt/shell/emulated >/dev/null 2>&1 103 adb shell umount /cache >/dev/null 2>&1 106 adb shell umount /data >/dev/null 2>&1 116 adb shell dd if=/dev/zero of=$CACHE bs=1048576 count=512 [all …]
|
/system/core/adf/libadf/ |
D | adf.c | 87 int adf_device_open(adf_id_t id, int flags, struct adf_device *dev) in adf_device_open() argument 91 dev->id = id; in adf_device_open() 94 dev->fd = open(filename, flags); in adf_device_open() 95 if (dev->fd < 0) in adf_device_open() 101 void adf_device_close(struct adf_device *dev) in adf_device_close() argument 103 if (dev->fd >= 0) in adf_device_close() 104 close(dev->fd); in adf_device_close() 107 int adf_get_device_data(struct adf_device *dev, struct adf_device_data *data) in adf_get_device_data() argument 114 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data() 143 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data() [all …]
|
/system/core/logcat/ |
D | logcat.cpp | 165 static void processBuffer(log_device_t* dev, struct log_msg *buf) in processBuffer() argument 172 if (dev->binary) { in processBuffer() 219 static void maybePrintStart(log_device_t* dev, bool printDividers) { in maybePrintStart() argument 220 if (!dev->printed || printDividers) { in maybePrintStart() 224 dev->printed ? "switch to" : "beginning of", in maybePrintStart() 225 dev->device); in maybePrintStart() 230 dev->printed = true; in maybePrintStart() 553 log_device_t* dev; in main() local 798 for (dev = devices; dev; dev = dev->next) { in main() 799 if (!strcmp(name, dev->device)) { in main() [all …]
|
/system/update_engine/sample_images/ |
D | generate_images.sh | 29 if ! sudo umount "$1" 2>/dev/null; then 48 dd if=/dev/zero bs=1024 count=16 status=none | tr '\0' '\141' | 50 sudo dd if=/dev/zero of="${mntdir}"/regular-32k-zeros bs=1024 count=16 \ 81 sudo ln -s $(dd if=/dev/zero bs=256 count=1 status=none | tr '\0' '\141') \ 87 echo "foo" | sudo tee "${mntdir}"/dir1/dir2/file >/dev/null 88 echo "bar" | sudo tee "${mntdir}"/dir1/file >/dev/null 102 sudo mkdir -p "${mntdir}"/etc >/dev/null 103 sudo tee "${mntdir}"/etc/update_engine.conf >/dev/null <<EOF 107 sudo tee "${mntdir}"/etc/lsb-release >/dev/null <<EOF 130 sudo mkdir -p "${mntdir}"/bin >/dev/null [all …]
|
/system/core/adf/libadfhwc/include/adfhwc/ |
D | adfhwc.h | 104 struct adf_hwc_helper **dev); 109 void adf_hwc_close(struct adf_hwc_helper *dev); 118 int adf_eventControl(struct adf_hwc_helper *dev, int disp, int event, 120 int adf_blank(struct adf_hwc_helper *dev, int disp, int blank); 121 int adf_query_display_types_supported(struct adf_hwc_helper *dev, int *value); 122 int adf_getDisplayConfigs(struct adf_hwc_helper *dev, int disp, 124 int adf_getDisplayAttributes(struct adf_hwc_helper *dev, int disp,
|
/system/core/adb/ |
D | remount_service.cpp | 62 std::string dev = rec ? std::string(rec->blk_device) : ""; in find_fstab_mount() local 64 return dev; in find_fstab_mount() 77 bool make_block_device_writable(const std::string& dev) { in make_block_device_writable() argument 78 int fd = unix_open(dev.c_str(), O_RDONLY | O_CLOEXEC); in make_block_device_writable() 93 std::string dev = find_mount(dir); in remount_partition() local 94 if (dev.empty()) { in remount_partition() 97 if (!make_block_device_writable(dev)) { in remount_partition() 99 dir, dev.c_str(), strerror(errno)); in remount_partition() 102 if (mount(dev.c_str(), dir, "none", MS_REMOUNT, nullptr) == -1) { in remount_partition()
|
D | usb_osx.cpp | 128 IOUSBDeviceInterface197 **dev = NULL; in AndroidInterfaceAdded() local 200 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID*)&dev); in AndroidInterfaceAdded() 203 if (result || !dev) { in AndroidInterfaceAdded() 211 kr = (*dev)->GetDeviceVendor(dev, &vendor); in AndroidInterfaceAdded() 212 kr = (*dev)->GetDeviceProduct(dev, &product); in AndroidInterfaceAdded() 213 kr = (*dev)->GetLocationID(dev, &locationId); in AndroidInterfaceAdded() 217 (*dev)->Release(dev); in AndroidInterfaceAdded() 222 kr = (*dev)->USBGetSerialNumberStringIndex(dev, &serialIndex); in AndroidInterfaceAdded() 238 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded() 256 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded() [all …]
|
/system/security/softkeymaster/include/keymaster/ |
D | softkeymaster.h | 22 int openssl_generate_keypair(const keymaster0_device_t* dev, const keymaster_keypair_t key_type, 25 int openssl_import_keypair(const keymaster0_device_t* dev, const uint8_t* key, 28 int openssl_get_keypair_public(const struct keymaster0_device* dev, const uint8_t* key_blob, 32 int openssl_sign_data(const keymaster0_device_t* dev, const void* params, const uint8_t* keyBlob, 36 int openssl_verify_data(const keymaster0_device_t* dev, const void* params, const uint8_t* keyBlob,
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper.cpp | 71 int TrustyGateKeeperDevice::close_device(hw_device_t* dev) { in close_device() argument 72 delete reinterpret_cast<TrustyGateKeeperDevice *>(dev); in close_device() 183 static inline TrustyGateKeeperDevice *convert_device(const gatekeeper_device *dev) { in convert_device() argument 184 return reinterpret_cast<TrustyGateKeeperDevice *>(const_cast<gatekeeper_device *>(dev)); in convert_device() 188 int TrustyGateKeeperDevice::enroll(const struct gatekeeper_device *dev, uint32_t uid, in enroll() argument 194 if (dev == NULL || in enroll() 208 return convert_device(dev)->Enroll(uid, current_password_handle, current_password_handle_length, in enroll() 215 int TrustyGateKeeperDevice::verify(const struct gatekeeper_device *dev, uint32_t uid, in verify() argument 221 if (dev == NULL || enrolled_password_handle == NULL || in verify() 226 return convert_device(dev)->Verify(uid, challenge, enrolled_password_handle, in verify()
|
/system/extras/tests/workloads/ |
D | defs.sh | 64 chk1=$(functions 2>/dev/null) 65 chk2=$(typeset -F 2>/dev/null) 80 if ls /etc/* 2>/dev/null | grep -q android.hardware; then 86 adb devices -l 2>&1 >/dev/null 109 if ! echo $$ > /dev/cpuset/background/tasks; then 202 s=$(grep "Binder.*tracing_mark_write.*launching" $traceout 2>/dev/null | head -1| tr [\(\)\[\] 205 s=$(grep activityPause $traceout | head -1 2>/dev/null| tr [\(\)\[\] 221 f=$(grep "surfaceflinger.*tracing_mark_write.*$_app" $traceout 2>/dev/null | 228 f=$(grep " <...>-$pid.*tracing_mark_write.*$_app" $traceout 2>/dev/null | 239 ${ADB}dumpsys gfxinfo $_gfxapp reset 2>&1 >/dev/null [all …]
|
/system/vold/ |
D | Devmapper.cpp | 77 if (!n->dev) { in dumpState() 100 … asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev)); in dumpState() 102 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev), in dumpState() 103 MINOR(n->dev), io2->target_count, io2->open_count, io2->flags, MAJOR(io2->dev), in dumpState() 104 MINOR(io2->dev)); in dumpState() 160 unsigned minor = (io->dev & 0xff) | ((io->dev >> 12) & 0xfff00); in lookupActive() 217 unsigned minor = (io->dev & 0xff) | ((io->dev >> 12) & 0xfff00); in create()
|
/system/media/camera/docs/ |
D | metadata-check-dependencies | 25 if ! which port >& /dev/null 29 elif [[ "$OSTYPE" == "linux-gnu" ]] && which apt-get >& /dev/null 55 if type -f "$bin" >& /dev/null 85 if python -c "import $mod" >& /dev/null
|
/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 29 int err = adf_device_open(dev_id, O_RDWR, &dev); in SetUp() 33 err = adf_find_simple_post_configuration(&dev, fmt8888, n_fmt8888, in SetUp() 38 intf = adf_interface_open(&dev, intf_id, O_RDWR); in SetUp() 42 eng = adf_overlay_engine_open(&dev, eng_id, O_RDWR); in SetUp() 52 adf_device_close(&dev); in TearDown() 117 int err = adf_device_attach(&dev, eng_id, intf_id); in attach() 124 int err = adf_device_detach(&dev, eng_id, intf_id); in detach() 145 adf_device dev; member in AdfTest 181 int err = adf_get_device_data(&dev, &data); in TEST_F() 267 int err = adf_device_attach(&dev, eng_id, intf_id); in TEST_F() [all …]
|
/system/update_engine/payload_consumer/ |
D | postinstall_runner_action_unittest.cc | 242 RunPosinstallAction(loop.dev(), kPostinstallDefaultScript, false); in TEST_F() 252 RunPosinstallAction(loop.dev(), "bin/postinst_link", false); in TEST_F() 259 RunPosinstallAction(loop.dev(), "bin/postinst_example", true); in TEST_F() 281 RunPosinstallAction(loop.dev(), "bin/postinst_fail1", false); in TEST_F() 289 RunPosinstallAction(loop.dev(), "bin/postinst_fail3", false); in TEST_F() 297 RunPosinstallAction(loop.dev(), "/etc/../bin/sh", false); in TEST_F() 306 RunPosinstallAction(loop.dev(), "bin/self_check_context", false); in TEST_F() 319 RunPosinstallAction(loop.dev(), "bin/postinst_suspend", false); in TEST_F() 331 RunPosinstallAction(loop.dev(), "bin/postinst_suspend", false); in TEST_F() 354 RunPosinstallAction(loop.dev(), "bin/postinst_progress", false); in TEST_F()
|