auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static < E > com.google.common.collect.ImmutableSortedSet < E > copyOfSorted ( java.util.SortedSet < E > sortedSet ) { java.util.Comparator < ? super E > comparator = com.google.common.collect.SortedIterables.comparator ( sortedSet ) ; E [ ] elements = ( ( E [ ] ) ( sortedSet.toArray ( ) ) ) ; if ( ( elements.length ) == 0 ) { return com.google.common.collect.ImmutableSortedSet.emptySet ( comparator ) ; } else { return new com.google.common.collect.RegularImmutableSortedSet < E > ( com.google.common.collect.ImmutableList.< E > asImmutableList ( elements ) , comparator ) ; } }

Target:
public static < E > com.google.common.collect.ImmutableSortedSet < E > copyOfSorted ( java.util.SortedSet < E > sortedSet ) { java.util.Comparator < ? super E > comparator = com.google.common.collect.SortedIterables.comparator ( sortedSet ) ; com.google.common.collect.ImmutableList < E > list = com.google.common.collect.ImmutableList.copyOf ( sortedSet ) ; if ( list.isEmpty ( ) ) { return com.google.common.collect.ImmutableSortedSet.emptySet ( comparator ) ; } else { return new com.google.common.collect.RegularImmutableSortedSet < E > ( list , comparator ) ; } }
Source:
public boolean p2pGroupAdd ( boolean persistent ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupAdd ( persistent ) ; } else { if ( persistent ) { return doBooleanCommand ( "P2P_GROUP_ADD persistent" ) ; } return doBooleanCommand ( "P2P_GROUP_ADD" ) ; } }

Target:
public boolean p2pGroupAdd ( boolean persistent ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupAdd ( persistent ) ; } else { if ( persistent ) { return doBooleanCommand ( "P2P_GROUP_ADD persistent" ) ; } return doBooleanCommand ( "P2P_GROUP_ADD" ) ; } }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy3DRangeFrom" ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
private SystemContract.BlockSuppressionStatus getBlockSuppressionStatus ( ) { android.content.SharedPreferences pref = getContext ( ) . getSharedPreferences ( com.android.providers.blockednumber.BlockedNumberProvider.PREF_FILE , Context.MODE_PRIVATE ) ; long blockSuppressionExpiryTimeMillis = pref.getLong ( com.android.providers.blockednumber.BlockedNumberProvider.BLOCK_SUPPRESSION_EXPIRY_TIME_PREF , 0 ) ; return new android.provider.BlockedNumberContract.SystemContract.BlockSuppressionStatus ( ( ( java.lang.System.currentTimeMillis ( ) ) < blockSuppressionExpiryTimeMillis ) , blockSuppressionExpiryTimeMillis ) ; }

Target:
private SystemContract.BlockSuppressionStatus getBlockSuppressionStatus ( ) { android.content.SharedPreferences pref = getContext ( ) . getSharedPreferences ( com.android.providers.blockednumber.BlockedNumberProvider.PREF_FILE , Context.MODE_PRIVATE ) ; long blockSuppressionExpiryTimeMillis = pref.getLong ( com.android.providers.blockednumber.BlockedNumberProvider.BLOCK_SUPPRESSION_EXPIRY_TIME_PREF , 0 ) ; boolean isSuppressed = ( blockSuppressionExpiryTimeMillis == ( com.android.providers.blockednumber.BlockedNumberProvider.BLOCKING_DISABLED_FOREVER ) ) || ( ( java.lang.System.currentTimeMillis ( ) ) < blockSuppressionExpiryTimeMillis ) ; return new android.provider.BlockedNumberContract.SystemContract.BlockSuppressionStatus ( isSuppressed , blockSuppressionExpiryTimeMillis ) ; }
Source:
private java.util.List < java.lang.String > readStrings ( ) { com.android.jack.dx.io.DexBuffer.Section strings = open ( tableOfContents.stringIds.off ) ; java.lang.String [ ] result = new java.lang.String [ tableOfContents.stringIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.stringIds.size ) ; ++ i ) { result [ i ] = strings.readString ( ) ; } return java.util.Arrays.asList ( result ) ; }

Target:
private java.util.List < java.lang.String > readStrings ( ) { com.android.jack.dx.io.DexBuffer.Section strings = openInternal ( tableOfContents.stringIds.off ) ; java.lang.String [ ] result = new java.lang.String [ tableOfContents.stringIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.stringIds.size ) ; ++ i ) { result [ i ] = strings.readString ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public void search ( com.android.builder.internal.compiler.SourceSearcher.SourceFileProcessor processor ) throws java.io.IOException , java.lang.InterruptedException , java.util.concurrent.ExecutionException { for ( java.io.File file : mSourceFolders ) { processFile ( file , processor ) ; } if ( ( mExecutor ) != null ) { try { mExecutor.waitForTasksWithQuickFail ( ) ; } catch ( java.lang.InterruptedException e ) { mExecutor.cancelAllTasks ( ) ; throw e ; } catch ( java.util.concurrent.ExecutionException e ) { mExecutor.cancelAllTasks ( ) ; throw e ; } } }

Target:
public void search ( com.android.builder.internal.compiler.SourceSearcher.SourceFileProcessor processor ) throws com.android.ide.common.internal.LoggedErrorException , java.io.IOException , java.lang.InterruptedException { for ( java.io.File file : mSourceFolders ) { processFile ( file , processor ) ; } if ( ( mExecutor ) != null ) { mExecutor.waitForTasksWithQuickFail ( true ) ; } }
Source:
private void setVpnForcedLocked ( boolean enforce ) { final java.util.Set < android.net.UidRange > removedRanges = new android.util.ArraySet ( mBlockedUsers ) ; if ( enforce ) { final java.util.Set < android.net.UidRange > addedRanges = createUserAndRestrictedProfilesRanges ( mUserHandle , null , java.util.Collections.singletonList ( mPackage ) ) ; removedRanges.removeAll ( addedRanges ) ; addedRanges.removeAll ( mBlockedUsers ) ; setAllowOnlyVpnForUids ( false , removedRanges ) ; setAllowOnlyVpnForUids ( true , addedRanges ) ; } else { setAllowOnlyVpnForUids ( false , removedRanges ) ; } }

Target:
private void setVpnForcedWithExemptionsLocked ( boolean enforce , @ android.annotation.Nullable java.util.List < java.lang.String > exemptedPackages ) { final java.util.Set < android.net.UidRange > removedRanges = new android.util.ArraySet ( mBlockedUsers ) ; java.util.Set < android.net.UidRange > addedRanges = java.util.Collections.emptySet ( ) ; if ( enforce ) { addedRanges = createUserAndRestrictedProfilesRanges ( mUserHandle , null , exemptedPackages ) ; removedRanges.removeAll ( addedRanges ) ; addedRanges.removeAll ( mBlockedUsers ) ; } setAllowOnlyVpnForUids ( false , removedRanges ) ; setAllowOnlyVpnForUids ( true , addedRanges ) ; }
Source:
public void testNoWarningsPreFroyo ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( mTestFile , source ( "project.properties" , "target=android-3" ) , copy ( "apicheck/minsdk2.xml" , "AndroidManifest.xml" ) ) ) ; }

Target:
public void testNoWarningsPreFroyo ( ) throws java.lang.Exception { int compileSdkVersion = getHighestTargetSmallerThan ( 8 ) ; if ( compileSdkVersion < 3 ) { return ; } assertEquals ( "No warnings." , lintProject ( mTestFile , projectProperties ( ) . compileSdk ( compileSdkVersion ) , copy ( "apicheck/minsdk2.xml" , "AndroidManifest.xml" ) ) ) ; }
Source:
public void test2_0SetEnabledGetEnabled ( ) throws java.lang.Exception { getEqualizer ( 0 ) ; try { mEqualizer.setEnabled ( true ) ; assertTrue ( "invalid state from getEnabled" , mEqualizer.getEnabled ( ) ) ; mEqualizer.setEnabled ( false ) ; assertFalse ( "invalid state to getEnabled" , mEqualizer.getEnabled ( ) ) ; } catch ( java.lang.IllegalStateException e ) { fail ( "setEnabled() in wrong state" ) ; } finally { releaseEqualizer ( ) ; } }

Target:
public void test2_0SetEnabledGetEnabled ( ) throws java.lang.Exception { getEqualizer ( getSessionId ( ) ) ; try { mEqualizer.setEnabled ( true ) ; assertTrue ( "invalid state from getEnabled" , mEqualizer.getEnabled ( ) ) ; mEqualizer.setEnabled ( false ) ; assertFalse ( "invalid state to getEnabled" , mEqualizer.getEnabled ( ) ) ; } catch ( java.lang.IllegalStateException e ) { fail ( "setEnabled() in wrong state" ) ; } finally { releaseEqualizer ( ) ; } }
Source:
public boolean updatePublish ( short transactionId , android.net.wifi.nan.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiNanNative.NAN_STATUS_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }

Target:
public boolean updatePublish ( short transactionId , android.net.wifi.aware.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiAwareNative.AWARE_STATUS_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }
Source:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "disconnect(): device=" + device ) ) ; boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.disconnect ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( "disconnect(): device=" + device ) ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.disconnect ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public boolean isOverriden ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Method method ) { java.lang.String name = method.getName ( clazz ) ; java.lang.String descriptor = method.getDescriptor ( clazz ) ; try { this . clazz = null ; this . member = null ; clazz.hierarchyAccept ( false , false , false , true , new proguard.classfile.util.NamedMethodVisitor ( name , descriptor , new proguard.classfile.util.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_PRIVATE , this ) ) ) ; } catch ( proguard.classfile.util.MemberFinder.MemberFoundException ex ) { return true ; } return false ; }

Target:
public boolean isOverriden ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Method method ) { java.lang.String name = method.getName ( clazz ) ; java.lang.String descriptor = method.getDescriptor ( clazz ) ; try { this . clazz = null ; this . member = null ; clazz.hierarchyAccept ( false , false , false , true , new proguard.classfile.util.NamedMethodVisitor ( name , descriptor , new proguard.classfile.util.MemberAccessFilter ( 0 , ClassConstants.ACC_PRIVATE , this ) ) ) ; } catch ( proguard.classfile.util.MemberFinder.MemberFoundException ex ) { return true ; } return false ; }
Source:
public static < T > T get ( java.util.Iterator < ? extends T > iterator , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.collect.Iterators.checkNonnegative ( position ) ; try { return com.google.common.collect.Iterators.get ( iterator , position ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { return defaultValue ; } }

Target:
static < T > T pollNext ( java.util.Iterator < T > iterator ) { if ( iterator.hasNext ( ) ) { T result = iterator.next ( ) ; iterator.remove ( ) ; return result ; } else { return null ; } }
Source:
private void initForReal ( ) { android.content.Context ctx = com.android.webview.chromium.WebViewChromium.resourcesContextWrapper ( mWebView.getContext ( ) ) ; mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , ctx , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewChromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }

Target:
private void initForReal ( ) { android.content.Context ctx = com.android.webview.chromium.ResourcesContextWrapperFactory.get ( mWebView.getContext ( ) ) ; mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , ctx , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewChromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , com.android.sdklib.repository.FullRevision revision ) { assert filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_BUILD_TOOLS ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( pkg instanceof com.android.sdklib.repository.local.LocalFullRevisionPkgInfo ) { com.android.sdklib.repository.local.LocalFullRevisionPkgInfo p = ( ( com.android.sdklib.repository.local.LocalFullRevisionPkgInfo ) ( pkg ) ) ; if ( p.getFullRevision ( ) . equals ( revision ) ) { return p ; } } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision ) { assert filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_BUILD_TOOLS ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasFullRevision ( ) ) && ( d.getFullRevision ( ) . equals ( revision ) ) ) { return pkg ; } } return null ; }
Source:
private boolean startIPv6 ( ) { try { mNwService.setInterfaceIpv6PrivacyExtensions ( mInterfaceName , true ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( android.os.RemoteException re ) { logError ( "Unable to change interface settings: %s" , re ) ; return false ; } catch ( java.lang.IllegalStateException ie ) { logError ( "Unable to change interface settings: %s" , ie ) ; return false ; } return true ; }

Target:
private boolean startIPv6 ( ) { final java.lang.String PREFER_TEMPADDRS = "2" ; try { android.net.util.NetdService.run ( ( android.net.INetd netd ) -> { netd.setProcSysNet ( INetd.IPV6 , INetd.CONF , mInterfaceName , "use_tempaddr" , PREFER_TEMPADDRS ) ; } ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException | android.os.ServiceSpecificException e ) { logError ( "Unable to change interface settings: %s" , e ) ; return false ; } return true ; }
Source:
private static void TestInvokeCustomWithConcurrentThreads ( ) throws java.lang.Throwable { TestInvokeCustomWithConcurrentThreads.test ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.TestUninitializedCallSite ( ) ; Main.TestLinkerMethodMinimalArguments ( ) ; Main.TestLinkerMethodMultipleArgumentTypes ( ) ; TestLinkerUnrelatedBSM.test ( ) ; TestInvokeCustomWithConcurrentThreads.test ( ) ; TestInvocationKinds.test ( ) ; TestDynamicBootstrapArguments.test ( ) ; TestBadBootstrapArguments.test ( ) ; TestVariableArityLinkerMethod.test ( ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { showPopup ( e ) ; }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { try { java.lang.String response = com.google.gct.testing.launcher.ExperimentalCloudAuthenticator.callTestApi ( ) ; new com.intellij.notification.Notification ( "Cloud API" , "testExecutions.list" , response , com.intellij.notification.NotificationType.INFORMATION , null ) . notify ( e.getProject ( ) ) ; } catch ( java.lang.Exception exception ) { throw new java.lang.RuntimeException ( "Failed to perform the API call" , exception ) ; } }
Source:
public void validateUserCredentialWithoutUsername ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; cred.userCredential.password = "password" ; cred.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; cred.userCredential.nonEapInnerMethod = "MS-CHAP" ; cred.caCertificate = android.net.wifi.FakeKeys.CA_CERT0 ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }

Target:
public void validateCertCredentialWithoutClientPrivateKey ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithCertificateCredential ( ) ; cred.setClientPrivateKey ( null ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
public synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket socket ) { if ( com.android.bluetooth.mapclient.MnsService.DBG ) android.util.Log.d ( com.android.bluetooth.mapclient.MnsService.TAG , ( ( ( "onConnect" + device ) + " SOCKET: " ) + socket ) ) ; com.android.bluetooth.mapclient.MnsObexServer srv = new com.android.bluetooth.mapclient.MnsObexServer ( com.android.bluetooth.mapclient.MnsService.mContext.mMceStateMachine , com.android.bluetooth.mapclient.MnsService.mServerSockets ) ; com.android.bluetooth.BluetoothObexTransport transport = new com.android.bluetooth.BluetoothObexTransport ( socket ) ; try { new javax.obex.ServerSession ( transport , srv , null ) ; return true ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MnsService.TAG , e.toString ( ) ) ; return false ; } }

Target:
public synchronized boolean onConnect ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket socket ) { if ( com.android.bluetooth.mapclient.MnsService.DBG ) android.util.Log.d ( com.android.bluetooth.mapclient.MnsService.TAG , ( ( ( "onConnect" + device ) + " SOCKET: " ) + socket ) ) ; com.android.bluetooth.mapclient.MnsObexServer srv = new com.android.bluetooth.mapclient.MnsObexServer ( com.android.bluetooth.mapclient.MnsService.sContext.mMceStateMachine , com.android.bluetooth.mapclient.MnsService.sServerSockets ) ; com.android.bluetooth.BluetoothObexTransport transport = new com.android.bluetooth.BluetoothObexTransport ( socket ) ; try { new javax.obex.ServerSession ( transport , srv , null ) ; return true ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MnsService.TAG , e.toString ( ) ) ; return false ; } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.TestUninitializedCallSite ( ) ; Main.TestLinkerMethodMinimalArguments ( ) ; Main.TestLinkerMethodMultipleArgumentTypes ( ) ; TestLinkerUnrelatedBSM.test ( ) ; Main.TestInvokeCustomWithConcurrentThreads ( ) ; TestInvocationKinds.test ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.TestUninitializedCallSite ( ) ; Main.TestLinkerMethodMinimalArguments ( ) ; Main.TestLinkerMethodMultipleArgumentTypes ( ) ; TestLinkerUnrelatedBSM.test ( ) ; TestInvokeCustomWithConcurrentThreads.test ( ) ; TestInvocationKinds.test ( ) ; TestDynamicBootstrapArguments.test ( ) ; TestBadBootstrapArguments.test ( ) ; TestVariableArityLinkerMethod.test ( ) ; }
Source:
public void addExistingConnection ( java.lang.String callId , android.telecom.ParcelableConnection connection , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.RemoteConnection remoteConnction = new android.telecom.RemoteConnection ( callId , mOutgoingConnectionServiceRpc , connection ) ; mOurConnectionServiceImpl.addRemoteExistingConnection ( remoteConnction ) ; }

Target:
public void addExistingConnection ( java.lang.String callId , android.telecom.ParcelableConnection connection , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.RemoteConnection remoteConnection = new android.telecom.RemoteConnection ( callId , mOutgoingConnectionServiceRpc , connection ) ; mConnectionById.put ( callId , remoteConnection ) ; remoteConnection.registerCallback ( new android.telecom.RemoteConnection.Callback ( ) { @ java.lang.Override public void onDestroyed ( android.telecom.RemoteConnection connection ) { mConnectionById.remove ( callId ) ; maybeDisconnectAdapter ( ) ; } } ) ; mOurConnectionServiceImpl.addRemoteExistingConnection ( remoteConnection ) ; }
Source:
public void copyFrom ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFromUnchecked ( float [ ] d ) { copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public void testSerialize ( ) { java.lang.String s = "aced0005737200296a6176612e7574696c2e636f6e63757272656e742e436f70" + ( "794f6e577269746541727261794c697374785d9fd546ab90c3030000787077040" + "0000005740001617400016274000163707400016578" ) ; java.util.List < java.lang.String > contents = java.util.Arrays.asList ( "a" , "b" , "c" , null , "e" ) ; java.util.concurrent.CopyOnWriteArrayList < java.lang.String > list = new java.util.concurrent.CopyOnWriteArrayList < java.lang.String > ( contents ) ; new libcore.util.SerializationTester < java.util.concurrent.CopyOnWriteArrayList < java.lang.String > > ( list , s ) . test ( ) ; }

Target:
public void testSerialize ( ) { java.lang.String s = "aced0005737200296a6176612e7574696c2e636f6e63757272656e742e436f70" + ( "794f6e577269746541727261794c697374785d9fd546ab90c3030000787077040" + "0000005740001617400016274000163707400016578" ) ; java.util.List < java.lang.String > contents = java.util.Arrays.asList ( "a" , "b" , "c" , null , "e" ) ; java.util.concurrent.CopyOnWriteArrayList < java.lang.String > list = new java.util.concurrent.CopyOnWriteArrayList < java.lang.String > ( contents ) ; new libcore.libcore.util.SerializationTester < java.util.concurrent.CopyOnWriteArrayList < java.lang.String > > ( list , s ) . test ( ) ; }
Source:
private boolean isCmdInteractive ( com.android.internal.telephony.cat.CatCmdMessage cmd ) { switch ( cmd.getCmdType ( ) ) { case SEND_DTMF : case SEND_SMS : case SEND_SS : case SEND_USSD : case SET_UP_IDLE_MODE_TEXT : case SET_UP_MENU : case CLOSE_CHANNEL : case RECEIVE_DATA : case SEND_DATA : return false ; } return true ; }

Target:
private boolean isCmdInteractive ( com.android.internal.telephony.cat.CatCmdMessage cmd ) { switch ( cmd.getCmdType ( ) ) { case SEND_DTMF : case SEND_SMS : case SEND_SS : case SEND_USSD : case SET_UP_IDLE_MODE_TEXT : case SET_UP_MENU : case REFRESH : case CLOSE_CHANNEL : case RECEIVE_DATA : case SEND_DATA : return false ; } return true ; }
Source:
private boolean startIPv6 ( ) { try { mNwService.setInterfaceIpv6PrivacyExtensions ( mInterfaceName , true ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( android.os.RemoteException re ) { logError ( "Unable to change interface settings: %s" , re ) ; return false ; } catch ( java.lang.IllegalStateException ie ) { logError ( "Unable to change interface settings: %s" , ie ) ; return false ; } return true ; }

Target:
private void setIPv6AddrGenModeIfSupported ( ) throws android.os.RemoteException { try { mNwService.setIPv6AddrGenMode ( mInterfaceName , mConfiguration.mIPv6AddrGenMode ) ; } catch ( android.os.ServiceSpecificException e ) { if ( ( e.errorCode ) != ( android.system.OsConstants.EOPNOTSUPP ) ) { throw e ; } } }
Source:
public void onServiceDisconnected ( int profile ) { android.telecom.Log.startSession ( "BMSL.oSD" ) ; try { synchronized ( mLock ) { mBluetoothHeadsetService = null ; android.telecom.Log.i ( this , ( "Lost BluetoothHeadset service. " + "Removing all tracked devices." ) ) ; java.util.List < android.bluetooth.BluetoothDevice > devicesToRemove = new java.util.LinkedList ( mConnectedDevicesByAddress.values ( ) ) ; mConnectedDevicesByAddress.clear ( ) ; for ( android.bluetooth.BluetoothDevice device : devicesToRemove ) { mBluetoothRouteManager.onDeviceLost ( device ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void onServiceDisconnected ( int profile ) { android.telecom.Log.startSession ( "BMSL.oSD" ) ; try { synchronized ( mLock ) { mBluetoothHeadsetService = null ; android.telecom.Log.i ( this , ( "Lost BluetoothHeadset service. " + "Removing all tracked devices." ) ) ; java.util.List < android.bluetooth.BluetoothDevice > devicesToRemove = new java.util.LinkedList ( mConnectedDevicesByAddress.values ( ) ) ; mConnectedDevicesByAddress.clear ( ) ; for ( android.bluetooth.BluetoothDevice device : devicesToRemove ) { mBluetoothRouteManager.onDeviceLost ( device.getAddress ( ) ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
final void get ( int [ ] dst , int dstOffset , int intCount ) { int byteCount = checkGetBounds ( SizeOf.INT , dst.length , dstOffset , intCount ) ; this . block.peekIntArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , intCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( float [ ] src , int srcOffset , int floatCount ) { int byteCount = checkPutBounds ( SizeOf.FLOAT , src.length , srcOffset , floatCount ) ; this . block.pokeFloatArray ( ( ( offset ) + ( position ) ) , src , srcOffset , floatCount , order.needsSwap ) ; position += byteCount ; }
Source:
private org.bouncycastle.asn1.cmp.PKIStatusInfo getPKIStatusInfo ( ) { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.DERInteger ( status ) ) ; if ( ( statusStrings.size ( ) ) > 0 ) { v.add ( org.bouncycastle.asn1.cmp.PKIFreeText.getInstance ( new org.bouncycastle.asn1.DERSequence ( statusStrings ) ) ) ; } if ( ( failInfo ) != 0 ) { org.bouncycastle.asn1.DERBitString failInfoBitString = new org.bouncycastle.tsp.TimeStampResponseGenerator.FailInfo ( failInfo ) ; v.add ( failInfoBitString ) ; } return org.bouncycastle.asn1.cmp.PKIStatusInfo.getInstance ( new org.bouncycastle.asn1.DERSequence ( v ) ) ; }

Target:
private org.bouncycastle.asn1.cmp.PKIStatusInfo getPKIStatusInfo ( ) { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.ASN1Integer ( status ) ) ; if ( ( statusStrings.size ( ) ) > 0 ) { v.add ( org.bouncycastle.asn1.cmp.PKIFreeText.getInstance ( new org.bouncycastle.asn1.DERSequence ( statusStrings ) ) ) ; } if ( ( failInfo ) != 0 ) { org.bouncycastle.asn1.DERBitString failInfoBitString = new org.bouncycastle.tsp.TimeStampResponseGenerator.FailInfo ( failInfo ) ; v.add ( failInfoBitString ) ; } return org.bouncycastle.asn1.cmp.PKIStatusInfo.getInstance ( new org.bouncycastle.asn1.DERSequence ( v ) ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "debuggable" , mDebuggable ) . add ( "debugJniBuild" , mDebugJniBuild ) . add ( "packageNameSuffix" , mPackageNameSuffix ) . add ( "versionNameSuffix" , mVersionNameSuffix ) . add ( "runProguard" , mRunProguard ) . add ( "zipAlign" , mZipAlign ) . add ( "keystore" , mSigningConfig ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "debuggable" , mDebuggable ) . add ( "debugJniBuild" , mDebugJniBuild ) . add ( "packageNameSuffix" , mPackageNameSuffix ) . add ( "versionNameSuffix" , mVersionNameSuffix ) . add ( "runProguard" , mRunProguard ) . add ( "zipAlign" , mZipAlign ) . add ( "signingConfig" , mSigningConfig ) . toString ( ) ; }
Source:
public void enable ( java.util.List < ? extends com.google.gct.testing.dimension.GoogleCloudTestingType > types , java.lang.Iterable < java.lang.String > ids ) { checkIsEditable ( ) ; java.util.Set < java.lang.String > idsSet = com.google.common.collect.Sets.newHashSet ( ids ) ; for ( com.google.gct.testing.dimension.GoogleCloudTestingType type : types ) { if ( idsSet.contains ( type.getId ( ) ) ) { validateType ( type ) ; enableType ( type ) ; } } }

Target:
public void enable ( java.util.List < ? extends com.google.gct.testing.dimension.CloudTestingType > types , java.lang.Iterable < java.lang.String > ids ) { checkIsEditable ( ) ; java.util.Set < java.lang.String > idsSet = com.google.common.collect.Sets.newHashSet ( ids ) ; for ( com.google.gct.testing.dimension.CloudTestingType type : types ) { if ( idsSet.contains ( type.getId ( ) ) ) { validateType ( type ) ; enableType ( type ) ; } } }
Source:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case NativeCrypto.SSL_CB_HANDSHAKE_DONE : if ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case NativeCrypto.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }

Target:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case NativeCrypto.SSL_CB_HANDSHAKE_DONE : if ( ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) && ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.READY_HANDSHAKE_CUT_THROUGH ) ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case NativeCrypto.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return null ; return service.getRemoteDevice ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getDevicesMatchingConnectionStates" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public java.lang.String group ( java.lang.String name ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public java.lang.String group ( java.lang.String name ) { ensureMatch ( ) ; int group = java.util.regex.Matcher.getMatchedGroupIndex ( pattern.address , name ) ; int from = matchOffsets [ ( group * 2 ) ] ; int to = matchOffsets [ ( ( group * 2 ) + 1 ) ] ; if ( ( from == ( - 1 ) ) || ( to == ( - 1 ) ) ) { return null ; } else { return input.substring ( from , to ) ; } }
Source:
public boolean isVolteAvailable ( ) { try { return getITelephony ( ) . isVolteAvailable ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public java.lang.CharSequence getAndroidCarrierNameForSubscription ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; return service.getSubscriptionCarrierName ( getSubId ( ) ) ; } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.IllegalStateException ( "Telephony service unavailable" ) ; } return null ; }
Source:
public void testBluetoothAdapterReceiver ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; org.mockito.Mockito.when ( ringingCall.getHandle ( ) ) . thenReturn ( android.net.Uri.parse ( "tel:555-0000" ) ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.putExtra ( BluetoothAdapter.EXTRA_STATE , BluetoothAdapter.STATE_ON ) ; mBluetoothPhoneService.mBluetoothAdapterReceiver.onReceive ( mContext , intent ) ; org.mockito.Mockito.verify ( mMockBluetoothHeadset ) . phoneStateChanged ( org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CALL_STATE_INCOMING ) , org.mockito.Matchers.eq ( "555-0000" ) , org.mockito.Matchers.eq ( PhoneNumberUtils.TOA_Unknown ) ) ; }

Target:
public void testBluetoothAdapterReceiver ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; org.mockito.Mockito.when ( ringingCall.getHandle ( ) ) . thenReturn ( android.net.Uri.parse ( "tel:5550000" ) ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.putExtra ( BluetoothAdapter.EXTRA_STATE , BluetoothAdapter.STATE_ON ) ; mBluetoothPhoneService.mBluetoothAdapterReceiver.onReceive ( mContext , intent ) ; org.mockito.Mockito.verify ( mMockBluetoothHeadset ) . phoneStateChanged ( org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CALL_STATE_INCOMING ) , org.mockito.Matchers.eq ( "5550000" ) , org.mockito.Matchers.eq ( PhoneNumberUtils.TOA_Unknown ) ) ; }
Source:
private void validateType ( com.google.gct.testing.dimension.CloudTestingType type ) { if ( ! ( getSupportedDomain ( ) . contains ( type ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "Type " + type ) + " is not supported in domain: " ) + ( getSupportedDomain ( ) ) ) ) ; } }

Target:
public void enable ( java.util.List < ? extends com.google.gct.testing.dimension.CloudTestingType > types , java.lang.Iterable < java.lang.String > ids ) { checkIsEditable ( ) ; java.util.Set < java.lang.String > idsSet = com.google.common.collect.Sets.newHashSet ( ids ) ; for ( com.google.gct.testing.dimension.CloudTestingType type : types ) { if ( ( getSupportedDomain ( ) . contains ( type ) ) && ( idsSet.contains ( type.getId ( ) ) ) ) { enableType ( type ) ; } } }
Source:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }

Target:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } mWifiConfigStoreLegacy.removeStores ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }
Source:
static void verifySerialization ( java.lang.String want , android.net.ConnectivityMetricsEvent ... input ) { try { java.util.List < com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent > proto = com.android.server.connectivity.IpConnectivityEventBuilder.toProto ( java.util.Arrays.asList ( input ) ) ; byte [ ] got = com.android.server.connectivity.IpConnectivityEventBuilder.serialize ( 0 , proto ) ; com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog log = com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog.parseFrom ( got ) ; assertEquals ( want , log.toString ( ) ) ; } catch ( java.lang.Exception e ) { fail ( e.toString ( ) ) ; } }

Target:
static void verifySerialization ( java.lang.String want , android.net.ConnectivityMetricsEvent ... input ) { java.util.List < com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent > protoInput = com.android.server.connectivity.IpConnectivityEventBuilder.toProto ( java.util.Arrays.asList ( input ) ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , protoInput.toArray ( new com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent [ 0 ] ) ) ; }
Source:
public void testIsSupported_Null ( ) { try { java.nio.charset.Charset.isSupported ( null ) ; fail ( "Should throw IllegalArgumentException!" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void test_guaranteedCharsetsAvailable ( ) throws java.lang.Exception { assertNotNull ( java.nio.charset.Charset.forName ( "ISO-8859-1" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "US-ASCII" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16BE" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16LE" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-8" ) ) ; }
Source:
public com.android.builder.VariantConfiguration setDependencies ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.DependencyContainer > containers ) { for ( com.android.builder.DependencyContainer container : containers ) { mDirectLibraries.addAll ( container.getAndroidDependencies ( ) ) ; mJars.addAll ( container.getJarDependencies ( ) ) ; mJars.addAll ( container.getLocalDependencies ( ) ) ; } resolveIndirectLibraryDependencies ( mDirectLibraries , mFlatLibraries ) ; for ( com.android.builder.AndroidDependency androidDependency : mFlatLibraries ) { mJars.addAll ( androidDependency.getLocalDependencies ( ) ) ; } return this ; }

Target:
public com.android.builder.VariantConfiguration setDependencies ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.dependency.DependencyContainer > containers ) { for ( com.android.builder.dependency.DependencyContainer container : containers ) { mDirectLibraries.addAll ( container.getAndroidDependencies ( ) ) ; mJars.addAll ( container.getJarDependencies ( ) ) ; mJars.addAll ( container.getLocalDependencies ( ) ) ; } resolveIndirectLibraryDependencies ( mDirectLibraries , mFlatLibraries ) ; for ( com.android.builder.dependency.AndroidDependency androidDependency : mFlatLibraries ) { mJars.addAll ( androidDependency.getLocalDependencies ( ) ) ; } return this ; }
Source:
public boolean hasNext ( ) { return iterator.hasNext ( ) ; }

Target:
public boolean removeAll ( java.util.Collection < ? > c ) { return com.google.common.collect.Iterators.removeIf ( unfiltered.entrySet ( ) . iterator ( ) , com.google.common.base.Predicates.< java.util.Map.Entry < K , V > > and ( entryPredicate , com.google.common.collect.Maps.< K > keyPredicateOnEntries ( com.google.common.base.Predicates.in ( c ) ) ) ) ; }
Source:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.server.pm.Installer.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.rmdex ( codePath , instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void testRefactor2 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , false , true , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Rename package \'com.example.refactoringtest\' to \'my.pkg.name\'\n" ) + "\n" ) + "* MainActivity.java - /testRefactor2/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -3 +3\n" ) + " + import com.example.refactoringtest.R;\n" ) + " +\n" ) + "\n" ) + "\n" ) + "* customviews.xml - /testRefactor2/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <my.pkg.name.CustomView1\n" ) + "\n" ) + "\n" ) + "* activity_main.xml - /testRefactor2/res/layout/activity_main.xml\n" ) + " @@ -33 +33\n" ) + " - <fragment android:name=\"com.example.refactoringtest.MyFragment\"/>\n" ) + " + <fragment android:name=\"my.pkg.name.MyFragment\"/>\n" ) + "\n" ) + "\n" ) + "* customviews.xml - /testRefactor2/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <my.pkg.name.CustomView1\n" ) + "\n" ) + "\n" ) + "* AndroidManifest.xml - /testRefactor2/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"my.pkg.name.MainActivity\"\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\"my.pkg.name.MainActivity2\"" ) ) , true ) ; }

Target:
public void testRefactor2 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , false , true , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "[x] Rename package \'com.example.refactoringtest\' to \'my.pkg.name\'\n" ) + "\n" ) + "[x] MainActivity.java - /testRefactor2/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -3 +3\n" ) + " + import com.example.refactoringtest.R;\n" ) + " +\n" ) + "\n" ) + "\n" ) + "[x] customviews.xml - /testRefactor2/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <my.pkg.name.CustomView1\n" ) + "\n" ) + "\n" ) + "[x] activity_main.xml - /testRefactor2/res/layout/activity_main.xml\n" ) + " @@ -33 +33\n" ) + " - <fragment android:name=\"com.example.refactoringtest.MyFragment\"/>\n" ) + " + <fragment android:name=\"my.pkg.name.MyFragment\"/>\n" ) + "\n" ) + "\n" ) + "[x] customviews.xml - /testRefactor2/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <my.pkg.name.CustomView1\n" ) + "\n" ) + "\n" ) + "[x] AndroidManifest.xml - /testRefactor2/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"my.pkg.name.MainActivity\"\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\"my.pkg.name.MainActivity2\"" ) ) , true ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; result = 0 ; msgHandled = false ; mCtx = getContext ( ) ; mRes = mCtx.getResources ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.os.StrictMode.setVmPolicy ( new android.os.StrictMode.VmPolicy.Builder ( ) . detectLeakedClosableObjects ( ) . penaltyLog ( ) . build ( ) ) ; result = 0 ; msgHandled = false ; mCtx = getContext ( ) ; mRes = mCtx.getResources ( ) ; }
Source:
public java.lang.String getIccSimChallengeResponse ( int subId , int appType , java.lang.String data ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIccSimChallengeResponse ( subId , appType , data ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public java.lang.String getIccAuthentication ( int subId , int appType , int authType , java.lang.String data ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIccSimChallengeResponse ( subId , appType , authType , data ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }