auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final java.nio.ByteBuffer putShort ( int i , short x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putShort ( ix ( checkIndex ( i , SizeOf.SHORT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putShort ( int i , short x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putShort ( ix ( checkIndex ( i , SizeOf.SHORT ) ) , x ) ; return this ; }
Source:
public void onResume ( ) { super . onResume ( ) ; createPreferenceHierarchy ( ) ; updateLocationToggles ( ) ; if ( ( mSettingsObserver ) == null ) { mSettingsObserver = new java.util.Observer ( ) { public void update ( java.util.Observable o , java.lang.Object arg ) { updateLocationToggles ( ) ; } } ; mContentQueryMap.addObserver ( mSettingsObserver ) ; } }

Target:
public void onResume ( ) { super . onResume ( ) ; createPreferenceHierarchy ( ) ; updateLocationToggles ( ) ; if ( ( mSettingsObserver ) == null ) { mSettingsObserver = new java.util.Observer ( ) { public void update ( java.util.Observable o , java.lang.Object arg ) { updateLocationToggles ( ) ; } } ; } mContentQueryMap.addObserver ( mSettingsObserver ) ; }
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 ) ) ; } 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 ) ) ; } return localDependencies ; }
Source:
private static com.android.build.gradle.tasks.List < com.android.build.gradle.internal.dependency.SymbolFileProviderImpl > getTextSymbolDependencies ( com.android.build.gradle.tasks.List < com.android.builder.dependency.LibraryDependency > libraries ) { com.android.build.gradle.tasks.List < com.android.build.gradle.internal.dependency.SymbolFileProviderImpl > list = com.google.common.collect.Lists.newArrayListWithCapacity ( libraries.size ( ) ) ; for ( com.android.builder.dependency.LibraryDependency lib : libraries ) { list.add ( new com.android.build.gradle.internal.dependency.SymbolFileProviderImpl ( lib ) ) ; } return list ; }

Target:
private static java.util.List < com.android.build.gradle.internal.dependency.SymbolFileProviderImpl > getTextSymbolDependencies ( java.util.List < com.android.builder.dependency.LibraryDependency > libraries ) { java.util.List < com.android.build.gradle.internal.dependency.SymbolFileProviderImpl > list = com.google.common.collect.Lists.newArrayListWithCapacity ( libraries.size ( ) ) ; for ( com.android.builder.dependency.LibraryDependency lib : libraries ) { list.add ( new com.android.build.gradle.internal.dependency.SymbolFileProviderImpl ( lib ) ) ; } return list ; }
Source:
public void testCheckAccessLevel_isProfileOwner ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( true ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( false ) ; assertEquals ( NetworkStatsAccess.Level.USER , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }

Target:
public void testCheckAccessLevel_isProfileOwner ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( true ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( false ) ; org.junit.Assert.assertEquals ( NetworkStatsAccess.Level.USER , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }
Source:
public void testCreateTransformsWithSameConfigEqual ( ) { android.net.IpSecConfig config = new android.net.IpSecConfig ( ) ; config.setSourceAddress ( "0.0.0.0" ) ; config.setDestinationAddress ( "1.2.3.4" ) ; config.setSpiResourceId ( 1984 ) ; android.net.IpSecTransform config1 = new android.net.IpSecTransform ( null , config ) ; android.net.IpSecTransform config2 = new android.net.IpSecTransform ( null , config ) ; org.junit.Assert.assertFalse ( android.net.IpSecTransform.equals ( config1 , config2 ) ) ; }

Target:
public void testCreateTransformsWithSameConfigEqual ( ) { android.net.IpSecConfig config = new android.net.IpSecConfig ( ) ; config.setSourceAddress ( "0.0.0.0" ) ; config.setDestinationAddress ( "1.2.3.4" ) ; config.setSpiResourceId ( 1984 ) ; android.net.IpSecTransform config1 = new android.net.IpSecTransform ( null , config ) ; android.net.IpSecTransform config2 = new android.net.IpSecTransform ( null , config ) ; org.junit.Assert.assertTrue ( android.net.IpSecTransform.equals ( config1 , config2 ) ) ; }
Source:
private void createServerSession ( javax.obex.ObexTransport transport ) { mServerSession = new com.android.bluetooth.opp.BluetoothOppObexServerSession ( this , transport , mServerSocket ) ; mServerSession.preStart ( ) ; if ( com.android.bluetooth.opp.BluetoothOppService.D ) { android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( ( ( "Get ServerSession " + ( mServerSession.toString ( ) ) ) + " for incoming connection" ) + ( transport.toString ( ) ) ) ) ; } }

Target:
private void createServerSession ( javax.obex.ObexTransport transport ) { mServerSession = new com.android.bluetooth.opp.BluetoothOppObexServerSession ( this , transport , this ) ; mServerSession.preStart ( ) ; if ( com.android.bluetooth.opp.BluetoothOppService.D ) { android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( ( ( "Get ServerSession " + ( mServerSession.toString ( ) ) ) + " for incoming connection" ) + ( transport.toString ( ) ) ) ) ; } }
Source:
protected synchronized void bind0 ( int lport , java.net.InetAddress laddr ) throws java.net.SocketException { if ( isClosed ( ) ) { throw new java.net.SocketException ( "Socket closed" ) ; } libcore.io.IoBridge.bind ( fd , laddr , lport ) ; if ( lport == 0 ) { localPort = libcore.io.IoBridge.getLocalInetSocketAddress ( fd ) . getPort ( ) ; } else { localPort = lport ; } }

