auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static com.android.builder.model.BuildType cloneBuildType ( com.android.builder.model.BuildType buildType ) { com.android.build.gradle.internal.model.BuildTypeImpl clonedBuildType = new com.android.build.gradle.internal.model.BuildTypeImpl ( ) ; clonedBuildType.name = buildType.getName ( ) ; clonedBuildType.debuggable = buildType.isDebuggable ( ) ; clonedBuildType.jniDebugBuild = buildType.isJniDebugBuild ( ) ; clonedBuildType.renderscriptDebugBuild = buildType.isRenderscriptDebugBuild ( ) ; clonedBuildType.renderscriptOptimLevel = buildType.getRenderscriptOptimLevel ( ) ; clonedBuildType.packageNameSuffix = buildType.getPackageNameSuffix ( ) ; clonedBuildType.versionNameSuffix = buildType.getVersionNameSuffix ( ) ; clonedBuildType.runProguard = buildType.isRunProguard ( ) ; clonedBuildType.zipAlign = buildType.isZipAlign ( ) ; return clonedBuildType ; }

Target:
static com.android.build.gradle.internal.model.BuildTypeImpl cloneBuildType ( com.android.builder.model.BuildType buildType ) { com.android.build.gradle.internal.model.BuildTypeImpl clonedBuildType = new com.android.build.gradle.internal.model.BuildTypeImpl ( ) ; clonedBuildType.name = buildType.getName ( ) ; clonedBuildType.debuggable = buildType.isDebuggable ( ) ; clonedBuildType.jniDebugBuild = buildType.isJniDebugBuild ( ) ; clonedBuildType.renderscriptDebugBuild = buildType.isRenderscriptDebugBuild ( ) ; clonedBuildType.renderscriptOptimLevel = buildType.getRenderscriptOptimLevel ( ) ; clonedBuildType.packageNameSuffix = buildType.getPackageNameSuffix ( ) ; clonedBuildType.versionNameSuffix = buildType.getVersionNameSuffix ( ) ; clonedBuildType.runProguard = buildType.isRunProguard ( ) ; clonedBuildType.zipAlign = buildType.isZipAlign ( ) ; return clonedBuildType ; }
Source:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; 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.mConnectionId ) , org.mockito.Matchers.any ( ) ) ; }

Target:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.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.mConnectionId ) , org.mockito.Matchers.any ( ) ) ; }
Source:
public void test_getHandshakeStatus ( ) throws java.security.NoSuchAlgorithmException { javax.net.ssl.SSLEngine sse = getEngine ( ) ; try { assertEquals ( sse.getHandshakeStatus ( ) . toString ( ) , "NOT_HANDSHAKING" ) ; sse.setUseClientMode ( true ) ; sse.beginHandshake ( ) ; assertEquals ( sse.getHandshakeStatus ( ) . toString ( ) , "NEED_WRAP" ) ; } catch ( java.lang.Exception ex ) { fail ( ( "Unexpected exception " + ex ) ) ; } }

Target:
public void test_getHandshakeStatus ( ) throws java.lang.Exception { javax.net.ssl.SSLEngine sse = getEngine ( ) ; assertEquals ( sse.getHandshakeStatus ( ) . toString ( ) , "NOT_HANDSHAKING" ) ; sse.setUseClientMode ( true ) ; sse.beginHandshake ( ) ; assertEquals ( sse.getHandshakeStatus ( ) . toString ( ) , "NEED_WRAP" ) ; }
Source:
static int amToHfVol ( int amVol ) { int amRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int hfOffset = ( hfRange * ( amVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ) ) / amRange ; int hfVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) + hfOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "AM -> HF " + amVol ) + " " ) + hfVol ) ) ; return hfVol ; }

Target:
static int amToHfVol ( int amVol ) { int amRange = ( ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) > ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ) ? ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) : 1 ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int hfOffset = ( hfRange * ( amVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ) ) / amRange ; int hfVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) + hfOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "AM -> HF " + amVol ) + " " ) + hfVol ) ) ; return hfVol ; }
Source:
void awaitTermination ( java.lang.Thread t , long timeoutMillis ) { try { t.join ( timeoutMillis ) ; } catch ( java.lang.InterruptedException ie ) { threadUnexpectedException ( ie ) ; } finally { if ( ( t.getState ( ) ) != ( java.lang.Thread.State.TERMINATED ) ) { t.interrupt ( ) ; fail ( "Test timed out" ) ; } } }

