auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.lang.String xml , @ com.android.annotations.NonNull org.xml.sax.InputSource input , boolean checkBom ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance ( ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_PREFIX_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.PROVIDE_XMLNS_URIS , true ) ; javax.xml.parsers.SAXParser parser = factory.newSAXParser ( ) ; com.android.utils.PositionXmlParser.DomBuilder handler = new com.android.utils.PositionXmlParser.DomBuilder ( xml ) ; org.xml.sax.XMLReader xmlReader = parser.getXMLReader ( ) ; xmlReader.setProperty ( "http://xml.org/sax/properties/lexical-handler" , handler ) ; parser.parse ( input , handler ) ; return handler.getDocument ( ) ; } catch ( org.xml.sax.SAXException e ) { if ( checkBom && ( e.getMessage ( ) . contains ( "Content is not allowed in prolog" ) ) ) { xml = xml.replaceFirst ( "^([\\W]+)<" , "<" ) ; return parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , false ) ; } throw e ; } }

Target:
private static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.lang.String xml , @ com.android.annotations.NonNull org.xml.sax.InputSource input , boolean checkBom ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance ( ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.NAMESPACE_PREFIX_FEATURE , true ) ; factory.setFeature ( com.android.utils.PositionXmlParser.PROVIDE_XMLNS_URIS , true ) ; javax.xml.parsers.SAXParser parser = factory.newSAXParser ( ) ; com.android.utils.PositionXmlParser.DomBuilder handler = new com.android.utils.PositionXmlParser.DomBuilder ( xml ) ; org.xml.sax.XMLReader xmlReader = parser.getXMLReader ( ) ; xmlReader.setProperty ( "http://xml.org/sax/properties/lexical-handler" , handler ) ; parser.parse ( input , handler ) ; return handler.getDocument ( ) ; } catch ( org.xml.sax.SAXException e ) { if ( checkBom && ( e.getMessage ( ) . contains ( "Content is not allowed in prolog" ) ) ) { xml = xml.replaceFirst ( "^([\\W]+)<" , "<" ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , false ) ; } throw e ; } }
Source:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { if ( ( instance != null ) && ( ! ( instance.mCleaningUp ) ) ) { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - set to: " + ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) ) ) ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; } else { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { if ( ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) == null ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service not available" ) ; } else if ( com.android.bluetooth.btservice.AdapterService.sAdapterService.mCleaningUp ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service is cleaning up" ) ; } } } }

Target:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { if ( ( instance != null ) && ( ! ( instance.mCleaningUp ) ) ) { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - set to: " + instance ) ) ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; } else { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { if ( instance == null ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service not available" ) ; } else if ( instance.mCleaningUp ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service is cleaning up" ) ; } } } }
Source:
static java.lang.String normalizeCalendarType ( java.lang.String requestID ) { java.lang.String type ; if ( ( requestID.equals ( "gregorian" ) ) || ( requestID.equals ( "iso8601" ) ) ) { type = "gregory" ; } else if ( requestID.startsWith ( "islamic" ) ) { type = "islamic" ; } else { type = requestID ; } return type ; }

Target:
static java.lang.String normalizeCalendarType ( java.lang.String requestID ) { java.lang.String type ; if ( ( requestID.equals ( "gregory" ) ) || ( requestID.equals ( "iso8601" ) ) ) { type = "gregorian" ; } else if ( requestID.startsWith ( "islamic" ) ) { type = "islamic" ; } else { type = requestID ; } return type ; }
Source:
public void testAccessAdapter ( ) { mGridView = new android.widget.GridView ( mActivity ) ; android.widget.cts.GridViewTest.ImageAdapter adapter = new android.widget.cts.GridViewTest.ImageAdapter ( mActivity ) ; mGridView.setAdapter ( adapter ) ; org.junit.Assert.assertSame ( adapter , mGridView.getAdapter ( ) ) ; mGridView.setAdapter ( null ) ; org.junit.Assert.assertNull ( mGridView.getAdapter ( ) ) ; }

Target:
public void testAccessAdapter ( ) { mGridView = new android.widget.GridView ( mActivity ) ; android.widget.cts.GridViewTest.ImageAdapter adapter = new android.widget.cts.GridViewTest.ImageAdapter ( mActivity ) ; mGridView.setAdapter ( adapter ) ; assertSame ( adapter , mGridView.getAdapter ( ) ) ; mGridView.setAdapter ( null ) ; assertNull ( mGridView.getAdapter ( ) ) ; }
Source:
public static android.content.Intent createManageBlockedNumbersIntent ( android.content.Context context ) { if ( ( ( com.android.dialer.blocking.FilteredNumberCompat.canUseNewFiltering ( ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.hasMigratedToNewBlocking ( context ) ) ) && ( ( android.os.Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.N ) ) ) { return context.getSystemService ( android.telecom.TelecomManager.class ) . createManageBlockedNumbersIntent ( ) ; } android.content.Intent intent = new android.content.Intent ( "com.android.dialer.action.BLOCKED_NUMBERS_SETTINGS" ) ; intent.setPackage ( context.getPackageName ( ) ) ; return intent ; }

Target:
public static android.content.Intent createManageBlockedNumbersIntent ( android.content.Context context ) { if ( ( com.android.dialer.blocking.FilteredNumberCompat.canUseNewFiltering ( ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.hasMigratedToNewBlocking ( context ) ) ) { return context.getSystemService ( android.telecom.TelecomManager.class ) . createManageBlockedNumbersIntent ( ) ; } android.content.Intent intent = new android.content.Intent ( "com.android.dialer.action.BLOCKED_NUMBERS_SETTINGS" ) ; intent.setPackage ( context.getPackageName ( ) ) ; return intent ; }
Source:
public void setCompileSdkVersion ( @ com.android.annotations.NonNull java.lang.String compileSdkVersion ) { com.android.sdklib.AndroidVersion androidVersion = com.android.sdklib.AndroidTargetHash.getVersionFromHash ( compileSdkVersion ) ; com.google.common.base.Preconditions.checkState ( ( androidVersion != null ) ) ; this . compileSdkVersion = com.android.sdklib.AndroidTargetHash.getPlatformHashString ( androidVersion ) ; resolvedSdkVersion = false ; }

Target:
public void setCompileSdkVersion ( @ com.android.annotations.NonNull java.lang.String compileSdkVersion ) { com.android.sdklib.AndroidVersion androidVersion = com.android.sdklib.AndroidTargetHash.getVersionFromHash ( compileSdkVersion ) ; if ( androidVersion == null ) { this . compileSdkVersion = null ; } else { this . compileSdkVersion = com.android.sdklib.AndroidTargetHash.getPlatformHashString ( androidVersion ) ; } resolvedSdkVersion = false ; }
Source:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.system.Int32Ref arg ) throws android.system.ErrnoException { android.system.MutableInt internalArg = new android.system.MutableInt ( arg.value ) ; try { return Libcore.os.ioctlInt ( fd , cmd , internalArg ) ; } finally { arg.value = internalArg.value ; } }

Target:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.system.Int32Ref arg ) throws android.system.ErrnoException { return Libcore.os.ioctlInt ( fd , cmd , arg ) ; }
Source:
public void onVisible ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onPageSelected" ) ; if ( ( getActivity ( ) ) != null ) { ( ( com.android.dialer.app.calllog.CallLogFragment.HostInterface ) ( getActivity ( ) ) ) . enableFloatingButton ( ( ( ( mModalAlertManager ) == null ) || ( mModalAlertManager.isEmpty ( ) ) ) ) ; } }

Target:
public void onVisible ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onPageSelected" ) ; if ( ( ( getActivity ( ) ) != null ) && ( ( getActivity ( ) ) instanceof com.android.dialer.app.calllog.CallLogFragment.HostInterface ) ) { ( ( com.android.dialer.app.calllog.CallLogFragment.HostInterface ) ( getActivity ( ) ) ) . enableFloatingButton ( ( ( ( mModalAlertManager ) == null ) || ( mModalAlertManager.isEmpty ( ) ) ) ) ; } }
Source:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; if ( ! ( checkDevice ( device ) ) ) { return false ; } return reportErrorNative ( error ) ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return reportErrorNative ( error ) ; }
Source:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( tag , message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addError ( description ) ; }

Target:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addError ( tag , description ) ; }
Source:
public boolean setPriority ( android.bluetooth.BluetoothDevice device , int priority ) { Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.getBluetoothMapPriorityKey ( device.getAddress ( ) ) , priority ) ; if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , ( ( ( "Saved priority " + device ) + " = " ) + priority ) ) ; } return true ; }

