auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public long skip ( long byteCount ) throws java.io.IOException { if ( byteCount < 0 ) { throw new java.io.IOException ( ( "byteCount < 0: " + byteCount ) ) ; } try { Libcore.os.lseek ( fd , byteCount , java.io.SEEK_CUR ) ; return byteCount ; } catch ( libcore.io.ErrnoException errnoException ) { if ( ( errnoException.errno ) == ( ESPIPE ) ) { return super . skip ( byteCount ) ; } throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public long skip ( long byteCount ) throws java.io.IOException { if ( byteCount < 0 ) { throw new java.io.IOException ( ( "byteCount < 0: " + byteCount ) ) ; } try { Libcore.os.lseek ( fd , byteCount , java.io.SEEK_CUR ) ; return byteCount ; } catch ( android.system.ErrnoException errnoException ) { if ( ( errnoException.errno ) == ( ESPIPE ) ) { return super . skip ( byteCount ) ; } throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public boolean containsKey ( java.lang.Object key ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; return segmentFor ( hash ) . containsKey ( key , hash ) ; }

Target:
public V replace ( K key , V value ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; if ( value == null ) throw new java.lang.NullPointerException ( ) ; java.util.concurrent.ConcurrentHashMap.Segment < K , V > s = segmentForHash ( hash ) ; return s == null ? null : s.replace ( key , hash , value ) ; }
Source:
private void setBluetoothOn ( boolean on ) { if ( mBluetoothRouteManager.isBluetoothAvailable ( ) ) { if ( on != ( mBluetoothRouteManager.isBluetoothAudioConnectedOrPending ( ) ) ) { android.telecom.Log.i ( this , "connecting bluetooth %s" , on ) ; if ( on ) { mBluetoothRouteManager.connectBluetoothAudio ( null ) ; } else { mBluetoothRouteManager.disconnectBluetoothAudio ( ) ; } } } }

Target:
private void setBluetoothOff ( ) { if ( mBluetoothRouteManager.isBluetoothAvailable ( ) ) { if ( mBluetoothRouteManager.isBluetoothAudioConnectedOrPending ( ) ) { android.telecom.Log.i ( this , "disconnecting bluetooth audio" ) ; mBluetoothRouteManager.disconnectBluetoothAudio ( ) ; } } }
Source:
public com.android.server.wifi.hotspot2.PasspointEventHandler makePasspointEventHandler ( com.android.server.wifi.hotspot2.PasspointEventHandler.Callbacks callbacks ) { return new com.android.server.wifi.hotspot2.PasspointEventHandler ( mWifiNative , callbacks ) ; }

Target:
public com.android.server.wifi.WifiConnectivityManager makeWifiConnectivityManager ( android.net.wifi.WifiInfo wifiInfo , boolean hasConnectionRequests ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , getWifiScanner ( ) , mWifiConfigManager , wifiInfo , mWifiNetworkSelector , mWifiLastResortWatchdog , mWifiMetrics , mWifiStateMachineHandlerThread.getLooper ( ) , mClock , hasConnectionRequests , mFrameworkFacade , mSavedNetworkEvaluator , mRecommendedNetworkEvaluator , mPasspointNetworkEvaluator ) ; }
Source:
public void linkActivated ( org.eclipse.ui.forms.events.HyperlinkEvent e ) { if ( project != null ) { if ( "manual" . equals ( e.data ) ) { com.android.ide.eclipse.adt.internal.project.ExportHelper.exportProject ( project ) ; } else { com.android.ide.eclipse.adt.internal.project.ExportHelper.startExportWizard ( project ) ; } } }

Target:
public void linkActivated ( org.eclipse.ui.forms.events.HyperlinkEvent e ) { if ( project != null ) { if ( "manual" . equals ( e.data ) ) { com.android.ide.eclipse.adt.internal.project.ExportHelper.exportUnsignedReleaseApk ( project ) ; } else { org.eclipse.jface.viewers.StructuredSelection selection = new org.eclipse.jface.viewers.StructuredSelection ( project ) ; com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard wizard = new com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard ( ) ; wizard.init ( org.eclipse.ui.PlatformUI.getWorkbench ( ) , selection ) ; org.eclipse.jface.wizard.WizardDialog dialog = new org.eclipse.jface.wizard.WizardDialog ( body.getShell ( ) , wizard ) ; dialog.open ( ) ; } } }
Source:
public javax.net.ssl.SSLEngine engineCreateSSLEngine ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public javax.net.ssl.SSLEngine engineCreateSSLEngine ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } org.conscrypt.SSLParametersImpl p = ( ( org.conscrypt.SSLParametersImpl ) ( sslParameters.clone ( ) ) ) ; p.setUseClientMode ( false ) ; return new org.conscrypt.OpenSSLEngineImpl ( p ) ; }
Source:
public void testEndCallWithNonRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; assertTrue ( mTSIBinder.endCall ( ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }

Target:
public void testEndCallWithNonRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }
Source:
protected void initSdk ( ) { setSdkManager ( com.android.sdklib.SdkManager.createManager ( mOsSdkRoot , mSdkLog ) ) ; try { mAvdManager = null ; mAvdManager = new com.android.sdklib.internal.avd.AvdManager ( mSdkManager , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mSdkLog.error ( e , ( "Unable to read AVDs: " + ( e.getMessage ( ) ) ) ) ; mAvdManagerInitError = e ; } broadcastOnSdkReload ( ) ; }

Target:
protected void initSdk ( ) { setSdkManager ( com.android.sdklib.SdkManager.createManager ( mOsSdkRoot , mSdkLog ) ) ; try { mAvdManager = null ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mSdkLog.error ( e , ( "Unable to read AVDs: " + ( e.getMessage ( ) ) ) ) ; mAvdManagerInitError = e ; } broadcastOnSdkReload ( ) ; }
Source:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.C" ) ; source.getSource ( ) . include ( "**/*.CPP" ) ; source.getSource ( ) . include ( "**/*.c++" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; }

Target:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.C" ) ; source.getSource ( ) . include ( "**/*.CPP" ) ; source.getSource ( ) . include ( "**/*.c++" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; source.getSource ( ) . exclude ( jni.getSource ( ) . getExcludes ( ) ) ; }
Source:
public java.lang.reflect.Type getGenericSuperclass ( ) { org.apache.harmony.luni.lang.reflect.GenericSignatureParser parser = new org.apache.harmony.luni.lang.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; return org.apache.harmony.luni.lang.reflect.Types.getType ( parser.superclassType ) ; }

Target:
public java.lang.reflect.Type [ ] getGenericInterfaces ( ) { java.lang.reflect.Type [ ] result ; synchronized ( java.lang.Class.Caches.genericInterfaces ) { result = java.lang.Class.Caches.genericInterfaces.get ( this ) ; if ( result == null ) { libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; result = libcore.reflect.Types.getClonedTypeArray ( parser.interfaceTypes ) ; java.lang.Class.Caches.genericInterfaces.put ( this , result ) ; } } return result ; }
Source:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; com.intellij.uiDesigner.compiler.FormLayoutCodeGenerator.addNewCellConstraints ( generator , lwComponent ) ; generator.invokeVirtual ( ourContainerType , ourAddMethod ) ; }

Target:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; com.intellij.uiDesigner.compiler.FormLayoutCodeGenerator.addNewCellConstraints ( generator , lwComponent ) ; generator.invokeVirtual ( ourContainerType , ourAddMethod ) ; }
Source:
protected void onPostExecute ( java.lang.Boolean success ) { views.isLoaded = true ; if ( success ) { views.callbackAction = getCallbackAction ( views.rowId ) ; int currentDayGroup = getDayGroup ( views.rowId ) ; if ( currentDayGroup != ( details.previousGroup ) ) { views.dayGroupHeaderVisibility = android.view.View.VISIBLE ; views.dayGroupHeaderText = getGroupDescription ( currentDayGroup ) ; } else { views.dayGroupHeaderVisibility = android.view.View.GONE ; } render ( views , details , rowId ) ; } }

