auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void hideSearchPanel ( ) { super . hideSearchPanel ( ) ; android.view.WindowManager.LayoutParams lp = ( ( android.view.WindowManager.LayoutParams ) ( mNavigationBarView.getLayoutParams ( ) ) ) ; lp.flags |= android.view.ViewGroup.LayoutParams.FLAG_NOT_TOUCH_MODAL ; mWindowManager.updateViewLayout ( mNavigationBarView , lp ) ; }

Target:
public void hideSearchPanel ( ) { super . hideSearchPanel ( ) ; if ( ( mNavigationBarView ) != null ) { android.view.WindowManager.LayoutParams lp = ( ( android.view.WindowManager.LayoutParams ) ( mNavigationBarView.getLayoutParams ( ) ) ) ; lp.flags |= android.view.ViewGroup.LayoutParams.FLAG_NOT_TOUCH_MODAL ; mWindowManager.updateViewLayout ( mNavigationBarView , lp ) ; } }
Source:
public java.lang.Object clone ( ) { try { java.text.Collator clone = ( ( java.text.Collator ) ( super . clone ( ) ) ) ; clone.icuColl = ( ( libcore.icu.RuleBasedCollatorICU ) ( icuColl.clone ( ) ) ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.text.Collator clone = ( ( java.text.Collator ) ( super . clone ( ) ) ) ; clone.icuColl = ( ( java.text.Collator ) ( icuColl.clone ( ) ) ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public void dispose ( ) { org.eclipse.wst.sse.core.internal.provisional.IStructuredModel xml_model = getModelForRead ( ) ; if ( xml_model != null ) { try { if ( ( mXmlModelStateListener ) != null ) { xml_model.removeModelStateListener ( mXmlModelStateListener ) ; } } finally { xml_model.releaseFromRead ( ) ; } } org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . removeResourceChangeListener ( this ) ; if ( ( mTargetListener ) != null ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . removeTargetListener ( mTargetListener ) ; mTargetListener = null ; } super . dispose ( ) ; }

Target:
public void dispose ( ) { org.eclipse.wst.sse.core.internal.provisional.IStructuredModel xml_model = getModelForRead ( ) ; if ( xml_model != null ) { try { if ( ( mXmlModelStateListener ) != null ) { xml_model.removeModelStateListener ( mXmlModelStateListener ) ; } } finally { xml_model.releaseFromRead ( ) ; } } if ( ( mTargetListener ) != null ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . removeTargetListener ( mTargetListener ) ; mTargetListener = null ; } super . dispose ( ) ; }
Source:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( enabled ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 1" ) ) ; } else { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 0" ) ) ; } } } }

Target:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; }
Source:
public com.android.jack.ir.ast.JClassLiteral exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException { assert ( sourceInfo ) != null ; assert ( refType ) != null ; return new com.android.jack.ir.ast.JClassLiteral ( sourceInfo.exportAsJast ( exportSession ) , exportSession.getLookup ( ) . getType ( refType ) , exportSession.getLookup ( ) . getClass ( com.android.jack.jayce.v0002.nodes.NClassLiteral.JAVA_LANG_CLASS ) ) ; }

Target:
public com.android.jack.ir.ast.JClassLiteral exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException { assert ( sourceInfo ) != null ; assert ( refType ) != null ; return new com.android.jack.ir.ast.JClassLiteral ( sourceInfo.exportAsJast ( exportSession ) , exportSession.getLookup ( ) . getType ( refType ) ) ; }
Source:
public com.android.server.wifi.WifiNative.TdlsCapabilities getTdlsCapabilities ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getTdlsCapabilities ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getTdlsCapabilitiesNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public com.android.server.wifi.WifiNative.TdlsCapabilities getTdlsCapabilities ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getTdlsCapabilitiesNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }
Source:
static void native_drawTextRun ( int nativeCanvas , char [ ] text , int start , int count , int contextStart , int contextCount , float x , float y , int flags , int paint ) { android.graphics.Canvas_Delegate.native_drawText ( nativeCanvas , text , start , count , x , y , flags , paint ) ; }

