question: get default proximity sensor if it exists . tablet devices e.g. nexus 7 does not support this type of sensor and false will be retured in such cases . concode_field_sep String TAG concode_elem_sep SensorManager sensorManager concode_elem_sep RtkUtils.NonThreadSafe nonThreadSafe concode_elem_sep Sensor proximitySensor concode_elem_sep Runnable onSensorStateListener concode_elem_sep boolean lastStateReportIsNear concode_field_sep void checkIfCalledOnValidThread concode_elem_sep void onSensorChanged concode_elem_sep void stop concode_elem_sep boolean start concode_elem_sep RtkProximitySensor create concode_elem_sep void logProximitySensorInfo concode_elem_sep boolean sensorReportsNearState concode_elem_sep void onAccuracyChanged
target: boolean function ( ) { if ( proximitySensor != null ) { return true ; } proximitySensor = sensorManager . getDefaultSensor ( Sensor . TYPE_PROXIMITY ) ; if ( proximitySensor == null ) { return false ; } logProximitySensorInfo ( ) ; return true ; }