Target:
protected void onPostExecute ( java.lang.Boolean success ) { viewHolder.isLoaded = true ; if ( success ) { viewHolder.callbackAction = getCallbackAction ( viewHolder.rowId ) ; int currentDayGroup = getDayGroup ( viewHolder.rowId ) ; if ( currentDayGroup != ( details.previousGroup ) ) { viewHolder.dayGroupHeaderVisibility = android.view.View.VISIBLE ; viewHolder.dayGroupHeaderText = getGroupDescription ( currentDayGroup ) ; } else { viewHolder.dayGroupHeaderVisibility = android.view.View.GONE ; } render ( viewHolder , details , rowId ) ; } }
Source:
public java.lang.Object getDumpedThing ( java.lang.String name ) { com.android.tools.perflib.heap.ClassObj main = mSnapshot.findClass ( "Main" ) ; com.android.tools.perflib.heap.Instance stuff = null ; for ( java.util.Map.Entry < com.android.tools.perflib.heap.Field , java.lang.Object > fields : main.getStaticFieldValues ( ) . entrySet ( ) ) { if ( "stuff" . equals ( fields.getKey ( ) . getName ( ) ) ) { stuff = ( ( com.android.tools.perflib.heap.Instance ) ( fields.getValue ( ) ) ) ; } } return com.android.ahat.InstanceUtils.getField ( stuff , name ) ; }

