auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUpstreamLinkProperties ( android.net.LinkProperties lp ) { if ( ! ( started ( ) ) ) return ; mUpstreamLinkProperties = ( lp != null ) ? new android.net.LinkProperties ( lp ) : null ; pushUpstreamParameters ( ) ; }

Target:
public void setUpstreamLinkProperties ( android.net.LinkProperties lp ) { if ( ( ! ( started ( ) ) ) || ( java.util.Objects.equals ( mUpstreamLinkProperties , lp ) ) ) return ; mUpstreamLinkProperties = ( lp != null ) ? new android.net.LinkProperties ( lp ) : null ; computeAndPushLocalPrefixes ( ) ; pushUpstreamParameters ( ) ; }
Source:
private android.telecom.CallAudioState getInitialAudioState ( ) { int supportedRouteMask = calculateSupportedRoutes ( ) ; final int route ; if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH ; } else if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ; } else if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ; } else { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_SPEAKER ; } return new android.telecom.CallAudioState ( false , route , supportedRouteMask ) ; }

Target:
private android.telecom.CallAudioState getInitialAudioState ( ) { int supportedRouteMask = ( calculateSupportedRoutes ( ) ) & ( getCurrentCallSupportedRoutes ( ) ) ; final int route ; if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH ; } else if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ; } else if ( ( supportedRouteMask & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ) ) != 0 ) { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ; } else { route = com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_SPEAKER ; } return new android.telecom.CallAudioState ( false , route , supportedRouteMask ) ; }
Source:
public final double double_literal ( ) throws org.jf.smali.RecognitionException { double value = 0.0 ; org.antlr.runtime.tree.CommonTree DOUBLE_LITERAL196 = null ; try { { DOUBLE_LITERAL196 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.DOUBLE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_DOUBLE_LITERAL_in_double_literal3324 ) ) ) ; value = org.jf.smali.LiteralTools.parseDouble ( ( DOUBLE_LITERAL196 != null ? DOUBLE_LITERAL196.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL206 = null ; try { { SHORT_LITERAL206 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3468 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL206 != null ? SHORT_LITERAL206.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private void transformStaticValues ( com.android.dex.Dex.Section in , com.android.dx.merge.IndexMap indexMap ) { ( contentsOut.encodedArrays.size ) ++ ; indexMap.putStaticValuesOffset ( in.getPosition ( ) , encodedArrayOut.getPosition ( ) ) ; indexMap.adjustEncodedArray ( in.readEncodedArray ( ) ) . writeTo ( encodedArrayOut ) ; }

Target:
private void transformStaticValues ( com.android.dex.Dex.Section in , com.android.dx.merge.IndexMap indexMap ) { ( contentsOut.encodedArrays.size ) ++ ; indexMap.putEncodedArrayValueOffset ( in.getPosition ( ) , encodedArrayOut.getPosition ( ) ) ; indexMap.adjustEncodedArray ( in.readEncodedArray ( ) ) . writeTo ( encodedArrayOut ) ; }
Source:
public void testPullNonExternalCall ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( ids.mCallId ) ; }

Target:
public void testPullNonExternalCall ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mCallId ) , org.mockito.Matchers.any ( ) ) ; }
Source:
public int createDefaultRequest ( int templateId , android.hardware.camera2.impl.CameraMetadataNative request ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "createDefaultRequest called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot create default request, device has been closed." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.ENODEV ; } android.hardware.camera2.impl.CameraMetadataNative template ; try { template = android.hardware.camera2.legacy.LegacyMetadataMapper.createRequestTemplate ( mCameraCharacteristics , templateId ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "createDefaultRequest - invalid templateId specified" ) ; return android.hardware.camera2.utils.CameraBinderDecorator.BAD_VALUE ; } request.swap ( template ) ; return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }

Target:
public int createDefaultRequest ( int templateId , android.hardware.camera2.impl.CameraMetadataNative request ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "createDefaultRequest called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot create default request, device has been closed." ) ; return - ( android.system.OsConstants.ENODEV ) ; } android.hardware.camera2.impl.CameraMetadataNative template ; try { template = android.hardware.camera2.legacy.LegacyMetadataMapper.createRequestTemplate ( mCameraCharacteristics , templateId ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "createDefaultRequest - invalid templateId specified" ) ; return android.hardware.camera2.utils.CameraBinderDecorator.BAD_VALUE ; } request.swap ( template ) ; return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }
Source:
private static void createStripDebugTask ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , final org.gradle.nativeplatform.SharedLibraryBinarySpec binary , final java.io.File buildDir , final com.android.build.gradle.internal.NdkHandler handler ) { java.lang.String taskName = com.android.build.gradle.ndk.internal.NdkNamingScheme.getTaskName ( binary , "stripSymbols" ) ; tasks.create ( taskName , com.android.build.gradle.tasks.StripDebugSymbolTask.class , new com.android.build.gradle.tasks.StripDebugSymbolTask.ConfigAction ( binary , buildDir , handler ) ) ; binary.getBuildTask ( ) . dependsOn ( taskName ) ; }

Target:
private static void createStripDebugTask ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , final org.gradle.nativeplatform.SharedLibraryBinarySpec binary , final java.io.File buildDir , final com.android.build.gradle.internal.NdkHandler handler , java.lang.String buildTaskName ) { final java.lang.String taskName = com.android.build.gradle.ndk.internal.NdkNamingScheme.getTaskName ( binary , "stripSymbols" ) ; tasks.create ( taskName , com.android.build.gradle.tasks.StripDebugSymbolTask.class , new com.android.build.gradle.tasks.StripDebugSymbolTask.ConfigAction ( binary , buildDir , handler ) ) ; tasks.named ( buildTaskName , new org.gradle.api.Action < org.gradle.api.Task > ( ) { @ java.lang.Override public void execute ( org.gradle.api.Task task ) { task.dependsOn ( taskName ) ; } } ) ; }
Source:
private boolean install ( libcore.tzdata.update2.ConfigBundle configBundle ) throws java.lang.Exception { return installer.install ( configBundle.getBundleBytes ( ) ) ; }

Target:
private void createTzDataFile ( java.io.File file , java.lang.String rulesVersion ) { byte [ ] bytes = new byte [ 12 ] ; byte [ ] headerBytes = ( "tzdata" + rulesVersion ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; java.lang.System.arraycopy ( headerBytes , 0 , bytes , 0 , headerBytes.length ) ; try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( file ) ) { fos.write ( bytes ) ; } catch ( java.io.IOException e ) { fail ( e.getMessage ( ) ) ; } }
Source:
private static java.util.Map < java.lang.String , com.android.builder.png.Chunk > compareChunks ( @ com.android.annotations.NonNull java.io.File original , @ com.android.annotations.NonNull java.io.File tested ) throws java.io.IOException , java.util.zip.DataFormatException { java.util.Map < java.lang.String , com.android.builder.png.Chunk > originalChunks = readChunks ( original ) ; java.util.Map < java.lang.String , com.android.builder.png.Chunk > testedChunks = readChunks ( tested ) ; com.android.builder.png.NinePatchAaptProcessorTest.compareChunk ( originalChunks , testedChunks , "IHDR" ) ; com.android.builder.png.NinePatchAaptProcessorTest.compareChunk ( originalChunks , testedChunks , "npLb" ) ; com.android.builder.png.NinePatchAaptProcessorTest.compareChunk ( originalChunks , testedChunks , "npTc" ) ; return testedChunks ; }

Target:
public static void tearDownAndCheck ( ) throws java.io.IOException , java.util.zip.DataFormatException { com.android.builder.png.NinePatchAaptProcessorTestUtils.tearDownAndCheck ( com.android.builder.png.NinePatchAaptProcessorTest.sCruncherKey.get ( ) , com.android.builder.png.NinePatchAaptProcessorTest.mSourceAndCrunchedFiles , com.android.builder.png.NinePatchAaptProcessorTest.sCruncher , com.android.builder.png.NinePatchAaptProcessorTest.sClassStartTime ) ; com.android.builder.png.NinePatchAaptProcessorTest.mSourceAndCrunchedFiles = null ; }
Source:
private void initLocalAddressAndPort ( ) { java.net.SocketAddress sa ; try { sa = Libcore.os.getsockname ( fd ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( sa ) ) ; localAddress = isa.getAddress ( ) ; localPort = isa.getPort ( ) ; if ( ( socket ) != null ) { socket.socketImpl ( ) . initLocalPort ( localPort ) ; } }

Target:
void onConnectStatusChanged ( java.net.InetSocketAddress address , int status , boolean updateSocketState ) { this . status = status ; connectAddress = address ; if ( ( ( status == ( java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED ) ) && updateSocketState ) && ( ( socket ) != null ) ) { socket.onConnect ( connectAddress.getAddress ( ) , connectAddress.getPort ( ) ) ; } }
Source:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
void verify ( ) { byte [ ] d = digest.digest ( ) ; if ( ! ( java.security.MessageDigest.isEqual ( d , libcore.io.Base64.decode ( hash ) ) ) ) { throw android.util.jar.StrictJarVerifier.invalidDigest ( java.util.jar.JarFile.MANIFEST_NAME , name , name ) ; } verifiedEntries.put ( name , certChains ) ; }

Target:
void verify ( ) { byte [ ] d = digest.digest ( ) ; if ( ! ( android.util.jar.StrictJarVerifier.verifyMessageDigest ( d , hash ) ) ) { throw android.util.jar.StrictJarVerifier.invalidDigest ( java.util.jar.JarFile.MANIFEST_NAME , name , name ) ; } verifiedEntries.put ( name , certChains ) ; }
Source:
public com.android.sdklib.BuildToolInfo getBuildTools ( ) { return mClient.getBuildTools ( this ) ; }

Target:
public com.android.ide.common.repository.GradleVersion getGradleModelVersion ( ) { if ( ( ( mGradleVersion ) == null ) && ( isGradleProject ( ) ) ) { com.android.builder.model.AndroidProject gradleProjectModel = getGradleProjectModel ( ) ; if ( gradleProjectModel != null ) { mGradleVersion = com.android.ide.common.repository.GradleVersion.tryParse ( gradleProjectModel.getModelVersion ( ) ) ; } } return mGradleVersion ; }
Source:
public void sendSmsFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.app.calllog.MissedCallNotifier.cancelSingleMissedCallNotification ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , com.android.dialer.util.IntentUtil.getSendSmsIntent ( number ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }

Target:
public void callBackFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.notification.missedcalls.MissedCallNotificationCanceller.cancelSingle ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.MISSED_CALL_NOTIFICATION ) ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }
Source:
public java.util.Set < vogar.tasks.Task > installTasks ( ) { java.util.Set < vogar.tasks.Task > result = new java.util.HashSet < vogar.tasks.Task > ( ) ; for ( java.io.File classpathElement : run.classpath.getElements ( ) ) { java.lang.String name = run.basenameOfJar ( classpathElement ) ; result.add ( new vogar.android.DexTask ( run.androidSdk , run.classpath , run.benchmark , name , classpathElement , null , run.localDexFile ( name ) ) ) ; } result.add ( new vogar.tasks.MkdirTask ( run.mkdir , dalvikCache ( ) ) ) ; return result ; }

Target:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex ) { vogar.tasks.Task dex ; if ( run.useJack ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } return dex ; }
Source:
public static boolean hasImageExtension ( java.lang.String path ) { return ( ( ( ( com.android.ide.eclipse.adt.AdtUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_PNG ) ) || ( com.android.ide.eclipse.adt.AdtUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_9PNG ) ) ) || ( com.android.ide.eclipse.adt.AdtUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_GIF ) ) ) || ( com.android.ide.eclipse.adt.AdtUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_JPG ) ) ) || ( com.android.ide.eclipse.adt.AdtUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_BMP ) ) ; }

Target:
public static boolean hasImageExtension ( java.lang.String path ) { return ( ( ( ( com.android.utils.SdkUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_PNG ) ) || ( com.android.utils.SdkUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_9PNG ) ) ) || ( com.android.utils.SdkUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_GIF ) ) ) || ( com.android.utils.SdkUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_JPG ) ) ) || ( com.android.utils.SdkUtils.endsWithIgnoreCase ( path , com.android.SdkConstants.DOT_BMP ) ) ; }
Source:
void downloadCallLog ( java.lang.String path ) { try { com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook request = new com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook ( path , mAccount , 0 , com.android.bluetooth.pbapclient.PbapClientConnectionHandler.VCARD_TYPE_30 , 0 , 0 ) ; request.execute ( mObexSession ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mPbapClientStateMachine.getContext ( ) , path ) ; processor.setResults ( request.getList ( ) ) ; processor.onPullComplete ( ) ; } catch ( java.io.IOException e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Download call log failure" ) ; } }

Target:
void downloadCallLog ( java.lang.String path , java.util.HashMap < java.lang.String , java.lang.Integer > callCounter ) { try { com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook request = new com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook ( path , mAccount , 0 , com.android.bluetooth.pbapclient.PbapClientConnectionHandler.VCARD_TYPE_30 , 0 , 0 ) ; request.execute ( mObexSession ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mPbapClientStateMachine.getContext ( ) , path , callCounter ) ; processor.setResults ( request.getList ( ) ) ; processor.onPullComplete ( ) ; } catch ( java.io.IOException e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Download call log failure" ) ; } }
Source:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTest.getLocales ( ) ; android.icu.util.TimeZone jst = android.icu.util.TimeZone.getTimeZone ( "Asia/Calcutta" ) ; android.icu.util.IndianCalendar [ ] calendars = new android.icu.util.IndianCalendar [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { calendars [ i ] = new android.icu.util.IndianCalendar ( jst , locales [ i ] ) ; } return calendars ; }

Target:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTestUtility.getLocales ( ) ; android.icu.util.TimeZone jst = android.icu.util.TimeZone.getTimeZone ( "Asia/Calcutta" ) ; android.icu.util.IndianCalendar [ ] calendars = new android.icu.util.IndianCalendar [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { calendars [ i ] = new android.icu.util.IndianCalendar ( jst , locales [ i ] ) ; } return calendars ; }
Source:
public static void expectDivisionByZero ( int value ) { try { Main.$opt$Div ( value , 0 ) ; throw new java.lang.Error ( "Expected RuntimeException when dividing by 0" ) ; } catch ( java.lang.RuntimeException e ) { } try { Main.$opt$DivZero ( value ) ; throw new java.lang.Error ( "Expected RuntimeException when dividing by 0" ) ; } catch ( java.lang.RuntimeException e ) { } }

Target:
public static void expectDivisionByZero ( int value ) { try { DivTest.$opt$Div ( value , 0 ) ; throw new java.lang.Error ( "Expected RuntimeException when dividing by 0" ) ; } catch ( java.lang.RuntimeException e ) { } try { DivTest.$opt$DivZero ( value ) ; throw new java.lang.Error ( "Expected RuntimeException when dividing by 0" ) ; } catch ( java.lang.RuntimeException e ) { } }
Source:
void addTimestamp ( android.media.AudioTrack track ) { android.media.AudioTimestamp timestamp = new android.media.AudioTimestamp ( ) ; boolean gotTimestamp = track.getTimestamp ( timestamp ) ; if ( gotTimestamp ) { if ( ( mPreviousTimestamp ) != null ) { if ( ( ( timestamp.framePosition ) > 0 ) && ( ( timestamp.nanoTime ) != ( mPreviousTimestamp.nanoTime ) ) ) { mTimestamps.add ( timestamp ) ; } } mPreviousTimestamp = timestamp ; } }

Target:
void addTimestamp ( android.media.AudioTrack track ) { android.media.AudioTimestamp timestamp = new android.media.AudioTimestamp ( ) ; boolean gotTimestamp = track.getTimestamp ( timestamp ) ; if ( gotTimestamp ) { if ( ( ( ( mPreviousTimestamp ) != null ) && ( ( timestamp.framePosition ) > 0 ) ) && ( ( ( timestamp.nanoTime ) != ( mPreviousTimestamp.nanoTime ) ) || ( ( timestamp.framePosition ) != ( mPreviousTimestamp.framePosition ) ) ) ) { mTimestamps.add ( timestamp ) ; } mPreviousTimestamp = timestamp ; } }
Source:
public void onContactPhotoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { com.android.server.telecom.Log.w ( this , ( "CallerInfo query for photo returned " + "with different handle." ) ) ; return ; } com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; }

Target:
public void onContactPhotoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { android.telecom.Log.w ( this , ( "CallerInfo query for photo returned " + "with different handle." ) ) ; return ; } com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; }
Source:
public void setDiscoverableTimeout ( int timeout ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) mService.setDiscoverableTimeout ( timeout ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } }

Target:
public void setDiscoverableTimeout ( int timeout ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) mService.setDiscoverableTimeout ( timeout ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } }
Source:
private static void indent ( java.lang.StringBuilder sb , int indent ) { for ( int i = 0 ; i < indent ; i ++ ) { sb.append ( " " ) ; } }

Target:
public static boolean hasElementChildren ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { org.w3c.dom.NodeList children = node.getChildNodes ( ) ; for ( int i = 0 , n = children.getLength ( ) ; i < n ; i ++ ) { if ( ( children.item ( i ) . getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ) { return true ; } } return false ; }
Source:
public final short getCUnit ( ) { int c = getC ( ) ; if ( ( c & ( ~ 65535 ) ) != 0 ) { throw new com.android.jack.dx.util.DexException ( ( "Register C out of range: " + ( com.android.jack.dx.util.Hex.u8 ( c ) ) ) ) ; } return ( ( short ) ( c ) ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex ) { return withIndex ( newFirstIndex , 0 ) ; }
Source:
private java.util.Map.Entry < java.lang.String , com.android.server.wifi.nan.WifiNanDataPathStateManager.NanNetworkRequestInformation > getNetworkRequestByNdpId ( int ndpId ) { for ( java.util.Map.Entry < java.lang.String , com.android.server.wifi.nan.WifiNanDataPathStateManager.NanNetworkRequestInformation > entry : mNetworkRequestsCache.entrySet ( ) ) { if ( ( entry.getValue ( ) . ndpId ) == ndpId ) { return entry ; } } return null ; }

Target:
private java.util.Map.Entry < java.lang.String , com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation > getNetworkRequestByNdpId ( int ndpId ) { for ( java.util.Map.Entry < java.lang.String , com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation > entry : mNetworkRequestsCache.entrySet ( ) ) { if ( ( entry.getValue ( ) . ndpId ) == ndpId ) { return entry ; } } return null ; }
Source:
public void onFocusChanged ( final boolean focused , final int direction , final android.graphics.Rect previouslyFocusedRect ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onFocusChanged ( focused , direction , previouslyFocusedRect ) ; } } ) ; return ; } mAwContents.onFocusChanged ( focused , direction , previouslyFocusedRect ) ; }

