Lines Matching refs:work
75 ActivityWork work;
76 work.cmd = cmd;
77 work.arg1 = arg1;
78 work.arg2 = arg2;
83 int res = write(fd, &work, sizeof(work));
88 if (res == sizeof(work)) return;
90 if (res < 0) ALOGW("Failed writing to work fd: %s", strerror(errno));
91 else ALOGW("Truncated writing to work fd: %d", res);
99 if (res < 0) ALOGW("Failed reading work fd: %s", strerror(errno));
100 else ALOGW("Truncated reading work fd: %d", res);
481 // These are used to wake up the main thread to process work.
527 ActivityWork work;
528 if (!read_work(code->mainWorkRead, &work)) {
532 LOG_TRACE("mainWorkCallback: cmd=%d", work.cmd);
534 switch (work.cmd) {
573 gNativeActivityClassInfo.setWindowFormat, work.arg1);
578 gNativeActivityClassInfo.setWindowFlags, work.arg1, work.arg2);
583 gNativeActivityClassInfo.showIme, work.arg1);
588 gNativeActivityClassInfo.hideIme, work.arg1);
592 ALOGW("Unknown work command: %d", work.cmd);
644 SLOGW_IF(result != 0, "Could not make main work read pipe "
647 SLOGW_IF(result != 0, "Could not make main work write pipe "