Target:
static void native_drawTextRun ( long nativeCanvas , char [ ] text , int start , int count , int contextStart , int contextCount , float x , float y , int flags , long paint ) { android.graphics.Canvas_Delegate.native_drawText ( nativeCanvas , text , start , count , x , y , flags , paint ) ; }
Source:
public static final java.lang.String getDefaultType ( ) { java.lang.String cpbtype ; cpbtype = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { public java.lang.String run ( ) { return java.security.Security.getProperty ( java.security.cert.CertPathBuilder.CPB_TYPE ) ; } } ) ; if ( cpbtype == null ) { cpbtype = "PKIX" ; } return cpbtype ; }

Target:
public static final java.lang.String getDefaultType ( ) { java.lang.String cpbtype = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { public java.lang.String run ( ) { return java.security.Security.getProperty ( java.security.cert.CertPathBuilder.CPB_TYPE ) ; } } ) ; return cpbtype == null ? "PKIX" : cpbtype ; }
Source:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/android:colorForegroundInverse" , "attr/blah" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }

Target:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }
Source:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; runTest002 ( jackOutput , false , "keep-first" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( false , "keep-first" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }
Source:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Main.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.sched.util.config.ConfigurationException { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
public void testAwait_Timeout ( boolean fair ) { try { final java.util.concurrent.locks.ReentrantLock lock = new java.util.concurrent.locks.ReentrantLock ( fair ) ; final java.util.concurrent.locks.Condition c = lock.newCondition ( ) ; lock.lock ( ) ; long startTime = java.lang.System.nanoTime ( ) ; long timeoutMillis = 10 ; assertFalse ( c.await ( timeoutMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; assertTrue ( ( ( millisElapsedSince ( startTime ) ) >= timeoutMillis ) ) ; lock.unlock ( ) ; } catch ( java.lang.InterruptedException e ) { threadUnexpectedException ( e ) ; } }

Target:
public void testAwait_Timeout ( boolean fair ) { try { final java.util.concurrent.locks.ReentrantLock lock = new java.util.concurrent.locks.ReentrantLock ( fair ) ; final java.util.concurrent.locks.Condition c = lock.newCondition ( ) ; lock.lock ( ) ; long startTime = java.lang.System.nanoTime ( ) ; long timeoutMillis = 10 ; assertFalse ( c.await ( timeoutMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; assertTrue ( ( ( millisElapsedSince ( startTime ) ) >= timeoutMillis ) ) ; lock.unlock ( ) ; } catch ( java.lang.InterruptedException fail ) { threadUnexpectedException ( fail ) ; } }
Source:
private com.android.jack.ir.ast.JDefinedClass createGroupClass ( @ javax.annotation.Nonnegative int id , @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage pkg ) { com.android.jack.ir.ast.JDefinedClass groupClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( ( com.android.jack.transformations.lambda.LambdaCollection.LAMBDA_GROUP_CLASS_NAME_PREFIX ) + id ) ) , ( ( ( com.android.jack.ir.ast.JModifier.PUBLIC ) | ( com.android.jack.ir.ast.JModifier.FINAL ) ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , pkg , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; groupClass.setSuperClass ( javaLangObject ) ; session.addTypeToEmit ( groupClass ) ; tracer.getStatistic ( com.android.jack.transformations.lambda.LambdaCollection.LAMBDA_GROUP_CLASSES_CREATED ) . incValue ( ) ; return groupClass ; }

Target:
private com.android.jack.ir.ast.JDefinedClass createGroupClass ( @ javax.annotation.Nonnegative int id , @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage pkg ) { com.android.jack.ir.ast.JDefinedClass groupClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( ( com.android.jack.transformations.lambda.LambdaCollection.LAMBDA_GROUP_CLASS_NAME_PREFIX ) + id ) ) , ( ( com.android.jack.ir.ast.JModifier.FINAL ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , pkg , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; groupClass.setSuperClass ( javaLangObject ) ; session.addTypeToEmit ( groupClass ) ; tracer.getStatistic ( com.android.jack.transformations.lambda.LambdaCollection.LAMBDA_GROUP_CLASSES_CREATED ) . incValue ( ) ; return groupClass ; }
Source:
private void loadEfLiAndEfPl ( ) { if ( ( mParentApp.getType ( ) ) == ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_USIM ) ) { mRecordsRequested = true ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_LI , obtainMessage ( com.android.internal.telephony.uicc.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.uicc.SIMRecords.EfUsimLiLoaded ( ) ) ) ; ( mRecordsToLoad ) ++ ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_PL , obtainMessage ( com.android.internal.telephony.uicc.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.uicc.SIMRecords.EfPlLoaded ( ) ) ) ; ( mRecordsToLoad ) ++ ; } }

Target:
private void loadEfLiAndEfPl ( ) { if ( ( mParentApp.getType ( ) ) == ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_USIM ) ) { mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_LI , obtainMessage ( com.android.internal.telephony.uicc.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.uicc.SIMRecords.EfUsimLiLoaded ( ) ) ) ; ( mRecordsToLoad ) ++ ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_PL , obtainMessage ( com.android.internal.telephony.uicc.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.uicc.SIMRecords.EfPlLoaded ( ) ) ) ; ( mRecordsToLoad ) ++ ; } }
Source:
static void testClassNewInstance ( ) { try { MaybeAbstract ma = new MaybeAbstract ( ) ; java.lang.System.err.println ( "ERROR: MaybeAbstract succeeded unexpectedly" ) ; } catch ( java.lang.InstantiationError ie ) { java.lang.System.out.println ( "Got expected InstantationError" ) ; if ( Main.VERBOSE ) java.lang.System.out.println ( ( "--- " + ie ) ) ; } catch ( java.lang.Exception ex ) { java.lang.System.err.println ( "Got unexpected MaybeAbstract failure" ) ; } }

Target:
static void testClassNewInstance ( ) { try { MaybeAbstract ma = new MaybeAbstract ( ) ; java.lang.System.out.println ( "ERROR: MaybeAbstract succeeded unexpectedly" ) ; } catch ( java.lang.InstantiationError ie ) { java.lang.System.out.println ( "Got expected InstantationError" ) ; if ( Main.VERBOSE ) java.lang.System.out.println ( ( "--- " + ie ) ) ; } catch ( java.lang.Exception ex ) { java.lang.System.out.println ( "Got unexpected MaybeAbstract failure" ) ; } }
Source:
public static int $noinline$intUnnecessaryShiftModifications ( int value , int shift ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int c128 = 128 ; return ( ( ( ( value << ( shift | 32 ) ) + ( value > > ( shift ^ 64 ) ) ) + ( value > > > ( shift + 96 ) ) ) + ( value << ( shift - c128 ) ) ) + ( value > > ( ( byte ) ( shift ) ) ) ; }

Target:
public static int $noinline$intUnnecessaryShiftModifications ( int value , int shift ) { int c128 = 128 ; return ( ( ( ( value << ( shift | 32 ) ) + ( value > > ( shift ^ 64 ) ) ) + ( value > > > ( shift + 96 ) ) ) + ( value << ( shift - c128 ) ) ) + ( value > > ( ( byte ) ( shift ) ) ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( lhs ) ; for ( com.android.jack.ir.ast.JSsaVariableRef rhsVar : rhs ) { if ( rhsVar == null ) { throw new java.lang.RuntimeException ( "this can't be that good for business" ) ; } visitor.accept ( rhsVar ) ; } } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( lhs ) ; for ( com.android.jack.ir.ast.JSsaVariableRef rhsVar : rhs.values ( ) ) { if ( rhsVar == null ) { throw new java.lang.RuntimeException ( "this can't be that good for business" ) ; } visitor.accept ( rhsVar ) ; } } visitor.endVisit ( this ) ; }
Source:
public final void backgroundResourcesReleased ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.backgroundResourcesReleased ( token ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
public final void backgroundResourcesReleased ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.backgroundResourcesReleased ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( ( document ) != null ) && ( mDriver.isSuppressed ( this , issue , document ) ) ) { return ; } super . report ( issue , location , message , data ) ; }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { if ( ( ( document ) != null ) && ( mDriver.isSuppressed ( this , issue , document ) ) ) { return ; } super . report ( issue , location , message ) ; }
Source:
public void testCompile021 ( ) throws java.lang.Exception { properties.clear ( ) ; properties.put ( "jack.optimization.enum.switch" , "feedback" ) ; java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; }

