Home
last modified time | relevance | path

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

123456

/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
26 setprop sys.usb.configfs 0
29 on property:sys.usb.config=none && property:sys.usb.configfs=0
31 write /sys/class/android_usb/android0/enable 0
32 write /sys/class/android_usb/android0/bDeviceClass 0
33 setprop sys.usb.state ${sys.usb.config}
38 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
5 setprop sys.usb.ffs.mtp.ready 0
13 setprop sys.usb.state ${sys.usb.config}
16 setprop sys.usb.ffs.ready 0
18 on property:sys.usb.config=adb && property:sys.usb.configfs=1
21 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
24 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
25 setprop sys.usb.state ${sys.usb.config}
27 on property:sys.usb.ffs.mtp.ready=1 && property:sys.usb.config=mtp && property:sys.usb.configfs=1
[all …]
Dinit.rc19 write /proc/sys/kernel/sysrq 0
53 symlink /sys/kernel/debug /d
114 write /proc/sys/kernel/panic_on_oops 1
115 write /proc/sys/kernel/hung_task_timeout_secs 0
122 write /proc/sys/kernel/sched_tunable_scaling 0
123 write /proc/sys/kernel/sched_latency_ns 10000000
124 write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
125 write /proc/sys/kernel/sched_child_runs_first 0
127 write /proc/sys/kernel/randomize_va_space 2
128 write /proc/sys/vm/mmap_min_addr 32768
[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.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 …]
/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/netd/libnetdutils/
DSyscallsTest.cpp63 const auto& sys = sSyscalls.get(); in TEST_F() local
65 auto result = sys.open(kPath, kFlags, kMode); in TEST_F()
73 auto& sys = sSyscalls.get(); in TEST_F() local
82 const auto result = sys.getsockname<sockaddr_nl>(kFd); in TEST_F()
89 EXPECT_EQ(kError, sys.getsockname<sockaddr_nl>(kFd).status()); in TEST_F()
97 auto& sys = sSyscalls.get(); in TEST_F() local
102 EXPECT_EQ(status::ok, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
108 EXPECT_EQ(kError, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
114 auto& sys = sSyscalls.get(); in TEST_F() local
119 EXPECT_EQ(status::ok, sys.bind(kFd, expected)); in TEST_F()
[all …]
DUniqueFile.cpp26 const auto& sys = sSyscalls.get(); in operator ()() local
27 sys.fclose(file); in operator ()()
/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 …]
Dfile_contexts32 /sys u:object_r:sysfs:s0
454 /sys/class/leds(/.*)? u:object_r:sysfs_leds:s0
455 /sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
456 /sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0
457 /sys/devices/virtual/block/zram\d+/uevent u:object_r:sysfs_zram_uevent:s0
458 /sys/devices/virtual/misc/hw_random(/.*)? u:object_r:sysfs_hwrandom:s0
459 /sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
460 /sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
461 /sys/kernel/uevent_helper -- u:object_r:usermodehelper:s0
462 /sys/module/lowmemorykiller(/.*)? -- u:object_r:sysfs_lowmemorykiller: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/sepolicy/tests/
Dsepolicy_tests.py6 import sys
55 sys.exit("Must specify path to host libraries\n" + parser.usage)
57 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
61 sys.exit("Must specify monolithic policy file\n" + parser.usage)
63 sys.exit("Error: policy file " + options.policy + " does not exist\n"
67 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
70 sys.exit("Error: File_contexts file " + f + " does not exist\n" +
85 sys.exit(results)
Dpolicy.py4 import sys
84 sys.exit("Failed to initialize type iterator")
96 sys.exit("Failed to import policy")
130 sys.exit("Failed to initialize type iterator")
142 sys.exit("Failed to import policy")
173 sys.exit("Failed to import policy")
178 sys.exit("Failed to initialize avtab")
183 sys.exit("Failed to initialize conditional avtab")
189 if "linux" in sys.platform:
191 elif "darwin" in sys.platform:
[all …]
Dtreble_sepolicy_tests.py8 import sys
297 sys.exit("Must specify path to host libraries\n" + parser.usage)
299 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
302 sys.exit("Must specify the current platform-only policy file\n" + parser.usage)
304 sys.exit("Must specify a compatibility mapping file\n" + parser.usage)
306 sys.exit("Must specify the previous monolithic policy file\n" + parser.usage)
308 sys.exit("Must specify current monolithic policy file\n" + parser.usage)
310 sys.exit("Error: policy file " + options.policy + " does not exist\n"
314 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
317 sys.exit("Error: File_contexts file " + f + " does not exist\n" +
[all …]
/system/media/camera/docs/
Dmetadata_validate.py37 import sys
186 print >> sys.stderr, "ERROR: " + msg
312 if len(sys.argv) <= 1:
313 print >> sys.stderr, "Usage: %s <filename.xml>" % (sys.argv[0])
314 sys.exit(0)
316 file_name = sys.argv[1]
321 sys.exit(0)
323 print >> sys.stderr, "%s: ERRORS: Document failed to validate" %(file_name)
324 sys.exit(1)
Dmetadata_parser_xml.py38 import sys
329 if len(sys.argv) <= 2:
330 print >> sys.stderr, \
332 % (sys.argv[0])
333 sys.exit(0)
335 file_name = sys.argv[1]
336 template_name = sys.argv[2]
337 output_name = sys.argv[3] if len(sys.argv) > 3 else None
341 sys.exit(0)
/system/timezone/
Ddownload-iana-data.py23 import sys
25 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
66 sys.exit(1)
74 sys.exit(1)
84 sys.exit(0)
98 sys.exit(0)
/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/netd/server/
DNetlinkListener.cpp71 const auto& sys = sSyscalls.get(); in ~NetlinkListener() local
74 expectOk(sys.write(mEvent, makeSlice(data)).status()); in ~NetlinkListener()
79 const auto& sys = sSyscalls.get(); in send() local
80 ASSIGN_OR_RETURN(auto sent, sys.sendto(mSock, msg, 0, kKernelAddr)); in send()
108 const auto& sys = sSyscalls.get(); in run() local
113 ASSIGN_OR_RETURN(auto revents, sys.ppoll(fds, events, timeout)); in run()
119 auto rx = sys.recvfrom(mSock, makeSlice(rxbuf), 0); in run()
/system/sepolicy/tools/
Dinsertkeys.py8 import sys
33 sys.exit("Path " + path + " does not exist or is not a file!")
45 sys.exit("Encountered another BEGIN CERTIFICATE without END CERTIFICATE on " +
53 sys.exit("Encountered END CERTIFICATE before BEGIN CERTIFICATE on line: "
61 sys.exit("Empty certficate , certificate "+ str(certNo) + " found in file: "
71 sys.exit("Invalid certificate, certificate "+ str(certNo) + " found in file: "
83 sys.exit("Detected erroneous line \""+ line + "\" on " + str(lineNo)
135 sys.exit("Duplicate tag detected " + tag)
162 def __init__(self, keyMap, out=sys.stdout):
255 output_file = sys.stdout if options.output_file == "stdout" else open(options.output_file, "w")
/system/update_engine/scripts/
Dpaycheck.py13 import sys
18 sys.path.insert(1, lib_dir)
159 print('Using default metadata signature', opts.meta_sig, file=sys.stderr)
185 report_file = sys.stdout
209 payload.TraceBlock(options.root_block, options.skip, sys.stdout, False)
211 payload.TraceBlock(options.kern_block, options.skip, sys.stdout, True)
225 sys.stderr.write('Error: %s\n' % e)
232 sys.exit(main(sys.argv))
/system/sepolicy/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/simpleperf/scripts/
Dutils.py26 import sys
33 return sys.platform == 'win32' or sys.platform == 'cygwin'
36 return sys.platform == 'darwin'
39 return sys.version_info >= (3, 0)
58 sys.exit(msg)
92 elif sys.platform == 'darwin': # OSX
98 dir = os.path.join(dir, 'x86_64' if sys.maxsize > 2 ** 32 else 'x86')
/system/extras/tests/sdcard/
Dplot_sdcard.py42 import sys
173 print 'Error parsing line %d' % num, sys.exc_info()[0]
179 sys.exit(1)
304 sys.exit(2)
319 sys.exit(0)
323 sys.exit(0)
326 sys.exit(0)
333 sys.exit(2)
334 main(sys.argv)

123456