METHOD_0 ( ) { com . IDENT_0 . api . IDENT_1 IDENT_2 = new com . IDENT_0 . api . METHOD_1 ( context ) ; org . IDENT_3 . IDENT_4 . IDENT_5 IDENT_6 = org . IDENT_3 . IDENT_7 . METHOD_2 ( ( ( android . location . IDENT_8 ) ( context . METHOD_3 ( Context . IDENT_9 ) ) ) ) ; android . location . IDENT_10 IDENT_11 = com . IDENT_0 . api . IDENT_12 . METHOD_4 ( IDENT_8 . IDENT_13 , com . IDENT_0 . api . IDENT_12 . IDENT_14 , com . IDENT_0 . api . IDENT_12 . IDENT_15 ) ; IDENT_6 . METHOD_5 ( IDENT_11 ) ; IDENT_6 . METHOD_6 ( IDENT_8 . IDENT_13 , true ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( ) { if ( ! ( METHOD_8 ( ) ) ) { return null ; } android . location . IDENT_8 IDENT_6 = ( ( android . location . IDENT_8 ) ( context . METHOD_3 ( Context . IDENT_9 ) ) ) ; if ( IDENT_6 == null ) { return null ; } java . util . List < java . lang . String > IDENT_16 = null ; try { IDENT_16 = IDENT_6 . METHOD_9 ( true ) ; } catch ( java . lang . IDENT_17 e ) { com . IDENT_0 . api . IDENT_18 . METHOD_10 ( ) . METHOD_11 ( STRING_0 , e ) ; } if ( IDENT_16 == null ) { return null ; } java . util . List < android . location . IDENT_10 > IDENT_19 = new java . util . ArrayList < android . location . IDENT_10 > ( ) ; for ( java . lang . String provider : IDENT_16 ) { android . location . IDENT_10 location = null ; try { location = IDENT_6 . METHOD_12 ( provider ) ; } catch ( java . lang . IllegalArgumentException e ) { com . IDENT_0 . api . IDENT_18 . METHOD_10 ( ) . METHOD_11 ( STRING_0 , e ) ; } catch ( java . lang . IDENT_17 e ) { com . IDENT_0 . api . IDENT_18 . METHOD_10 ( ) . METHOD_11 ( STRING_0 , e ) ; } if ( location != null ) { IDENT_19 . add ( location ) ; } } long IDENT_20 = - 1 ; android . location . IDENT_10 IDENT_21 = null ; for ( android . location . IDENT_10 location : IDENT_19 ) { if ( ( location . getTime ( ) ) > IDENT_20 ) { IDENT_20 = location . getTime ( ) ; IDENT_21 = location ; } } return IDENT_21 ; }
org . junit . Assert . assertEquals ( IDENT_11 , IDENT_2 . METHOD_7 ( ) )