Target:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.onSizeChanged ( w , h , ow , oh ) ; }
Source:
public void testAllTypes ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addInfo ( "merging info" ) . addWarning ( "something weird happened" ) . addError ( "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }

Target:
public void testAllTypes ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addMessage ( mSourceLocation , 0 , 0 , Severity.INFO , "merging info" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.WARNING , "something weird happened" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.ERROR , "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }

Target:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { try { com.android.sched.vfs.InputVFS currentSectionVFS = getSectionVFS ( fileType ) ; currentSectionVFS.getRootInputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
private static java.lang.IllegalArgumentException newValueTooLargeException ( java.lang.String key , java.lang.String value ) { return new java.lang.IllegalArgumentException ( ( ( ( ( ( "value of system property '" + key ) + "' is longer than " ) + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) + " characters: " ) + value ) ) ; }

Target:
public static void set ( @ android.annotation.NonNull java.lang.String key , @ android.annotation.Nullable java.lang.String val ) { if ( ( val != null ) && ( ( val.length ( ) ) > ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( ( "value of system property '" + key ) + "' is longer than " ) + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) + " characters: " ) + val ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; android.os.SystemProperties.native_set ( key , val ) ; }
Source:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( options , configHooks ) ; }

Target:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { assert ( api ) != null ; com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( api , options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( api , options , configHooks ) ; }
Source:
private void dismissDialogs ( ) { if ( ( mAdbDialog ) != null ) { mAdbDialog.dismiss ( ) ; mAdbDialog = null ; } if ( ( mAdbKeysDialog ) != null ) { mAdbKeysDialog.dismiss ( ) ; mAdbKeysDialog = null ; } if ( ( mEnableDialog ) != null ) { mEnableDialog.dismiss ( ) ; mEnableDialog = null ; } }

Target:
private void dismissDialogs ( ) { if ( ( mAdbDialog ) != null ) { mAdbDialog.dismiss ( ) ; mAdbDialog = null ; } if ( ( mAdbKeysDialog ) != null ) { mAdbKeysDialog.dismiss ( ) ; mAdbKeysDialog = null ; } if ( ( mEnableDialog ) != null ) { mEnableDialog.dismiss ( ) ; mEnableDialog = null ; } if ( ( mLogpersistClearDialog ) != null ) { mLogpersistClearDialog.dismiss ( ) ; mLogpersistClearDialog = null ; } }
Source:
public void onPause ( ) { super . onPause ( ) ; if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "onPause:+" ) ; if ( ( com.android.ims.ImsManager.isVolteEnabledByPlatform ( getActivity ( ) ) ) && ( com.android.ims.ImsManager.isVolteProvisionedOnDevice ( getActivity ( ) ) ) ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( getActivity ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; tm.listen ( mPhoneStateListener , PhoneStateListener.LISTEN_NONE ) ; } mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangeListener ) ; if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "onPause:-" ) ; }

Target:
public void onPause ( ) { super . onPause ( ) ; if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "onPause:+" ) ; mTelephonyManager.listen ( mPhoneStateListener , PhoneStateListener.LISTEN_NONE ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangeListener ) ; if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "onPause:-" ) ; }
Source:
public void createUserData ( java.lang.String uuid , int userId , int userSerial , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.createUserData ( uuid , userId , userSerial , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void clearAppProfiles ( java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.clearAppProfiles ( packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
private static boolean isShortCode ( java.lang.String dialString , com.android.internal.telephony.gsm.GsmCdmaPhone phone ) { if ( dialString == null ) { return false ; } if ( ( dialString.length ( ) ) == 0 ) { return false ; } if ( android.telephony.PhoneNumberUtils.isLocalEmergencyNumber ( phone.getContext ( ) , dialString ) ) { return false ; } else { return com.android.internal.telephony.gsm.GsmMmiCode.isShortCodeUSSD ( dialString , phone ) ; } }

Target:
private static boolean isShortCode ( java.lang.String dialString , com.android.internal.telephony.GsmCdmaPhone phone ) { if ( dialString == null ) { return false ; } if ( ( dialString.length ( ) ) == 0 ) { return false ; } if ( android.telephony.PhoneNumberUtils.isLocalEmergencyNumber ( phone.getContext ( ) , dialString ) ) { return false ; } else { return com.android.internal.telephony.gsm.GsmMmiCode.isShortCodeUSSD ( dialString , phone ) ; } }
Source:
public void setVar ( int index , android.support.v8.renderscript.FieldPacker v , android.support.v8.renderscript.Element e , int [ ] dims ) { mRS.nScriptSetVarVE ( getID ( mRS ) , index , v.getData ( ) , e.getID ( mRS ) , dims ) ; }

Target:
public void setVar ( int index , android.support.v8.renderscript.FieldPacker v , android.support.v8.renderscript.Element e , int [ ] dims ) { if ( mUseIncSupp ) { long dElement = e.getDummyElement ( mRS ) ; mRS.nScriptSetVarVE ( getID ( mRS ) , index , v.getData ( ) , dElement , dims , mUseIncSupp ) ; } else { mRS.nScriptSetVarVE ( getID ( mRS ) , index , v.getData ( ) , e.getID ( mRS ) , dims , mUseIncSupp ) ; } }
Source:
public void fromJson_parsesJsonConfigWithoutMetadata ( ) throws java.lang.Exception { com.example.android.systemupdatersample.UpdateConfig config = com.example.android.systemupdatersample.UpdateConfig.fromJson ( com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING ) ; org.junit.Assert.assertEquals ( "name is parsed" , "vip update" , config.getName ( ) ) ; org.junit.Assert.assertEquals ( "stores raw json" , com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING , config.getRawJson ( ) ) ; org.junit.Assert.assertSame ( "type is parsed" , UpdateConfig.TYPE_NON_STREAMING , config.getInstallType ( ) ) ; org.junit.Assert.assertEquals ( "url is parsed" , "file:///builds/a.zip" , config.getUrl ( ) ) ; }

Target:
public void fromJson_parsesNonStreaming ( ) throws java.lang.Exception { com.example.android.systemupdatersample.UpdateConfig config = com.example.android.systemupdatersample.UpdateConfig.fromJson ( com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING ) ; org.junit.Assert.assertEquals ( "name is parsed" , "vip update" , config.getName ( ) ) ; org.junit.Assert.assertEquals ( "stores raw json" , com.example.android.systemupdatersample.UpdateConfigTest.JSON_NON_STREAMING , config.getRawJson ( ) ) ; org.junit.Assert.assertSame ( "type is parsed" , UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING , config.getInstallType ( ) ) ; org.junit.Assert.assertEquals ( "url is parsed" , "file:///builds/a.zip" , config.getUrl ( ) ) ; }
Source:
synchronized void nAllocationResize2D ( int id , int dimX , int dimY ) { validate ( ) ; rsnAllocationResize2D ( mContext , id , dimX , dimY ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
private void processStartPackageCommand ( com.android.cts.CommandParser cp ) { try { java.lang.String pathName = cp.getValue ( CTSCommand.OPTION_PACKAGE ) ; mHost.startZippedPackage ( pathName ) ; } catch ( com.android.cts.DeviceDisconnectedException e ) { com.android.cts.Log.e ( ( ( "Device " + ( e.getMessage ( ) ) ) + " disconnected" ) , e ) ; } catch ( java.lang.Exception e ) { com.android.cts.Log.e ( "Met exception during running zipped package." , e ) ; } }

Target:
private void processStartPackageCommand ( com.android.cts.CommandParser cp ) { try { java.lang.String pathName = cp.getValue ( CTSCommand.OPTION_PACKAGE ) ; mHost.startZippedPackage ( pathName , getProfile ( cp ) ) ; } catch ( com.android.cts.DeviceDisconnectedException e ) { com.android.cts.Log.e ( ( ( "Device " + ( e.getMessage ( ) ) ) + " disconnected" ) , e ) ; } catch ( java.lang.Exception e ) { com.android.cts.Log.e ( "Met exception during running zipped package." , e ) ; } }
Source:
private static void loadAlternateFormatsMetadataFromFile ( int countryCallingCode ) { java.lang.String fileName = ( ( com.google.i18n.phonenumbers.MetadataManager.ALTERNATE_FORMATS_FILE_PREFIX ) + "_" ) + countryCallingCode ; java.io.InputStream source = com.google.i18n.phonenumbers.MetadataManager.class . getResourceAsStream ( fileName ) ; if ( source == null ) { throw new java.lang.IllegalStateException ( ( "missing metadata: " + fileName ) ) ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection alternateFormats = com.google.i18n.phonenumbers.MetadataManager.loadMetadataAndCloseInput ( source ) ; for ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata : alternateFormats.getMetadataList ( ) ) { com.google.i18n.phonenumbers.MetadataManager.callingCodeToAlternateFormatsMap.put ( metadata.getCountryCode ( ) , metadata ) ; } }

Target:
public java.io.InputStream loadMetadata ( java.lang.String metadataFileName ) { return com.google.i18n.phonenumbers.MetadataManager.class . getResourceAsStream ( metadataFileName ) ; }
Source:
public com.android.internal.telephony.uicc.IccFileHandler getIccFileHandler ( ) { synchronized ( mLock ) { if ( ( mUiccApplication ) != null ) { return mUiccApplication.getIccFileHandler ( ) ; } return null ; } }

Target:
private void registerAllAppEvents ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) log ( "registerUiccCardEvents: registering for EVENT_APP_READY" ) ; app.registerForReady ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_APP_READY , null ) ; com.android.internal.telephony.uicc.IccRecords ir = app.getIccRecords ( ) ; if ( ir != null ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) log ( "registerUiccCardEvents: registering for EVENT_RECORDS_LOADED" ) ; ir.registerForRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_RECORDS_LOADED , null ) ; ir.registerForRecordsEvents ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_RECORD_EVENTS , null ) ; } } } }
Source:
public boolean isOpened ( int slotId , int featureType ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , "isOpened" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.isOpened ( ) ; } } return false ; }

Target:
public boolean isOpened ( int slotId , int featureType ) throws android.os.RemoteException { enforceReadPhoneStatePermission ( "isOpened" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.isOpened ( ) ; } } return false ; }
Source:
public void testAssumptionFailure ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { testFailed ( test , trace ) ; }

Target:
public void testAssumptionFailure ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( "\n%1$s > %2$s[%3$s] [33mSKIPPED [0m\n%4$s" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName , getModifiedTrace ( trace ) ) ; } super . testAssumptionFailure ( test , trace ) ; }
Source:
private com.android.dx.dex.code.Dop [ ] makeOpcodesArray ( ) { int size = insns.size ( ) ; com.android.dx.dex.code.Dop [ ] result = new com.android.dx.dex.code.Dop [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { result [ i ] = insns.get ( i ) . getOpcode ( ) ; } return result ; }

Target:
private com.android.dx.dex.code.Dop [ ] makeOpcodesArray ( ) { int size = insns.size ( ) ; com.android.dx.dex.code.Dop [ ] result = new com.android.dx.dex.code.Dop [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { com.android.dx.dex.code.DalvInsn insn = insns.get ( i ) ; result [ i ] = insn.getOpcode ( ) ; } return result ; }
Source:
public void stop ( ) { if ( ( mCacheDispatcher ) != null ) { mCacheDispatcher.quit ( ) ; } for ( int i = 0 ; i < ( mDispatchers.length ) ; i ++ ) { if ( ( mDispatchers [ i ] ) != null ) { mDispatchers [ i ] . quit ( ) ; } } }

Target:
public void stop ( ) { if ( ( mCacheDispatcher ) != null ) { mCacheDispatcher.quit ( ) ; } for ( final com.android.volley.NetworkDispatcher mDispatcher : mDispatchers ) { if ( mDispatcher != null ) { mDispatcher.quit ( ) ; } } }
Source:
public void sendEmergencyCallStateChange ( boolean callActive ) { if ( mBroadcastEmergencyCallStateChanges ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_EMERGENCY_CALL , callActive ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , ( "sendEmergencyCallStateChange: callActive " + callActive ) ) ; } }

Target:
public void sendEmergencyCallStateChange ( boolean callActive ) { if ( mBroadcastEmergencyCallStateChanges ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_EMERGENCY_CALL , callActive ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManager.broadcastStickyIntent ( intent , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , ( "sendEmergencyCallStateChange: callActive " + callActive ) ) ; } }
Source:
public void removeParticipants ( java.lang.String [ ] participants ) throws com.android.ims.ImsException { logi ( ( "removeParticipants :: session=" + ( mSession ) ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "removeParticipants :: " ) ; throw new com.android.ims.ImsException ( "No call session" , ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED ) ; } mSession.removeParticipants ( participants ) ; } }