Target:
boolean setPriority ( android.bluetooth.BluetoothDevice device , int priority ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , ( ( ( "Saved priority " + device ) + " = " ) + priority ) ) ; } return Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.getBluetoothMapPriorityKey ( device.getAddress ( ) ) , priority ) ; }
Source:
private boolean isSizeStyle ( java.lang.String style , java.util.Set < java.lang.String > sizeStyles ) { if ( isFrameworkSizeStyle ( style ) ) { return true ; } if ( sizeStyles == null ) { return false ; } return isSizeStyle ( com.android.tools.lint.checks.RequiredAttributeDetector.stripStylePrefix ( style ) , sizeStyles , 0 ) ; }

Target:
private boolean isSizeStyle ( java.lang.String style , java.util.Set < java.lang.String > sizeStyles ) { if ( com.android.tools.lint.checks.RequiredAttributeDetector.isFrameworkSizeStyle ( style ) ) { return true ; } if ( sizeStyles == null ) { return false ; } return isSizeStyle ( com.android.tools.lint.checks.RequiredAttributeDetector.stripStylePrefix ( style ) , sizeStyles , 0 ) ; }
Source:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "jackoutput" , ".zip" ) ; runTest002 ( jackOutput , true , "keep-first" ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( true , "keep-first" ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }
Source:
public com.android.sdklib.BuildToolInfo getLatestBuildTool ( final boolean isPreview ) { if ( mBuildTools.isEmpty ( ) ) { return null ; } com.android.sdklib.repository.FullRevision max = null ; for ( com.android.sdklib.repository.FullRevision r : mBuildTools.keySet ( ) ) { if ( ( r.isPreview ( ) ) == isPreview ) { if ( ( max == null ) || ( ( r.compareTo ( max ) ) > 0 ) ) { max = r ; } } } return mBuildTools.get ( max ) ; }

Target:
public com.android.sdklib.BuildToolInfo getLatestBuildTool ( ) { if ( mBuildTools.isEmpty ( ) ) { return null ; } com.android.sdklib.repository.FullRevision max = null ; for ( com.android.sdklib.repository.FullRevision r : mBuildTools.keySet ( ) ) { if ( ( max == null ) || ( ( r.compareTo ( max ) ) > 0 ) ) { max = r ; } } return mBuildTools.get ( max ) ; }
Source:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " }\n" ) + "}\n" ) ) ) ; }
Source:
public boolean performFinish ( ) { com.android.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > created = createXmlFile ( ) ; if ( created == null ) { return false ; } else { org.eclipse.core.resources.IFile file = created.getFirst ( ) ; org.eclipse.jface.text.IRegion region = created.getSecond ( ) ; try { com.android.ide.eclipse.adt.AdtPlugin.openFile ( file , region ) ; } catch ( org.eclipse.ui.PartInitException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to create %1$s: missing type" , file.getFullPath ( ) . toString ( ) ) ; } return true ; } }

Target:
public boolean performFinish ( ) { com.android.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > created = createXmlFile ( ) ; if ( created == null ) { return false ; } else { org.eclipse.core.resources.IFile file = created.getFirst ( ) ; try { com.android.ide.eclipse.adt.AdtPlugin.openFile ( file , null , false ) ; } catch ( org.eclipse.ui.PartInitException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Failed to create %1$s: missing type" , file.getFullPath ( ) . toString ( ) ) ; } return true ; } }
Source:
public void testGetKeyData ( ) { android.view.KeyEvent keyEvent = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_Z ) ; android.view.KeyCharacterMap.KeyData keyData = new android.view.KeyCharacterMap.KeyData ( ) ; assertTrue ( keyEvent.getKeyData ( keyData ) ) ; assertEquals ( 'Z' , keyData.displayLabel ) ; assertEquals ( 0 , keyData.number ) ; assertEquals ( 'z' , keyData.meta [ 0 ] ) ; assertEquals ( 'Z' , keyData.meta [ 1 ] ) ; assertEquals ( 0 , keyData.meta [ 2 ] ) ; assertEquals ( 0 , keyData.meta [ 3 ] ) ; }

Target:
public void testGetKeyData ( ) { android.view.KeyEvent keyEvent = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_Z ) ; android.view.KeyCharacterMap.KeyData keyData = new android.view.KeyCharacterMap.KeyData ( ) ; assertTrue ( keyEvent.getKeyData ( keyData ) ) ; assertEquals ( 'Z' , keyData.displayLabel ) ; assertEquals ( 0 , keyData.number ) ; assertEquals ( 'z' , keyData.meta [ 0 ] ) ; assertEquals ( 'Z' , keyData.meta [ 1 ] ) ; assertEquals ( 0 , keyData.meta [ 3 ] ) ; }
Source:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.Calendar cal , com.ibm.icu.util.ULocale loc ) { java.lang.String calType = cal.getType ( ) ; java.lang.String key = ( ( loc.getBaseName ( ) ) + "+" ) + calType ; com.ibm.icu.util.Calendar.PatternData patternData = com.ibm.icu.util.Calendar.PATTERN_CACHE.get ( key ) ; if ( patternData == null ) { try { patternData = com.ibm.icu.util.Calendar.getPatternData ( loc , calType ) ; } catch ( java.util.MissingResourceException e ) { patternData = new com.ibm.icu.util.Calendar.PatternData ( com.ibm.icu.util.Calendar.DEFAULT_PATTERNS , null ) ; } com.ibm.icu.util.Calendar.PATTERN_CACHE.put ( key , patternData ) ; } return patternData ; }

Target:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.Calendar cal , com.ibm.icu.util.ULocale loc ) { return com.ibm.icu.util.Calendar.PatternData.make ( loc , cal.getType ( ) ) ; }
Source:
private static java.util.Collection < java.lang.String > getAndroidViewClassNames ( org.eclipse.core.resources.IProject project ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( project ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = currentSdk.getTargetData ( target ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDescriptors = targetData.getLayoutDescriptors ( ) ; return layoutDescriptors.getAllViewClassNames ( ) ; } return java.util.Collections.emptyList ( ) ; }

Target:
private static java.util.Collection < java.lang.String > getAndroidViewClassNames ( org.eclipse.core.resources.IProject project ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( project ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = currentSdk.getTargetData ( target ) ; if ( targetData != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDescriptors = targetData.getLayoutDescriptors ( ) ; return layoutDescriptors.getAllViewClassNames ( ) ; } } return java.util.Collections.emptyList ( ) ; }
Source:
private boolean interceptFallback ( com.android.internal.policy.impl.WindowState win , android.view.KeyEvent fallbackEvent , int policyFlags ) { int actions = interceptKeyBeforeQueueing ( fallbackEvent , policyFlags , true ) ; if ( ( actions & ( ACTION_PASS_TO_USER ) ) != 0 ) { long delayMillis = interceptKeyBeforeDispatching ( win , fallbackEvent , policyFlags ) ; if ( delayMillis == 0 ) { return true ; } } return false ; }

Target:
private boolean interceptFallback ( com.android.internal.policy.impl.WindowState win , android.view.KeyEvent fallbackEvent , int policyFlags ) { int actions = interceptKeyBeforeQueueing ( fallbackEvent , policyFlags ) ; if ( ( actions & ( ACTION_PASS_TO_USER ) ) != 0 ) { long delayMillis = interceptKeyBeforeDispatching ( win , fallbackEvent , policyFlags ) ; if ( delayMillis == 0 ) { return true ; } } return false ; }
Source:
public boolean setSimAccessPermission ( android.bluetooth.BluetoothDevice device , int value ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "setSimAccessPermission() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.setSimAccessPermission ( device , value ) ; }

Target:
public boolean setSimAccessPermission ( android.bluetooth.BluetoothDevice device , int value ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "setSimAccessPermission() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return false ; } return service.setSimAccessPermission ( device , value ) ; }
Source:
public boolean importKey ( java.lang.String keyName , byte [ ] key , int uid ) { try { return ( mBinder.import_key ( keyName , key , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean importKey ( java.lang.String keyName , byte [ ] key , int uid , int flags ) { try { return ( mBinder.import_key ( keyName , key , uid , flags ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public void addSuppressed ( java.lang.Throwable receiver , java.lang.Throwable suppressed ) { if ( suppressed == receiver ) { throw new java.lang.IllegalArgumentException ( "Self suppression is not allowed." , suppressed ) ; } if ( suppressed == null ) { throw new java.lang.NullPointerException ( "The suppressed exception cannot be null." ) ; } synchronized ( this ) { java.util.List < java.lang.Throwable > list = map.get ( receiver ) ; if ( list == null ) { list = new java.util.ArrayList < > ( 1 ) ; map.put ( receiver , list ) ; } list.add ( suppressed ) ; } }

Target:
public void addSuppressed ( java.lang.Throwable receiver , java.lang.Throwable suppressed ) { if ( suppressed == receiver ) { throw new java.lang.IllegalArgumentException ( "Self suppression is not allowed." , suppressed ) ; } if ( suppressed == null ) { throw new java.lang.NullPointerException ( "The suppressed exception cannot be null." ) ; } map.get ( receiver , true ) . add ( suppressed ) ; }
Source:
public boolean hasNextBigInteger ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isBigIntegerValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , java.util.Scanner.DataType.INT ) ; try { cachedNextValue = new java.math.BigInteger ( intString , radix ) ; isBigIntegerValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isBigIntegerValue ; }

Target:
public boolean hasNextBigInteger ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isBigIntegerValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , int . class ) ; try { cachedNextValue = new java.math.BigInteger ( intString , radix ) ; isBigIntegerValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isBigIntegerValue ; }
Source:
public void testRegistrationCallbackSendCurrentStateDisconnected ( ) throws android.os.RemoteException { android.telephony.ims.internal.stub.ImsRegistrationImplBase.Callback mCallback2 = org.mockito.Mockito.spy ( new android.telephony.ims.internal.stub.ImsRegistrationImplBase.Callback ( ) ) ; com.android.ims.ImsReasonInfo info = new com.android.ims.ImsReasonInfo ( com.android.ims.ImsReasonInfo.CODE_LOCAL_NETWORK_NO_LTE_COVERAGE , 0 ) ; mRegistration.onDeregistered ( info ) ; mRegBinder.addRegistrationCallback ( mCallback2 ) ; org.mockito.Mockito.verify ( mCallback ) . onDeregistered ( org.mockito.ArgumentMatchers.eq ( info ) ) ; org.mockito.Mockito.verify ( mCallback2 ) . onDeregistered ( org.mockito.ArgumentMatchers.eq ( info ) ) ; }

Target:
public void testRegistrationCallbackSendCurrentStateDisconnected ( ) throws android.os.RemoteException { com.android.ims.ImsReasonInfo info = new com.android.ims.ImsReasonInfo ( com.android.ims.ImsReasonInfo.CODE_LOCAL_NETWORK_NO_LTE_COVERAGE , 0 ) ; mRegistration.onDeregistered ( info ) ; mRegBinder.addRegistrationCallback ( mCallback2 ) ; org.mockito.Mockito.verify ( mCallback ) . onDeregistered ( org.mockito.ArgumentMatchers.eq ( info ) ) ; org.mockito.Mockito.verify ( mCallback2 ) . onDeregistered ( org.mockito.ArgumentMatchers.eq ( info ) ) ; }
Source:
public void format ( long number , java.lang.StringBuffer toInsertInto , int pos , int recursionCount ) { if ( recursionCount >= ( com.ibm.icu.text.NFRuleSet.RECURSION_LIMIT ) ) { throw new java.lang.IllegalStateException ( ( "Recursion limit exceeded when applying ruleSet " + ( name ) ) ) ; } com.ibm.icu.text.NFRule applicableRule = findNormalRule ( number ) ; applicableRule.doFormat ( number , toInsertInto , pos , ( ++ recursionCount ) ) ; }

Target:
public void format ( long number , java.lang.StringBuilder toInsertInto , int pos , int recursionCount ) { if ( recursionCount >= ( com.ibm.icu.text.NFRuleSet.RECURSION_LIMIT ) ) { throw new java.lang.IllegalStateException ( ( "Recursion limit exceeded when applying ruleSet " + ( name ) ) ) ; } com.ibm.icu.text.NFRule applicableRule = findNormalRule ( number ) ; applicableRule.doFormat ( number , toInsertInto , pos , ( ++ recursionCount ) ) ; }
Source:
public boolean visitComment ( lombok.ast.Comment node ) { java.lang.String contents = node.astContent ( ) ; com.android.tools.lint.checks.CommentDetector.checkComment ( mContext , contents , node.getPosition ( ) . getStart ( ) , 0 , contents.length ( ) ) ; return super . visitComment ( node ) ; }

Target:
public boolean visitComment ( lombok.ast.Comment node ) { java.lang.String contents = node.astContent ( ) ; com.android.tools.lint.checks.CommentDetector.checkComment ( mContext , node , contents , node.getPosition ( ) . getStart ( ) , 0 , contents.length ( ) ) ; return super . visitComment ( node ) ; }
Source:
private com.android.tools.lint.ExternalAnnotationRepository getSdkAnnotations ( ) { java.io.File annotations = findSrcRelativeDir ( "tools/adt/idea/android/annotations" ) ; if ( annotations != null ) { java.util.List < java.io.File > files = java.util.Collections.singletonList ( annotations ) ; com.android.tools.lint.ExternalAnnotationRepository manager = com.android.tools.lint.ExternalAnnotationRepository.create ( null , files ) ; assertNotNull ( manager ) ; return manager ; } else { fail ( "Could not find annotations database" ) ; } return null ; }

Target:
private com.android.tools.lint.ExternalAnnotationRepository getSdkAnnotations ( ) { java.io.File annotations = findSrcRelativeDir ( "tools/adt/idea/android/annotations" ) ; if ( annotations != null ) { java.util.List < java.io.File > files = java.util.Collections.singletonList ( annotations ) ; com.android.tools.lint.ExternalAnnotationRepository manager = com.android.tools.lint.ExternalAnnotationRepository.create ( null , files ) ; assertNotNull ( manager ) ; return manager ; } else { } return null ; }
Source:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( line != null ) { monitor.setResult ( "[%1$s] %2$s" , scriptName , line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }

Target:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( line != null ) { monitor.log ( "[%1$s] %2$s" , scriptName , line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( this . getClass ( ) . getSimpleName ( ) ) ; mSimulatedCommands.setRadioPower ( true , null ) ; mPhone.mCi = this . mSimulatedCommands ; mContextFixture.putStringArrayResource ( com.android.internal.R.array.dial_string_replace , new java.lang.String [ ] { } ) ; new com.android.internal.telephony.GsmCdmaCallTrackerTest.GsmCdmaCTHandlerThread ( TAG ) . start ( ) ; waitUntilReady ( ) ; logd ( "GsmCdmaCallTracker initiated, waiting for Power on" ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( this . getClass ( ) . getSimpleName ( ) ) ; mSimulatedCommands.setRadioPower ( true , null ) ; mPhone.mCi = this . mSimulatedCommands ; new com.android.internal.telephony.GsmCdmaCallTrackerTest.GsmCdmaCTHandlerThread ( TAG ) . start ( ) ; waitUntilReady ( ) ; logd ( "GsmCdmaCallTracker initiated, waiting for Power on" ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; }
Source:
public void roundingTest ( com.ibm.icu.text.NumberFormat nf , double x , int maxFractionDigits , final java.lang.String expected ) { nf.setMaximumFractionDigits ( maxFractionDigits ) ; java.lang.String out = nf.format ( x ) ; logln ( ( ( ( ( x + " formats with " ) + maxFractionDigits ) + " fractional digits to " ) + out ) ) ; if ( ! ( out.equals ( expected ) ) ) errln ( ( "FAIL: Expected " + expected ) ) ; }

Target:
private void roundingTest ( com.ibm.icu.text.NumberFormat nf , double x , int maxFractionDigits , final java.lang.String expected ) { nf.setMaximumFractionDigits ( maxFractionDigits ) ; java.lang.String out = nf.format ( x ) ; logln ( ( ( ( ( x + " formats with " ) + maxFractionDigits ) + " fractional digits to " ) + out ) ) ; if ( ! ( out.equals ( expected ) ) ) errln ( ( "FAIL: Expected " + expected ) ) ; }
Source:
private synchronized void addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaController.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , controller.getPackageName ( ) , getAppLabel ( packageName ) ) ; addMediaPlayerInfo ( info ) ; }

Target:
private synchronized boolean addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaController.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , controller.getPackageName ( ) , getAppLabel ( packageName ) ) ; return addMediaPlayerInfo ( info ) ; }
Source:
public void log ( com.android.utils.ILogger logger ) { for ( com.android.manifmerger.MergingReport.Record record : mRecords ) { switch ( record.mSeverity ) { case WARNING : logger.warning ( record.mLog ) ; break ; case ERROR : logger.error ( null , record.mLog ) ; break ; case INFO : logger.info ( record.mLog ) ; break ; default : logger.error ( null , ( "Unhandled record type " + ( record.mSeverity ) ) ) ; } } mActions.log ( logger ) ; }

Target:
public void log ( com.android.utils.ILogger logger ) { for ( com.android.manifmerger.MergingReport.Record record : mRecords ) { switch ( record.mSeverity ) { case WARNING : logger.warning ( record.toString ( ) ) ; break ; case ERROR : logger.error ( null , record.toString ( ) ) ; break ; case INFO : logger.info ( record.toString ( ) ) ; break ; default : logger.error ( null , ( "Unhandled record type " + ( record.mSeverity ) ) ) ; } } mActions.log ( logger ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , x.enclosingInstance ( ) , arguments , scope ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , x.enclosingInstance ( ) , arguments , scope ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private static void filterReturnValueChecks ( java.lang.invoke.MethodType targetType , java.lang.invoke.MethodType filterType ) throws java.lang.RuntimeException { java.lang.Class < ? > rtype = targetType.returnType ( ) ; int filterValues = filterType.parameterCount ( ) ; if ( filterValues == 0 ? rtype != ( void . class ) : rtype != ( filterType.parameterType ( 0 ) ) ) throw java.lang.invoke.MethodHandleStatics.newIllegalArgumentException ( "target and filter types do not match" , targetType , filterType ) ; }

Target:
private static void filterReturnValueChecks ( java.lang.invoke.MethodType targetType , java.lang.invoke.MethodType filterType ) throws java.lang.RuntimeException { java.lang.Class < ? > rtype = targetType.returnType ( ) ; int filterValues = filterType.parameterCount ( ) ; if ( filterValues == 0 ? rtype != ( void . class ) : ( rtype != ( filterType.parameterType ( 0 ) ) ) || ( filterValues != 1 ) ) throw java.lang.invoke.MethodHandleStatics.newIllegalArgumentException ( "target and filter types do not match" , targetType , filterType ) ; }
Source:
private boolean handleMenuItemSelected ( int id ) { switch ( id ) { case R.id.clear : handleClearItemSelected ( ) ; return true ; case R.id.view : handleViewItemSelected ( ) ; return true ; case R.id.export : handleExportItemSelected ( ) ; return true ; default : return false ; } }

Target:
private boolean handleMenuItemSelected ( int id ) { if ( id == ( R.id.clear ) ) { handleClearItemSelected ( ) ; } else if ( id == ( R.id.view ) ) { handleViewItemSelected ( ) ; } else if ( id == ( R.id.export ) ) { handleExportItemSelected ( ) ; } else { return false ; } return true ; }
Source:
private void closeService ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service closeService" ) ; } com.android.bluetooth.pbap.BluetoothPbapUtils.savePbapParams ( this , BluetoothPbapUtils.sPrimaryVersionCounter , BluetoothPbapUtils.sSecondaryVersionCounter , BluetoothPbapUtils.sDbIdentifier.get ( ) , BluetoothPbapUtils.contactsLastUpdated , BluetoothPbapUtils.totalFields , BluetoothPbapUtils.totalSvcFields , BluetoothPbapUtils.totalContacts ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } }

Target:
private void closeService ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service closeService" ) ; } com.android.bluetooth.pbap.BluetoothPbapUtils.savePbapParams ( this ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } }
Source:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.rop.type.Type type = ( ( com.android.jack.dx.rop.cst.CstType ) ( cst ) ) . getClassType ( ) ; com.android.jack.dx.dex.file.IndexedItem result = typeIds.get ( type ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + cst ) ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.IndexedItem result = typeIds.get ( cst ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + cst ) ) ; } return result ; }
Source:
public void testConstructor_WithMethodName ( ) throws java.lang.Exception { java.lang.String methodName = "testMethodName" ; vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( methodName ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + ( "Warning: Arguments are invalid for Caliper: " + "Extra stuff, did not expect non-option arguments: [" ) ) + methodName ) + "]\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#" ) + methodName ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }

Target:
public void testConstructor_WithMethodName ( ) throws java.lang.Exception { java.lang.String methodName = "testMethodName" ; vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( methodName ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#" ) + methodName ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }
Source:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = createClient ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } for ( java.io.File f : files ) { deleteFile ( f ) ; } return result ; }

Target:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = createClient ( ) ; return checkLint ( lintClient , files ) ; }
Source:
public static final javax.crypto.Cipher getInstance ( java.lang.String transformation , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , javax.crypto.NoSuchPaddingException { if ( ( provider == null ) || ( ( provider.length ( ) ) == 0 ) ) { throw new java.lang.IllegalArgumentException ( "Missing provider" ) ; } java.security.Provider p = java.security.Security.getProvider ( provider ) ; if ( p == null ) { throw new java.security.NoSuchProviderException ( ( "No such provider: " + provider ) ) ; } return javax.crypto.Cipher.createCipher ( transformation , p ) ; }

Target:
public static final javax.crypto.Cipher getInstance ( java.lang.String transformation , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , javax.crypto.NoSuchPaddingException { if ( ( provider == null ) || ( ( provider.length ( ) ) == 0 ) ) { throw new java.lang.IllegalArgumentException ( "Missing provider" ) ; } java.security.Provider p = java.security.Security.getProvider ( provider ) ; if ( p == null ) { throw new java.security.NoSuchProviderException ( ( "No such provider: " + provider ) ) ; } return javax.crypto.Cipher.getInstance ( transformation , p ) ; }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) <= 24 ) { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . description ( "Email or phone" ) ) . exists ( ) ; } else { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Email or phone" ) ) . exists ( ) ; } }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) == 24 ) { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . description ( "Email or phone" ) ) . exists ( ) ; } else { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Email or phone" ) ) . exists ( ) ; } }
Source:
public void crunchPng ( java.io.File from , java.io.File to , @ com.android.annotations.Nullable java.util.Map < java.lang.String , java.lang.String > envVariableMap ) throws com.android.ide.common.internal.LoggedErrorException , java.io.IOException , java.lang.InterruptedException { java.lang.String [ ] command = new java.lang.String [ ] { mAaptLocation , "s" , "-i" , from.getAbsolutePath ( ) , "-o" , to.getAbsolutePath ( ) } ; mCommandLineRunner.runCmdLine ( command , envVariableMap ) ; }

Target:
public void crunchPng ( java.io.File from , java.io.File to ) throws com.android.ide.common.internal.LoggedErrorException , java.io.IOException , java.lang.InterruptedException { java.lang.String [ ] command = new java.lang.String [ ] { mAaptLocation , "s" , "-i" , from.getAbsolutePath ( ) , "-o" , to.getAbsolutePath ( ) } ; mCommandLineRunner.runCmdLine ( command , null ) ; }
Source:
private static long getCentralDirOffset ( java.nio.ByteBuffer eocd , long eocdOffset ) throws android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException { long centralDirOffset = android.util.apk.ZipUtils.getZipEocdCentralDirectoryOffset ( eocd ) ; if ( centralDirOffset >= eocdOffset ) { throw new android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException ( ( ( ( "ZIP Central Directory offset out of range: " + centralDirOffset ) + ". ZIP End of Central Directory offset: " ) + eocdOffset ) ) ; } long centralDirSize = android.util.apk.ZipUtils.getZipEocdCentralDirectorySizeBytes ( eocd ) ; if ( ( centralDirOffset + centralDirSize ) != eocdOffset ) { throw new android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException ( ( "ZIP Central Directory is not immediately followed by End of Central" + " Directory" ) ) ; } return centralDirOffset ; }

Target:
private static long getCentralDirOffset ( java.nio.ByteBuffer eocd , long eocdOffset ) throws android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException { long centralDirOffset = android.util.apk.ZipUtils.getZipEocdCentralDirectoryOffset ( eocd ) ; if ( centralDirOffset > eocdOffset ) { throw new android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException ( ( ( ( "ZIP Central Directory offset out of range: " + centralDirOffset ) + ". ZIP End of Central Directory offset: " ) + eocdOffset ) ) ; } long centralDirSize = android.util.apk.ZipUtils.getZipEocdCentralDirectorySizeBytes ( eocd ) ; if ( ( centralDirOffset + centralDirSize ) != eocdOffset ) { throw new android.util.apk.ApkSignatureSchemeV2Verifier.SignatureNotFoundException ( ( "ZIP Central Directory is not immediately followed by End of Central" + " Directory" ) ) ; } return centralDirOffset ; }
Source:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileOrDirLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileException ( ( ( com.android.sched.util.location.FileLocation ) ( location ) ) ) ; } }

Target:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }