Commit Graph

5 Commits

Author SHA1 Message Date
Tatenda Chipeperekwa
352a0baeab sdm: Add sys wrappers for read, write, eventfd system calls
Add function pointers for read, write, and eventfd in Sys
wrapper and call these instead of directly calling system calls.

CRs-Fixed: 814136
Change-Id: I9964df85be2f6eaa83371b71971c642a768830f8
2016-04-20 23:41:17 -07:00
Ramkumar Radhakrishnan
d8690a236d sdm: Use Sys wrapper for dup() call
Add function pointer for dup() in Sys wrapper and call it instead of
calling system calls.

Change-Id: Ia18edfd84ac1b64cc32f01a868ee9d71406a427b
2015-09-01 22:08:44 -07:00
Dileep Marchya
114e51fb9a sdm: Cancel display event thread on exit.
- Send a cancellation request to display event thread before waiting
  for it join. This thread waits for poll to return indefinitely
  which may not return if all of the events (vsync etc) are in
  disabled state.
- Drop this call for Android for now as this api is not supported in
  bionic.
- Fix GetVSyncState return value.
- Fix pwrite return value in case of set on idle time out.

Change-Id: I7da5be4c8a77fa986450dedb914fa2dba2751da9
2015-08-18 23:32:46 -07:00
Chiou-Hao Hsu
c604fb58be sdm: add header unistd.h
Change-Id: Iba7212186a0e4bc7f5a425d0b31724a63fd9bd8b
2015-07-15 11:47:42 -07:00
Dileep Marchya
de0339e3c3 sdm: Add Sys::* types for system call wrappers.
- Add Sys class which encapsulates all system calls.
- Fix crash if display initialization failed.

Change-Id: I622aa7f415bf10a6c65a730cbe0dcf2426bae963
2015-06-18 13:12:49 -07:00