Target:
public void sendUssd ( java.lang.String ussdMessage ) throws com.android.ims.ImsException { logi ( ( "sendUssd :: ussdMessage=" + ussdMessage ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendUssd :: " ) ; throw new com.android.ims.ImsException ( "No call session" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED ) ; } mSession.sendUssd ( ussdMessage ) ; } }
Source:
private static float getMdpiScalingFactor ( java.lang.String folderName ) { if ( folderName.contains ( "-mdpi" ) ) { return 1.0F ; } else if ( folderName.contains ( "-hdpi" ) ) { return 1.5F ; } else if ( folderName.contains ( "-xhdpi" ) ) { return 2.0F ; } else if ( folderName.contains ( "-ldpi" ) ) { return 0.75F ; } else { return 0.0F ; } }

Target:
private static float getMdpiScalingFactor ( java.lang.String folderName ) { if ( folderName.contains ( "-mdpi" ) ) { return 1.0F ; } else if ( folderName.contains ( "-hdpi" ) ) { return 1.5F ; } else if ( folderName.contains ( "-xhdpi" ) ) { return 2.0F ; } else if ( folderName.contains ( "-xxhdpi" ) ) { return 3.0F ; } else if ( folderName.contains ( "-ldpi" ) ) { return 0.75F ; } else { return 0.0F ; } }
Source:
private byte [ ] hash ( byte [ ] input ) { _digest.update ( input , 0 , input.length ) ; byte [ ] hash = new byte [ _digest.getDigestSize ( ) ] ; _digest.doFinal ( hash , 0 ) ; return hash ; }

Target:
private void doHash ( byte [ ] input , byte [ ] output ) { _digest.update ( input , 0 , input.length ) ; _digest.doFinal ( output , 0 ) ; }
Source:
public boolean removeAll ( java.util.Collection < ? > c ) { return com.google.common.collect.Sets.removeAllImpl ( this , c.iterator ( ) ) ; }

Target:
public static < K , V > com.google.common.collect.SetMultimap < K , V > filterEntries ( com.google.common.collect.SetMultimap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.FilteredSetMultimap ? com.google.common.collect.Multimaps.filterFiltered ( ( ( com.google.common.collect.FilteredSetMultimap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.FilteredEntrySetMultimap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }
Source:
public void test_with_adjustment_LocalDateTime ( ) { java.time.OffsetDateTime test = TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 19 , 15 ) ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 19 , 15 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }

Target:
public void test_with_adjustment_LocalDateTime ( ) { java.time.OffsetDateTime test = tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 19 , 15 ) ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 19 , 15 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }