auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private vogar.Mode createMode ( vogar.ModeId modeId , vogar.Variant variant ) { switch ( modeId ) { case JVM : return new vogar.JavaVm ( this ) ; case HOST : case HOST_DALVIK : case HOST_ART_KITKAT : return new vogar.android.HostRuntime ( this , modeId , variant ) ; case DEVICE : case DEVICE_DALVIK : case DEVICE_ART_KITKAT : case APP_PROCESS : return new vogar.android.DeviceRuntime ( this , modeId , variant ) ; case ACTIVITY : return new vogar.android.ActivityMode ( this ) ; default : throw new java.lang.IllegalArgumentException ( ( "Unsupported mode: " + modeId ) ) ; } }

Target:
private vogar.Mode createMode ( vogar.ModeId modeId , vogar.Variant variant ) { switch ( modeId ) { case JVM : return new vogar.JavaVm ( this ) ; case HOST : return new vogar.android.HostRuntime ( this , modeId , variant ) ; case DEVICE : case APP_PROCESS : return new vogar.android.DeviceRuntime ( this , modeId , variant ) ; case ACTIVITY : return new vogar.android.ActivityMode ( this ) ; default : throw new java.lang.IllegalArgumentException ( ( "Unsupported mode: " + modeId ) ) ; } }
Source:
public void onWindowFocusChanged ( final boolean hasWindowFocus ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onWindowFocusChanged ( hasWindowFocus ) ; }

Target:
public void onWindowFocusChanged ( final boolean hasWindowFocus ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; } } ) ; return ; } mAwContents.onWindowFocusChanged ( hasWindowFocus ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef x ) { com.android.jack.debug.DebugVariableInfoMarker debugInfo = x.getMarker ( com.android.jack.debug.DebugVariableInfoMarker.class ) ; if ( debugInfo != null ) { trace ( debugInfo.getType ( ) ) ; } }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef x ) { com.android.jack.debug.DebugVariableInfoMarker debugInfo = x.getMarker ( com.android.jack.debug.DebugVariableInfoMarker.class ) ; if ( ( debugInfo != null ) && ( ( debugInfo.getType ( ) ) != null ) ) { trace ( debugInfo.getType ( ) ) ; } }
Source:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; java.util.Set < java.lang.String > fileNamesToCompile = session.getInputFilter ( ) . getFileNamesToCompile ( ) ; filenames = fileNamesToCompile.toArray ( new java.lang.String [ fileNamesToCompile.size ( ) ] ) ; }

Target:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; }
Source:
public void run ( ) { com.android.rs.test_v14.RenderScript pRS = com.android.rs.test_v14.RenderScript.create ( mCtx ) ; com.android.rs.test_v14.ScriptC_vector s = new com.android.rs.test_v14.ScriptC_vector ( pRS , mRes , R.raw.vector ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { result = - 1 ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; } pRS.destroy ( ) ; }

Target:
public void run ( ) { com.android.rs.test_v14.RenderScript pRS = com.android.rs.test_v14.RenderScript.create ( mCtx ) ; com.android.rs.test_v14.ScriptC_vector s = new com.android.rs.test_v14.ScriptC_vector ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { result = - 1 ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; } pRS.destroy ( ) ; }
Source:
public void testRootnF32_4_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_4 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 4400074 , 32 , 1 , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n4 ( nAlloc ) ; doF32_4_relaxed ( 11145969 , 16 ) ; }

Target:
public void testRootnF32_4_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_4 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 4400074 , 1 , 32 , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n4 ( nAlloc ) ; doF32_4_relaxed ( 11145969 , 16 ) ; }
Source:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { android.os.Seccomp.setSystemServerPolicy ( ) ; com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , runtimeFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true , runtimeFlags ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }

Target:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , runtimeFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true , runtimeFlags ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }
Source:
public void init ( android.content.Context context , com.android.incallui.Call call ) { mContext = com.google.common.base.Preconditions.checkNotNull ( context ) ; if ( call != null ) { mPrimary = call ; if ( ! ( call.isConferenceCall ( ) ) ) { startContactInfoSearch ( call , true , ( ( call.getState ( ) ) == ( Call.State.INCOMING ) ) ) ; } else { updateContactEntry ( null , true , true ) ; } } }