Target:
void awaitTermination ( java.lang.Thread t , long timeoutMillis ) { try { t.join ( timeoutMillis ) ; } catch ( java.lang.InterruptedException fail ) { threadUnexpectedException ( fail ) ; } finally { if ( ( t.getState ( ) ) != ( java.lang.Thread.State.TERMINATED ) ) { t.interrupt ( ) ; fail ( "Test timed out" ) ; } } }
Source:
public void testFind_exception ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.find ( anyInt ( ) ) ) . thenThrow ( mRemoteException ) ; assertFalse ( mDut.find ( ) ) ; assertFalse ( mDut.isInitializationComplete ( ) ) ; }

Target:
public void testFind_exception ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.find ( anyInt ( ) ) ) . thenThrow ( mRemoteException ) ; assertFalse ( mDut.find ( 0 ) ) ; assertFalse ( mDut.isInitializationComplete ( ) ) ; }
Source:
private void testRaLifetime ( android.net.apf.ApfTest.TestApfFilter apfFilter , android.net.apf.ApfTest.MockIpManagerCallback ipManagerCallback , java.nio.ByteBuffer packet , int lifetime ) throws android.system.ErrnoException , java.io.IOException { ipManagerCallback.resetApfProgramWait ( ) ; apfFilter.pretendPacketReceived ( packet.array ( ) ) ; byte [ ] program = ipManagerCallback.getApfProgram ( ) ; verifyRaLifetime ( program , packet , lifetime ) ; }

Target:
private void verifyRaLifetime ( android.net.apf.ApfTest.TestApfFilter apfFilter , android.net.apf.ApfTest.MockIpManagerCallback ipManagerCallback , java.nio.ByteBuffer packet , int lifetime ) throws android.system.ErrnoException , java.io.IOException { ipManagerCallback.resetApfProgramWait ( ) ; apfFilter.pretendPacketReceived ( packet.array ( ) ) ; byte [ ] program = ipManagerCallback.getApfProgram ( ) ; verifyRaLifetime ( program , packet , lifetime ) ; }
Source:
public boolean equalsOnTheAir ( java.lang.Object o ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof android.net.wifi.nan.ConfigRequest ) ) { return false ; } android.net.wifi.nan.ConfigRequest lhs = ( ( android.net.wifi.nan.ConfigRequest ) ( o ) ) ; return ( ( ( ( mSupport5gBand ) == ( lhs.mSupport5gBand ) ) && ( ( mMasterPreference ) == ( lhs.mMasterPreference ) ) ) && ( ( mClusterLow ) == ( lhs.mClusterLow ) ) ) && ( ( mClusterHigh ) == ( lhs.mClusterHigh ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof android.net.wifi.nan.ConfigRequest ) ) { return false ; } android.net.wifi.nan.ConfigRequest lhs = ( ( android.net.wifi.nan.ConfigRequest ) ( o ) ) ; return ( ( ( ( mSupport5gBand ) == ( lhs.mSupport5gBand ) ) && ( ( mMasterPreference ) == ( lhs.mMasterPreference ) ) ) && ( ( mClusterLow ) == ( lhs.mClusterLow ) ) ) && ( ( mClusterHigh ) == ( lhs.mClusterHigh ) ) ; }
Source:
private void extractSharpImage ( java.lang.String name ) { android.graphics.Bitmap mBitmap = android.graphics.Bitmap.createBitmap ( buffers.inputImage.getWidth ( ) , buffers.inputImage.getHeight ( ) , Bitmap.Config.ARGB_8888 ) ; android.renderscript.Allocation mAllocation = android.renderscript.Allocation.createFromBitmap ( renderScript , mBitmap ) ; scriptC.forEach_PackSharpImage ( mAllocation ) ; mAllocation.copyTo ( mBitmap ) ; android.renderscript.cts.refocus.MediaStoreSaver.savePNG ( mBitmap , "sharpF32" , name , renderScript.getApplicationContext ( ) ) ; mAllocation.destroy ( ) ; }

Target:
private void extractSharpImage ( java.lang.String name ) { android.graphics.Bitmap mBitmap = android.graphics.Bitmap.createBitmap ( buffers.inputImage.getWidth ( ) , buffers.inputImage.getHeight ( ) , Bitmap.Config.ARGB_8888 ) ; android.renderscript.Allocation mAllocation = android.renderscript.Allocation.createFromBitmap ( renderScript , mBitmap ) ; scriptC.forEach_PackSharpImage ( mAllocation ) ; mAllocation.copyTo ( mBitmap ) ; mAllocation.destroy ( ) ; android.renderscript.cts.refocus.MediaStoreSaver.savePNG ( mBitmap , "sharpF32" , name , renderScript.getApplicationContext ( ) ) ; mAllocation.destroy ( ) ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , proguardFlagFiles ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , proguardFlagFiles ) ; }
Source:
public java.lang.String getPackageForToken ( android.os.IBinder token ) { synchronized ( this ) { int index = indexOfTokenLocked ( token , false ) ; if ( index >= 0 ) { com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; return r.packageName ; } return null ; } }

Target:
public java.lang.String getPackageForToken ( android.os.IBinder token ) { synchronized ( this ) { int index = indexOfTokenLocked ( token ) ; if ( index >= 0 ) { com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; return r.packageName ; } return null ; } }
Source:
public static int calculateDurationInMilis ( com.android.internal.telephony.cat.Duration duration ) { int timeout = 0 ; if ( duration != null ) { switch ( duration.timeUnit ) { case MINUTE : timeout = 1000 * 60 ; break ; case TENTH_SECOND : timeout = 1000 * 10 ; break ; case SECOND : default : timeout = 1000 ; break ; } timeout *= duration.timeInterval ; } return timeout ; }

Target:
public static int calculateDurationInMilis ( com.android.internal.telephony.cat.Duration duration ) { int timeout = 0 ; if ( duration != null ) { switch ( duration.timeUnit ) { case MINUTE : timeout = 1000 * 60 ; break ; case TENTH_SECOND : timeout = 1000 / 10 ; break ; case SECOND : default : timeout = 1000 ; break ; } timeout *= duration.timeInterval ; } return timeout ; }
Source:
public static void setFlags ( int id , int flags , final boolean markAsChange ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; if ( markAsChange ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; } com.intellij.openapi.vfs.newvfs.persistent.FSRecords.putRecordInt ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.FLAGS_OFFSET , flags ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void setFlags ( int id , int flags , final boolean markAsChange ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { if ( markAsChange ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; } com.intellij.openapi.vfs.newvfs.persistent.FSRecords.putRecordInt ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.FLAGS_OFFSET , flags ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
public boolean contains ( java.lang.Object o ) { int index ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { index = indexOf ( o ) ; } finally { lock.unlock ( ) ; } return index != ( - 1 ) ; }

Target:
public boolean contains ( java.lang.Object o ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { return ( indexOf ( o ) ) != ( - 1 ) ; } finally { lock.unlock ( ) ; } }
Source:
public void run ( ) { try { V value = com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly ( future ) ; callback.onSuccess ( value ) ; } catch ( java.util.concurrent.ExecutionException e ) { callback.onFailure ( e.getCause ( ) ) ; } catch ( java.lang.RuntimeException e ) { callback.onFailure ( e ) ; } catch ( java.lang.Error e ) { callback.onFailure ( e ) ; } }

Target:
public void run ( ) { final V value ; try { value = com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly ( future ) ; } catch ( java.util.concurrent.ExecutionException e ) { callback.onFailure ( e.getCause ( ) ) ; return ; } catch ( java.lang.RuntimeException e ) { callback.onFailure ( e ) ; return ; } catch ( java.lang.Error e ) { callback.onFailure ( e ) ; return ; } callback.onSuccess ( value ) ; }
Source:
public void filterNodes ( java.lang.String filterText ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode tree = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getTree ( ) ; if ( tree != null ) { tree.viewNode.filter ( filterText ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } }

Target:
public void filterNodes ( java.lang.String filterText ) { this . filterText = filterText ; com.android.hierarchyviewerlib.ui.util.DrawableViewNode tree = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getTree ( ) ; if ( tree != null ) { tree.viewNode.filter ( filterText ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } }
Source:
public boolean cancelBondProcess ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "cancelBondProcess() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.cancelBondProcess ( device ) ; }

Target:
public boolean cancelBondProcess ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "cancelBondProcess() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return false ; } return service.cancelBondProcess ( device ) ; }
Source:
public final void testLocalSdkTest_getPkgInfo_Docs ( ) { assertNull ( mLS.getPkgInfo ( PkgType.PKG_DOC ) ) ; mLS.clearLocalPkg ( PkgType.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/docs" ) ; mFOp.recordExistingFile ( "/sdk/docs/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( ( "Archive.Os=ANY\n" + "AndroidVersion.ApiLevel=18\n" ) + "Pkg.Revision=2\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://example.com/repository-8.xml" ) ) ) ; mFOp.recordExistingFile ( "/sdk/docs/index.html" , "placeholder" ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( PkgType.PKG_DOC ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalDocPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/docs" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pi.getDesc ( ) . getMajorRevision ( ) ) ; assertEquals ( "<LocalDocPkgInfo <PkgDesc Type=doc Android=API 18 MajorRev=2>>" , pi.toString ( ) ) ; assertEquals ( "Documentation for Android SDK 18, rev 2" , pi.getListDescription ( ) ) ; assertSame ( pi , mLS.getPkgInfo ( pi.getDesc ( ) ) ) ; }

Target:
public final void testLocalSdkTest_getPkgInfo_Docs ( ) { assertNull ( mLS.getPkgInfo ( PkgType.PKG_DOC ) ) ; mLS.clearLocalPkg ( PkgType.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/docs" ) ; mFOp.recordExistingFile ( "/sdk/docs/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( ( "Archive.Os=ANY\n" + "AndroidVersion.ApiLevel=18\n" ) + "Pkg.Revision=2\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://example.com/repository-8.xml" ) ) ) ; mFOp.recordExistingFile ( "/sdk/docs/index.html" , "placeholder" ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( PkgType.PKG_DOC ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalDocPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/docs" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.MajorRevision ( 2 ) , pi.getDesc ( ) . getMajorRevision ( ) ) ; assertEquals ( "<LocalDocPkgInfo <PkgDesc Type=doc Android=API 18 MajorRev=2>>" , pi.toString ( ) ) ; assertEquals ( "Documentation for Android SDK" , pi.getListDescription ( ) ) ; assertSame ( pi , mLS.getPkgInfo ( pi.getDesc ( ) ) ) ; }
Source:
public java.util.Collection < com.android.tools.idea.wizard.WizardPath > createWizardPaths ( @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.NewModuleWizardState wizardState , @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.TemplateWizardStep.UpdateListener updateListener , @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.Nullable javax.swing.Icon sidePanelIcon , @ org.jetbrains.annotations.NotNull com.intellij.openapi.Disposable disposable ) { if ( ! ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isInternal ( ) ) ) { return java.util.Collections.emptyList ( ) ; } return java.util.Collections.< com.android.tools.idea.wizard.WizardPath > singleton ( new com.google.gct.idea.appengine.wizard.BackendWizardPath ( project , wizardState , updateListener , sidePanelIcon ) ) ; }

Target:
public java.util.Collection < com.android.tools.idea.wizard.WizardPath > createWizardPaths ( @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.NewModuleWizardState wizardState , @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.TemplateWizardStep.UpdateListener updateListener , @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.Nullable javax.swing.Icon sidePanelIcon , @ org.jetbrains.annotations.NotNull com.intellij.openapi.Disposable disposable ) { if ( ( project == null ) || ( ! ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isInternal ( ) ) ) ) { return java.util.Collections.emptyList ( ) ; } return java.util.Collections.< com.android.tools.idea.wizard.WizardPath > singleton ( new com.google.gct.idea.appengine.wizard.BackendWizardPath ( project , wizardState , updateListener , sidePanelIcon ) ) ; }
Source:
private boolean isPublicNullaryConstructor ( com.intellij.psi.PsiMethod method ) { if ( ( method.getParameterList ( ) . getParametersCount ( ) ) > 0 ) { return false ; } com.intellij.psi.PsiModifierList modifierList = method.getModifierList ( ) ; if ( ! ( modifierList.hasModifierProperty ( PsiModifier.PUBLIC ) ) ) { return false ; } return true ; }

Target:
private boolean isPublicNullaryConstructor ( com.intellij.psi.PsiMethod method ) { if ( ( method.getParameterList ( ) . getParametersCount ( ) ) > 0 ) { return false ; } com.intellij.psi.PsiModifierList modifierList = method.getModifierList ( ) ; if ( modifierList.hasModifierProperty ( PsiModifier.PUBLIC ) ) { return true ; } return false ; }
Source:
protected void onLayout ( boolean changed , int l , int t , int r , int b ) { if ( ! changed ) { return ; } int childCount = getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { android.view.View child = getChildAt ( i ) ; child.layout ( 0 , 0 , child.getMeasuredWidth ( ) , child.getMeasuredHeight ( ) ) ; } }

Target:
protected void onLayout ( boolean changed , int l , int t , int r , int b ) { int childCount = getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { android.view.View child = getChildAt ( i ) ; child.layout ( 0 , 0 , child.getMeasuredWidth ( ) , child.getMeasuredHeight ( ) ) ; } }
Source:
public void test_ConstructorLjava_io_InputStream ( ) { s = new java.util.Scanner ( new java.io.PipedInputStream ( ) ) ; assertNotNull ( s ) ; s.close ( ) ; try { s = new java.util.Scanner ( ( ( java.io.InputStream ) ( null ) ) ) ; fail ( "Should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_ConstructorLjava_io_InputStream ( ) { s = new java.util.Scanner ( new java.io.PipedInputStream ( ) ) ; assertNotNull ( s ) ; s.close ( ) ; try { s = new java.util.Scanner ( ( ( java.io.InputStream ) ( null ) ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
protected java.lang.Class < ? > loadClass ( java.lang.String name , boolean resolve ) throws java.lang.ClassNotFoundException { if ( ( name.equals ( "Helper1" ) ) || ( name.equals ( "Helper2" ) ) ) { return super . loadClass ( name , resolve ) ; } else if ( name.equals ( "Test" ) ) { java.lang.System.out.println ( "MisbehavingLoader loading Helper2 instead of Test" ) ; return defining_loader.loadClass ( "Helper2" , resolve ) ; } return super . loadClass ( name , resolve ) ; }

Target:
protected java.lang.Class < ? > loadClass ( java.lang.String name , boolean resolve ) throws java.lang.ClassNotFoundException { if ( ( name.equals ( "Helper1" ) ) || ( name.equals ( "Helper2" ) ) ) { return super . loadClass ( name , resolve ) ; } else if ( name.equals ( "Test" ) ) { return defining_loader.loadClass ( "Helper2" , resolve ) ; } return super . loadClass ( name , resolve ) ; }
Source:
public int checkRightsStatus ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path or action is not valid" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _checkRightsStatus ( mUniqueId , path , action ) ; }

Target:
public int checkRightsStatus ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path or action is not valid" ) ; } return _checkRightsStatus ( mUniqueId , path , action ) ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( final int parameter , final java.lang.String desc , final boolean visible ) { org.objectweb.asm.AnnotationVisitor av ; av = mv.visitParameterAnnotation ( parameter , desc , visible ) ; if ( desc.equals ( "LNotNull;" ) ) { params.add ( new java.lang.Integer ( parameter ) ) ; } return av ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( final int parameter , final java.lang.String desc , final boolean visible ) { org.objectweb.asm.AnnotationVisitor av ; av = mv.visitParameterAnnotation ( parameter , desc , visible ) ; if ( desc.equals ( "LNotNull;" ) ) { params.add ( parameter ) ; } return av ; }
Source:
private java.util.List < com.intellij.execution.impl.BeforeRunTask > getTemplateBeforeRunTasks ( com.intellij.execution.impl.RunConfiguration settings ) { final com.intellij.execution.impl.RunnerAndConfigurationSettings template = getConfigurationTemplate ( settings.getFactory ( ) ) ; final java.util.List < com.intellij.execution.impl.BeforeRunTask > templateTasks = myConfigurationToBeforeTasksMap.get ( template.getConfiguration ( ) ) ; return templateTasks != null ? com.intellij.execution.impl.RunManagerImpl.getCopies ( templateTasks ) : getHardcodedBeforeRunTasks ( settings ) ; }

Target:
private java.util.List < com.intellij.execution.impl.BeforeRunTask > getTemplateBeforeRunTasks ( @ org.jetbrains.annotations.NotNull com.intellij.execution.impl.RunConfiguration settings ) { final com.intellij.execution.impl.RunnerAndConfigurationSettings template = getConfigurationTemplate ( settings.getFactory ( ) ) ; final java.util.List < com.intellij.execution.impl.BeforeRunTask > templateTasks = myConfigurationToBeforeTasksMap.get ( template.getConfiguration ( ) ) ; return templateTasks == null ? getHardcodedBeforeRunTasks ( settings ) : com.intellij.execution.impl.RunManagerImpl.getCopies ( templateTasks ) ; }
Source:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_new ( ) ; try { final int evpCipher = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.AES_128_KEY , null , true ) ; } finally { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_cleanup ( ctx ) ; } org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_new ( ) ; try { final int evpCipher = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.AES_128_KEY , null , true ) ; } finally { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_cleanup ( ctx ) ; } }
Source:
void resize ( int newCapacity ) { java.util.HashMap.HashMapEntry [ ] oldTable = table ; int oldCapacity = oldTable.length ; if ( oldCapacity == ( java.util.HashMap.MAXIMUM_CAPACITY ) ) { threshold = java.lang.Integer.MAX_VALUE ; return ; } java.util.HashMap.HashMapEntry [ ] newTable = new java.util.HashMap.HashMapEntry [ newCapacity ] ; transfer ( newTable , initHashSeedAsNeeded ( newCapacity ) ) ; table = newTable ; threshold = ( ( int ) ( java.lang.Math.min ( ( newCapacity * ( loadFactor ) ) , ( ( java.util.HashMap.MAXIMUM_CAPACITY ) + 1 ) ) ) ) ; }

Target:
void resize ( int newCapacity ) { java.util.HashMap.HashMapEntry [ ] oldTable = table ; int oldCapacity = oldTable.length ; if ( oldCapacity == ( java.util.HashMap.MAXIMUM_CAPACITY ) ) { threshold = java.lang.Integer.MAX_VALUE ; return ; } java.util.HashMap.HashMapEntry [ ] newTable = new java.util.HashMap.HashMapEntry [ newCapacity ] ; transfer ( newTable ) ; table = newTable ; threshold = ( ( int ) ( java.lang.Math.min ( ( newCapacity * ( loadFactor ) ) , ( ( java.util.HashMap.MAXIMUM_CAPACITY ) + 1 ) ) ) ) ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicColorMatrix create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } int id = rs.nScriptIntrinsicCreate ( 2 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicColorMatrix ( id , rs ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicColorMatrix create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } long id = rs.nScriptIntrinsicCreate ( 2 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicColorMatrix ( id , rs ) ; }
Source:
public void run ( ) { synchronized ( this ) { if ( com.android.internal.policy.impl.PhoneWindowManager.localLOGV ) android.util.Log.v ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "mScreenLockTimeout activating keyguard" ) ; if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.doKeyguardTimeout ( ) ; } mLockScreenTimerActive = false ; } }

Target:
public void run ( ) { synchronized ( this ) { if ( com.android.internal.policy.impl.PhoneWindowManager.localLOGV ) android.util.Log.v ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "mScreenLockTimeout activating keyguard" ) ; if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.doKeyguardTimeout ( options ) ; } mLockScreenTimerActive = false ; options = null ; } }
Source:
public java.lang.String getSymbol ( java.util.Locale locale ) { if ( ( locale.getCountry ( ) . length ( ) ) == 0 ) { return currencyCode ; } libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale.toString ( ) , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }

Target:
public java.lang.String getSymbol ( java.util.Locale locale ) { if ( ( locale.getCountry ( ) . length ( ) ) == 0 ) { return currencyCode ; } libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }
Source:
public void testAssociationRejectionCallback ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; assertNotNull ( mISupplicantStaIfaceCallback ) ; int statusCode = 7 ; mISupplicantStaIfaceCallback.onAssociationRejected ( com.android.server.wifi.util.NativeUtil.macAddressToByteArray ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , statusCode ) ; org.mockito.Mockito.verify ( mWifiMonitor ) . broadcastAssociationRejectionEvent ( org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.WLAN_IFACE_NAME ) , org.mockito.Matchers.eq ( statusCode ) , org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) ) ; }

Target:
public void testAssociationRejectionCallback ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; assertNotNull ( mISupplicantStaIfaceCallback ) ; int statusCode = 7 ; mISupplicantStaIfaceCallback.onAssociationRejected ( com.android.server.wifi.util.NativeUtil.macAddressToByteArray ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , statusCode , false ) ; org.mockito.Mockito.verify ( mWifiMonitor ) . broadcastAssociationRejectionEvent ( org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.WLAN_IFACE_NAME ) , org.mockito.Matchers.eq ( statusCode ) , org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) ) ; }
Source:
public int getAndroidCarrierIdForSubscription ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.IllegalStateException ( "Telephony service unavailable" ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }

Target:
public int getAndroidCarrierIdForSubscription ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }
Source:
public static org.eclipse.swt.graphics.Image getScaledImage ( org.eclipse.swt.widgets.Display display , com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage glMsg , int width , int height ) { if ( ! ( glMsg.hasFb ( ) ) ) { return null ; } org.eclipse.swt.graphics.ImageData imageData = com.android.ide.eclipse.gltrace.ProtoBufUtils.getImageData ( glMsg ) ; return new org.eclipse.swt.graphics.Image ( display , imageData.scaledTo ( width , height ) ) ; }

Target:
public static org.eclipse.swt.graphics.Image getScaledImage ( org.eclipse.swt.widgets.Display display , com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage glMsg , int width , int height ) { if ( ! ( glMsg.hasFb ( ) ) ) { return null ; } org.eclipse.swt.graphics.ImageData imageData = com.android.ide.eclipse.gltrace.ProtoBufUtils.getImageData ( glMsg ) ; if ( imageData == null ) { return null ; } return new org.eclipse.swt.graphics.Image ( display , imageData.scaledTo ( width , height ) ) ; }
Source:
private static java.lang.String makeString ( java.lang.String [ ] strings ) { if ( strings == null ) return "null" ; final java.util.StringJoiner sj = new java.util.StringJoiner ( "," , "[" , "]" ) ; for ( java.lang.String s : strings ) sj.add ( s ) ; return sj.toString ( ) ; }

Target:
private static java.lang.String makeString ( java.lang.String [ ] strings ) { final java.util.StringJoiner sj = new java.util.StringJoiner ( "," , "[" , "]" ) ; for ( java.lang.String s : strings ) sj.add ( s ) ; return sj.toString ( ) ; }
Source:
private static int postRecvfrom ( boolean isRead , java.net.DatagramPacket packet , boolean isConnected , java.net.InetSocketAddress srcAddress , int byteCount ) { if ( isRead && ( byteCount == 0 ) ) { return - 1 ; } if ( packet != null ) { packet.setReceivedLength ( byteCount ) ; if ( ! isConnected ) { packet.setAddress ( srcAddress.getAddress ( ) ) ; packet.setPort ( srcAddress.getPort ( ) ) ; } } return byteCount ; }

Target:
private static int postRecvfrom ( boolean isRead , java.net.DatagramPacket packet , java.net.InetSocketAddress srcAddress , int byteCount ) { if ( isRead && ( byteCount == 0 ) ) { return - 1 ; } if ( packet != null ) { packet.setReceivedLength ( byteCount ) ; packet.setPort ( srcAddress.getPort ( ) ) ; if ( ! ( srcAddress.getAddress ( ) . equals ( packet.getAddress ( ) ) ) ) { packet.setAddress ( srcAddress.getAddress ( ) ) ; } } return byteCount ; }
Source:
private android.app.Dialog getSimRemainingAttemptsDialog ( int remaining ) { java.lang.String msg = getPinPasswordErrorMessage ( remaining ) ; if ( ( mRemainingAttemptsDialog ) == null ) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder ( mContext ) ; builder.setMessage ( msg ) ; builder.setCancelable ( false ) ; builder.setNeutralButton ( R.string.ok , null ) ; mRemainingAttemptsDialog = builder.create ( ) ; mRemainingAttemptsDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } else { mRemainingAttemptsDialog.setMessage ( msg ) ; } return mRemainingAttemptsDialog ; }

Target:
private android.app.Dialog getSimRemainingAttemptsDialog ( int remaining ) { java.lang.String msg = getPinPasswordErrorMessage ( remaining , false ) ; if ( ( mRemainingAttemptsDialog ) == null ) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder ( mContext ) ; builder.setMessage ( msg ) ; builder.setCancelable ( false ) ; builder.setNeutralButton ( R.string.ok , null ) ; mRemainingAttemptsDialog = builder.create ( ) ; mRemainingAttemptsDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } else { mRemainingAttemptsDialog.setMessage ( msg ) ; } return mRemainingAttemptsDialog ; }
Source:
public android.bluetooth.IBluetooth registerAdapter ( android.bluetooth.IBluetoothManagerCallback callback ) { if ( callback == null ) { android.util.Log.w ( com.android.server.BluetoothManagerService.TAG , "Callback is null in registerAdapter" ) ; return null ; } android.os.Message msg = mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_REGISTER_ADAPTER ) ; msg.obj = callback ; mHandler.sendMessage ( msg ) ; synchronized ( mConnection ) { return mBluetooth ; } }

Target:
public android.bluetooth.IBluetooth registerAdapter ( android.bluetooth.IBluetoothManagerCallback callback ) { if ( callback == null ) { android.util.Log.w ( com.android.server.BluetoothManagerService.TAG , "Callback is null in registerAdapter" ) ; return null ; } android.os.Message msg = mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_REGISTER_ADAPTER ) ; msg.obj = callback ; mHandler.sendMessage ( msg ) ; return mBluetooth ; }
Source:
protected void addAttributeDeclaration ( org.eclipse.text.edits.MultiTextEdit rootEdit , int offset , java.lang.String attributePrefix , java.lang.String attributeName , java.lang.String attributeValue ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( ' ' ) . append ( attributePrefix ) . append ( ':' ) ; sb.append ( attributeName ) . append ( '=' ) . append ( '"' ) ; sb.append ( attributeValue ) . append ( '"' ) ; org.eclipse.text.edits.InsertEdit setAttribute = new org.eclipse.text.edits.InsertEdit ( offset , sb.toString ( ) ) ; rootEdit.addChild ( setAttribute ) ; }