Target:
public com.android.ahat.heapdump.Value getDumpedValue ( java.lang.String name ) { com.android.ahat.heapdump.AhatClassObj main = mSnapshot.findClass ( "Main" ) ; com.android.ahat.heapdump.AhatInstance stuff = null ; for ( com.android.ahat.heapdump.FieldValue fields : main.getStaticFieldValues ( ) ) { if ( "stuff" . equals ( fields.getName ( ) ) ) { stuff = fields.getValue ( ) . asAhatInstance ( ) ; } } return stuff.getField ( name ) ; }
Source:
private void notifyConferenceSessionTerminated ( com.android.ims.ImsReasonInfo reasonInfo ) { com.android.ims.ImsCall.Listener listener = mListener ; clear ( reasonInfo ) ; if ( listener != null ) { try { listener.onCallTerminated ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "notifyConferenceSessionTerminated :: " , t ) ; } } }

Target:
private void notifyConferenceSessionTerminated ( android.telephony.ims.ImsReasonInfo reasonInfo ) { com.android.ims.ImsCall.Listener listener = mListener ; clear ( reasonInfo ) ; if ( listener != null ) { try { listener.onCallTerminated ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "notifyConferenceSessionTerminated :: " , t ) ; } } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_SCREEN_ON.equals ( intent.getAction ( ) ) ) { mStartButton.setEnabled ( true ) ; } else if ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.ACTION_EXPEDITE_IDLE_MODE.equals ( intent.getAction ( ) ) ) { mStartButton.setEnabled ( false ) ; } else { android.util.Log.e ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.TAG , "Invalid broadcast received, was expecting SCREEN_ON" ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_SCREEN_OFF.equals ( intent.getAction ( ) ) ) { if ( ( mTestState ) == ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.IDLE_ON_TEST_STATE_WAITING_FOR_SCREEN_OFF ) ) { mContinueInstructionTextView.setVisibility ( View.GONE ) ; android.os.PowerManager.WakeLock wl = mPowerManager.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.TAG ) ; wl.acquire ( ) ; new com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.TestIdleModeTaskIdle ( ) . execute ( wl ) ; } } else { android.util.Log.e ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.TAG , "Invalid broadcast received, was expecting SCREEN_OFF" ) ; } }
Source:
public boolean isServiceAvailable ( ) { connectIfServiceIsAvailable ( ) ; return mMmTelFeatureConnection.isBinderAlive ( ) ; }

Target:
public boolean isServiceAvailable ( ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; if ( tm.isResolvingImsBinding ( ) ) { android.util.Log.d ( com.android.ims.ImsManager.TAG , "isServiceAvailable: resolving IMS binding, returning false" ) ; return false ; } connectIfServiceIsAvailable ( ) ; return mMmTelFeatureConnection.isBinderAlive ( ) ; }
Source:
public void testMismatchInCheck ( ) { try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ) ; fail ( "Previous call expected to fail" ) ; } catch ( junit.framework.AssertionFailedError e ) { assertFailureStackContainsThisClass ( e ) ; } }

Target:
public void mismatchInCheck ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; expectedException.expect ( stackTraceContainsThisClass ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ) ; }
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 , com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent ... input ) { try { byte [ ] got = com.android.server.connectivity.IpConnectivityEventBuilder.serialize ( 0 , java.util.Arrays.asList ( input ) ) ; com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog log = com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog.parseFrom ( got ) ; org.junit.Assert.assertEquals ( want , log.toString ( ) ) ; } catch ( java.lang.Exception e ) { org.junit.Assert.fail ( e.toString ( ) ) ; } }
Source:
private void displayNetworkSelectionSucceeded ( ) { java.lang.String status = getResources ( ) . getString ( R.string.registration_done ) ; final com.android.phone.PhoneApp app = com.android.phone.PhoneApp.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; mHandler.postDelayed ( new java.lang.Runnable ( ) { public void run ( ) { finish ( ) ; } } , 3000 ) ; }

Target:
private void displayNetworkSelectionSucceeded ( ) { java.lang.String status = getResources ( ) . getString ( R.string.registration_done ) ; final com.android.phone.PhoneGlobals app = com.android.phone.PhoneGlobals.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; mHandler.postDelayed ( new java.lang.Runnable ( ) { public void run ( ) { finish ( ) ; } } , 3000 ) ; }
Source:
void stopScan ( com.android.bluetooth.gatt.ScanClient client ) { enforceAdminPermission ( ) ; int scanQueueSize = ( mScanManager.getBatchScanQueue ( ) . size ( ) ) + ( mScanManager.getRegularScanQueue ( ) . size ( ) ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "stopScan() - queue size =" + scanQueueSize ) ) ; mClientMap.getScanStatsById ( client.clientIf ) . stopScan ( ) ; mScanManager.stopScan ( client ) ; }

Target:
void stopScan ( com.android.bluetooth.gatt.ScanClient client ) { enforceAdminPermission ( ) ; int scanQueueSize = ( mScanManager.getBatchScanQueue ( ) . size ( ) ) + ( mScanManager.getRegularScanQueue ( ) . size ( ) ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "stopScan() - queue size =" + scanQueueSize ) ) ; mClientMap.getScanStatsById ( client.clientIf ) . recordScanStop ( ) ; mScanManager.stopScan ( client ) ; }
Source:
synchronized void nScriptBindAllocation ( long script , long alloc , int slot ) { validate ( ) ; rsnScriptBindAllocation ( mContext , script , alloc , slot ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarV ( curCon , id , slot , val , mUseInc ) ; }
Source:
protected byte [ ] createVerifyData ( boolean isServer ) { org.bouncycastle.crypto.tls.TlsContext context = getContext ( ) ; if ( isServer ) { return org.bouncycastle.crypto.tls.TlsUtils.calculateVerifyData ( context , ExporterLabel.server_finished , org.bouncycastle.crypto.tls.TlsProtocol.getCurrentPRFHash ( getContext ( ) , recordStream.getHandshakeHash ( ) , TlsUtils.SSL_SERVER ) ) ; } return org.bouncycastle.crypto.tls.TlsUtils.calculateVerifyData ( context , ExporterLabel.client_finished , org.bouncycastle.crypto.tls.TlsProtocol.getCurrentPRFHash ( getContext ( ) , recordStream.getHandshakeHash ( ) , TlsUtils.SSL_CLIENT ) ) ; }

Target:
protected byte [ ] createVerifyData ( boolean isServer ) { org.bouncycastle.crypto.tls.TlsContext context = getContext ( ) ; java.lang.String asciiLabel = ( isServer ) ? ExporterLabel.server_finished : ExporterLabel.client_finished ; byte [ ] sslSender = ( isServer ) ? TlsUtils.SSL_SERVER : TlsUtils.SSL_CLIENT ; byte [ ] hash = org.bouncycastle.crypto.tls.TlsProtocol.getCurrentPRFHash ( context , recordStream.getHandshakeHash ( ) , sslSender ) ; return org.bouncycastle.crypto.tls.TlsUtils.calculateVerifyData ( context , asciiLabel , hash ) ; }
Source:
public void testSessionCreation ( ) throws java.lang.Exception { android.telephony.MbmsStreamingSession session = android.telephony.MbmsStreamingSession.create ( mContext , mCallback , mCallbackHandler ) ; assertNotNull ( session ) ; assertTrue ( mCallback.waitOnMiddlewareReady ( ) ) ; assertEquals ( 0 , mCallback.getNumErrorCalls ( ) ) ; java.util.List initializeCall = ( ( java.util.List ) ( mMiddlewareControl.getStreamingSessionCalls ( ) . get ( 0 ) ) ) ; assertEquals ( "initialize" , initializeCall.get ( 0 ) ) ; }

Target:
private void setupStreamingSession ( ) throws java.lang.Exception { mStreamingSession = android.telephony.MbmsStreamingSession.create ( mContext , mCallback , mCallbackHandler ) ; assertNotNull ( mStreamingSession ) ; assertTrue ( mCallback.waitOnMiddlewareReady ( ) ) ; assertEquals ( 0 , mCallback.getNumErrorCalls ( ) ) ; java.util.List initializeCall = ( ( java.util.List ) ( mMiddlewareControl.getStreamingSessionCalls ( ) . get ( 0 ) ) ) ; assertEquals ( CtsStreamingService.METHOD_INITIALIZE , initializeCall.get ( 0 ) ) ; }
Source:
public boolean removeAll ( final java.util.Collection < ? > c ) { com.google.common.base.Preconditions.checkNotNull ( c ) ; com.google.common.base.Predicate < java.util.Map.Entry < R , V > > predicate = new com.google.common.base.Predicate < java.util.Map.Entry < R , V > > ( ) { @ java.lang.Override public boolean apply ( java.util.Map.Entry < R , V > entry ) { return c.contains ( entry.getValue ( ) ) ; } } ; return removePredicate ( predicate ) ; }

Target:
public java.util.Iterator < java.util.Map.Entry < R , java.util.Map < C , V > > > iterator ( ) { return com.google.common.collect.Maps.asMapEntryIterator ( backingMap.keySet ( ) , new com.google.common.base.Function < R , java.util.Map < C , V > > ( ) { @ java.lang.Override public java.util.Map < C , V > apply ( R rowKey ) { return row ( rowKey ) ; } } ) ; }
Source:
private boolean matchesMobile ( android.net.NetworkIdentity ident ) { if ( ( ident.mType ) == ( android.net.ConnectivityManager.TYPE_WIMAX ) ) { return true ; } else { return ( ( android.net.NetworkTemplate.sForceAllNetworkTypes ) || ( com.android.internal.util.ArrayUtils.contains ( android.net.NetworkTemplate.DATA_USAGE_NETWORK_TYPES , ident.mType ) ) ) && ( com.android.internal.util.Objects.equal ( mSubscriberId , ident.mSubscriberId ) ) ; } }

Target:
private boolean matchesMobile ( android.net.NetworkIdentity ident ) { if ( ( ident.mType ) == ( android.net.ConnectivityManager.TYPE_WIMAX ) ) { return true ; } else { return ( ( android.net.NetworkTemplate.sForceAllNetworkTypes ) || ( com.android.internal.util.ArrayUtils.contains ( android.net.NetworkTemplate.DATA_USAGE_NETWORK_TYPES , ident.mType ) ) ) && ( java.util.Objects.equals ( mSubscriberId , ident.mSubscriberId ) ) ; } }
Source:
public void sendEnvelopeWithStatus ( java.lang.String contents , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + '[' ) + contents ) + ']' ) ) ; rr.mParcel.writeString ( contents ) ; send ( rr ) ; }

