Lines Matching refs:afState

1729   uint8_t afState;  in threadLoop()  local
1750 afState = mAfState; in threadLoop()
1770 afState = ANDROID_CONTROL_AF_STATE_INACTIVE; in threadLoop()
1771 updateAfState(afState, afTriggerId); in threadLoop()
1777 afState = processAfTrigger(afMode, afState); in threadLoop()
1780 afState = maybeStartAfScan(afMode, afState); in threadLoop()
1781 afState = updateAfScan(afMode, afState, &nextSleep); in threadLoop()
1782 updateAfState(afState, afTriggerId); in threadLoop()
1811 uint8_t afState) { in processAfTrigger() argument
1819 switch (afState) { in processAfTrigger()
1827 afState = ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN; in processAfTrigger()
1835 ALOGE("Unexpected AF state in AUTO/MACRO AF mode: %d", afState); in processAfTrigger()
1839 switch (afState) { in processAfTrigger()
1845 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1848 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1856 afState); in processAfTrigger()
1860 switch (afState) { in processAfTrigger()
1864 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in processAfTrigger()
1867 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in processAfTrigger()
1874 ALOGE("Unexpected AF state in CONTINUOUS_VIDEO AF mode: %d", afState); in processAfTrigger()
1880 return afState; in processAfTrigger()
1884 uint8_t afState) { in maybeStartAfScan() argument
1887 (afState == ANDROID_CONTROL_AF_STATE_INACTIVE || in maybeStartAfScan()
1888 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED)) { in maybeStartAfScan()
1895 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN; in maybeStartAfScan()
1900 return afState; in maybeStartAfScan()
1904 uint8_t afState, in updateAfScan() argument
1906 if (!(afState == ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN || in updateAfScan()
1907 afState == ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN)) { in updateAfScan()
1908 return afState; in updateAfScan()
1918 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1920 afState = ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED; in updateAfScan()
1926 afState = ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED; in updateAfScan()
1929 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1933 afState = ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED; in updateAfScan()
1943 return afState; in updateAfScan()