Target:
protected synchronized native void bind0 ( int lport , java.net.InetAddress laddr ) throws java.net.SocketException ;
Source:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "Cipher.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$ECB" ) ) ; provider.addAlgorithm ( "Cipher.1.3.6.1.4.1.3029.1.2" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$CBC" ) ) ; provider.addAlgorithm ( "KeyGenerator.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$KeyGen" ) ) ; provider.addAlgorithm ( "Alg.Alias.KeyGenerator.1.3.6.1.4.1.3029.1.2" , "BLOWFISH" ) ; provider.addAlgorithm ( "AlgorithmParameters.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$AlgParams" ) ) ; provider.addAlgorithm ( "Alg.Alias.AlgorithmParameters.1.3.6.1.4.1.3029.1.2" , "BLOWFISH" ) ; }

Target:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "Cipher.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$ECB" ) ) ; provider.addAlgorithm ( "KeyGenerator.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$KeyGen" ) ) ; provider.addAlgorithm ( "Alg.Alias.KeyGenerator.1.3.6.1.4.1.3029.1.2" , "BLOWFISH" ) ; provider.addAlgorithm ( "AlgorithmParameters.BLOWFISH" , ( ( org.bouncycastle.jcajce.provider.symmetric.Blowfish.Mappings.PREFIX ) + "$AlgParams" ) ) ; provider.addAlgorithm ( "Alg.Alias.AlgorithmParameters.1.3.6.1.4.1.3029.1.2" , "BLOWFISH" ) ; }
Source:
private int newBranchOffset ( int newInstructionOffset , int oldBranchOffset ) { if ( ( newInstructionOffset < 0 ) || ( newInstructionOffset > ( codeLength ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( "Invalid instruction offset [" + newInstructionOffset ) + "] in code with length [" ) + ( codeLength ) ) + "]" ) ) ; } int oldInstructionOffset = oldInstructionOffsets [ newInstructionOffset ] ; return ( newInstructionOffset ( ( oldInstructionOffset + oldBranchOffset ) ) ) - ( newInstructionOffset ( oldInstructionOffset ) ) ; }

Target:
private int newBranchOffset ( int newInstructionOffset , int oldBranchOffset ) { if ( ( newInstructionOffset < 0 ) || ( newInstructionOffset > ( codeLength ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( "Invalid instruction offset [" + newInstructionOffset ) + "] in code with length [" ) + ( codeLength ) ) + "]" ) ) ; } int oldInstructionOffset = oldInstructionOffsets [ newInstructionOffset ] ; return ( newInstructionOffset ( ( oldInstructionOffset + oldBranchOffset ) ) ) - newInstructionOffset ; }
Source:
public int codePointCount ( int beginIndex , int endIndex ) { if ( ( ( beginIndex < 0 ) || ( endIndex > ( count ) ) ) || ( beginIndex > endIndex ) ) { throw new java.lang.IndexOutOfBoundsException ( ) ; } return java.lang.Character.codePointCount ( this , beginIndex , endIndex ) ; }

Target:
public int codePointCount ( int beginIndex , int endIndex ) { if ( ( ( beginIndex < 0 ) || ( endIndex > ( length ( ) ) ) ) || ( beginIndex > endIndex ) ) { throw new java.lang.IndexOutOfBoundsException ( ) ; } return java.lang.Character.codePointCount ( this , beginIndex , endIndex ) ; }
Source:
public int read ( ) throws java.io.IOException { java.lang.Object traceContext = sun.misc.IoTrace.fileReadBegin ( path ) ; byte [ ] b = new byte [ 1 ] ; int res = - 1 ; try { res = read ( b , 0 , 1 ) ; } finally { sun.misc.IoTrace.fileReadEnd ( traceContext , res ) ; } return res != ( - 1 ) ? ( b [ 0 ] ) & 255 : - 1 ; }