Target:
public void sendEnvelopeWithStatus ( java.lang.String contents , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + '[' ) + contents ) + ']' ) ) ; rr.mParcel.writeString ( contents ) ; send ( rr ) ; }
Source:
void verify ( ) { byte [ ] d = digest.digest ( ) ; if ( ! ( java.security.MessageDigest.isEqual ( d , libcore.io.Base64.decode ( hash ) ) ) ) { throw invalidDigest ( java.util.jar.JarFile.MANIFEST_NAME , name , jarName ) ; } this . verifiedEntries.put ( name , certificates ) ; }

Target:
void verify ( ) { byte [ ] d = digest.digest ( ) ; if ( ! ( java.security.MessageDigest.isEqual ( d , libcore.io.Base64.decode ( hash ) ) ) ) { throw java.util.jar.JarVerifier.invalidDigest ( java.util.jar.JarFile.MANIFEST_NAME , name , name ) ; } verifiedEntries.put ( name , certificates ) ; }
Source:
private boolean waitForObject ( ) { while ( true ) { java.lang.Object object = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; if ( object != null ) { return true ; } synchronized ( this ) { try { wait ( ) ; } catch ( java.lang.InterruptedException e ) { return false ; } } } }

Target:
private boolean waitForObject ( ) { while ( true ) { java.lang.Object object = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; if ( object != null ) { return true ; } synchronized ( this ) { try { wait ( ) ; } catch ( java.lang.InterruptedException e ) { return false ; } catch ( java.lang.OutOfMemoryError e ) { return false ; } } } }
Source:
private static android.net.wifi.aware.Characteristics getCharacteristics ( ) { com.android.server.wifi.aware.Capabilities cap = new com.android.server.wifi.aware.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxMatchFilterLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxVsaDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap.toPublicCharacteristics ( ) ; }

Target:
private static android.net.wifi.aware.Characteristics getCharacteristics ( ) { com.android.server.wifi.aware.Capabilities cap = new com.android.server.wifi.aware.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxMatchFilterLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxExtendedServiceSpecificInfoLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap.toPublicCharacteristics ( ) ; }
Source:
private boolean removeTaskByIdLocked ( int taskId , boolean killProcess ) { com.android.server.am.TaskRecord tr = mStackSupervisor.anyTaskForIdLocked ( taskId , false ) ; if ( tr != null ) { tr.removeTaskActivitiesLocked ( ) ; cleanUpRemovedTaskLocked ( tr , killProcess ) ; if ( tr.isPersistable ) { notifyTaskPersisterLocked ( null , true ) ; } return true ; } android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( "Request to remove task ignored for non-existent task " + taskId ) ) ; return false ; }

Target:
public android.app.IActivityContainer createStackOnDisplay ( int displayId ) throws android.os.RemoteException { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "createStackOnDisplay()" ) ; synchronized ( this ) { final int stackId = mStackSupervisor.getNextStackId ( ) ; final com.android.server.am.ActivityStack stack = mStackSupervisor.createStackOnDisplay ( stackId , displayId , true ) ; if ( stack == null ) { return null ; } return stack.mActivityContainer ; } }
Source:
private void setIpAddressStatus ( ) { android.preference.Preference ipAddressPref = findPreference ( com.android.settings.deviceinfo.Status.KEY_IP_ADDRESS ) ; java.lang.String ipAddress = com.android.settings.Utils.getDefaultIpAddresses ( this ) ; if ( ipAddress != null ) { ipAddressPref.setSummary ( ipAddress ) ; } else { ipAddressPref.setSummary ( getString ( R.string.status_unavailable ) ) ; } }

Target:
private void setWimaxStatus ( ) { if ( ( mWimaxMacAddress ) != null ) { java.lang.String macAddress = android.os.SystemProperties.get ( "net.wimax.mac.address" , mUnavailable ) ; mWimaxMacAddress.setSummary ( macAddress ) ; } }
Source:
private void prefixOptionToString ( java.lang.StringBuffer sb , int offset ) { java.lang.String prefix = IPv6AddresstoString ( ( offset + 16 ) ) ; int length = android.net.apf.ApfFilter.uint8 ( mPacket.get ( ( offset + 2 ) ) ) ; long valid = mPacket.getInt ( ( offset + 4 ) ) ; long preferred = mPacket.getInt ( ( offset + 8 ) ) ; sb.append ( java.lang.String.format ( "%s/%d %ds/%ds " , prefix , length , valid , preferred ) ) ; }

Target:
private void prefixOptionToString ( java.lang.StringBuffer sb , int offset ) { java.lang.String prefix = IPv6AddresstoString ( ( offset + 16 ) ) ; int length = android.net.apf.ApfFilter.getUint8 ( mPacket , ( offset + 2 ) ) ; long valid = android.net.apf.ApfFilter.getUint32 ( mPacket , ( offset + 4 ) ) ; long preferred = android.net.apf.ApfFilter.getUint32 ( mPacket , ( offset + 8 ) ) ; sb.append ( java.lang.String.format ( "%s/%d %ds/%ds " , prefix , length , valid , preferred ) ) ; }
Source:
public void testHasKeyWithMultipleEntries ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putDouble ( "key" , 10000000 ) ; bundle.putDouble ( "key1" , 10000001 ) ; bundle.putBundle ( "key2" , new android.os.Bundle ( ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasKey ( "key2" ) . matches ( bundle ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasKey ( org.hamcrest.Matchers.equalTo ( "key2" ) ) . matches ( bundle ) ) ; }

Target:
public void hasKeyWithMultipleEntries ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putDouble ( "key" , 10000000 ) ; bundle.putDouble ( "key1" , 10000001 ) ; bundle.putBundle ( "key2" , new android.os.Bundle ( ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasKey ( "key2" ) . matches ( bundle ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasKey ( org.hamcrest.Matchers.equalTo ( "key2" ) ) . matches ( bundle ) ) ; }
Source:
public java.util.List < java.io.File > getLocalJars ( ) { java.util.List < java.io.File > localJars = com.google.common.collect.Lists.newArrayList ( ) ; java.io.File [ ] jarList = new java.io.File ( mBundleFolder , com.android.SdkConstants.LIBS_FOLDER ) . listFiles ( ) ; if ( jarList != null ) { for ( java.io.File jars : jarList ) { if ( ( jars.isFile ( ) ) && ( jars.getName ( ) . endsWith ( ".jar" ) ) ) { localJars.add ( jars ) ; } } } return localJars ; }

Target:
public java.util.List < java.io.File > getLocalJars ( ) { java.util.List < java.io.File > localJars = com.google.common.collect.Lists.newArrayList ( ) ; java.io.File [ ] jarList = new java.io.File ( getJarsRootFolder ( ) , com.android.SdkConstants.LIBS_FOLDER ) . listFiles ( ) ; if ( jarList != null ) { for ( java.io.File jars : jarList ) { if ( ( jars.isFile ( ) ) && ( jars.getName ( ) . endsWith ( ".jar" ) ) ) { localJars.add ( jars ) ; } } } return localJars ; }
Source:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actionsMap.get ( action.getId ( ) ) ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { gre.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , key , ( ! isChecked ) ) ; } } }

Target:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actions ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { gre.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getClosure ( ) , a2 , key , ( ! isChecked ) ) ; } } }
Source:
public com.android.builder.model.AndroidLibrary getGradleLibraryModel ( ) { return null ; }

Target:
public java.util.List < java.io.File > getJavaLibraries ( ) { if ( ( mJavaLibraries ) == null ) { java.util.Collection < java.io.File > jars = mVariant.getMainArtifact ( ) . getDependencies ( ) . getJars ( ) ; mJavaLibraries = com.google.common.collect.Lists.newArrayListWithExpectedSize ( jars.size ( ) ) ; for ( java.io.File jar : jars ) { if ( jar.exists ( ) ) { mJavaLibraries.add ( jar ) ; } } } return mJavaLibraries ; }
Source:
public void run ( ) { try { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( true ) ; long threadId = conv.ensureThreadId ( ) ; conv.setDraftState ( true ) ; updateDraftSmsMessage ( conv , contents ) ; } finally { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( false ) ; } }