Target:
private void addAttributeDeclaration ( org.eclipse.text.edits.MultiTextEdit rootEdit , int offset , java.lang.String attributePrefix , java.lang.String attributeName , java.lang.String attributeValue ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( ' ' ) . append ( attributePrefix ) . append ( ':' ) ; sb.append ( attributeName ) . append ( '=' ) . append ( '"' ) ; sb.append ( attributeValue ) . append ( '"' ) ; org.eclipse.text.edits.InsertEdit setAttribute = new org.eclipse.text.edits.InsertEdit ( offset , sb.toString ( ) ) ; rootEdit.addChild ( setAttribute ) ; }
Source:
public void switchToSubscription ( int subscriptionId , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . switchToSubscription ( subscriptionId , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void switchToSubscription ( int subscriptionId , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . switchToSubscription ( subscriptionId , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void setComponentEnabledSetting ( android.content.ComponentName componentName , int newState , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; setEnabledSetting ( componentName.getPackageName ( ) , componentName.getClassName ( ) , newState , flags , userId ) ; }

Target:
public void setComponentEnabledSetting ( android.content.ComponentName componentName , int newState , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; setEnabledSetting ( componentName.getPackageName ( ) , componentName.getClassName ( ) , newState , flags , userId , null ) ; }
Source:
private java.lang.String doLoad ( java.lang.String name , java.lang.ClassLoader loader ) { java.lang.String ldLibraryPath = null ; java.lang.String dexPath = null ; if ( loader == null ) { ldLibraryPath = java.lang.System.getProperty ( "java.library.path" ) ; } else if ( loader instanceof dalvik.system.BaseDexClassLoader ) { dalvik.system.BaseDexClassLoader dexClassLoader = ( ( dalvik.system.BaseDexClassLoader ) ( loader ) ) ; ldLibraryPath = dexClassLoader.getLdLibraryPath ( ) ; dexPath = dexClassLoader.getDexPath ( ) ; } synchronized ( this ) { return java.lang.Runtime.nativeLoad ( name , loader , ldLibraryPath , dexPath ) ; } }

Target:
private java.lang.String doLoad ( java.lang.String name , java.lang.ClassLoader loader ) { java.lang.String ldLibraryPath = null ; java.lang.String dexPath = null ; if ( loader == null ) { ldLibraryPath = java.lang.System.getProperty ( "java.library.path" ) ; } else if ( loader instanceof dalvik.system.BaseDexClassLoader ) { dalvik.system.BaseDexClassLoader dexClassLoader = ( ( dalvik.system.BaseDexClassLoader ) ( loader ) ) ; ldLibraryPath = dexClassLoader.getLdLibraryPath ( ) ; } synchronized ( this ) { return java.lang.Runtime.nativeLoad ( name , loader , ldLibraryPath ) ; } }
Source:
public void test_addSubjectAlternativeNameLintLjava_lang_String ( ) { int [ ] types = new int [ ] { sun.security.x509.GeneralNameInterface.NAME_ANY , sun.security.x509.GeneralNameInterface.NAME_RFC822 , sun.security.x509.GeneralNameInterface.NAME_DNS , sun.security.x509.GeneralNameInterface.NAME_X400 , sun.security.x509.GeneralNameInterface.NAME_DIRECTORY , sun.security.x509.GeneralNameInterface.NAME_EDI , sun.security.x509.GeneralNameInterface.NAME_URI , sun.security.x509.GeneralNameInterface.NAME_IP , sun.security.x509.GeneralNameInterface.NAME_OID } ; for ( int i = 0 ; i < ( types.length ) ; i ++ ) { try { new java.security.cert.X509CertSelector ( ) . addSubjectAlternativeName ( types [ i ] , "-0xDFRF" ) ; fail ( ( "IOException expected for type: " + ( types [ i ] ) ) ) ; } catch ( java.io.IOException expected ) { } } }

Target:
public void test_addSubjectAlternativeNameLintLjava_lang_String ( ) { int [ ] types = new int [ ] { sun.security.x509.GeneralNameInterface.NAME_ANY , sun.security.x509.GeneralNameInterface.NAME_DNS , sun.security.x509.GeneralNameInterface.NAME_X400 , sun.security.x509.GeneralNameInterface.NAME_DIRECTORY , sun.security.x509.GeneralNameInterface.NAME_EDI , sun.security.x509.GeneralNameInterface.NAME_URI , sun.security.x509.GeneralNameInterface.NAME_IP , sun.security.x509.GeneralNameInterface.NAME_OID } ; for ( int i = 0 ; i < ( types.length ) ; i ++ ) { try { new java.security.cert.X509CertSelector ( ) . addSubjectAlternativeName ( types [ i ] , "-0xDFRF" ) ; fail ( ( "IOException expected for type: " + ( types [ i ] ) ) ) ; } catch ( java.io.IOException expected ) { } } }
Source:
public int [ ] getChannelsForBand ( int band ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getChannelsForBand ( band ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getChannelsForBandNative ( com.android.server.wifi.WifiNative.sWlan0Index , band ) ; } else { return null ; } } } }

Target:
public int [ ] getChannelsForBand ( int band ) { return mWifiVendorHal.getChannelsForBand ( band ) ; }
Source:
public static void setScannedChannelCount ( android.content.Context context , int channelCount ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , channelCount ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , channelCount ) . apply ( ) ; } }

Target:
public static synchronized void setScannedChannelCount ( android.content.Context context , int channelCount ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , channelCount ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , channelCount ) . apply ( ) ; } }
Source:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , mPngCruncher , false , false ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }

Target:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( false ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , mPngCruncher , false , false ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }