Lines Matching refs:afState
1735 uint8_t afState; in threadLoop() local
1756 afState = mAfState; in threadLoop()
1776 afState = ANDROID_CONTROL_AF_STATE_INACTIVE; in threadLoop()
1777 updateAfState(afState, afTriggerId); in threadLoop()
1782 uint8_t oldAfState = afState; in threadLoop()
1785 afState = processAfTrigger(afMode, afState); in threadLoop()
1788 afState = maybeStartAfScan(afMode, afState); in threadLoop()
1789 afState = updateAfScan(afMode, afState, &nextSleep); in threadLoop()
1790 updateAfState(afState, afTriggerId); in threadLoop()
1819 uint8_t afState) { in processAfTrigger() argument
1827 switch (afState) { in processAfTrigger()
1834 afState = ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN; in processAfTrigger()
1843 afState); in processAfTrigger()
1847 switch (afState) { in processAfTrigger()
1853 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1856 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1864 afState); in processAfTrigger()
1868 switch (afState) { in processAfTrigger()
1872 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1875 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1883 afState); in processAfTrigger()
1889 return afState; in processAfTrigger()
1893 uint8_t afState) { in maybeStartAfScan() argument
1896 (afState == ANDROID_CONTROL_AF_STATE_INACTIVE || in maybeStartAfScan()
1897 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED)) { in maybeStartAfScan()
1904 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN; in maybeStartAfScan()
1909 return afState; in maybeStartAfScan()
1913 uint8_t afState, nsecs_t *maxSleep) { in updateAfScan() argument
1914 if (! (afState == ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN || in updateAfScan()
1915 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN ) ) { in updateAfScan()
1916 return afState; in updateAfScan()
1926 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1928 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in updateAfScan()
1934 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1937 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1941 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1951 return afState; in updateAfScan()