Target:
public void run ( ) { try { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( true ) ; if ( conv.getRecipients ( ) . isEmpty ( ) ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.LogTag.debug ( "asyncUpdateDraftSmsMessage no recipients, not saving" ) ; } return ; } long threadId = conv.ensureThreadId ( ) ; conv.setDraftState ( true ) ; updateDraftSmsMessage ( conv , contents ) ; } finally { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( false ) ; } }
Source:
public static void notifyChangeForSubId ( android.content.Context context , android.telephony.ServiceState oldSS , android.telephony.ServiceState newSS , int subId ) { if ( ( ( ( ( oldSS == null ) || ( com.android.providers.telephony.ServiceStateProvider.voiceRegStateChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.dataRegStateChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.voiceRoamingTypeChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.dataRoamingTypeChanged ( oldSS , newSS ) ) ) { context.getContentResolver ( ) . notifyChange ( ServiceStateTable.getUriForSubId ( subId ) , null , false ) ; } }

Target:
public static void notifyChangeForSubId ( android.content.Context context , android.telephony.ServiceState oldSS , android.telephony.ServiceState newSS , int subId ) { if ( ( ( ( ( oldSS == null ) || ( com.android.providers.telephony.ServiceStateProvider.voiceRegStateChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.dataRegStateChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.voiceRoamingTypeChanged ( oldSS , newSS ) ) ) || ( com.android.providers.telephony.ServiceStateProvider.dataRoamingTypeChanged ( oldSS , newSS ) ) ) { context.getContentResolver ( ) . notifyChange ( ServiceStateTable.getUriForSubscriptionId ( subId ) , null , false ) ; } }
Source:
HEAD ( ) { android.graphics.drawable.cts.b271 Merge ; android.graphics.drawable.cts.b271 DO ; }

Target:
public void testGetOpacity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { android.graphics.drawable.VectorDrawable vectorDrawable = new android.graphics.drawable.VectorDrawable ( ) ; org.junit.Assert.assertEquals ( "Default alpha should be 255" , 255 , vectorDrawable.getAlpha ( ) ) ; org.junit.Assert.assertEquals ( "Default opacity should be TRANSLUCENT" , PixelFormat.TRANSLUCENT , vectorDrawable.getOpacity ( ) ) ; vectorDrawable.setAlpha ( 0 ) ; org.junit.Assert.assertEquals ( "Alpha should be 0 now" , 0 , vectorDrawable.getAlpha ( ) ) ; org.junit.Assert.assertEquals ( "Opacity should be TRANSPARENT now" , PixelFormat.TRANSPARENT , vectorDrawable.getOpacity ( ) ) ; }
Source:
public boolean unplug ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( "unplug(): device=" + device ) ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unplug ( 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 ; }

Target:
public java.lang.String getUserAppName ( ) { final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getUserAppName ( ) ; } 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 "" ; }
Source:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.reportError ( error ) ) ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.reportError ( error ) ) ; }
Source:
private int [ ] getInts ( int offset , int count ) { int [ ] ints = new int [ count ] ; for ( int i = 0 ; i < count ; offset += 4 , ++ i ) { ints [ i ] = bytes.getInt ( offset ) ; } return ints ; }

Target:
private int [ ] getInts ( int offset , int count ) { int [ ] ints = new int [ count ] ; if ( count <= 16 ) { for ( int i = 0 ; i < count ; offset += 4 , ++ i ) { ints [ i ] = bytes.getInt ( offset ) ; } } else { java.nio.IntBuffer temp = bytes.asIntBuffer ( ) ; temp.position ( ( offset / 4 ) ) ; temp.get ( ints ) ; } return ints ; }
Source:
void setVideoProvider ( java.lang.String callId , android.telecom.Connection.VideoProvider videoProvider ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setVideoProvider ( callId , ( videoProvider == null ? null : videoProvider.getInterface ( ) ) ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void setVideoProvider ( java.lang.String callId , android.telecom.Connection.VideoProvider videoProvider ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setVideoProvider ( callId , ( videoProvider == null ? null : videoProvider.getInterface ( ) ) , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public int waitUntilIdle ( ) throws android.os.RemoteException { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "waitUntilIdle called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot wait until idle, device has been closed." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.ENODEV ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot wait until idle, configuration change in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } } mLegacyDevice.waitUntilIdle ( ) ; return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }

Target:
public int waitUntilIdle ( ) throws android.os.RemoteException { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "waitUntilIdle called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot wait until idle, device has been closed." ) ; return - ( android.system.OsConstants.ENODEV ) ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot wait until idle, configuration change in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } } mLegacyDevice.waitUntilIdle ( ) ; return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }
Source:
protected boolean stop ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "stop()" ) ; } return true ; }

Target:
protected boolean stop ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "stop()" ) ; } com.android.bluetooth.hid.HidDeviceService.setHidDeviceService ( null ) ; if ( mNativeAvailable ) { mHidDeviceNativeInterface.cleanup ( ) ; mNativeAvailable = false ; } mActivityManager.removeOnUidImportanceListener ( mUidImportanceListener ) ; return true ; }
Source:
public float float32 ( ) throws java.io.IOException { return java.lang.Float.intBitsToFloat ( int32 ( ) ) ; }