Target:
public void testCompile021 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; }
Source:
private static void startFifo ( ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.FINE , "Start FIFO" ) ; try { assert ( com.android.jack.server.Server.fifo ) != null ; com.android.sched.util.file.FileOrDirectory.setPermissions ( com.android.jack.server.Server.fifo , new com.android.sched.util.location.FileLocation ( com.android.jack.server.Server.fifo ) , ( ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) | ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) , ChangePermission.OWNER ) ; } catch ( com.android.sched.util.file.CannotSetPermissionException e ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.SEVERE , e.getMessage ( ) , e ) ; com.android.jack.server.Server.abort ( ) ; } }

Target:
private static void startFifo ( ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.FINE , "Start FIFO" ) ; }
Source:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotation type = annotation.getType ( ) ; java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }

Target:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotation type = annotation.getType ( ) ; java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }
Source:
public java.util.List < java.lang.String > getMatchingImsis ( com.android.server.wifi.IMSIParameter mccMnc ) { if ( mccMnc == null ) { return null ; } java.util.List < java.lang.String > imsis = new java.util.ArrayList < > ( ) ; for ( int subId : mSubscriptionManager.getActiveSubscriptionIdList ( ) ) { java.lang.String imsi = mTelephonyManager.getSubscriberId ( subId ) ; if ( mccMnc.matches ( imsi ) ) { imsis.add ( imsi ) ; } } return imsis.isEmpty ( ) ? null : imsis ; }

