Home
last modified time | relevance | path

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

12345678910>>...13

/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 setprop sys.usb.configfs 0
25 on property:sys.usb.config=none && property:sys.usb.configfs=0
27 write /sys/class/android_usb/android0/enable 0
28 write /sys/class/android_usb/android0/bDeviceClass 0
29 setprop sys.usb.state ${sys.usb.config}
34 on property:sys.usb.config=adb && property:sys.usb.configfs=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 …]
Dld_config_backward_compatibility_check.py21 import sys
38 sys.exit(0)
45 sys.exit(0)
64 sys.exit(1)
131 sys.exit(1)
162 if len(sys.argv) != 2:
163 print ("Usage: %s target_ld_config_txt_file_name" % sys.argv[0])
164 sys.exit(1)
167 if not check_backward_compatibility(sys.argv[1],
170 "vendor partition." % sys.argv[1])
[all …]
Dinit.rc17 write /proc/sys/kernel/sysrq 0
57 symlink /sys/kernel/debug /d
130 write /proc/sys/kernel/panic_on_oops 1
131 write /proc/sys/kernel/hung_task_timeout_secs 0
138 write /proc/sys/kernel/sched_tunable_scaling 0
139 write /proc/sys/kernel/sched_latency_ns 10000000
140 write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
141 write /proc/sys/kernel/sched_child_runs_first 0
143 write /proc/sys/kernel/randomize_va_space 2
144 write /proc/sys/vm/mmap_min_addr 32768
[all …]
/system/bt/tools/scripts/
Dbtsnooz.py28 import sys
75 sys.stderr.write('Unsupported btsnooz version: %s\n' % version)
81 sys.stdout.write('btsnoop\x00\x00\x00\x00\x01\x00\x00\x03\xea')
108 sys.stdout.write(struct.pack('>II', length, length))
109 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
110sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
111 sys.stdout.write(type_to_hci(type))
112 sys.stdout.write(decompressed[offset : offset + length - 1])
135 sys.stdout.write(struct.pack('>II', packet_length, length))
136 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0))
[all …]
Ddump_metrics_ascii.py20 import sys
79 sys.path.append(output_dir)
113 log_handler = logging.StreamHandler(sys.stderr)
119 if len(sys.argv) < 2:
121 logging.error("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
122 sys.exit(1)
123 if sys.argv[1] == "-h":
124 logging.info("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
126 sys.exit(0)
128 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.sh42 read OLD_SLEEP < /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
43 echo 50 > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
44 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent || exit 1
46 read DIRTY_SEGMENTS_START < /sys/fs/f2fs/${NAME}/dirty_segments
56 read DIRTY_SEGMENTS < /sys/fs/f2fs/${NAME}/dirty_segments
63 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent
67 echo 0 > /sys/fs/f2fs/${NAME}/gc_urgent
68 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/timezone/
Ddownload-iana-data.py25 import sys
27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
59 if len(sys.argv) > 1:
60 tar_prefix = 'tzdata' + sys.argv[1]
70 sys.exit(1)
78 sys.exit(1)
88 sys.exit(0)
116 sys.exit(0)
/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/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/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/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
47 sys.exit(0)
82 sys.exit(1)
98 sys.exit(1)
113 sys.exit(1)
126 sys.exit(1)
134 sys.exit(1)
157 sys.exit(1)
201 sys.exit(0)
217 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/update_engine/scripts/
Dblockdiff.py24 import sys
49 max_length = sys.maxint
106 print('Error: ' % e, file=sys.stderr)
124 sys.exit(main(sys.argv))

12345678910>>...13