Target:
public float float32 ( ) throws java.io.IOException { int bits = ( ( int ) ( uintv ( ) ) ) ; int shuffled = ( ( ( ( bits & 255 ) << 24 ) | ( ( bits & 65280 ) << 8 ) ) | ( ( bits & 16711680 ) > > 8 ) ) | ( ( bits & - 16777216 ) > > > 24 ) ; return java.lang.Float.intBitsToFloat ( shuffled ) ; }
Source:
public com.android.jack.api.JackProvider getJackProvider ( @ javax.annotation.Nonnull com.android.jack.server.VersionFinder finder , @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Assertion status ) throws com.android.jack.server.NoSuchVersionException , com.android.jack.server.UnsupportedProgramException { synchronized ( installedJack ) { com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program = selectJack ( finder ) ; com.android.jack.api.JackProvider jackProvider ; jackProvider = program.getLoadedProgram ( status ) ; if ( jackProvider == null ) { jackProvider = program.getLastLoadedProgram ( status ) ; if ( jackProvider == null ) { jackProvider = loadJack ( program.getUrlPath ( ) , status ) ; } program.setLoadedProgram ( status , jackProvider ) ; } return jackProvider ; } }

Target:
public com.android.jack.api.JackProvider getProvider ( @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program ) throws com.android.jack.server.UnsupportedProgramException { synchronized ( program ) { com.android.jack.api.JackProvider jackProvider = program.getLoadedProgram ( ) ; if ( jackProvider == null ) { jackProvider = loadJack ( program.getJar ( ) ) ; program.setLoadedProgram ( jackProvider ) ; } return jackProvider ; } }
Source:
void test ( ) { if ( ( mNm.getEffectsSuppressor ( ) ) == null ) { status = PASS ; } else { status = FAIL ; } }

Target:
protected void test ( ) { if ( ( ( mNm.getEffectsSuppressor ( ) ) == null ) && ( ( ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) ) == null ) || ( ! ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . isConnected ) ) ) ) { status = PASS ; } else { if ( ( -- ( mRetries ) ) > 0 ) { sleep ( 100 ) ; status = RETEST ; } else { status = FAIL ; } } }
Source:
public void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.clientConnect ( clientIf , address , isDirect , transport ) ; }

Target:
public void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , int phy ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.clientConnect ( clientIf , address , isDirect , transport , phy ) ; }
Source:
public com.android.ims.ImsEcbm getEcbmInterface ( ) throws com.android.ims.ImsException { if ( ( ( mEcbm ) != null ) && ( mEcbm.isBinderAlive ( ) ) ) { return mEcbm ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsEcbm iEcbm = mMmTelFeatureConnection.getEcbmInterface ( ) ; if ( iEcbm == null ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , ImsReasonInfo.CODE_ECBM_NOT_SUPPORTED ) ; } mEcbm = new com.android.ims.ImsEcbm ( iEcbm ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mEcbm ; }

Target:
public com.android.ims.ImsEcbm getEcbmInterface ( ) throws com.android.ims.ImsException { if ( ( ( mEcbm ) != null ) && ( mEcbm.isBinderAlive ( ) ) ) { return mEcbm ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsEcbm iEcbm = mMmTelFeatureConnection.getEcbmInterface ( ) ; if ( iEcbm == null ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , android.telephony.ims.ImsReasonInfo.CODE_ECBM_NOT_SUPPORTED ) ; } mEcbm = new com.android.ims.ImsEcbm ( iEcbm ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mEcbm ; }
Source:
private boolean isShorterThanPossibleNormalNumber ( com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata regionMetadata , java.lang.String number ) { java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( regionMetadata.generalDesc.possibleNumberPattern ) ; return ( testNumberLengthAgainstPattern ( possibleNumberPattern , number ) ) == ( com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT ) ; }

Target:
public com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult isPossibleNumberWithReason ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; int countryCode = number.getCountryCode ( ) ; if ( ! ( hasValidCountryCallingCode ( countryCode ) ) ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE ; } java.lang.String regionCode = getRegionCodeForCountryCode ( countryCode ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( metadata.getGeneralDesc ( ) . getPossibleNumberPattern ( ) ) ; return testNumberLengthAgainstPattern ( possibleNumberPattern , nationalNumber ) ; }
Source:
public void setNetworkAvailable ( final boolean networkUp ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setNetworkAvailable ( networkUp ) ; } } ) ; return ; } mAwContents.setNetworkAvailable ( networkUp ) ; }

Target:
public void destroy ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { destroy ( ) ; } } ) ; return ; } mAwContents.destroy ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.destroy ( ) ; mGLfunctor = null ; } }
Source:
java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > getAnnotations ( ) { return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( annotations.values ( ) ) ; }

Target:
java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > getAnnotations ( ) { java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > allAnnotations = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( ) ; for ( java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals : annotations.values ( ) ) { allAnnotations.addAll ( annotationLiterals ) ; } return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( allAnnotations ) ; }