Searched refs:open (Results 126 - 150 of 295) sorted by relevance

1234567891011>>

/system/extras/sane_schedstat/
H A Dsane_schedstat.c147 fd = open("/proc/schedstat", O_RDONLY);
/system/extras/tests/net_test/
H A Danycast_test.py38 open("/proc/sysrq-trigger", "w").write("c")
/system/extras/verity/fec/tests/
H A Dfec.py28 f = os.open(image, os.O_WRONLY)
/system/netd/server/
H A DVirtualNetwork.cpp53 if (!sd.open()) {
H A Dmain.cpp138 int fd = open(PID_FILE_PATH, PID_FILE_FLAGS, PID_FILE_MODE);
/system/sepolicy/tools/
H A Dpost_process_mac_perms74 with open(args.policy, 'r') as f:
H A Dinsertkeys.py35 pkFile = open(path, 'rb').readlines()
255 output_file = sys.stdout if options.output_file == "stdout" else open(options.output_file, "w")
/system/update_engine/payload_generator/
H A Dblock_mapping_unittest.cc76 int old_fd = HANDLE_EINTR(open(old_part_path_.c_str(), O_RDONLY));
/system/core/libcutils/
H A Dfs_config.c178 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY));
183 fd = TEMP_FAILURE_RETRY(open(dir ? conf_dir : conf_file, O_RDONLY | O_BINARY));
/system/core/liblog/
H A Dpmsg_writer.c49 .open = pmsgOpen,
57 pmsgLoggerWrite.context.fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC));
/system/extras/simpleperf/
H A Dutils.cpp60 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY | O_BINARY));
65 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_WRONLY | O_BINARY | O_CREAT, 0644));
80 LOG(ERROR) << "Failed to open archive " << debug_filename << ": " << ErrorCodeString(rc);
112 PLOG(DEBUG) << "can't open dir " << dirpath;
/system/extras/tests/ext4/
H A Drand_emmc_perf.c67 fprintf(stderr, "Cannot open full stats output file %s, ignoring\n",
241 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) {
242 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]);
246 fd2 = open("/dev/urandom", O_RDONLY);
248 fprintf(stderr, "Cannot open /dev/urandom\n");
/system/security/keystore/
H A Dblob.cpp132 TEMP_FAILURE_RETRY(open(tmpFileName, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR));
134 ALOGW("could not open file: %s: %s", tmpFileName, strerror(errno));
155 int in = TEMP_FAILURE_RETRY(open(filename, O_RDONLY));
/system/sepolicy/
H A Dautoplay_app.te31 # Receive and use open file descriptors inherited from zygote.
59 allow autoplay_app ion_device:chr_file { read open };
66 # Inherit or receive open files from system_server.
/system/vold/bench/
H A Dbenchgen.py113 with open(fn) as f:
128 with open("BenchmarkGen.h", 'w') as bench:
186 print >>bench, '%s = TEMP_FAILURE_RETRY(open("file%s", %s));' % (handle, f.ident, e.args[2])
276 if ((out = TEMP_FAILURE_RETRY(open(name, O_WRONLY|O_CREAT|O_TRUNC))) < 0) {
277 PLOG(ERROR) << "Failed to open " << name;
/system/core/init/
H A Dinit.cpp202 open("/dev/hw_random", O_RDONLY | O_NOFOLLOW | O_CLOEXEC));
209 ERROR("Failed to open /dev/hw_random: %s\n", strerror(errno));
215 open("/dev/urandom", O_WRONLY | O_NOFOLLOW | O_CLOEXEC));
217 ERROR("Failed to open /dev/urandom: %s\n", strerror(errno));
361 int fd = open(console_name.c_str(), O_RDWR | O_CLOEXEC);
366 fd = open("/dev/tty0", O_WRONLY | O_CLOEXEC);
627 close(open("/dev/.booting", O_WRONLY | O_CREAT | O_CLOEXEC, 0000));
/system/core/liblog/tests/
H A Dliblog_benchmark.cpp98 int pstore_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY));
175 int pstore_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY));
251 int pstore_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY));
327 int pstore_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY));
400 int pstore_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY));
516 fprintf(stderr, "Unable to open events log: %s\n", strerror(errno));
594 fprintf(stderr, "Unable to open events log: %s\n", strerror(errno));
/system/extras/verity/fec/
H A Dimage.cpp294 int fd = TEMP_FAILURE_RETRY(open(fn.c_str(), flags | O_LARGEFILE));
297 FATAL("failed to open file '%s': %s\n", fn.c_str(), strerror(errno));
319 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(),
323 FATAL("failed to open file '%s: %s'\n", filename.c_str(),
341 int fd = TEMP_FAILURE_RETRY(open(ctx->fec_filename,
345 FATAL("failed to open file '%s': %s\n", ctx->fec_filename,
404 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY));
407 FATAL("failed to open file '%s': %s\n", filename.c_str(),
512 int fd = TEMP_FAILURE_RETRY(open(ctx->fec_filename,
516 FATAL("failed to open fil
[all...]
/system/extras/ANRdaemon/
H A DANRdaemon.cpp189 int fd = open(path, O_WRONLY);
192 sprintf(err_msg, "Can't open %s. Error: %d", path, errno);
278 int fd = open(dfs_buffer_size_path, O_WRONLY);
281 sprintf(err_msg, "Can't open atrace buffer size file under /d/tracing.");
374 int trace_fd = open(dfs_trace_output_path, O_RDWR);
376 ALOGE("Failed to open %s. Dump aborted.", dfs_trace_output_path);
626 ALOGE("Faield to open and cleaup previous log");
/system/extras/pagecache/
H A Dpagecache.py259 f = open(datafile, 'r')
272 f = open(dumpfile, 'w')
387 trace_file = open(options.trace_file, 'r')
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp52 ctrl = open("/proc/net/xt_qtaguid/ctrl", O_RDWR);
54 testPrintE("qtaguid ctrl open failed: %s", strerror(errno));
87 param_fd = open(filename.c_str(), O_WRONLY);
89 testPrintE("qtaguid param open failed: %s", strerror(errno));
216 ASSERT_GE(ctrl_fd, 0) << "qtaguid ctrl open failed";
218 dev_fd = open("/dev/xt_qtaguid", O_RDONLY);
219 EXPECT_GE(dev_fd, 0) << "qtaguid dev open failed";
/system/bt/bta/include/
H A Dbta_av_co.h221 ** When one stream is closed and no other audio stream is open,
223 ** Otherwise, the MTU remains open is reported.
346 ** opened (open=TRUE) or closed (open=FALSE).
351 extern void bta_av_co_video_report_conn (BOOLEAN open, UINT8 avdt_handle);
H A Dbta_hf_client_api.h84 #define BTA_HF_CLIENT_OPEN_EVT 2 /* HF Client connection open */
87 #define BTA_HF_CLIENT_AUDIO_OPEN_EVT 5 /* Audio connection open */
88 #define BTA_HF_CLIENT_AUDIO_MSBC_OPEN_EVT 6 /* Audio connection with mSBC codec open */
108 /* HF Client open status */
235 tBTA_HF_CLIENT_OPEN open; member in union:__anon391
317 ** When connection is open callback function is called
358 ** gateway. The data connection remains open
/system/bt/btif/src/
H A Dbtif_hf_client.c754 if (p_data->open.status == BTA_HF_CLIENT_SUCCESS)
756 bdcpy(btif_hf_client_cb.connected_bda.address, p_data->open.bd_addr);
768 BTIF_TRACE_WARNING("%s: HF CLient open failed, but another device connected. status=%d state=%d connected device=%s",
769 __FUNCTION__, p_data->open.status, btif_hf_client_cb.state, bdaddr_to_string(&btif_hf_client_cb.connected_bda, bdstr, sizeof(bdstr)));
779 if (p_data->open.status != BTA_HF_CLIENT_SUCCESS)
/system/bt/hci/src/
H A Dbtsnoop.c174 logfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
176 LOG_ERROR(LOG_TAG, "%s unable to open '%s': %s", __func__, log_path, strerror(errno));

Completed in 540 milliseconds

1234567891011>>