Target:
public void init ( android.content.Context context , com.android.incallui.Call call ) { mContext = com.google.common.base.Preconditions.checkNotNull ( context ) ; if ( call != null ) { mPrimary = call ; if ( ! ( call.isConferenceCall ( ) ) ) { startContactInfoSearch ( call , true , ( ( call.getState ( ) ) == ( Call.State.INCOMING ) ) ) ; } else { updateContactEntry ( null , true ) ; } } }
Source:
private void updateAdb ( ) { try { mSdkManager.updateAdb ( ) ; mSdkLog.printf ( ( "adb has been updated. You must restart adb with the following commands\n" + ( "\tadb kill-server\n" + "\tadb start-server\n" ) ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } catch ( java.io.IOException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void updateAdb ( ) { try { mSdkManager.updateAdb ( ) ; mSdkLog.info ( ( "adb has been updated. You must restart adb with the following commands\n" + ( "\tadb kill-server\n" + "\tadb start-server\n" ) ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } catch ( java.io.IOException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public void test_shutdownNow ( ) throws java.lang.Exception { java.nio.channels.AsynchronousChannelGroup acg = java.nio.channels.AsynchronousChannelGroup.withCachedThreadPool ( java.util.concurrent.Executors.newFixedThreadPool ( 5 ) , 1 ) ; java.nio.channels.AsynchronousServerSocketChannel assc = java.nio.channels.AsynchronousServerSocketChannel.open ( acg ) ; acg.shutdownNow ( ) ; assertTrue ( acg.isShutdown ( ) ) ; assertFalse ( assc.isOpen ( ) ) ; try { java.nio.channels.AsynchronousServerSocketChannel.open ( acg ) ; } catch ( java.nio.channels.ShutdownChannelGroupException expected ) { } acg.shutdownNow ( ) ; }

Target:
public void test_shutdownNow ( ) throws java.lang.Exception { java.nio.channels.AsynchronousChannelGroup acg = java.nio.channels.AsynchronousChannelGroup.withCachedThreadPool ( java.util.concurrent.Executors.newFixedThreadPool ( 5 ) , 1 ) ; java.nio.channels.AsynchronousServerSocketChannel assc = java.nio.channels.AsynchronousServerSocketChannel.open ( acg ) ; acg.shutdownNow ( ) ; assertTrue ( acg.isShutdown ( ) ) ; assertFalse ( assc.isOpen ( ) ) ; try { java.nio.channels.AsynchronousServerSocketChannel.open ( acg ) ; fail ( ) ; } catch ( java.nio.channels.ShutdownChannelGroupException expected ) { } acg.shutdownNow ( ) ; }
Source:
public void testEmptyStringException ( ) { try { new java.text.RuleBasedCollator ( "" ) ; fail ( ( "Constructor RuleBasedCollator(\"\") " + "should throw ParseException" ) ) ; } catch ( java.text.ParseException e ) { assertEquals ( "java.text.ParseException" , e.getClass ( ) . getName ( ) ) ; assertEquals ( 0 , e.getErrorOffset ( ) ) ; } }

Target:
public void testEmptyStringException ( ) { try { new java.text.RuleBasedCollator ( "" ) ; fail ( ) ; } catch ( java.text.ParseException e ) { assertEquals ( "java.text.ParseException" , e.getClass ( ) . getName ( ) ) ; assertEquals ( 0 , e.getErrorOffset ( ) ) ; } }
Source:
public java.lang.String getFirmwareVersion ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getFirmwareVersion ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getFirmwareVersionNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return "" ; } } }

Target:
public java.lang.String getFirmwareVersion ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getFirmwareVersionNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return "" ; } } }
Source:
private static java.lang.StringBuffer getPathFromDirInternal ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVDir baseDir , @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVDir currentDir ) { if ( baseDir == currentDir ) { return new java.lang.StringBuffer ( ) ; } com.android.sched.vfs.CachedDirectFS.CachedParentVDir currentParent = currentDir.getParent ( ) ; assert currentParent != null ; return com.android.sched.vfs.CachedDirectFS.getPathFromDirInternal ( baseDir , currentParent ) . append ( currentDir.getName ( ) ) . append ( '/' ) ; }

Target:
private static java.lang.StringBuilder getPathFromDirInternal ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVDir baseDir , @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVDir currentDir ) { if ( baseDir == currentDir ) { return new java.lang.StringBuilder ( ) ; } com.android.sched.vfs.CachedDirectFS.CachedParentVDir currentParent = currentDir.getParent ( ) ; assert currentParent != null ; return com.android.sched.vfs.CachedDirectFS.getPathFromDirInternal ( baseDir , currentParent ) . append ( currentDir.getName ( ) ) . append ( '/' ) ; }
Source:
public void write ( ) throws java.io.IOException { if ( ( ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) && ( com.android.jill.frontend.java.AsmHelper.isAbstract ( currentMethod ) ) ) && ( currentMethod.parameters.isEmpty ( ) ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }

Target:
public void write ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }
Source:
protected boolean setException ( java.lang.Throwable throwable ) { boolean result = sync.setException ( com.google.common.base.Preconditions.checkNotNull ( throwable ) ) ; if ( result ) { executionList.execute ( ) ; } if ( throwable instanceof java.lang.Error ) { throw ( ( java.lang.Error ) ( throwable ) ) ; } return result ; }