Target:
public java.util.List < java.lang.String > getMatchingImsis ( com.android.server.wifi.IMSIParameter mccMnc ) { if ( mccMnc == null ) { return null ; } java.util.List < java.lang.String > imsis = new java.util.ArrayList < > ( ) ; for ( int subId : mSubscriptionManager.getActiveSubscriptionIdList ( ) ) { java.lang.String imsi = mTelephonyManager.getSubscriberId ( subId ) ; if ( ( imsi != null ) && ( mccMnc.matches ( imsi ) ) ) { imsis.add ( imsi ) ; } } return imsis.isEmpty ( ) ? null : imsis ; }
Source:
void found ( ) { mLastSeenTime = java.lang.System.currentTimeMillis ( ) ; mFound = true ; android.net.Uri printerUri = mDiscoveredPrinter.getUri ( ) ; com.android.bips.jni.LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache ( ) . get ( printerUri ) ; if ( com.android.bips.LocalPrinter.DEBUG ) android.util.Log.d ( com.android.bips.LocalPrinter.TAG , ( ( ( "Printer " + ( mDiscoveredPrinter ) ) + " has caps=" ) + capabilities ) ) ; if ( capabilities != null ) { onCapabilities ( capabilities ) ; } else { mSession.handlePrinter ( this ) ; requestCapabilities ( ) ; } }

Target:
void found ( ) { mLastSeenTime = java.lang.System.currentTimeMillis ( ) ; mFound = true ; android.net.Uri printerUri = mDiscoveredPrinter.getUri ( ) ; com.android.bips.jni.LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache ( ) . get ( printerUri ) ; if ( com.android.bips.LocalPrinter.DEBUG ) android.util.Log.d ( com.android.bips.LocalPrinter.TAG , ( ( ( "Printer " + ( mDiscoveredPrinter ) ) + " has caps=" ) + capabilities ) ) ; if ( capabilities != null ) { onCapabilities ( mDiscoveredPrinter , capabilities ) ; } else { mSession.handlePrinter ( this ) ; requestCapabilities ( ) ; } }
Source:
public android.telephony.CellLocation getCellLocation ( ) { try { android.os.Bundle bundle = getITelephony ( ) . getCellLocation ( ) ; android.telephony.CellLocation cl = android.telephony.CellLocation.newFromBundle ( bundle ) ; if ( cl.isEmpty ( ) ) return null ; return cl ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public android.telephony.CellLocation getCellLocation ( ) { try { android.os.Bundle bundle = getITelephony ( ) . getCellLocation ( ) ; if ( bundle.isEmpty ( ) ) return null ; android.telephony.CellLocation cl = android.telephony.CellLocation.newFromBundle ( bundle ) ; if ( cl.isEmpty ( ) ) return null ; return cl ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }
Source:
public void test_getFormats ( ) { java.lang.String [ ] orgFormats = ( ( java.lang.String [ ] ) ( formats.clone ( ) ) ) ; java.lang.String [ ] f = ( ( java.lang.String [ ] ) ( f1.getFormats ( ) ) ) ; assertTrue ( "Wrong formats" , f.equals ( formats ) ) ; f [ 0 ] = "Modified" ; assertTrue ( "Formats copied" , ( ! ( f.equals ( orgFormats ) ) ) ) ; }

Target:
public void test_getFormats ( ) { java.lang.String [ ] orgFormats = ( ( java.lang.String [ ] ) ( formats.clone ( ) ) ) ; java.lang.String [ ] f = ( ( java.lang.String [ ] ) ( f1.getFormats ( ) ) ) ; assertTrue ( "Wrong formats" , ( f == ( formats ) ) ) ; f [ 0 ] = "Modified" ; assertTrue ( "Formats copied" , ( f != orgFormats ) ) ; }
Source:
public boolean disconnectMap ( android.bluetooth.BluetoothDevice device ) { boolean result = false ; if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnectMap" ) ; if ( ( ( getRemoteDevice ( ) ) != null ) && ( getRemoteDevice ( ) . equals ( device ) ) ) { switch ( mState ) { case android.bluetooth.BluetoothMap.STATE_CONNECTED : stopObexServerSessions ( ( - 1 ) ) ; result = true ; break ; default : break ; } } return result ; }

Target:
public boolean disconnectMap ( android.bluetooth.BluetoothDevice device ) { boolean result = false ; if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnectMap" ) ; if ( ( ( com.android.bluetooth.map.BluetoothMapService.getRemoteDevice ( ) ) != null ) && ( com.android.bluetooth.map.BluetoothMapService.getRemoteDevice ( ) . equals ( device ) ) ) { switch ( mState ) { case android.bluetooth.BluetoothMap.STATE_CONNECTED : stopObexServerSessions ( ( - 1 ) ) ; result = true ; break ; default : break ; } } return result ; }
Source:
public void testFieldAccess ( ) { logWriter.println ( "testFieldAccess started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; if ( ! ( canWatchFieldAccessCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldAccessEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.ThreadOnlyModifierTest.DEBUGGEE_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.ThreadOnlyModifierTest.WATCHED_FIELD_NAME ) ; testEventWithThreadOnlyModifier ( builder ) ; logWriter.println ( "testFieldAccess done" ) ; }

Target:
public void testFieldAccess ( ) { logWriter.println ( "testFieldAccess started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldAccessEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.ThreadOnlyModifierTest.DEBUGGEE_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.ThreadOnlyModifierTest.WATCHED_FIELD_NAME ) ; testEventWithThreadOnlyModifier ( builder ) ; logWriter.println ( "testFieldAccess done" ) ; }
Source:
public void testConnectFailureDueToNetworkSelectFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , false , false ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.select ( ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }

Target:
public void testConnectFailureDueToNetworkSelectFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.select ( ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }
Source:
public final void testCreateDup ( ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ved = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( "xml" , "com.example.MyJavaClass" ) ; com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode uiv = new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( ved ) ; com.android.ide.common.rendering.api.ViewInfo lvi = new com.android.ide.common.rendering.api.ViewInfo ( "name" , uiv , 10 , 12 , 110 , 120 ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo cvi = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ( lvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy1 = m.create ( cvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy2 = m.create ( cvi ) ; assertSame ( proxy2 , proxy1 ) ; }

Target:
public final void testCreateDup ( ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ved = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( "xml" , "com.example.MyJavaClass" ) ; com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode uiv = new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( ved ) ; com.android.ide.common.rendering.api.ViewInfo lvi = new com.android.ide.common.rendering.api.ViewInfo ( "name" , uiv , 10 , 12 , 110 , 120 ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo cvi = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.create ( lvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy1 = m.create ( cvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy2 = m.create ( cvi ) ; assertSame ( proxy2 , proxy1 ) ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , true , true , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , userId , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
public void test_SSL_get_mode ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; assertTrue ( ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( s ) ) != 0 ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_SSL_get_mode ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; assertTrue ( ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( s ) ) != 0 ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public static void setLength ( int id , long len ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . putLong ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getOffset ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.LENGTH_OFFSET ) , len ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void setLength ( int id , long len ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . putLong ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getOffset ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.LENGTH_OFFSET ) , len ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
public void testGetNetworkOperator ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; android.telecom.PhoneAccount fakePhoneAccount = makeQuickAccount ( "id0" , com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_ACCOUNT_INDEX ) ; org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountOfCurrentUser ( org.mockito.ArgumentMatchers.nullable ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( fakePhoneAccount ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; assertEquals ( networkOperator , "label0" ) ; }

Target:
public void testGetNetworkOperator ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; android.telecom.PhoneAccount fakePhoneAccount = makeQuickAccount ( "id0" , com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_ACCOUNT_INDEX ) ; org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountOfCurrentUser ( org.mockito.ArgumentMatchers.nullable ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( fakePhoneAccount ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; org.junit.Assert.assertEquals ( networkOperator , "label0" ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod jmethod ) { if ( ( ! ( jmethod.isStatic ( ) ) ) && ( ( jmethod.getEnclosingType ( ) ) instanceof com.android.jack.ir.ast.JDefinedClass ) ) { com.android.jack.ir.ast.JVariable thisVar = jmethod.getThis ( ) ; assert thisVar != null ; if ( ( thisVar.getMarker ( com.android.jack.analysis.DefinitionMarker.class ) ) == null ) { thisVar.addMarker ( new com.android.jack.analysis.DefinitionMarker ( thisVar ) ) ; } } return super . visit ( jmethod ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod jmethod ) { com.android.jack.ir.ast.JVariable thisVar = jmethod.getThis ( ) ; if ( thisVar != null ) { if ( ( thisVar.getMarker ( com.android.jack.analysis.DefinitionMarker.class ) ) == null ) { thisVar.addMarker ( new com.android.jack.analysis.DefinitionMarker ( thisVar ) ) ; } } return super . visit ( jmethod ) ; }
Source:
public static boolean canAttemptBlockOperations ( android.content.Context context ) { if ( ( com.android.dialer.blocking.FilteredNumberCompat.canAttemptBlockOperationsForTest ) != null ) { return com.android.dialer.blocking.FilteredNumberCompat.canAttemptBlockOperationsForTest ; } if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return context.getSystemService ( android.os.UserManager.class ) . isSystemUser ( ) ; } return ( com.android.dialer.telecom.TelecomUtil.isDefaultDialer ( context ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.safeBlockedNumbersContractCanCurrentUserBlockNumbers ( context ) ) ; }

Target:
public static boolean canAttemptBlockOperations ( android.content.Context context ) { if ( ( com.android.dialer.blocking.FilteredNumberCompat.canAttemptBlockOperationsForTest ) != null ) { return com.android.dialer.blocking.FilteredNumberCompat.canAttemptBlockOperationsForTest ; } return ( com.android.dialer.telecom.TelecomUtil.isDefaultDialer ( context ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.safeBlockedNumbersContractCanCurrentUserBlockNumbers ( context ) ) ; }
Source:
private void onDeviceRemoved ( java.lang.String deviceObjectPath ) { java.lang.String address = mBluetoothService.getAddressFromObjectPath ( deviceObjectPath ) ; if ( address != null ) { mBluetoothService.getBondState ( ) . setBondState ( address.toUpperCase ( ) , BluetoothDevice.BOND_NONE , BluetoothDevice.UNBOND_REASON_REMOVED ) ; mBluetoothService.setRemoteDeviceProperty ( address , "UUIDs" , null ) ; } }

Target:
private void onDeviceRemoved ( java.lang.String deviceObjectPath ) { java.lang.String address = mBluetoothService.getAddressFromObjectPath ( deviceObjectPath ) ; if ( address != null ) { mBluetoothService.setBondState ( address.toUpperCase ( ) , BluetoothDevice.BOND_NONE , BluetoothDevice.UNBOND_REASON_REMOVED ) ; mBluetoothService.setRemoteDeviceProperty ( address , "UUIDs" , null ) ; } }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; if ( ( ( ( enclosingType.isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } session = enclosingType.getSession ( ) ; com.android.jack.transformations.ast.ConcatRemover.Visitor visitor = new com.android.jack.transformations.ast.ConcatRemover.Visitor ( method ) ; visitor.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } session = enclosingType.getSession ( ) ; com.android.jack.transformations.ast.ConcatRemover.Visitor visitor = new com.android.jack.transformations.ast.ConcatRemover.Visitor ( method ) ; visitor.accept ( method ) ; }
Source:
static int native_setTypeface ( int native_object , int typeface ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return 0 ; } delegate.mTypeface = android.graphics.Typeface_Delegate.getDelegate ( typeface ) ; delegate.updateFontObject ( ) ; return typeface ; }

Target:
static long native_setTypeface ( long native_object , long typeface ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return 0 ; } delegate.mTypeface = android.graphics.Typeface_Delegate.getDelegate ( typeface ) ; delegate.updateFontObject ( ) ; return typeface ; }
Source:
public com.android.sched.scheduler.ComponentFilterSet getFilters ( @ javax.annotation.Nonnull com.android.sched.scheduler.FeatureSet features ) { if ( ( features.containsAll ( filtersIfAll ) ) && ( features.containsNone ( filtersUnlessOne ) ) ) { return neededFilters.clone ( ) ; } else { return ( ( com.android.sched.scheduler.ComponentFilterSet ) ( scheduler.createComponentFilterSet ( ) . add ( com.android.sched.filter.NoFilter.class ) ) ) ; } }

Target:
public com.android.sched.scheduler.ComponentFilterSet getFilters ( @ javax.annotation.Nonnull com.android.sched.scheduler.FeatureSet features ) { if ( ( features.containsAll ( filtersIfAll ) ) && ( features.containsNone ( filtersUnlessOne ) ) ) { return neededFilters.clone ( ) ; } else { com.android.sched.scheduler.ComponentFilterSet set = scheduler.createComponentFilterSet ( ) ; set.add ( com.android.sched.filter.NoFilter.class ) ; return set ; } }
Source:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getScanResults ( flush ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { android.net.wifi.WifiScanner [ ] sd = null ; if ( isHalStarted ( ) ) { sd = com.android.server.wifi.WifiNative.getScanResultsNative ( com.android.server.wifi.WifiNative.sWlan0Index , flush ) ; } if ( sd != null ) { return sd ; } else { return new android.net.wifi.WifiScanner.ScanData [ 0 ] ; } } }

Target:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { android.net.wifi.WifiScanner [ ] sd = null ; if ( isHalStarted ( ) ) { sd = com.android.server.wifi.WifiNative.getScanResultsNative ( com.android.server.wifi.WifiNative.sWlan0Index , flush ) ; } if ( sd != null ) { return sd ; } else { return new android.net.wifi.WifiScanner.ScanData [ 0 ] ; } } }
Source:
public static int JumpsAndConditionals ( boolean cond ) { int a ; int b ; int c ; a = Main.$inline$int ( 5 ) ; b = Main.$inline$int ( 2 ) ; if ( cond ) c = a + b ; else c = a - b ; return c ; }

Target:
public static int JumpsAndConditionals ( boolean cond ) { int a ; int b ; int c ; a = 5 ; b = 2 ; if ( cond ) c = a + b ; else c = a - b ; return c ; }
Source:
private void readObject ( java.io.ObjectInputStream s ) throws java.io.IOException , java.lang.ClassNotFoundException { encodedParams = ( ( byte [ ] ) ( s.readUnshared ( ) ) ) ; encryptedContent = ( ( byte [ ] ) ( s.readUnshared ( ) ) ) ; sealAlg = ( ( java.lang.String ) ( s.readUnshared ( ) ) ) ; paramsAlg = ( ( java.lang.String ) ( s.readUnshared ( ) ) ) ; }

Target:
private void readObject ( java.io.ObjectInputStream s ) throws java.io.IOException , java.lang.ClassNotFoundException { encodedParams = ( ( byte [ ] ) ( s.readUnshared ( ) ) ) ; encryptedContent = ( ( byte [ ] ) ( s.readUnshared ( ) ) ) ; sealAlg = ( ( java.lang.String ) ( s.readObject ( ) ) ) ; paramsAlg = ( ( java.lang.String ) ( s.readObject ( ) ) ) ; }
Source:
public void testConnect ( ) { if ( skipTest ( ) ) return ; android.bluetooth.BluetoothDevice device = makeBluetoothDevice ( "11:11:11:11:11:11" ) ; org.junit.Assert.assertNull ( mService.getInstanceMap ( ) . get ( device ) ) ; org.junit.Assert.assertTrue ( mService.connect ( device ) ) ; java.util.Map < android.bluetooth.BluetoothDevice , com.android.bluetooth.mapclient.MceStateMachine > map = mService.getInstanceMap ( ) ; org.junit.Assert.assertEquals ( 1 , map.size ( ) ) ; org.junit.Assert.assertNotNull ( map.get ( device ) ) ; }

Target:
public void testConnect ( ) { android.bluetooth.BluetoothDevice device = makeBluetoothDevice ( "11:11:11:11:11:11" ) ; org.junit.Assert.assertNull ( mService.getInstanceMap ( ) . get ( device ) ) ; org.junit.Assert.assertTrue ( mService.connect ( device ) ) ; java.util.Map < android.bluetooth.BluetoothDevice , com.android.bluetooth.mapclient.MceStateMachine > map = mService.getInstanceMap ( ) ; org.junit.Assert.assertEquals ( 1 , map.size ( ) ) ; org.junit.Assert.assertNotNull ( map.get ( device ) ) ; }
Source:
private void startAccept ( ) { if ( com.android.bluetooth.ObexServerSockets.D ) { android.util.Log.d ( mTag , "startAccept()" ) ; } prepareForNewConnect ( ) ; mRfcommThread = new com.android.bluetooth.ObexServerSockets.SocketAcceptThread ( mRfcommSocket ) ; mRfcommThread.start ( ) ; mL2capThread = new com.android.bluetooth.ObexServerSockets.SocketAcceptThread ( mL2capSocket ) ; mL2capThread.start ( ) ; }

Target:
private void startAccept ( ) { if ( com.android.bluetooth.ObexServerSockets.D ) { android.util.Log.d ( mTag , "startAccept()" ) ; } mRfcommThread = new com.android.bluetooth.ObexServerSockets.SocketAcceptThread ( mRfcommSocket ) ; mRfcommThread.start ( ) ; mL2capThread = new com.android.bluetooth.ObexServerSockets.SocketAcceptThread ( mL2capSocket ) ; mL2capThread.start ( ) ; }
Source:
public java.util.List < android.net.wifi.hotspot2.PasspointConfiguration > getProviderConfigs ( ) { if ( ( mProviders.size ( ) ) == 0 ) { return null ; } java.util.List < android.net.wifi.hotspot2.PasspointConfiguration > configs = new java.util.ArrayList < > ( ) ; for ( java.util.Map.Entry < java.lang.String , com.android.server.wifi.hotspot2.PasspointProvider > entry : mProviders.entrySet ( ) ) { configs.add ( entry.getValue ( ) . getConfig ( ) ) ; } return configs ; }

Target:
public java.util.List < android.net.wifi.hotspot2.PasspointConfiguration > getProviderConfigs ( ) { java.util.List < android.net.wifi.hotspot2.PasspointConfiguration > configs = new java.util.ArrayList < > ( ) ; for ( java.util.Map.Entry < java.lang.String , com.android.server.wifi.hotspot2.PasspointProvider > entry : mProviders.entrySet ( ) ) { configs.add ( entry.getValue ( ) . getConfig ( ) ) ; } return configs ; }
Source:
protected void printProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message , @ javax.annotation.CheckForNull java.lang.String fileName , int startLine , int endLine , int startColumn , int endColumn ) { if ( problemLevel.isVisibleWith ( verbosityLevel ) ) { printFilteredProblem ( problemLevel , message , fileName , startLine , endLine , startColumn , endColumn ) ; } }

Target:
private void printFilteredProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message ) { printFilteredProblem ( problemLevel , message , null , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) ) ; }
Source:
private void getEncoded ( java.security.cert.CertificateFactory f ) throws java.lang.Exception { java.security.cert.X509CRL crlRsa = getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; byte [ ] crlRsaBytes = getResourceAsBytes ( libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; assertEquals ( java.util.Arrays.toString ( crlRsa.getEncoded ( ) ) , java.util.Arrays.toString ( crlRsaBytes ) ) ; }

Target:
private void getEncoded ( java.security.cert.CertificateFactory f ) throws java.lang.Exception { java.security.cert.X509CRL crlRsa = getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; byte [ ] crlRsaBytes = getResourceAsBytes ( libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; assertEquals ( java.util.Arrays.toString ( crlRsaBytes ) , java.util.Arrays.toString ( crlRsa.getEncoded ( ) ) ) ; }
Source:
synchronized void nAllocationRead2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }