Home
last modified time | relevance | path

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

12345678910>>...16

/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 # Set default value on sys.usb.configfs early in boot sequence. It will be
25 setprop sys.usb.configfs 0
28 on property:sys.usb.config=none && property:sys.usb.configfs=0
30 write /sys/class/android_usb/android0/enable 0
31 write /sys/class/android_usb/android0/bDeviceClass 0
32 setprop sys.usb.state ${sys.usb.config}
[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.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
229 write /proc/sys/kernel/panic_on_oops 1
230 write /proc/sys/kernel/hung_task_timeout_secs 0
[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}
/system/bt/tools/scripts/
Dbtsnooz.py27 import sys
73 sys.stderr.write('Unsupported btsnooz version: %s\n' % version)
79 sys.stdout.write('btsnoop\x00\x00\x00\x00\x01\x00\x00\x03\xea')
106 sys.stdout.write(struct.pack('>II', length, length))
107 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
108sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
109 sys.stdout.write(type_to_hci(type))
110 sys.stdout.write(decompressed[offset:offset + length - 1])
133 sys.stdout.write(struct.pack('>II', packet_length, length))
134 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/extras/checkpoint_gc/
Dcheckpoint_gc.sh43 read OLD_SLEEP < /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
44 echo 50 > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
45 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent || exit 1
47 read DIRTY_SEGMENTS_START < /sys/fs/f2fs/${NAME}/dirty_segments
57 read DIRTY_SEGMENTS < /sys/fs/f2fs/${NAME}/dirty_segments
64 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent
68 echo 0 > /sys/fs/f2fs/${NAME}/gc_urgent
69 echo ${OLD_SLEEP} > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time
/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/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_validate.py37 import sys
186 print >> sys.stderr, "ERROR: " + msg
349 if len(sys.argv) <= 1:
350 print >> sys.stderr, "Usage: %s <filename.xml>" % (sys.argv[0])
351 sys.exit(0)
353 file_name = sys.argv[1]
358 sys.exit(0)
360 print >> sys.stderr, "%s: ERRORS: Document failed to validate" %(file_name)
361 sys.exit(1)
Dmetadata_parser_xml.py38 import sys
362 if len(sys.argv) <= 2:
363 print >> sys.stderr, \
365 % (sys.argv[0])
366 sys.exit(0)
368 file_name = sys.argv[1]
369 template_name = sys.argv[2]
370 output_name = sys.argv[3] if len(sys.argv) > 3 else None
371 hal_version = sys.argv[4] if len(sys.argv) > 4 else "3.2"
376 sys.exit(0)
/system/sepolicy/tests/
Dsepolicy_tests.py6 import sys
82 sys.exit("Must specify path to libsepolwrap library\n" + parser.usage)
84 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
88 sys.exit("Must specify monolithic policy file\n" + parser.usage)
90 sys.exit("Error: policy file " + options.policy + " does not exist\n"
94 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
97 sys.exit("Error: File_contexts file " + f + " does not exist\n" +
120 sys.exit(results)
/system/bt/test/
Drun_host_unit_tests.py16 import sys
48 sys.exit(0)
79 sys.exit(1)
92 sys.exit(1)
107 sys.exit(1)
120 sys.exit(1)
128 sys.exit(1)
150 sys.exit(1)
191 sys.exit(0)
207 sys.exit(0)
/system/sepolicy/prebuilts/api/28.0/private/
Dgenfs_contexts28 genfscon proc /sys/abi/swp u:object_r:proc_abi:s0
29 genfscon proc /sys/fs/pipe-max-size u:object_r:proc_pipe_conf:s0
30 genfscon proc /sys/fs/protected_hardlinks u:object_r:proc_security:s0
31 genfscon proc /sys/fs/protected_symlinks u:object_r:proc_security:s0
32 genfscon proc /sys/fs/suid_dumpable u:object_r:proc_security:s0
33 genfscon proc /sys/kernel/core_pattern u:object_r:usermodehelper:s0
34 genfscon proc /sys/kernel/core_pipe_limit u:object_r:usermodehelper:s0
35 genfscon proc /sys/kernel/domainname u:object_r:proc_hostname:s0
36 genfscon proc /sys/kernel/dmesg_restrict u:object_r:proc_security:s0
37 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
[all …]
/system/extras/simpleperf/scripts/
Drun_simpleperf_on_device.py23 import sys
33 shell_cmd = 'cd /data/local/tmp && ./simpleperf ' + ' '.join(sys.argv[1:])
34 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
/system/timezone/debug_tools/host/
Ddump-tzdata.py24 import sys
26 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
29 sys.path.append('%s/system/timezone' % os.environ.get('ANDROID_BUILD_TOP'))
61 sys.exit(1)
96 sys.exit(0)
Dvisualize_zone_trees.py25 import sys
27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
30 sys.path.append('%s/system/timezone' % os.environ.get('ANDROID_BUILD_TOP'))
61 sys.exit(1)
88 sys.exit(0)

12345678910>>...16