Target:
protected boolean setException ( java.lang.Throwable throwable ) { boolean result = sync.setException ( com.google.common.base.Preconditions.checkNotNull ( throwable ) ) ; if ( result ) { executionList.execute ( ) ; } return result ; }
Source:
public void propagateVarRef ( com.android.jack.ir.ast.JSsaVariableRef lhs , com.android.jack.ir.ast.JSsaVariableRef rhs , com.android.jack.transformations.request.TransformationRequest tr ) { com.android.jack.ir.ast.JSsaVariableRef def = rhs.getDef ( ) ; for ( com.android.jack.ir.ast.JSsaVariableRef oldUse : lhs.getUses ( ) ) { com.android.jack.ir.ast.JSsaVariableRef newUse = def.makeRef ( oldUse.getSourceInfo ( ) ) ; newUse.addAllMarkers ( oldUse.getAllMarkers ( ) ) ; tr.append ( new com.android.jack.transformations.request.Replace ( oldUse , newUse ) ) ; } }

Target:
private void propagateVarRef ( com.android.jack.ir.ast.JSsaVariableRef lhs , com.android.jack.ir.ast.JSsaVariableRef rhs , com.android.jack.transformations.request.TransformationRequest tr ) { com.android.jack.ir.ast.JSsaVariableRef def = rhs.getDef ( ) ; for ( com.android.jack.ir.ast.JSsaVariableRef oldUse : lhs.getUses ( ) ) { com.android.jack.ir.ast.JSsaVariableRef newUse = def.makeRef ( oldUse.getSourceInfo ( ) ) ; newUse.addAllMarkers ( oldUse.getAllMarkers ( ) ) ; tr.append ( new com.android.jack.transformations.request.Replace ( oldUse , newUse ) ) ; } }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getConnectionState(): device=" + device ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothInputHost.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getConnectionState(): device=" + device ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothInputHost.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve cFp192v1 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "6277101735386680763835789423207666416083908700390324961279" ) , new java.math.BigInteger ( "fffffffffffffffffffffffffffffffefffffffffffffffc" , 16 ) , new java.math.BigInteger ( "64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1" , 16 ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp192v1 , cFp192v1.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012" ) ) , new java.math.BigInteger ( "ffffffffffffffffffffffff99def836146bc9b1b4d22831" , 16 ) , java.math.BigInteger.valueOf ( 1 ) , org.bouncycastle.util.encoders.Hex.decode ( "3045AE6FC8422f64ED579528D38120EAE12196D5" ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "ffffffffffffffffffffffff99def836146bc9b1b4d22831" , 16 ) ; java.math.BigInteger h = java.math.BigInteger.valueOf ( 1 ) ; org.bouncycastle.math.ec.ECCurve cFp192v1 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "6277101735386680763835789423207666416083908700390324961279" ) , new java.math.BigInteger ( "fffffffffffffffffffffffffffffffefffffffffffffffc" , 16 ) , new java.math.BigInteger ( "64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1" , 16 ) , n , h ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp192v1 , cFp192v1.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012" ) ) , n , h , org.bouncycastle.util.encoders.Hex.decode ( "3045AE6FC8422f64ED579528D38120EAE12196D5" ) ) ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { assert ( attribute.getName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) || ( attribute.getLocalName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) ; java.lang.String id = attribute.getValue ( ) ; mFileIds.add ( id ) ; mGlobalIds.add ( id ) ; if ( ( ( ( id.startsWith ( "@+" ) ) && ( ! ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ) ) && ( ! ( id.startsWith ( "@+android:id/" ) ) ) ) || ( ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) && ( ( id.indexOf ( '/' , com.android.SdkConstants.NEW_ID_PREFIX.length ( ) ) ) != ( - 1 ) ) ) ) { int nameStart = ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ? com.android.SdkConstants.NEW_ID_PREFIX.length ( ) : 2 ; java.lang.String suggested = ( com.android.SdkConstants.NEW_ID_PREFIX ) + ( id.substring ( nameStart ) . replace ( '/' , '_' ) ) ; java.lang.String message = java.lang.String.format ( "ID definitions *must* be of the form `@+id/name`; try using `%1$s`" , suggested ) ; context.report ( com.android.tools.lint.checks.WrongIdDetector.INVALID , attribute , context.getLocation ( attribute ) , message , null ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { assert ( attribute.getName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) || ( attribute.getLocalName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) ; java.lang.String id = attribute.getValue ( ) ; mFileIds.add ( id ) ; mGlobalIds.add ( id ) ; if ( ( ( ( id.startsWith ( "@+" ) ) && ( ! ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ) ) && ( ! ( id.startsWith ( "@+android:id/" ) ) ) ) || ( ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) && ( ( id.indexOf ( '/' , com.android.SdkConstants.NEW_ID_PREFIX.length ( ) ) ) != ( - 1 ) ) ) ) { int nameStart = ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ? com.android.SdkConstants.NEW_ID_PREFIX.length ( ) : 2 ; java.lang.String suggested = ( com.android.SdkConstants.NEW_ID_PREFIX ) + ( id.substring ( nameStart ) . replace ( '/' , '_' ) ) ; java.lang.String message = java.lang.String.format ( "ID definitions *must* be of the form `@+id/name`; try using `%1$s`" , suggested ) ; context.report ( com.android.tools.lint.checks.WrongIdDetector.INVALID , attribute , context.getLocation ( attribute ) , message ) ; } }
Source:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( client.advertiserId , false , 0 ) ; } else { gattAdvertiseNative ( false ) ; try { mService.onAdvertiseInstanceEnabled ( AdvertiseCallback.ADVERTISE_SUCCESS , client.advertiserId , false ) ; } catch ( android.os.RemoteException e ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , "failed onAdvertiseInstanceDisabled" , e ) ; } } }

