Lines Matching refs:afState
1747 uint8_t afState; in threadLoop() local
1768 afState = mAfState; in threadLoop()
1788 afState = ANDROID_CONTROL_AF_STATE_INACTIVE; in threadLoop()
1789 updateAfState(afState, afTriggerId); in threadLoop()
1795 afState = processAfTrigger(afMode, afState); in threadLoop()
1798 afState = maybeStartAfScan(afMode, afState); in threadLoop()
1799 afState = updateAfScan(afMode, afState, &nextSleep); in threadLoop()
1800 updateAfState(afState, afTriggerId); in threadLoop()
1829 uint8_t afState) { in processAfTrigger() argument
1837 switch (afState) { in processAfTrigger()
1844 afState = ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN; in processAfTrigger()
1853 afState); in processAfTrigger()
1857 switch (afState) { in processAfTrigger()
1863 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1866 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1874 afState); in processAfTrigger()
1878 switch (afState) { in processAfTrigger()
1882 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1885 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1893 afState); in processAfTrigger()
1899 return afState; in processAfTrigger()
1903 uint8_t afState) { in maybeStartAfScan() argument
1906 (afState == ANDROID_CONTROL_AF_STATE_INACTIVE || in maybeStartAfScan()
1907 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED)) { in maybeStartAfScan()
1914 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN; in maybeStartAfScan()
1919 return afState; in maybeStartAfScan()
1923 uint8_t afState, nsecs_t *maxSleep) { in updateAfScan() argument
1924 if (! (afState == ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN || in updateAfScan()
1925 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN ) ) { in updateAfScan()
1926 return afState; in updateAfScan()
1936 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1938 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in updateAfScan()
1944 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1947 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1951 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1961 return afState; in updateAfScan()