Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/system/core/rootdir/
Dinit.usb.rc7 chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
8 chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
9 chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
10 chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
22 on property:vendor.sys.usb.adb.disabled=*
23 setprop sys.usb.adb.disabled ${vendor.sys.usb.adb.disabled}
25 # Set default value on sys.usb.configfs early in boot sequence. It will be
28 setprop sys.usb.configfs 0
31 on property:sys.usb.config=none && property:sys.usb.configfs=0
33 write /sys/class/android_usb/android0/enable 0
[all …]
Dinit.usb.configfs.rc1 on property:sys.usb.config=none && property:sys.usb.configfs=1
4 setprop sys.usb.ffs.ready 0
12 setprop sys.usb.state ${sys.usb.config}
15 setprop sys.usb.ffs.ready 0
17 on property:sys.usb.config=adb && property:sys.usb.configfs=1
20 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
23 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
24 setprop sys.usb.state ${sys.usb.config}
26 on property:sys.usb.config=mtp && property:sys.usb.configfs=1
29 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
[all …]
Dinit-debug.rc2 write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed}
5 write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed}
8 write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size}
11 mount debugfs debugfs /sys/kernel/debug
12 chmod 0755 /sys/kernel/debug
14 on property:sys.boot_completed=1 && property:ro.product.debugfs_restrictions.enabled=true && \
16 umount /sys/kernel/debug
Dinit.rc17 write /proc/sys/kernel/sysrq 0
22 write /proc/sys/kernel/modprobe \n
56 write /sys/module/dm_verity/parameters/prefetch_cluster 0
82 mount tracefs tracefs /sys/kernel/tracing
84 # create sys dirctory
85 mkdir /dev/sys 0755 system system
86 mkdir /dev/sys/fs 0755 system system
87 mkdir /dev/sys/block 0755 system system
236 mount fusectl none /sys/fs/fuse/connections
282 write /proc/sys/kernel/panic_on_oops 1
[all …]
/system/bt/tools/scripts/
Dbtsnooz.py27 import sys
78 sys.stderr.write('Unsupported btsnooz version: %s\n' % version)
84 sys.stdout.write('btsnoop\x00\x00\x00\x00\x01\x00\x00\x03\xea')
111 sys.stdout.write(struct.pack('>II', length, length))
112 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
113sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
114 sys.stdout.write(type_to_hci(type))
115 sys.stdout.write(decompressed[offset:offset + length - 1])
138 sys.stdout.write(struct.pack('>II', packet_length, length))
139 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0))
[all …]
Ddump_metrics_ascii.py20 import sys
74 sys.path.append(output_dir)
113 log_handler = logging.StreamHandler(sys.stderr)
118 if len(sys.argv) < 2:
120 logging.error("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
121 sys.exit(1)
122 if sys.argv[1] == "-h":
123 logging.info("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
125 sys.exit(0)
126 bluetooth_proto_module = compile_import_proto(tempfile.gettempdir(), sys.argv[1])
[all …]
/system/extras/tests/workloads/
Datrace-uncompress.py6 import sys, zlib
10 if len(sys.argv) != 2:
11 print >> sys.stderr, ('Usage: %s inputfile' % sys.argv[0])
12 sys.exit(1)
14 infile = open(sys.argv[1], "rb")
28 print >> sys.stderr, ('No trace data found')
29 sys.exit(1)
Dpowerave.py3 import sys
11 sys.exit(0)
16 parsedargv,argvrem = getopt.getopt(sys.argv[1:], "vo:w:l:h", ["help"])
26 f = sys.stdin
38 sys.exit(1)
/system/update_engine/
Dprotobuflint.py20 import sys
46 if len(sys.argv) < 2:
47 print("Usage:", sys.argv[0], "commit_hash", "<file1>", "<file2>", "...")
48 sys.exit(1)
49 commit_hash = sys.argv[1]
50 for filename in sys.argv[2:]:
53 sys.exit(1)
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh32 if [ ! -f /dev/sys/fs/by-name/userdata/gc_urgent ]; then
38 if [ -f /dev/sys/fs/by-name/userdata/unusable ]; then
42 read START < /dev/sys/fs/by-name/userdata/unusable
46 read START < /dev/sys/fs/by-name/userdata/dirty_segments
50 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent || exit 1
63 read CURRENT < /dev/sys/fs/by-name/userdata/unusable
65 read CURRENT < /dev/sys/fs/by-name/userdata/dirty_segments
74 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent
81 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent
/system/memory/lmkd/
Dlmkd.rc14 on property:sys.boot_completed=1 && property:lmkd.reinit=0
21 setprop lmkd.reinit ${sys.boot_completed:-0}
24 setprop lmkd.reinit ${sys.boot_completed:-0}
27 setprop lmkd.reinit ${sys.boot_completed:-0}
30 setprop lmkd.reinit ${sys.boot_completed:-0}
33 setprop lmkd.reinit ${sys.boot_completed:-0}
36 setprop lmkd.reinit ${sys.boot_completed:-0}
39 setprop lmkd.reinit ${sys.boot_completed:-0}
42 setprop lmkd.reinit ${sys.boot_completed:-0}
45 setprop lmkd.reinit ${sys.boot_completed:-0}
[all …]
/system/netd/libnetdutils/
DSyscallsTest.cpp61 const auto& sys = sSyscalls.get(); in TEST_F() local
64 auto result = sys.open(kPath, kFlags, kMode); in TEST_F()
72 auto& sys = sSyscalls.get(); in TEST_F() local
81 const auto result = sys.getsockname<sockaddr_nl>(kFd); in TEST_F()
88 EXPECT_EQ(kError, sys.getsockname<sockaddr_nl>(kFd).status()); in TEST_F()
96 auto& sys = sSyscalls.get(); in TEST_F() local
101 EXPECT_EQ(status::ok, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
107 EXPECT_EQ(kError, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
116 auto& sys = sSyscalls.get(); in TEST_F() local
121 EXPECT_EQ(status::ok, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
[all …]
DSocketOption.cpp30 auto& sys = sSyscalls.get(); in enableSockopt() local
32 return sys.setsockopt(sock, level, optname, &on, sizeof(on)); in enableSockopt()
38 auto& sys = sSyscalls.get(); in enableTcpKeepAlives() local
40 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &idleTime, sizeof(idleTime))); in enableTcpKeepAlives()
43 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &numProbes, sizeof(numProbes))); in enableTcpKeepAlives()
46 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &probeInterval, in enableTcpKeepAlives()
/system/sepolicy/prebuilts/api/26.0/private/
Dgenfs_contexts17 genfscon proc /sys/fs/protected_hardlinks u:object_r:proc_security:s0
18 genfscon proc /sys/fs/protected_symlinks u:object_r:proc_security:s0
19 genfscon proc /sys/fs/suid_dumpable u:object_r:proc_security:s0
20 genfscon proc /sys/kernel/core_pattern u:object_r:usermodehelper:s0
21 genfscon proc /sys/kernel/dmesg_restrict u:object_r:proc_security:s0
22 genfscon proc /sys/kernel/hotplug u:object_r:usermodehelper:s0
23 genfscon proc /sys/kernel/kptr_restrict u:object_r:proc_security:s0
24 genfscon proc /sys/kernel/modprobe u:object_r:usermodehelper:s0
25 genfscon proc /sys/kernel/modules_disabled u:object_r:proc_security:s0
26 genfscon proc /sys/kernel/perf_event_max_sample_rate u:object_r:proc_perf:s0
[all …]
/system/bt/gd/dumpsys/bundler/
Dextract_files_and_call.py34 import sys
47 for i in range(1, len(sys.argv) - 1):
48 if sys.argv[i] == '--':
49 args = sys.argv[i + 1:] + file_contents
52 file_contents.extend(file_to_args(sys.argv[i]))
/system/update_engine/scripts/
Dcow_converter.py21 import sys
73 if len(sys.argv) != 4:
75 "Usage:", sys.argv[0], "<your_ota.zip> <target_file.zip> <output dir>")
77 ota_path = sys.argv[1]
78 target_file_path = sys.argv[2]
79 output_dir = sys.argv[3]
87 sys.exit(main())
/system/extras/systrace_analysis/
Danalyze_trace.py21 import sys
35 sys.exit('Can\'t find chromium-trace in your source tree')
39 sys.exit('Can\'t find vinn in your source tree')
41 sys.path.append(vinn_path)
52 js_args=js_args_arg, stdout=sys.stdout, stdin=sys.stdin);
/system/core/fastboot/fuzzy_fastboot/example/
Dvalidator.py5 import sys
12 sys.stderr.write(msg + '\n')
24 script, command, fname = sys.argv
37 sys.exit(main())
Dchecksum_parser.py10 import sys
27 script, response, info = sys.argv
30 sys.stderr.write(infos[-1])
37 sys.exit(main())
/system/core/bootstat/
Dboot_reason_test.sh80 if inAdb && [ 0 -eq `adb_su ls /sys/fs/pstore </dev/null | wc -l` ]; then
558 EXPECT_PROPERTY persist.sys.boot.reason ""
560 reason=`validate_property sys.boot.reason`
562 EXPECT_PROPERTY persist.sys.boot.reason.history "${reason},[1-9][0-9]*\(\|[^0-9].*\)"
650 EXPECT_PROPERTY sys.boot.reason "\(reboot,ota\|bootloader\)"
651 EXPECT_PROPERTY sys.boot.reason.last bootloader
665 EXPECT_PROPERTY sys.boot.reason reboot,ota
666 EXPECT_PROPERTY sys.boot.reason.last reboot,ota
697 EXPECT_PROPERTY sys.boot.reason ${reasons}
698 EXPECT_PROPERTY sys.boot.reason.last ${reason}
[all …]
/system/core/init/
Dcompare-bootcharts.py35 import sys
135 if len(sys.argv) != 3:
136 print "Usage: %s base_bootchart_dir exp_bootchart_dir" % sys.argv[0]
137 sys.exit(1)
141 parse_proc_file(sys.argv[1], process_map1, jiffy_to_wallclock)
142 parse_proc_file(sys.argv[2], process_map2)
/system/media/camera/docs/
Dmetadata_parser_xml.py38 import sys
361 if len(sys.argv) <= 2:
364 % (sys.argv[0]), file=sys.stderr)
365 sys.exit(0)
367 file_name = sys.argv[1]
368 template_name = sys.argv[2]
369 output_name = sys.argv[3] if len(sys.argv) > 3 else None
370 hal_version = sys.argv[4] if len(sys.argv) > 4 else "3.2"
371 copyright_year = sys.argv[5] if len(sys.argv) > 5 else "2021"
376 sys.exit(0)
Dmetadata_validate.py37 import sys
186 print("ERROR: %s" % (msg), file=sys.stderr)
349 if len(sys.argv) <= 1:
350 print("Usage: %s <filename.xml>" % (sys.argv[0]), file=sys.stderr)
351 sys.exit(0)
353 file_name = sys.argv[1]
358 sys.exit(0)
360 print("%s: ERRORS: Document failed to validate" % (file_name), file=sys.stderr)
361 sys.exit(1)
/system/extras/simpleperf/scripts/test/
Dtest.py18 import sys
21 sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
26 sys.exit(0 if test.main() else 1)
/system/bt/test/
Drun_host_unit_tests.py16 import sys
49 sys.exit(0)
80 sys.exit(1)
93 sys.exit(1)
108 sys.exit(1)
121 sys.exit(1)
129 sys.exit(1)
151 sys.exit(1)
192 sys.exit(0)
208 sys.exit(0)

12345678910>>...20