Target:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { gattClientEnableAdvNative ( client.advertiserId , false , 0 ) ; }
Source:
public void testRootnF32_2 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 11329265 , 32 , 1 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }

Target:
public void testRootnF32_2 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 11329265 , 1 , 32 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }
Source:
protected android.support.v8.renderscript.Script.KernelID createKernelID ( int slot , int sig , android.support.v8.renderscript.Element ein , android.support.v8.renderscript.Element eout ) { android.support.v8.renderscript.Script.KernelID k = mKIDs.get ( slot ) ; if ( k != null ) { return k ; } int id = mRS.nScriptKernelIDCreate ( getID ( mRS ) , slot , sig ) ; if ( id == 0 ) { throw new android.support.v8.renderscript.RSDriverException ( "Failed to create KernelID" ) ; } k = new android.support.v8.renderscript.Script.KernelID ( id , mRS , this , slot , sig ) ; mKIDs.put ( slot , k ) ; return k ; }

Target:
protected android.support.v8.renderscript.Script.KernelID createKernelID ( int slot , int sig , android.support.v8.renderscript.Element ein , android.support.v8.renderscript.Element eout ) { android.support.v8.renderscript.Script.KernelID k = mKIDs.get ( slot ) ; if ( k != null ) { return k ; } long id = mRS.nScriptKernelIDCreate ( getID ( mRS ) , slot , sig ) ; if ( id == 0 ) { throw new android.support.v8.renderscript.RSDriverException ( "Failed to create KernelID" ) ; } k = new android.support.v8.renderscript.Script.KernelID ( id , mRS , this , slot , sig ) ; mKIDs.put ( slot , k ) ; return k ; }
Source:
public boolean isSameUpdatePackageAs ( java.lang.Package pkg ) { if ( ( ( mUpdatePkg ) != null ) && ( ( mUpdatePkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ) ) ) { return ( mUpdatePkg.getRevision ( ) ) == ( pkg.getRevision ( ) ) ; } return false ; }

Target:
public boolean isSameUpdatePackageAs ( java.lang.Package pkg ) { if ( ( ( mUpdatePkg ) != null ) && ( ( mUpdatePkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ) ) ) { return mUpdatePkg.getRevision ( ) . equals ( pkg.getRevision ( ) ) ; } return false ; }
Source:
public java.util.List < com.android.builder.dependency.JarDependency > getLocalDependencies ( ) { java.util.List < java.io.File > jars = getLocalJars ( ) ; java.util.List < com.android.builder.dependency.JarDependency > localDependencies = com.google.common.collect.Lists.newArrayListWithCapacity ( jars.size ( ) ) ; for ( java.io.File jar : jars ) { localDependencies.add ( new com.android.builder.dependency.JarDependency ( jar , true , true , null ) ) ; } return localDependencies ; }

Target:
public java.util.List < com.android.builder.dependency.JarDependency > getLocalDependencies ( ) { java.util.List < java.io.File > jars = getLocalJars ( ) ; java.util.List < com.android.builder.dependency.JarDependency > localDependencies = com.google.common.collect.Lists.newArrayListWithCapacity ( jars.size ( ) ) ; for ( java.io.File jar : jars ) { localDependencies.add ( new com.android.builder.dependency.JarDependency ( jar , true , true , null , null ) ) ; } return localDependencies ; }
Source:
public android.icu.util.TimeZone cloneAsThawed ( ) { android.icu.impl.JavaTimeZone tz = ( ( android.icu.impl.JavaTimeZone ) ( super . cloneAsThawed ( ) ) ) ; tz.javatz = ( ( java.util.TimeZone ) ( javatz.clone ( ) ) ) ; tz.javacal = ( ( java.util.GregorianCalendar ) ( javacal.clone ( ) ) ) ; tz.isFrozen = false ; return tz ; }

Target:
public android.icu.util.TimeZone cloneAsThawed ( ) { android.icu.impl.JavaTimeZone tz = ( ( android.icu.impl.JavaTimeZone ) ( super . cloneAsThawed ( ) ) ) ; tz.javatz = ( ( java.util.TimeZone ) ( javatz.clone ( ) ) ) ; tz.javacal = new java.util.GregorianCalendar ( javatz ) ; tz.isFrozen = false ; return tz ; }
Source:
public static void assertEqualCertificateChains ( long [ ] expected , long [ ] actual ) { assertEquals ( expected.length , actual.length ) ; for ( int i = 0 ; i < ( expected.length ) ; i ++ ) { org.conscrypt.NativeCrypto.X509_cmp ( expected [ i ] , actual [ i ] ) ; } }

Target:
public static void assertEqualCertificateChains ( long [ ] expected , long [ ] actual ) { org.junit.Assert.assertEquals ( expected.length , actual.length ) ; for ( int i = 0 ; i < ( expected.length ) ; i ++ ) { org.conscrypt.NativeCrypto.X509_cmp ( expected [ i ] , actual [ i ] ) ; } }
Source:
static boolean equalsImpl ( java.util.Map < ? , ? > map , java.lang.Object object ) { if ( map == object ) { return true ; } if ( object instanceof java.util.Map ) { java.util.Map < ? , ? > o = ( ( java.util.Map < ? , ? > ) ( object ) ) ; return map.entrySet ( ) . equals ( o.entrySet ( ) ) ; } return false ; }

Target:
static boolean equalsImpl ( java.util.Map < ? , ? > map , java.lang.Object object ) { if ( map == object ) { return true ; } else if ( object instanceof java.util.Map ) { java.util.Map < ? , ? > o = ( ( java.util.Map < ? , ? > ) ( object ) ) ; return map.entrySet ( ) . equals ( o.entrySet ( ) ) ; } return false ; }
Source:
public void testAddAll3 ( ) { try { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testAddAll3 ( ) { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
static short FindLMBCSLocale ( java.lang.String LocaleID ) { int index = 0 ; if ( LocaleID == null ) { return 0 ; } while ( ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID ) != null ) { if ( ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID ) == LocaleID ) { return com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . OptGroup ; } else if ( ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID.compareTo ( LocaleID ) ) > 0 ) { break ; } index ++ ; } return com.ibm.icu.charset.CharsetLMBCS.ULMBCS_GRP_L1 ; }

Target:
static short FindLMBCSLocale ( java.lang.String LocaleID ) { int index = 0 ; if ( LocaleID == null ) { return 0 ; } while ( ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID ) != null ) { if ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID.equals ( LocaleID ) ) { return com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . OptGroup ; } else if ( ( com.ibm.icu.charset.CharsetLMBCS.LocaleLMBCSGrpMap [ index ] . LocaleID.compareTo ( LocaleID ) ) > 0 ) { break ; } index ++ ; } return com.ibm.icu.charset.CharsetLMBCS.ULMBCS_GRP_L1 ; }
Source:
private static void splitAndAdd ( java.lang.String searchPath , boolean directoriesOnly , java.util.ArrayList < java.io.File > resultList ) { if ( searchPath == null ) { return ; } for ( java.lang.String path : searchPath.split ( ":" ) ) { try { android.system.StructStat sb = Libcore.os.stat ( path ) ; if ( ( ! directoriesOnly ) || ( S_ISDIR ( sb.st_mode ) ) ) { resultList.add ( new java.io.File ( path ) ) ; } } catch ( android.system.ErrnoException ignored ) { } } }

Target:
private static void splitAndAdd ( java.lang.String searchPath , boolean directoriesOnly , java.util.List < java.io.File > resultList ) { if ( searchPath == null ) { return ; } for ( java.lang.String path : searchPath.split ( ":" ) ) { try { android.system.StructStat sb = Libcore.os.stat ( path ) ; if ( ( ! directoriesOnly ) || ( S_ISDIR ( sb.st_mode ) ) ) { resultList.add ( new java.io.File ( path ) ) ; } } catch ( android.system.ErrnoException ignored ) { } } }
Source:
public static java.lang.Integer getInteger ( java.lang.String nm , java.lang.Integer val ) { java.lang.String v = null ; try { v = java.lang.System.getProperty ( nm ) ; } catch ( java.lang.IllegalArgumentException e ) { } catch ( java.lang.NullPointerException e ) { } if ( v != null ) { try { return java.lang.Integer.decode ( v ) ; } catch ( java.lang.NumberFormatException e ) { } } return val ; }