Target:
public int read ( ) throws java.io.IOException { byte [ ] b = new byte [ 1 ] ; int res = - 1 ; res = read ( b , 0 , 1 ) ; return res != ( - 1 ) ? ( b [ 0 ] ) & 255 : - 1 ; }
Source:
public int getIndex ( java.lang.String uri , java.lang.String localName ) { if ( uri == null ) { throw new java.lang.NullPointerException ( "uri == null" ) ; } if ( localName == null ) { throw new java.lang.NullPointerException ( "localName == null" ) ; } int pointer = getPointer ( ) ; if ( pointer == 0 ) { return - 1 ; } return org.apache.harmony.xml.ExpatAttributes.getIndex ( pointer , uri , localName ) ; }

Target:
public int getIndex ( java.lang.String uri , java.lang.String localName ) { if ( uri == null ) { throw new java.lang.NullPointerException ( "uri == null" ) ; } if ( localName == null ) { throw new java.lang.NullPointerException ( "localName == null" ) ; } long pointer = getPointer ( ) ; if ( pointer == 0 ) { return - 1 ; } return org.apache.harmony.xml.ExpatAttributes.getIndex ( pointer , uri , localName ) ; }
Source:
private static com.google.gson.Gson createGson ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode errorFormatMode ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; if ( errorFormatMode == ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode.HUMAN_READABLE ) ) { gsonBuilder.setPrettyPrinting ( ) ; } return gsonBuilder.create ( ) ; }

Target:
private static com.google.gson.Gson createGson ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode errorFormatMode ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; return gsonBuilder.create ( ) ; }
Source:
public void copyTo ( int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; validateIsInt32 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyTo ( int [ ] d ) { validateIsInt32 ( ) ; copyTo ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.optimizations.ExpressionSimplifier.Simplifier s = new com.android.jack.optimizations.ExpressionSimplifier.Simplifier ( ) ; s.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.optimizations.ExpressionSimplifier.Simplifier s = new com.android.jack.optimizations.ExpressionSimplifier.Simplifier ( ) ; s.accept ( method ) ; }
Source:
public void retainSubscriptionsForFactoryReset ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . retainSubscriptionsForFactoryReset ( callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void retainSubscriptionsForFactoryReset ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . retainSubscriptionsForFactoryReset ( callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void setQuery ( java.lang.CharSequence query , boolean submit ) { mQueryTextView.setText ( query ) ; if ( query != null ) { mQueryTextView.setSelection ( query.length ( ) ) ; mUserQuery = query ; } if ( submit && ( ! ( android.text.TextUtils.isEmpty ( query ) ) ) ) { onSubmitQuery ( ) ; } }

Target:
public void setQuery ( java.lang.CharSequence query , boolean submit ) { mQueryTextView.setText ( query ) ; if ( query != null ) { mQueryTextView.setSelection ( mQueryTextView.length ( ) ) ; mUserQuery = query ; } if ( submit && ( ! ( android.text.TextUtils.isEmpty ( query ) ) ) ) { onSubmitQuery ( ) ; } }
Source:
protected android.support.v8.renderscript.Script.FieldID createFieldID ( int slot , android.support.v8.renderscript.Element e ) { android.support.v8.renderscript.Script.FieldID f = mFIDs.get ( slot ) ; if ( f != null ) { return f ; } int id = mRS.nScriptFieldIDCreate ( getID ( mRS ) , slot ) ; if ( id == 0 ) { throw new android.support.v8.renderscript.RSDriverException ( "Failed to create FieldID" ) ; } f = new android.support.v8.renderscript.Script.FieldID ( id , mRS , this , slot ) ; mFIDs.put ( slot , f ) ; return f ; }

Target:
protected android.support.v8.renderscript.Script.FieldID createFieldID ( int slot , android.support.v8.renderscript.Element e ) { android.support.v8.renderscript.Script.FieldID f = mFIDs.get ( slot ) ; if ( f != null ) { return f ; } long id = mRS.nScriptFieldIDCreate ( getID ( mRS ) , slot ) ; if ( id == 0 ) { throw new android.support.v8.renderscript.RSDriverException ( "Failed to create FieldID" ) ; } f = new android.support.v8.renderscript.Script.FieldID ( id , mRS , this , slot ) ; mFIDs.put ( slot , f ) ; return f ; }
Source:
public void testSendText ( ) { mCdmaSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; verify ( mSimulatedCommandsVerifier ) . sendCdmaSms ( any ( byte [ ] . class ) , any ( android.os.Message.class ) ) ; }

Target:
public void testSendText ( ) { mCdmaSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false ) ; verify ( mSimulatedCommandsVerifier ) . sendCdmaSms ( any ( byte [ ] . class ) , any ( android.os.Message.class ) ) ; }
Source:
private static org.eclipse.core.resources.IProject findSupportProjectV7 ( ) { for ( org.eclipse.jdt.core.IJavaProject javaProject : com.android.ide.eclipse.adt.AdtUtils.getOpenAndroidProjects ( ) ) { org.eclipse.core.resources.IProject project = javaProject.getProject ( ) ; com.android.ide.eclipse.adt.internal.sdk.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( project ) ; if ( state.isLibrary ( ) ) { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo manifestInfo = com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo.get ( project ) ; if ( manifestInfo.getPackage ( ) . equals ( "android.support.v7.gridlayout" ) ) { return project ; } } } return null ; }

Target:
private static org.eclipse.core.resources.IProject findSupportProjectV7 ( ) { for ( org.eclipse.jdt.core.IJavaProject javaProject : com.android.ide.eclipse.adt.AdtUtils.getOpenAndroidProjects ( ) ) { org.eclipse.core.resources.IProject project = javaProject.getProject ( ) ; com.android.ide.eclipse.adt.internal.sdk.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( project ) ; if ( ( state != null ) && ( state.isLibrary ( ) ) ) { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo manifestInfo = com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo.get ( project ) ; if ( manifestInfo.getPackage ( ) . equals ( "android.support.v7.gridlayout" ) ) { return project ; } } } return null ; }
Source:
static int native_saveLayer ( int nativeCanvas , float l , float t , float r , float b , int paint , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } android.graphics.Paint_Delegate paintDelegate = android.graphics.Paint_Delegate.getDelegate ( paint ) ; if ( paintDelegate == null ) { return 0 ; } return canvasDelegate.saveLayer ( new android.graphics.RectF ( l , t , r , b ) , paintDelegate , layerFlags ) ; }

Target:
static long native_saveLayer ( long nativeCanvas , float l , float t , float r , float b , long paint , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } android.graphics.Paint_Delegate paintDelegate = android.graphics.Paint_Delegate.getDelegate ( paint ) ; if ( paintDelegate == null ) { return 0 ; } return canvasDelegate.saveLayer ( new android.graphics.RectF ( l , t , r , b ) , paintDelegate , layerFlags ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.DoStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; com.android.jack.ir.ast.JStatement action = pop ( x.action ) ; if ( action == null ) { action = new com.android.jack.ir.ast.JBlock ( info ) ; } push ( new com.android.jack.ir.ast.JDoStatement ( info , condition , action ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.DoStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; com.android.jack.ir.ast.JStatement action = pop ( x.action ) ; if ( action == null ) { action = new com.android.jack.ir.ast.JBlock ( info ) ; } push ( new com.android.jack.ir.ast.JDoStatement ( info , condition , action ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public final int [ ] getLabelsInOrder ( ) { int sz = size ( ) ; int [ ] result = new int [ sz ] ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.jack.dx.util.LabeledItem li = ( ( com.android.jack.dx.util.LabeledItem ) ( get0 ( i ) ) ) ; if ( li == null ) { throw new java.lang.NullPointerException ( ( "null at index " + i ) ) ; } result [ i ] = li.getLabel ( ) ; } java.util.Arrays.sort ( result ) ; return result ; }

Target:
public final int [ ] getLabelsInOrder ( ) { int sz = size ( ) ; int [ ] result = new int [ sz ] ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.jack.dx.util.LabeledItem li = ( ( com.android.jack.dx.util.LabeledItem ) ( get0 ( i ) ) ) ; assert li != null ; result [ i ] = li.getLabel ( ) ; } java.util.Arrays.sort ( result ) ; return result ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( "CanvasDND" , "dragFinished => MOVE" ) ; mLayoutEditor.wrapUndoRecording ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { mLayoutEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { mLayoutEditor.wrapUndoRecording ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { mLayoutEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }
Source:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.Instance instance = mHeap.getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }

Target:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }
Source:
public static final int getRepeatedFieldArrayLength ( final com.google.protobuf.nano.CodedInputByteBufferNano input , final int tag ) throws java.io.IOException { int arrayLength = 1 ; int startPos = input.getPosition ( ) ; input.skipField ( tag ) ; while ( ( input.getBytesUntilLimit ( ) ) > 0 ) { int thisTag = input.readTag ( ) ; if ( thisTag != tag ) { break ; } input.skipField ( tag ) ; arrayLength ++ ; } input.rewindToPosition ( startPos ) ; return arrayLength ; }

Target:
public static final int getRepeatedFieldArrayLength ( final com.google.protobuf.nano.CodedInputByteBufferNano input , final int tag ) throws java.io.IOException { int arrayLength = 1 ; int startPos = input.getPosition ( ) ; input.skipField ( tag ) ; while ( ( input.readTag ( ) ) == tag ) { input.skipField ( tag ) ; arrayLength ++ ; } input.rewindToPosition ( startPos ) ; return arrayLength ; }
Source:
public static com.android.ide.common.resources.ResourceResolver create ( java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > projectResources , java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > frameworkResources , java.lang.String themeName , boolean isProjectTheme ) { com.android.ide.common.resources.ResourceResolver resolver = new com.android.ide.common.resources.ResourceResolver ( projectResources , frameworkResources ) ; resolver.computeStyleMaps ( themeName , isProjectTheme ) ; return resolver ; }

Target:
public static com.android.ide.common.resources.ResourceResolver create ( java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > projectResources , java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > frameworkResources , java.lang.String themeName , boolean isProjectTheme ) { com.android.ide.common.resources.ResourceResolver resolver = new com.android.ide.common.resources.ResourceResolver ( projectResources , frameworkResources , themeName , isProjectTheme ) ; resolver.computeStyleMaps ( ) ; return resolver ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED ) ) { updateAlarm ( ) ; } else if ( ( action.equals ( AudioManager.RINGER_MODE_CHANGED_ACTION ) ) || ( action.equals ( AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION ) ) ) { updateVolumeZen ( ) ; } else if ( action.equals ( TelephonyIntents.ACTION_SIM_STATE_CHANGED ) ) { updateSimState ( intent ) ; } else if ( action.equals ( TelecomManager.ACTION_CURRENT_TTY_MODE_CHANGED ) ) { updateTTY ( intent ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( ( action.equals ( AudioManager.RINGER_MODE_CHANGED_ACTION ) ) || ( action.equals ( AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION ) ) ) { updateVolumeZen ( ) ; } else if ( action.equals ( TelephonyIntents.ACTION_SIM_STATE_CHANGED ) ) { updateSimState ( intent ) ; } else if ( action.equals ( TelecomManager.ACTION_CURRENT_TTY_MODE_CHANGED ) ) { updateTTY ( intent ) ; } }
Source:
private com.android.builder.core.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.core.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , null ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
public boolean setExternalSim ( boolean external ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setExternalSim ( external ) ; } else { java.lang.String value = ( external ) ? "1" : "0" ; android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "Setting external_sim to " + value ) ) ; return doBooleanCommand ( ( "SET external_sim " + value ) ) ; } }

Target:
public boolean setExternalSim ( boolean external ) { return mSupplicantStaIfaceHal.setExternalSim ( external ) ; }
Source:
public boolean delete ( java.lang.String key ) { try { return ( mBinder.del ( key ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean delete ( java.lang.String key ) { try { return ( mBinder.del ( key , ( - 1 ) ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private void writeGoto ( int insIndex ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.GOTO ) ; writer.writeOpen ( ) ; writer.writeId ( java.lang.Integer.toString ( insIndex ) ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeGoto ( int insIndex ) throws java.io.IOException { writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.GOTO ) ; writer.writeOpen ( ) ; writer.writeId ( java.lang.Integer.toString ( insIndex ) ) ; writeDebugEnd ( currentClass , currentLine ) ; writer.writeClose ( ) ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement negate ( ) { java.math.BigInteger x2 ; if ( ( x.signum ( ) ) == 0 ) { x2 = x ; } else if ( org.bouncycastle.math.ec.ONE.equals ( r ) ) { x2 = q.xor ( x ) ; } else { x2 = q.subtract ( x ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x2 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement negate ( ) { return ( x.signum ( ) ) == 0 ? this : new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , q.subtract ( x ) ) ; }
Source:
private static void assertNonDaylightOffset ( int expectedOffsetSeconds , long epochSeconds , java.util.TimeZone tz ) { assertEquals ( ( expectedOffsetSeconds * 1000 ) , tz.getOffset ( ( epochSeconds * 1000 ) ) ) ; assertFalse ( tz.inDaylightTime ( new java.util.Date ( ( epochSeconds * 1000 ) ) ) ) ; }

Target:
private static void assertNonDaylightOffset ( int expectedOffsetSeconds , long epochSeconds , java.util.TimeZone tz ) { assertEquals ( expectedOffsetSeconds , ( ( tz.getOffset ( ( epochSeconds * 1000 ) ) ) / 1000 ) ) ; assertFalse ( tz.inDaylightTime ( new java.util.Date ( ( epochSeconds * 1000 ) ) ) ) ; }
Source:
synchronized void nAllocationData3D ( int dstAlloc , int dstXoff , int dstYoff , int dstZoff , int dstMip , int width , int height , int depth , int srcAlloc , int srcXoff , int srcYoff , int srcZoff , int srcMip ) { validate ( ) ; rsnAllocationData3D ( mContext , dstAlloc , dstXoff , dstYoff , dstZoff , dstMip , width , height , depth , srcAlloc , srcXoff , srcYoff , srcZoff , srcMip ) ; }

Target:
synchronized void nAllocationData3D ( long dstAlloc , int dstXoff , int dstYoff , int dstZoff , int dstMip , int width , int height , int depth , long srcAlloc , int srcXoff , int srcYoff , int srcZoff , int srcMip ) { validate ( ) ; rsnAllocationData3D ( mContext , dstAlloc , dstXoff , dstYoff , dstZoff , dstMip , width , height , depth , srcAlloc , srcXoff , srcYoff , srcZoff , srcMip ) ; }
Source:
public org.conscrypt.OpenSSLSocketImpl createSocket ( javax.net.ssl.SSLSocketFactory factory , java.net.ServerSocket listener ) throws java.io.IOException { org.conscrypt.OpenSSLSocketImpl socket = super . createSocket ( factory , listener ) ; socket.setEnabledProtocols ( new java.lang.String [ ] { "SSLv3" } ) ; assertEquals ( "SSLv3 should be filtered out" , 0 , socket.getEnabledProtocols ( ) . length ) ; return socket ; }

Target:
public org.conscrypt.OpenSSLSocketImpl createSocket ( javax.net.ssl.SSLSocketFactory factory , java.net.ServerSocket listener ) throws java.io.IOException { org.conscrypt.OpenSSLSocketImpl socket = super . createSocket ( factory , listener ) ; socket.setEnabledProtocols ( new java.lang.String [ ] { "SSLv3" } ) ; org.junit.Assert.assertEquals ( "SSLv3 should be filtered out" , 0 , socket.getEnabledProtocols ( ) . length ) ; return socket ; }
Source:
private void setSourceType ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType sourceType ) { if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.IMAGE ) ) { chooseForegroundTab ( mImageRadio , mImageForm ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.CLIPART ) ) { chooseForegroundTab ( mClipartRadio , mClipartForm ) ; mChooseClipart.setFocus ( ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.TEXT ) ) { updateFontLabel ( mFontButton.getFont ( ) ) ; chooseForegroundTab ( mTextRadio , mTextForm ) ; mText.setFocus ( ) ; } }

Target:
private void setSourceType ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType sourceType ) { if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.IMAGE ) ) { chooseForegroundTab ( mImageRadio , mImageForm ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.CLIPART ) ) { chooseForegroundTab ( mClipartRadio , mClipartForm ) ; mChooseClipart.setFocus ( ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.TEXT ) ) { updateFontLabel ( ) ; chooseForegroundTab ( mTextRadio , mTextForm ) ; mText.setFocus ( ) ; } }
Source:
public int getDiscoverableTimeout ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getDiscoverableTimeout() - Not allowed for non-active user" ) ; return 0 ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return 0 ; return service.getDiscoverableTimeout ( ) ; }

Target:
public int getDiscoverableTimeout ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getDiscoverableTimeout() - Not allowed for non-active user" ) ; return 0 ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return 0 ; } return service.getDiscoverableTimeout ( ) ; }
Source:
public void sdpSearch ( android.bluetooth.BluetoothDevice device , android.os.ParcelUuid uuid ) { if ( ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) == false ) { android.util.Log.e ( com.android.bluetooth.sdp.SdpManager.TAG , "Native not initialized!" ) ; return ; } synchronized ( com.android.bluetooth.sdp.SdpManager.mTrackerLock ) { if ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.isSearching ( device , uuid ) ) { return ; } com.android.bluetooth.sdp.SdpManager.SdpSearchInstance inst = new com.android.bluetooth.sdp.SdpManager.SdpSearchInstance ( 0 , device , uuid ) ; com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.add ( inst ) ; startSearch ( ) ; } }

Target:
public void sdpSearch ( android.bluetooth.BluetoothDevice device , android.os.ParcelUuid uuid ) { if ( ! ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) ) { android.util.Log.e ( com.android.bluetooth.sdp.SdpManager.TAG , "Native not initialized!" ) ; return ; } synchronized ( com.android.bluetooth.sdp.SdpManager.mTrackerLock ) { if ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.isSearching ( device , uuid ) ) { return ; } com.android.bluetooth.sdp.SdpManager.SdpSearchInstance inst = new com.android.bluetooth.sdp.SdpManager.SdpSearchInstance ( 0 , device , uuid ) ; com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.add ( inst ) ; startSearch ( ) ; } }
Source:
public static java.lang.String getCurveName ( org.bouncycastle.asn1.ASN1ObjectIdentifier oid ) { java.lang.String name = org.bouncycastle.asn1.x9.X962NamedCurves.getName ( oid ) ; if ( name == null ) { name = org.bouncycastle.asn1.sec.SECNamedCurves.getName ( oid ) ; if ( name == null ) { name = org.bouncycastle.asn1.nist.NISTNamedCurves.getName ( oid ) ; } if ( name == null ) { name = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getName ( oid ) ; } if ( name == null ) { name = org.bouncycastle.asn1.cryptopro.ECGOST3410NamedCurves.getName ( oid ) ; } } return name ; }

Target:
public static java.lang.String getCurveName ( org.bouncycastle.asn1.ASN1ObjectIdentifier oid ) { java.lang.String name = org.bouncycastle.asn1.x9.X962NamedCurves.getName ( oid ) ; if ( name == null ) { name = org.bouncycastle.asn1.sec.SECNamedCurves.getName ( oid ) ; if ( name == null ) { name = org.bouncycastle.asn1.nist.NISTNamedCurves.getName ( oid ) ; } } return name ; }
Source:
public byte [ ] getDriverStateDump ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getDriverStateDump ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getDriverStateDumpNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public byte [ ] getDriverStateDump ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getDriverStateDumpNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public void logState ( android.util.Printer pw , java.lang.String prefix ) { pw.println ( ( ( ( ( ( ( ( ( ( ( prefix + "mCount=" ) + ( mCount ) ) + " mLoadedCount=" ) + ( mLoadedCount ) ) + " mLastCount=" ) + ( mLastCount ) ) + " mUnpluggedCount=" ) + ( mUnpluggedCount ) ) + " mPluggedCount=" ) + ( mPluggedCount ) ) ) ; }

Target:
public void logState ( android.util.Printer pw , java.lang.String prefix ) { pw.println ( ( ( ( ( ( ( ( ( ( ( prefix + "mCount=" ) + ( mCount.get ( ) ) ) + " mLoadedCount=" ) + ( mLoadedCount ) ) + " mLastCount=" ) + ( mLastCount ) ) + " mUnpluggedCount=" ) + ( mUnpluggedCount ) ) + " mPluggedCount=" ) + ( mPluggedCount ) ) ) ; }
Source:
public void testEC_GROUP ( ) throws java.lang.Exception { check_EC_GROUP ( NativeCrypto.EC_CURVE_GFP , "prime256v1" , "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF" , "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC" , "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b" , "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296" , "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5" , "FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551" , 1L ) ; check_EC_GROUP ( NativeCrypto.EC_CURVE_GF2M , "sect283r1" , "0800000000000000000000000000000000000000000000000000000000000000000010A1" , "000000000000000000000000000000000000000000000000000000000000000000000001" , "027B680AC8B8596DA5A4AF8A19A0303FCA97FD7645309FA2A581485AF6263E313B79A2F5" , "05F939258DB7DD90E1934F8C70B0DFEC2EED25B8557EAC9C80E2E198F8CDBECD86B12053" , "03676854FE24141CB98FE6D4B20D02B4516FF702350EDDB0826779C813F0DF45BE8112F4" , "03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF90399660FC938A90165B042A7CEFADB307" , 2L ) ; }

Target:
public void testEC_GROUP ( ) throws java.lang.Exception { check_EC_GROUP ( NativeCrypto.EC_CURVE_GFP , "prime256v1" , "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF" , "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC" , "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b" , "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296" , "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5" , "FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551" , 1L ) ; }
Source:
public com.android.jack.ir.ast.JSsaVariableRef getDef ( ) { if ( ( def ) instanceof com.android.jack.ir.ast.cfg.JPhiBlockElement ) { com.android.jack.ir.ast.cfg.JPhiBlockElement phi = ( ( com.android.jack.ir.ast.cfg.JPhiBlockElement ) ( def ) ) ; return phi.getLhs ( ) ; } else { com.android.jack.ir.ast.cfg.JVariableAsgBlockElement assign = ( ( com.android.jack.ir.ast.cfg.JVariableAsgBlockElement ) ( def ) ) ; return ( ( com.android.jack.ir.ast.JSsaVariableRef ) ( assign.getAssignment ( ) . getLhs ( ) ) ) ; } }

Target:
public com.android.jack.ir.ast.JSsaVariableRef getDef ( ) { if ( ( def ) instanceof com.android.jack.ir.ast.cfg.JPhiBlockElement ) { com.android.jack.ir.ast.cfg.JPhiBlockElement phi = ( ( com.android.jack.ir.ast.cfg.JPhiBlockElement ) ( def ) ) ; return phi.getLhs ( ) ; } else { com.android.jack.ir.ast.cfg.JVariableAsgBlockElement assign = ( ( com.android.jack.ir.ast.cfg.JVariableAsgBlockElement ) ( def ) ) ; if ( ( def ) == null ) { return null ; } else { return ( ( com.android.jack.ir.ast.JSsaVariableRef ) ( assign.getAssignment ( ) . getLhs ( ) ) ) ; } } }
Source:
public void testGetRequestPropertyReturnsLastValue ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection urlConnection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; urlConnection.addRequestProperty ( "A" , "value1" ) ; urlConnection.addRequestProperty ( "A" , "value2" ) ; assertEquals ( "value2" , urlConnection.getRequestProperty ( "A" ) ) ; }

Target:
public void testGetRequestPropertyReturnsLastValue ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection urlConnection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; urlConnection.addRequestProperty ( "A" , "value1" ) ; urlConnection.addRequestProperty ( "A" , "value2" ) ; org.junit.Assert.assertEquals ( "value2" , urlConnection.getRequestProperty ( "A" ) ) ; }
Source:
public void enter ( ) { if ( ! ( configureIfaceIp ( true ) ) ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_IFACE_CFG_ERROR ; transitionTo ( mInitialState ) ; return ; } try { mNMService.tetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Error Tethering: " + ( e.toString ( ) ) ) ) ; mLastError = android.net.ConnectivityManager.TETHER_ERROR_TETHER_IFACE_ERROR ; transitionTo ( mInitialState ) ; return ; } if ( ! ( mIPv6TetherSvc.start ( ) ) ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , "Failed to start IPv6TetheringInterfaceServices" ) ; } }

Target:
public void enter ( ) { if ( ! ( configureIfaceIp ( true ) ) ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_IFACE_CFG_ERROR ; return ; } try { mNMService.tetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Error Tethering: " + ( e.toString ( ) ) ) ) ; mLastError = android.net.ConnectivityManager.TETHER_ERROR_TETHER_IFACE_ERROR ; return ; } if ( ! ( mIPv6TetherSvc.start ( ) ) ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , "Failed to start IPv6TetheringInterfaceServices" ) ; return ; } }
Source:
private synchronized boolean isBrowseSupported ( java.lang.String packageName ) { for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": true" ) ) ; return true ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": false" ) ) ; return false ; }

Target:
private boolean isBrowseSupported ( java.lang.String packageName ) { synchronized ( mBrowsePlayerInfoList ) { for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": true" ) ) ; return true ; } } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": false" ) ) ; return false ; }
Source:
static void setDevice ( java.nio.channels.SocketChannel adbChan , com.android.ddmlib.IDevice device ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { if ( device != null ) { java.lang.String msg = "host:transport:" + ( device.getSerialNumber ( ) ) ; byte [ ] device_query = com.android.ddmlib.AdbHelper.formAdbRequest ( msg ) ; com.android.ddmlib.AdbHelper.write ( adbChan , device_query ) ; com.android.ddmlib.AdbHelper.AdbResponse resp = com.android.ddmlib.AdbHelper.readAdbResponse ( adbChan , false ) ; if ( ( resp.okay ) == false ) { throw new com.android.ddmlib.AdbCommandRejectedException ( resp.message , true ) ; } } }

Target:
static void setDevice ( java.nio.channels.SocketChannel adbChan , com.android.ddmlib.IDevice device ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { if ( device != null ) { java.lang.String msg = "host:transport:" + ( device.getSerialNumber ( ) ) ; byte [ ] device_query = com.android.ddmlib.AdbHelper.formAdbRequest ( msg ) ; com.android.ddmlib.AdbHelper.write ( adbChan , device_query ) ; com.android.ddmlib.AdbHelper.AdbResponse resp = com.android.ddmlib.AdbHelper.readAdbResponse ( adbChan , false ) ; if ( ! ( resp.okay ) ) { throw new com.android.ddmlib.AdbCommandRejectedException ( resp.message , true ) ; } } }
Source:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , boolean enableDebugger , int [ ] [ ] rlimits ) { int debugFlags = ( enableDebugger ) ? dalvik.system.Zygote.DEBUG_ENABLE_DEBUGGER : 0 ; return dalvik.system.Zygote.forkAndSpecialize ( uid , gid , gids , debugFlags , rlimits ) ; }

Target:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , boolean enableDebugger , int [ ] [ ] rlimits ) { int debugFlags = ( enableDebugger ) ? dalvik.system.Zygote.DEBUG_ENABLE_DEBUGGER : 0 ; return dalvik.system.Zygote.forkAndSpecialize ( uid , gid , gids , debugFlags , rlimits , null , null ) ; }