Target:
public static java.lang.Integer getInteger ( java.lang.String nm , java.lang.Integer val ) { java.lang.String v = null ; try { v = java.lang.System.getProperty ( nm ) ; } catch ( java.lang.IllegalArgumentException | java.lang.NullPointerException e ) { } if ( v != null ) { try { return java.lang.Integer.decode ( v ) ; } catch ( java.lang.NumberFormatException e ) { } } return val ; }
Source:
public void testGetIdlingResources ( ) { int originalCount = android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ; android.support.test.espresso.IdlingResource resource = new android.support.test.espresso.EspressoTest.DummyIdlingResource ( "testGetIdlingResources" ) ; android.support.test.espresso.Espresso.registerIdlingResources ( resource ) ; assertEquals ( ( originalCount + 1 ) , android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ) ; android.support.test.espresso.Espresso.unregisterIdlingResources ( resource ) ; assertEquals ( originalCount , android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ) ; }

Target:
public void getIdlingResources ( ) { int originalCount = android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ; android.support.test.espresso.IdlingResource resource = new android.support.test.espresso.EspressoTest.DummyIdlingResource ( "testGetIdlingResources" ) ; android.support.test.espresso.Espresso.registerIdlingResources ( resource ) ; org.junit.Assert.assertEquals ( ( originalCount + 1 ) , android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ) ; android.support.test.espresso.Espresso.unregisterIdlingResources ( resource ) ; org.junit.Assert.assertEquals ( originalCount , android.support.test.espresso.Espresso.getIdlingResources ( ) . size ( ) ) ; }
Source:
protected java.lang.String getTitle ( ) { com.android.build.gradle.internal.test.report.PackageTestResults model = getModel ( ) ; switch ( reportType ) { case MULTI_PROJECT : return ( ( ( ( model.getProject ( ) ) + ": " ) + ( model.getFlavor ( ) ) ) + ": " ) + ( model.getTitle ( ) ) ; case MULTI_FLAVOR : return ( ( model.getFlavor ( ) ) + ": " ) + ( model.getTitle ( ) ) ; } return model.getTitle ( ) ; }

Target:
protected java.lang.String getTitle ( ) { return getModel ( ) . getTitle ( ) ; }
Source:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( ( classNode.name.indexOf ( '$' ) ) != ( - 1 ) ) && ( ( ( classNode.access ) & ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) == 0 ) ) { return ; } if ( com.android.tools.lint.checks.ViewConstructorDetector.isViewClass ( context , classNode ) ) { checkConstructors ( context , classNode ) ; } }

Target:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( ( classNode.name.indexOf ( '$' ) ) != ( - 1 ) ) && ( ( ( classNode.access ) & ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) == 0 ) ) { return ; } if ( com.android.tools.lint.checks.ViewConstructorDetector.isViewClass ( context , classNode ) ) { com.android.tools.lint.checks.ViewConstructorDetector.checkConstructors ( context , classNode ) ; } }
Source:
public android.content.Intent intentForPosition ( int position ) { if ( ( mList ) == null ) { return null ; } com.android.internal.app.ResolverActivity.DisplayResolveInfo dri = mList.get ( position ) ; android.content.Intent intent = new android.content.Intent ( ( ( dri.origIntent ) != null ? dri.origIntent : mIntent ) ) ; intent.addFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_FORWARD_RESULT ) | ( android.content.Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP ) ) ) ; android.content.pm.ActivityInfo ai = dri.ri.activityInfo ; intent.setComponent ( new android.content.ComponentName ( ai.applicationInfo.packageName , ai.name ) ) ; return intent ; }

Target:
public android.content.Intent intentForPosition ( int position ) { com.android.internal.app.ResolverActivity.DisplayResolveInfo dri = mList.get ( position ) ; android.content.Intent intent = new android.content.Intent ( ( ( dri.origIntent ) != null ? dri.origIntent : mIntent ) ) ; intent.addFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_FORWARD_RESULT ) | ( android.content.Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP ) ) ) ; android.content.pm.ActivityInfo ai = dri.ri.activityInfo ; intent.setComponent ( new android.content.ComponentName ( ai.applicationInfo.packageName , ai.name ) ) ; return intent ; }
Source:
public int compareTo ( com.android.jack.dx.rop.type.Type other ) { return descriptor.compareTo ( other.descriptor ) ; }

Target:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) { return true ; } if ( ! ( other instanceof com.android.jack.dx.rop.type.Type ) ) { return false ; } return descriptor.equals ( ( ( com.android.jack.dx.rop.type.Type ) ( other ) ) . descriptor ) ; }
Source:
public static boolean isEqual ( byte [ ] digesta , byte [ ] digestb ) { if ( ( digesta.length ) != ( digestb.length ) ) { return false ; } for ( int i = 0 ; i < ( digesta.length ) ; i ++ ) { if ( ( digesta [ i ] ) != ( digestb [ i ] ) ) { return false ; } } return true ; }

Target:
public static boolean isEqual ( byte [ ] digesta , byte [ ] digestb ) { if ( ( digesta.length ) != ( digestb.length ) ) { return false ; } int v = 0 ; for ( int i = 0 ; i < ( digesta.length ) ; i ++ ) { v |= ( digesta [ i ] ) ^ ( digestb [ i ] ) ; } return v == 0 ; }
Source:
void scanNextPath ( ) { if ( ( mNextPath ) >= ( mPaths.length ) ) { mConnection.disconnect ( ) ; return ; } java.lang.String mimeType = ( ( mMimeTypes ) != null ) ? mMimeTypes [ mNextPath ] : null ; mConnection.scanFile ( mPaths [ mNextPath ] , mimeType ) ; ( mNextPath ) ++ ; }

Target:
void scanNextPath ( ) { if ( ( mNextPath ) >= ( mPaths.length ) ) { mConnection.disconnect ( ) ; mConnection = null ; return ; } java.lang.String mimeType = ( ( mMimeTypes ) != null ) ? mMimeTypes [ mNextPath ] : null ; mConnection.scanFile ( mPaths [ mNextPath ] , mimeType ) ; ( mNextPath ) ++ ; }
Source:
public void testCameraAppDisabled ( ) throws java.lang.Exception { final android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; enableSampleDeviceAdmin ( ) ; if ( verifyCameraAppDisabled ( ) ) { setCameraEnabled ( true ) ; } org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( false ) ; gotoCameraApp ( ) ; new com.android.devtools.systemimage.uitest.watchers.CameraAccessPermissionsWatcher ( device ) . checkForCondition ( ) ; org.junit.Assert.assertTrue ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( true ) ; org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; }

Target:
public void testCameraAppDisabled ( ) throws java.lang.Exception { enableSampleDeviceAdmin ( ) ; if ( verifyCameraAppDisabled ( ) ) { setCameraEnabled ( true ) ; } org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( false ) ; gotoCameraApp ( ) ; new com.android.devtools.systemimage.uitest.watchers.CameraAccessPermissionsWatcher ( device ) . checkForCondition ( ) ; org.junit.Assert.assertTrue ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( true ) ; org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; }
Source:
public void onUnhandledKeyEvent ( android.view.KeyEvent event ) { if ( ! ( isActivityPaused ( ) ) ) { if ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_DOWN ) ) { mActivity.onKeyDown ( event.getKeyCode ( ) , event ) ; } else { mActivity.onKeyUp ( event.getKeyCode ( ) , event ) ; } } }

Target:
public boolean onUnhandledKeyEvent ( android.view.KeyEvent event ) { if ( ! ( isActivityPaused ( ) ) ) { if ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_DOWN ) ) { return mActivity.onKeyDown ( event.getKeyCode ( ) , event ) ; } else { return mActivity.onKeyUp ( event.getKeyCode ( ) , event ) ; } } return false ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.RegisterRangeDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , registerCount ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { return new com.android.jack.dx.io.instructions.RegisterRangeDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , registerCount , newSecondIndex , getSecondIndexType ( ) ) ; }
Source:
public int beforeHandshake ( int c ) throws javax.net.ssl.SSLException { int s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , privateKey ) ; } if ( ( certificates ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } if ( channelIdEnabled ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_enable_tls_channel_id ( s ) ; } return s ; }

Target:
public long beforeHandshake ( long c ) throws javax.net.ssl.SSLException { long s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , privateKey ) ; } if ( ( certificates ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } if ( channelIdEnabled ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_enable_tls_channel_id ( s ) ; } return s ; }
Source:
public void test_flush ( ) throws java.lang.Exception { char [ ] buf = new char [ 10 ] ; "HelloWorld" . getChars ( 0 , 10 , buf , 0 ) ; pw = new java.io.PipedWriter ( ) ; rdrThread = new java.lang.Thread ( ( reader = new org.apache.harmony.tests.java.io.PipedWriterTest.PReader ( pw ) ) , "flush" ) ; rdrThread.start ( ) ; pw.write ( buf ) ; pw.flush ( ) ; rdrThread.join ( 700 ) ; assertEquals ( "Failed to flush chars" , "HelloWorld" , new java.lang.String ( reader.buf ) ) ; }

Target:
public void test_flush ( ) throws java.lang.Exception { char [ ] buf = new char [ 10 ] ; "HelloWorld" . getChars ( 0 , 10 , buf , 0 ) ; pw = new java.io.PipedWriter ( ) ; rdrThread = new java.lang.Thread ( ( reader = new org.apache.harmony.tests.java.io.PipedWriterTest.PReader ( pw ) ) , "flush" ) ; rdrThread.start ( ) ; pw.write ( buf ) ; pw.flush ( ) ; rdrThread.join ( ) ; assertEquals ( "Failed to flush chars" , "HelloWorld" , new java.lang.String ( reader.buf ) ) ; }
Source:
public void testFindAll ( ) throws java.lang.InterruptedException { java.lang.String p = "<p>Find all instances of find on the page and highlight them.</p>" ; mWebView.loadData ( ( ( "<html><body>" + p ) + "</body></html>" ) , "text/html" , "UTF-8" ) ; waitForLoadComplete ( mWebView , android.webkit.cts.WebViewTest.TEST_TIMEOUT ) ; assertEquals ( 2 , mWebView.findAll ( "find" ) ) ; }

Target:
public void run ( ) { java.lang.String p = "<p>Find all instances of find on the page and highlight them.</p>" ; mWebView.loadData ( ( ( "<html><body>" + p ) + "</body></html>" ) , "text/html" , "UTF-8" ) ; }
Source:
public void exit ( ) { mIPv6TetherSvc.stop ( ) ; cleanupUpstream ( ) ; try { mNMService.untetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception ee ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_UNTETHER_IFACE_ERROR ; android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Failed to untether interface: " + ( ee.toString ( ) ) ) ) ; } configureIfaceIp ( false ) ; }

Target:
public void exit ( ) { cleanupUpstream ( ) ; }
Source:
public static java.util.Enumeration getNames ( ) { java.util.Vector v = new java.util.Vector ( ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.x9.X962NamedCurves.getNames ( ) ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.sec.SECNamedCurves.getNames ( ) ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.nist.NISTNamedCurves.getNames ( ) ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getNames ( ) ) ; return v.elements ( ) ; }

Target:
public static java.util.Enumeration getNames ( ) { java.util.Vector v = new java.util.Vector ( ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.x9.X962NamedCurves.getNames ( ) ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.sec.SECNamedCurves.getNames ( ) ) ; org.bouncycastle.asn1.x9.ECNamedCurveTable.addEnumeration ( v , org.bouncycastle.asn1.nist.NISTNamedCurves.getNames ( ) ) ; return v.elements ( ) ; }
Source:
public com.android.jack.dx.dex.file.TypeIdItem intern ( com.android.jack.dx.rop.cst.CstType type ) { if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.rop.type.Type typePerSe = type.getClassType ( ) ; com.android.jack.dx.dex.file.TypeIdItem result = typeIds.get ( typePerSe ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.TypeIdItem ( type ) ; typeIds.put ( typePerSe , result ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.TypeIdItem intern ( com.android.jack.dx.rop.type.Type type ) { if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.dex.file.TypeIdItem result = typeIds.get ( type ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.TypeIdItem ( type ) ; typeIds.put ( type , result ) ; } return result ; }
Source:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering RINGING state" ) ; if ( mCallAudioManager.startRinging ( ) ) { mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_RING , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; if ( ( mMostRecentMode ) == ( android.media.AudioManager.MODE_IN_CALL ) ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , ( "Transition from IN_CALL -> RINGTONE." + " Resetting to NORMAL first." ) ) ; mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; } mAudioManager.setMode ( AudioManager.MODE_RINGTONE ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.RINGING_FOCUS ) ; } else { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Entering RINGING but not acquiring focus -- silent ringtone" ) ; } mCallAudioManager.stopCallWaiting ( ) ; }

Target:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering RINGING state" ) ; if ( mCallAudioManager.startRinging ( ) ) { mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_RING , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; mAudioManager.setMode ( AudioManager.MODE_RINGTONE ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.RINGING_FOCUS ) ; } else { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Entering RINGING but not acquiring focus -- silent ringtone" ) ; } mCallAudioManager.stopCallWaiting ( ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createMerge ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor > knownLayouts ) { java.lang.String xml_name = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE ; com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs = findViewLayoutAttributes ( SdkConstants.CLASS_FRAMELAYOUT , knownLayouts ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xml_name , xml_name , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE , "A root tag useful for XML layouts inflated using a ViewStub." , null , null , viewLayoutAttribs , null , false ) ; return desc ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createMerge ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs ) { java.lang.String xml_name = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xml_name , xml_name , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE , "A root tag useful for XML layouts inflated using a ViewStub." , null , null , viewLayoutAttribs , null , false ) ; return desc ; }
Source:
public void testGetUserSelectedOutgoingPhoneAccount ( ) throws android.os.RemoteException { org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getUserSelectedOutgoingPhoneAccount ( org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ) . thenReturn ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccountUnchecked ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ) . thenReturn ( makeMultiUserPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) . build ( ) ) ; android.telecom.PhoneAccountHandle returnedHandle = mTSIBinder.getUserSelectedOutgoingPhoneAccount ( ) ; assertEquals ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 , returnedHandle ) ; }

Target:
public void testGetUserSelectedOutgoingPhoneAccount ( ) throws android.os.RemoteException { org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getUserSelectedOutgoingPhoneAccount ( org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ) . thenReturn ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccountUnchecked ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ) . thenReturn ( makeMultiUserPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) . build ( ) ) ; android.telecom.PhoneAccountHandle returnedHandle = mTSIBinder.getUserSelectedOutgoingPhoneAccount ( ) ; org.junit.Assert.assertEquals ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 , returnedHandle ) ; }