auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isBusiness ( ) { return ( phoneLookupInfo.hasPeopleApiInfo ( ) ) && ( ( phoneLookupInfo.getPeopleApiInfo ( ) . getInfoType ( ) ) == ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.NEARBY_BUSINESS ) ) ; }

Target:
public boolean isBusiness ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return ( phoneLookupInfo.getPeopleApiInfo ( ) . getInfoType ( ) ) == ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.NEARBY_BUSINESS ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PHONE_NUMBER_CACHE : return phoneLookupInfo.getMigratedInfo ( ) . getIsBusiness ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
private void generateFillerPanel ( final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int parentLocal , final com.intellij.uiDesigner.compiler.GridBagConverter.Result result ) { int panelLocal = generator.newLocal ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType ) ; generator.newInstance ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType ) ; generator.dup ( ) ; generator.invokeConstructor ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType , com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourDefaultConstructor ) ; generator.storeLocal ( panelLocal ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateConversionResult ( generator , result , panelLocal , parentLocal ) ; }

Target:
private void generateFillerPanel ( final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int parentLocal , final com.intellij.uiDesigner.compiler.GridBagConverter.Result result ) { int panelLocal = generator.newLocal ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType ) ; generator.newInstance ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType ) ; generator.dup ( ) ; generator.invokeConstructor ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.myPanelType , com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourDefaultConstructor ) ; generator.storeLocal ( panelLocal ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateConversionResult ( generator , result , panelLocal , parentLocal ) ; }
Source:
public void testAllTypes ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addInfo ( "merging info" ) . addWarning ( "something weird happened" ) . addError ( "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }

Target:
public void testJustInfoAndError ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addMessage ( mSourceLocation , 0 , 0 , Severity.INFO , "merging info" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.ERROR , "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }
Source:
public void testNormaliseOtherDigits ( ) { java.lang.String inputNumber = "２5٥" ; java.lang.String expectedOutput = "255" ; assertEquals ( "Conversion did not correctly replace non-latin digits" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( inputNumber ) ) ; inputNumber = "۵2۰" ; expectedOutput = "520" ; assertEquals ( "Conversion did not correctly replace non-latin digits" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( inputNumber ) ) ; }

Target:
public void testGetExampleNumberWithoutRegion ( ) { assertNotNull ( phoneUtil.getExampleNumberForType ( PhoneNumberType.FIXED_LINE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( PhoneNumberType.MOBILE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( PhoneNumberType.PREMIUM_RATE ) ) ; }
Source:
protected void initDependencies ( ) { super . initDependencies ( ) ; for ( java.io.File jar : mProject.getJarPaths ( ) ) { if ( mImporter.isReplaceJars ( ) ) { com.android.ide.common.repository.GradleCoordinate dependency = guessDependency ( jar ) ; if ( dependency != null ) { mDependencies.add ( dependency ) ; mImporter.getSummary ( ) . replacedJar ( jar , dependency ) ; continue ; } } mJarDependencies.add ( jar ) ; } }

Target:
protected void initDependencies ( ) { super . initDependencies ( ) ; for ( java.io.File jar : mProject.getJarPaths ( ) ) { if ( mImporter.isReplaceJars ( ) ) { com.android.ide.common.repository.GradleCoordinate dependency = guessDependency ( jar ) ; if ( dependency != null ) { mDependencies.add ( dependency ) ; mImporter.getSummary ( ) . reportReplacedJar ( jar , dependency ) ; continue ; } } mJarDependencies.add ( jar ) ; } }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.ResourceBundle bundle , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundle ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , boolean vmSafeMode , boolean debuggable ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , vmSafeMode , debuggable ) ; }

Target:
public int rmPackageDir ( java.lang.String packageDir ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "rmpackagedir" ) ; builder.append ( ' ' ) ; builder.append ( packageDir ) ; return mInstaller.execute ( builder.toString ( ) ) ; }
Source:
public void onStartContentIntent ( android.content.Context context , java.lang.String contentUrl ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + contentUrl ) ) ; mWebViewClient.shouldOverrideUrlLoading ( mWebView , contentUrl ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onStartContentIntent ( android.content.Context context , java.lang.String contentUrl ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onStartContentIntent" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + contentUrl ) ) ; mWebViewClient.shouldOverrideUrlLoading ( mWebView , contentUrl ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onStartContentIntent" ) ; } }
Source:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { if ( ( com.android.ide.eclipse.ddms.LogCatMonitor.AUTO_MONITOR_PREFKEY.equals ( event.getProperty ( ) ) ) && ( event.getNewValue ( ) . equals ( false ) ) ) { unmonitorAllDevices ( ) ; } }

Target:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { if ( ( com.android.ide.eclipse.ddms.LogCatMonitor.AUTO_MONITOR_PREFKEY.equals ( event.getProperty ( ) ) ) && ( event.getNewValue ( ) . equals ( false ) ) ) { unmonitorAllDevices ( ) ; } else if ( com.android.ide.eclipse.ddms.LogCatMonitor.AUTO_MONITOR_LOGLEVEL.equals ( event.getProperty ( ) ) ) { mMinMessagePriority = com.android.ddmlib.Log.LogLevel.getByString ( ( ( java.lang.String ) ( event.getNewValue ( ) ) ) ) . getPriority ( ) ; } }
Source:
public void remove ( ) { com.google.common.collect.Iterators.checkRemove ( canRemove ) ; if ( ( totalCount ) == 1 ) { entryIterator.remove ( ) ; } else { multiset.remove ( currentEntry.getElement ( ) ) ; } ( totalCount ) -- ; canRemove = false ; }

Target:
public void remove ( ) { com.google.common.collect.CollectPreconditions.checkRemove ( canRemove ) ; if ( ( totalCount ) == 1 ) { entryIterator.remove ( ) ; } else { multiset.remove ( currentEntry.getElement ( ) ) ; } ( totalCount ) -- ; canRemove = false ; }
Source:
public boolean start ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "start()" ) ; } mObserver = new com.android.bluetooth.opp.BluetoothOppService.BluetoothShareContentObserver ( ) ; getContentResolver ( ) . registerContentObserver ( BluetoothShare.CONTENT_URI , true , mObserver ) ; mNotifier = new com.android.bluetooth.opp.BluetoothOppNotification ( this ) ; mNotifier.mNotificationMgr.cancelAll ( ) ; mNotifier.updateNotification ( ) ; updateFromProvider ( ) ; return true ; }

Target:
public boolean start ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "start()" ) ; } mObserver = new com.android.bluetooth.opp.BluetoothOppService.BluetoothShareContentObserver ( ) ; getContentResolver ( ) . registerContentObserver ( BluetoothShare.CONTENT_URI , true , mObserver ) ; mNotifier = new com.android.bluetooth.opp.BluetoothOppNotification ( this ) ; mNotifier.mNotificationMgr.cancelAll ( ) ; mNotifier.updateNotification ( ) ; updateFromProvider ( ) ; com.android.bluetooth.opp.BluetoothOppService.setBluetoothOppService ( this ) ; return true ; }
Source:
public void testClickBackOnNonRootActivityLatte ( ) { getActivity ( ) ; android.support.test.espresso.Espresso.onData ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.instanceOf ( java.util.Map.class ) , org.hamcrest.Matchers.hasValue ( "LargeViewActivity" ) ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.pressBack ( ) ; android.support.test.espresso.Espresso.onData ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.instanceOf ( java.util.Map.class ) , org.hamcrest.Matchers.hasValue ( "LargeViewActivity" ) ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ; }

Target:
public void clickBackOnNonRootActivityLatte ( ) { rule.launchActivity ( null ) ; android.support.test.espresso.Espresso.onData ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.instanceOf ( java.util.Map.class ) , org.hamcrest.Matchers.hasValue ( "LargeViewActivity" ) ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.pressBack ( ) ; android.support.test.espresso.Espresso.onData ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.instanceOf ( java.util.Map.class ) , org.hamcrest.Matchers.hasValue ( "LargeViewActivity" ) ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ; }
Source:
public synchronized int getConnectionState ( ) { com.android.internal.util.IState currentState = getCurrentState ( ) ; if ( currentState == ( mConnecting ) ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTING ; } else if ( currentState instanceof com.android.bluetooth.hfp.HeadsetStateMachine.ConnectedBase ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; } else if ( currentState == ( mDisconnecting ) ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; } return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; }

Target:
int getConnectionStateInt ( ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTING ; }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need RSA or EC public key" ) ; } try { int result = org.conscrypt.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getNativeRef ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { resetContext ( ) ; } }

Target:
private final void resetContext ( ) { org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = new org.conscrypt.NativeRef.EVP_MD_CTX ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; if ( signing ) { enableDSASignatureNonceHardeningIfApplicable ( ) ; evpPkeyCtx = org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctxLocal , evpMdRef , key.getNativeRef ( ) ) ; } else { evpPkeyCtx = org.conscrypt.NativeCrypto.EVP_DigestVerifyInit ( ctxLocal , evpMdRef , key.getNativeRef ( ) ) ; } configureEVP_PKEY_CTX ( evpPkeyCtx ) ; this . ctx = ctxLocal ; }
Source:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { what = newWhat ; lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return true ; }

Target:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { android.util.Log.i ( android.security.cts.StagefrightTest.TAG , ( "error: " + newWhat ) ) ; if ( ( what ) != ( android.media.MediaPlayer.MEDIA_ERROR_SERVER_DIED ) ) { what = newWhat ; } lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return true ; }
Source:
protected void addAttributeDeclaration ( org.eclipse.text.edits.MultiTextEdit rootEdit , org.w3c.dom.Element element , java.lang.String attributePrefix , java.lang.String attributeName , java.lang.String attributeValue ) { int offset = getFirstAttributeOffset ( element ) ; if ( offset != ( - 1 ) ) { addAttributeDeclaration ( rootEdit , offset , attributePrefix , attributeName , attributeValue ) ; } }

Target:
protected void setAttribute ( org.eclipse.text.edits.MultiTextEdit rootEdit , org.w3c.dom.Element element , java.lang.String attributeUri , java.lang.String attributePrefix , java.lang.String attributeName , java.lang.String attributeValue ) { int offset = getFirstAttributeOffset ( element ) ; if ( offset != ( - 1 ) ) { if ( element.hasAttributeNS ( attributeUri , attributeName ) ) { replaceAttributeDeclaration ( rootEdit , offset , element , attributePrefix , attributeUri , attributeName , attributeValue ) ; } else { addAttributeDeclaration ( rootEdit , offset , attributePrefix , attributeName , attributeValue ) ; } } }
Source:
public long skip ( long n ) throws java.io.IOException { if ( closed ) { throw new java.io.IOException ( "Stream Closed" ) ; } try { return skip0 ( n ) ; } catch ( java.io.FileInputStream.UseManualSkipException e ) { return super . skip ( n ) ; } }

Target:
public long skip ( long n ) throws java.io.IOException { if ( closed ) { throw new java.io.IOException ( "Stream Closed" ) ; } try { dalvik.system.BlockGuard.getThreadPolicy ( ) . onReadFromDisk ( ) ; return skip0 ( n ) ; } catch ( java.io.FileInputStream.UseManualSkipException e ) { return super . skip ( n ) ; } }
Source:
protected void onPause ( ) { super . onPause ( ) ; synchronized ( this ) { if ( mDirty ) { try { com.google.android.mms.pdu.PduBody pb = mSlideshowModel.toPduBody ( ) ; com.google.android.mms.pdu.PduPersister.getPduPersister ( this ) . updateParts ( mUri , pb ) ; mSlideshowModel.sync ( pb ) ; } catch ( com.google.android.mms.MmsException e ) { android.util.Log.e ( com.android.mms.ui.SlideEditorActivity.TAG , ( "Cannot update the message: " + ( mUri ) ) , e ) ; } } } }

Target:
protected void onPause ( ) { super . onPause ( ) ; if ( ( mAsyncDialog ) != null ) { mAsyncDialog.clearPendingProgressDialog ( ) ; } synchronized ( this ) { if ( mDirty ) { try { com.google.android.mms.pdu.PduBody pb = mSlideshowModel.toPduBody ( ) ; com.google.android.mms.pdu.PduPersister.getPduPersister ( this ) . updateParts ( mUri , pb ) ; mSlideshowModel.sync ( pb ) ; } catch ( com.google.android.mms.MmsException e ) { android.util.Log.e ( com.android.mms.ui.SlideEditorActivity.TAG , ( "Cannot update the message: " + ( mUri ) ) , e ) ; } } } }
Source:
public void removeDevice ( com.android.ddmlib.IDevice device ) { synchronized ( deviceMap ) { deviceMap.remove ( device ) ; deviceList.remove ( device ) ; focusedWindowHashes.remove ( device ) ; if ( ( selectedDevice ) == device ) { selectedDevice = null ; selectedWindow = null ; } } notifyDeviceDisconnected ( device ) ; }

Target:
public void removeDevice ( com.android.ddmlib.IDevice device ) { boolean selectionChanged = false ; synchronized ( deviceMap ) { deviceList.remove ( device ) ; if ( ! ( deviceList.contains ( device ) ) ) { deviceMap.remove ( device ) ; focusedWindowHashes.remove ( device ) ; if ( ( selectedDevice ) == device ) { selectedDevice = null ; selectedWindow = null ; selectionChanged = true ; } } } notifyDeviceDisconnected ( device ) ; if ( selectionChanged ) { notifySelectionChanged ( selectedDevice , selectedWindow ) ; } }
Source:
public void separateConnection ( int gsmIndex , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEPARATE_CONNECTION , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + gsmIndex ) ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( gsmIndex ) ; send ( rr ) ; }

Target:
public void conference ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_CONFERENCE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.conference ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "conference" , e ) ; } } }
Source:
private boolean shouldAddAllPassFilterToController ( com.android.bluetooth.gatt.ScanClient client , int deliveryMode ) { if ( ! ( shouldUseAllPassFilter ( client ) ) ) { return true ; } if ( deliveryMode == ( com.android.bluetooth.gatt.ScanManager.ScanNative.DELIVERY_MODE_BATCH ) ) { mAllPassBatchClients.add ( client.clientIf ) ; return ( mAllPassBatchClients.size ( ) ) == 1 ; } else { mAllPassRegularClients.add ( client.clientIf ) ; return ( mAllPassRegularClients.size ( ) ) == 1 ; } }

Target:
private boolean shouldAddAllPassFilterToController ( com.android.bluetooth.gatt.ScanClient client , int deliveryMode ) { if ( ! ( shouldUseAllPassFilter ( client ) ) ) { return true ; } if ( deliveryMode == ( com.android.bluetooth.gatt.ScanManager.ScanNative.DELIVERY_MODE_BATCH ) ) { mAllPassBatchClients.add ( client.scannerId ) ; return ( mAllPassBatchClients.size ( ) ) == 1 ; } else { mAllPassRegularClients.add ( client.scannerId ) ; return ( mAllPassRegularClients.size ( ) ) == 1 ; } }
Source:
public void object ( @ org.jetbrains.annotations.Nullable com.android.tools.rpclib.binary.BinaryObject obj ) throws java.io.IOException { if ( obj == null ) { uint16 ( BinaryObject.NULL_ID ) ; return ; } if ( mEncodedMap.containsKey ( obj ) ) { int key = mEncodedMap.get ( obj ) ; uint16 ( key ) ; return ; } int key = mEncodedMap.size ( ) ; mEncodedMap.put ( obj , key ) ; uint16 ( key ) ; obj.type ( ) . encode ( this ) ; obj.encode ( this ) ; }

Target:
public void string ( @ org.jetbrains.annotations.Nullable java.lang.String v ) throws java.io.IOException { try { if ( v == null ) { uint32 ( 0 ) ; return ; } byte [ ] bytes = v.getBytes ( "UTF-8" ) ; uint32 ( bytes.length ) ; for ( byte b : bytes ) { int8 ( b ) ; } } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JUnlock unlockStmt ) { com.android.jack.dx.rop.code.Insn unlockInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_EXIT , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( unlockStmt ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( unlockStmt.getLockExpr ( ) ) ) , getCatchTypes ( ) ) ; addInstruction ( unlockInsn ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JUnlock unlockStmt ) { com.android.jack.dx.rop.code.RegisterSpec unlockReg = getRegisterSpec ( unlockStmt.getLockExpr ( ) ) ; if ( unlockReg.isClosure ( ) ) { unlockReg = ropReg.getRegularObjectFromClosure ( unlockReg ) ; } com.android.jack.dx.rop.code.Insn unlockInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_EXIT , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( unlockStmt ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( unlockReg ) , getCatchTypes ( ) ) ; addInstruction ( unlockInsn ) ; return false ; }
Source:
public void test_bind_twice ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.bind ( null ) ; try { dc.bind ( null ) ; fail ( ) ; } catch ( java.nio.channels.AlreadyBoundException expected ) { } finally { dc.close ( ) ; } }

Target:
public void test_bind_closed ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.close ( ) ; try { dc.socket ( ) . bind ( null ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { dc.close ( ) ; } }
Source:
public void testAesCbcHmacMd5Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthTcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
private void filterWithCarrierApp ( java.lang.String carrierPackageName ) { com.android.internal.telephony.CarrierServicesSmsFilter.CarrierSmsFilter smsFilter = new com.android.internal.telephony.CarrierServicesSmsFilter.CarrierSmsFilter ( mPdus , mDestPort , mPduFormat ) ; com.android.internal.telephony.CarrierServicesSmsFilter.CarrierSmsFilterCallback smsFilterCallback = new com.android.internal.telephony.CarrierServicesSmsFilter.CarrierSmsFilterCallback ( mCarrierServicesSmsFilterCallback , smsFilter ) ; smsFilter.filterSms ( carrierPackageName , smsFilterCallback ) ; }

Target:
void onFilterComplete ( int result ) { synchronized ( mFilterLock ) { ( mNumPendingFilters ) -- ; combine ( result ) ; if ( ( mNumPendingFilters ) == 0 ) { long token = android.os.Binder.clearCallingIdentity ( ) ; try { mCarrierServicesSmsFilterCallback.onFilterComplete ( mFilterResult ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } }
Source:
public int size ( ) { return tableOfContents.typeIds.size ; }

Target:
private java.util.List < java.lang.Integer > readTypeIds ( ) { com.android.jack.dx.io.DexBuffer.Section typeIds = open ( tableOfContents.typeIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( typeIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public com.android.tools.lint.detector.api.Location resolve ( ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( mNode ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( mFile , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( mFile ) ; }

Target:
public com.android.tools.lint.detector.api.Location resolve ( ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( mParser.getPosition ( mNode ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( mFile , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( mFile ) ; }
Source:
private void initializeImageReader ( java.lang.String cameraId , int format ) throws java.lang.Exception { mOrderedPreviewSizes = android.hardware.camera2.cts.CameraTestUtils.getSupportedPreviewSizes ( cameraId , mCameraManager , CameraTestUtils.PREVIEW_SIZE_BOUND ) ; android.util.Size maxPreviewSize = mOrderedPreviewSizes.get ( 0 ) ; createImageReader ( maxPreviewSize , format , android.hardware.camera2.cts.PerformanceTest.NUM_MAX_IMAGES , null ) ; updatePreviewSurface ( maxPreviewSize ) ; }

Target:
private void initializeImageReader ( java.lang.String cameraId , int format ) throws java.lang.Exception { mOrderedPreviewSizes = android.hardware.camera2.cts.CameraTestUtils.getSupportedPreviewSizes ( cameraId , mCameraManager , android.hardware.camera2.cts.CameraTestUtils.getPreviewSizeBound ( mWindowManager , CameraTestUtils.PREVIEW_SIZE_BOUND ) ) ; android.util.Size maxPreviewSize = mOrderedPreviewSizes.get ( 0 ) ; createImageReader ( maxPreviewSize , format , android.hardware.camera2.cts.PerformanceTest.NUM_MAX_IMAGES , null ) ; updatePreviewSurface ( maxPreviewSize ) ; }
Source:
private static synchronized void init ( ) { if ( ( tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ) != null ) { return ; } tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM = java.security.Security.getProperty ( "ssl.TrustManagerFactory.algorithm" ) ; assertNotNull ( tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ) ; tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER = org.apache.harmony.security.tests.support.SpiEngUtils.isSupport ( tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM , tests.api.javax.net.ssl.TrustManagerFactory1Test.srvTrustManagerFactory ) ; tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER_NAME = tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER.getName ( ) ; tests.api.javax.net.ssl.TrustManagerFactory1Test.VALID_VALUES = new java.lang.String [ ] { tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM , tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM.toUpperCase ( ) , tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM.toLowerCase ( ) } ; }

Target:
private static synchronized void init ( ) { if ( ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ) != null ) { return ; } org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM = java.security.Security.getProperty ( "ssl.TrustManagerFactory.algorithm" ) ; assertNotNull ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ) ; org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER = org.apache.harmony.security.tests.support.SpiEngUtils.isSupport ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.srvTrustManagerFactory ) ; org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER_NAME = org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER.getName ( ) ; org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.VALID_VALUES = new java.lang.String [ ] { org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM.toUpperCase ( ) , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM.toLowerCase ( ) } ; }
Source:
public void updateRunningAccounts ( ) { mRunningAccounts = com.android.server.accounts.AccountManagerService.getSingleton ( ) . getRunningAccounts ( ) ; if ( mBootCompleted ) { doDatabaseCleanup ( ) ; } android.accounts.AccountAndUser [ ] accounts = mRunningAccounts ; for ( com.android.server.content.SyncManager.ActiveSyncContext currentSyncContext : mActiveSyncContexts ) { if ( ! ( containsAccountAndUser ( accounts , currentSyncContext.mSyncOperation.target.account , currentSyncContext.mSyncOperation.target.userId ) ) ) { android.util.Log.d ( com.android.server.content.SyncManager.TAG , "canceling sync since the account is no longer running" ) ; sendSyncFinishedOrCanceledMessage ( currentSyncContext , null ) ; } } sendCheckAlarmsMessage ( ) ; }

Target:
public void updateRunningAccounts ( ) { if ( android.util.Log.isLoggable ( com.android.server.content.SyncManager.TAG , Log.VERBOSE ) ) android.util.Log.v ( com.android.server.content.SyncManager.TAG , "sending MESSAGE_ACCOUNTS_UPDATED" ) ; mSyncHandler.sendEmptyMessage ( com.android.server.content.SyncManager.SyncHandler.MESSAGE_ACCOUNTS_UPDATED ) ; }
Source:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { super . checkString ( context , string ) ; if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { return new com.android.sched.util.file.InputStreamFile ( ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }

Target:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { if ( ! ( allowStandardIO ) ) { throw new com.android.sched.util.codec.ParsingException ( "Standard input can not be used" ) ; } return new com.android.sched.util.file.InputStreamFile ( context.getStandardInput ( ) , com.android.sched.util.codec.InputStreamCodec.STANDARD_INPUT_LOCATION ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }
Source:
private void setNotificationWhen ( com.android.incallui.call.DialerCall call , int state , android.app.Notification.Builder builder ) { if ( state == ( DialerCall.State.ACTIVE ) ) { builder.setUsesChronometer ( true ) ; builder.setWhen ( call.getConnectTimeMillis ( ) ) ; } else { builder.setUsesChronometer ( false ) ; } }

Target:
private void setNotificationWhen ( com.android.incallui.call.DialerCall call , int state , android.app.Notification.Builder builder ) { if ( state == ( com.android.incallui.call.state.DialerCallState.ACTIVE ) ) { builder.setUsesChronometer ( true ) ; builder.setWhen ( call.getConnectTimeMillis ( ) ) ; } else { builder.setUsesChronometer ( false ) ; } }
Source:
public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setName ( BuilderConstants.RELEASE ) ; }

Target:
public void createDefaultBuildTypes ( @ org.gradle.model.Path ( value = "android.buildTypes" ) org.gradle.model.ModelMap < com.android.build.gradle.managed.BuildType > buildTypes ) { buildTypes.create ( BuilderConstants.DEBUG , new org.gradle.api.Action < com.android.build.gradle.managed.BuildType > ( ) { @ java.lang.Override public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setIsDebuggable ( true ) ; buildType.setIsEmbedMicroApp ( false ) ; } } ) ; buildTypes.create ( BuilderConstants.RELEASE ) ; }
Source:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceRepository repo = getResourceRepository ( ) ; verifyResourceExists ( repo , "drawable/icon" , "drawable?ldpi/icon" , "drawable/icon2" , "drawable/patch" , "drawable/color_drawable" , "drawable/drawable_ref" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }

Target:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceRepository repo = getResourceRepository ( ) ; verifyResourceExists ( repo , "drawable/icon" , "drawable?ldpi/icon" , "drawable/icon2" , "drawable/patch" , "drawable/color_drawable" , "drawable/drawable_ref" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "attr/flagAttr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }
Source:
public boolean equals ( java.lang.Object thatObject ) { if ( thatObject == ( this ) ) { return true ; } else if ( ( thatObject == null ) || ( ( thatObject.getClass ( ) ) != ( com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod.class ) ) ) { return false ; } else { com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod that = ( ( com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod ) ( thatObject ) ) ; return ( ( that.getVendorID ( ) ) == ( getVendorID ( ) ) ) && ( ( that.getVendorType ( ) ) == ( getVendorType ( ) ) ) ; } }

Target:
public boolean equals ( java.lang.Object thatObject ) { if ( thatObject == ( this ) ) { return true ; } if ( ! ( thatObject instanceof com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod ) ) { return false ; } com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod that = ( ( com.android.server.wifi.hotspot2.anqp.eap.ExpandedEAPMethod ) ( thatObject ) ) ; return ( ( mVendorID ) == ( that.mVendorID ) ) && ( ( mVendorType ) == ( that.mVendorType ) ) ; }
Source:
public void testEquals ( ) throws java.lang.Exception { com.android.internal.telephony.dataconnection.DataProfile dp1 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 ) ; com.android.internal.telephony.dataconnection.DataProfile dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 ) ; assertEquals ( dp1 , dp2 ) ; dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn2 ) ; assertFalse ( dp1.equals ( dp2 ) ) ; }

Target:
public void testEquals ( ) throws java.lang.Exception { android.telephony.data.DataProfile dp1 = com.android.internal.telephony.dataconnection.DcTracker.createDataProfile ( mApn1 , mApn1.profileId ) ; android.telephony.data.DataProfile dp2 = com.android.internal.telephony.dataconnection.DcTracker.createDataProfile ( mApn1 , mApn1.profileId ) ; assertEquals ( dp1 , dp2 ) ; dp2 = com.android.internal.telephony.dataconnection.DcTracker.createDataProfile ( mApn2 , mApn2.profileId ) ; assertFalse ( dp1.equals ( dp2 ) ) ; }
Source:
private com.android.ide.common.rendering.api.ResourceValue getResource ( java.lang.String resourceType , java.lang.String resourceName , java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > resourceRepository ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > typeMap = resourceRepository.get ( resourceType ) ; if ( typeMap != null ) { com.android.ide.common.rendering.api.ResourceValue item = typeMap.get ( resourceName ) ; if ( item != null ) { item = resolveResValue ( item ) ; return item ; } } return null ; }

Target:
private com.android.ide.common.rendering.api.ResourceValue getResource ( com.android.resources.ResourceType resourceType , java.lang.String resourceName , java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > resourceRepository ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > typeMap = resourceRepository.get ( resourceType ) ; if ( typeMap != null ) { com.android.ide.common.rendering.api.ResourceValue item = typeMap.get ( resourceName ) ; if ( item != null ) { item = resolveResValue ( item ) ; return item ; } } return null ; }
Source:
public void test_getContentLength ( ) throws java.lang.Exception { java.net.URL u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/" ) ) ; assertEquals ( "Returned incorrect size for jar file" , 33095 , u.openConnection ( ) . getContentLength ( ) ) ; u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/plus.bmp" ) ) ; assertEquals ( "Returned incorrect size for the entry" , 190 , u.openConnection ( ) . getContentLength ( ) ) ; }

Target:
public void test_getContentLength ( ) throws java.lang.Exception { java.net.URL u = copyAndOpenResourceStream ( "lf.jar" , "" ) ; assertEquals ( "Returned incorrect size for jar file" , 33095 , u.openConnection ( ) . getContentLength ( ) ) ; u = copyAndOpenResourceStream ( "lf.jar" , "plus.bmp" ) ; assertEquals ( "Returned incorrect size for the entry" , 190 , u.openConnection ( ) . getContentLength ( ) ) ; }
Source:
public synchronized void saveAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { final android.content.ContentResolver cr = mContext.getContentResolver ( ) ; Settings.Secure.putStringForUser ( cr , Settings.Secure.ALWAYS_ON_VPN_APP , getAlwaysOnPackage ( ) , mUserHandle ) ; Settings.Secure.putIntForUser ( cr , Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , ( mLockdown ? 1 : 0 ) , mUserHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
private void saveAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { mSystemServices.settingsSecurePutStringForUser ( Settings.Secure.ALWAYS_ON_VPN_APP , getAlwaysOnPackage ( ) , mUserHandle ) ; mSystemServices.settingsSecurePutIntForUser ( Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , ( mLockdown ? 1 : 0 ) , mUserHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public com.android.jack.test.toolchain.JackCliToolchain setSourceLevel ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.Toolchain.SourceLevel sourceLevel ) { super . setSourceLevel ( sourceLevel ) ; switch ( sourceLevel ) { case JAVA_6 : addProperty ( "jack.java.source.version" , "1.6" ) ; break ; case JAVA_7 : addProperty ( "jack.java.source.version" , "1.7" ) ; break ; case JAVA_8 : addProperty ( "jack.java.source.version" , "1.8" ) ; break ; default : throw new java.lang.AssertionError ( ( ( "Unkown level: '" + ( sourceLevel.toString ( ) ) ) + "'" ) ) ; } return this ; }

Target:
public com.android.jack.test.toolchain.JackCliToolchain setSourceLevel ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.SourceLevel sourceLevel ) { super . setSourceLevel ( sourceLevel ) ; switch ( sourceLevel ) { case JAVA_6 : addProperty ( "jack.java.source.version" , "1.6" ) ; break ; case JAVA_7 : addProperty ( "jack.java.source.version" , "1.7" ) ; break ; case JAVA_8 : addProperty ( "jack.java.source.version" , "1.8" ) ; break ; default : throw new java.lang.AssertionError ( ( ( "Unkown level: '" + ( sourceLevel.toString ( ) ) ) + "'" ) ) ; } return this ; }
Source:
public static java.util.List < com.android.compatibility.common.util.IInvocationResult > getLightResults ( java.io.File resultsDir ) { java.util.List < com.android.compatibility.common.util.IInvocationResult > results = new java.util.ArrayList < > ( ) ; java.util.List < java.io.File > files = com.android.compatibility.common.util.ResultHandler.getResultDirectories ( resultsDir ) ; for ( java.io.File resultDir : files ) ; HEAD ( 0 ) ; com.android.compatibility.common.util.c5 Merge ; }

Target:
public int compare ( com.android.compatibility.common.util.IInvocationResult result1 , com.android.compatibility.common.util.IInvocationResult result2 ) { return java.lang.Long.compare ( result1.getStartTime ( ) , result2.getStartTime ( ) ) ; }
Source:
static java.lang.String getSignatureName ( org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId ) { org.bouncycastle.asn1.ASN1Encodable params = sigAlgId.getParameters ( ) ; if ( ( params != null ) && ( ! ( org.bouncycastle.jce.provider.X509SignatureUtil.derNull.equals ( params ) ) ) ) { if ( sigAlgId.getObjectId ( ) . equals ( X9ObjectIdentifiers.ecdsa_with_SHA2 ) ) { org.bouncycastle.asn1.ASN1Sequence ecDsaParams = org.bouncycastle.asn1.ASN1Sequence.getInstance ( params ) ; return ( org.bouncycastle.jce.provider.X509SignatureUtil.getDigestAlgName ( ( ( org.bouncycastle.asn1.DERObjectIdentifier ) ( ecDsaParams.getObjectAt ( 0 ) ) ) ) ) + "withECDSA" ; } } return sigAlgId.getObjectId ( ) . getId ( ) ; }

Target:
static java.lang.String getSignatureName ( org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId ) { org.bouncycastle.asn1.ASN1Encodable params = sigAlgId.getParameters ( ) ; if ( ( params != null ) && ( ! ( org.bouncycastle.jce.provider.X509SignatureUtil.derNull.equals ( params ) ) ) ) { if ( sigAlgId.getAlgorithm ( ) . equals ( X9ObjectIdentifiers.ecdsa_with_SHA2 ) ) { org.bouncycastle.asn1.ASN1Sequence ecDsaParams = org.bouncycastle.asn1.ASN1Sequence.getInstance ( params ) ; return ( org.bouncycastle.jce.provider.X509SignatureUtil.getDigestAlgName ( org.bouncycastle.asn1.ASN1ObjectIdentifier.getInstance ( ecDsaParams.getObjectAt ( 0 ) ) ) ) + "withECDSA" ; } } return sigAlgId.getAlgorithm ( ) . getId ( ) ; }
Source:
public java.nio.ByteBuffer compact ( ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } libcore.io.Memory.memmove ( this , 0 , this , position , remaining ( ) ) ; position = ( limit ) - ( position ) ; limit = capacity ; mark = UNSET_MARK ; return this ; }

Target:
public java.nio.ByteBuffer compact ( ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } libcore.io.Memory.memmove ( this , 0 , this , position , remaining ( ) ) ; position = ( limit ) - ( position ) ; limit = capacity ; mark = UNSET_MARK ; return this ; }
Source:
private com.android.compatibility.common.util.MetricsReportLog createReport ( java.lang.String methodName ) { java.lang.String className = android.media.cts.bitstreams.MediaBitstreamsTest.class . getCanonicalName ( ) ; com.android.compatibility.common.util.MetricsReportLog report = new com.android.compatibility.common.util.MetricsReportLog ( mBuildHelper.getBuildInfo ( ) , mAbi.getName ( ) , java.lang.String.format ( "%s#%s" , className , methodName ) , MediaBitstreams.K_MODULE , "media_bitstreams_conformance" ) ; return report ; }

Target:
private com.android.compatibility.common.util.MetricsReportLog createReport ( java.lang.String methodName ) { java.lang.String className = android.media.cts.bitstreams.MediaBitstreamsTest.class . getCanonicalName ( ) ; com.android.compatibility.common.util.MetricsReportLog report = new com.android.compatibility.common.util.MetricsReportLog ( mBuildHelper.getBuildInfo ( ) , mAbi.getName ( ) , java.lang.String.format ( "%s#%s" , className , methodName ) , ( ( ( MediaBitstreams.K_MODULE ) + "." ) + ( this . getClass ( ) . getCanonicalName ( ) ) ) , "media_bitstreams_conformance" ) ; return report ; }
Source:
boolean canCopy ( ) { if ( hasPasswordTransformationMethod ( ) ) { return false ; } if ( ( ( mText.length ( ) ) > 0 ) && ( hasSelection ( ) ) ) { return true ; } return false ; }

Target:
boolean canCopy ( ) { if ( hasPasswordTransformationMethod ( ) ) { return false ; } if ( ( ( ( mText.length ( ) ) > 0 ) && ( hasSelection ( ) ) ) && ( ( mEditor ) != null ) ) { return true ; } return false ; }
Source:
public void doQuit ( ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "doQuit" ) ; mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } unregOldMediaControllerCb ( ) ; mMediaSessionManager.removeOnActiveSessionsChangedListener ( mActiveSessionListener ) ; mHandler = null ; mMPLObj = null ; mContext.unregisterReceiver ( mAvrcpReceiver ) ; mAddressedMediaPlayer.cleanup ( ) ; mAvrcpBrowseManager.cleanup ( ) ; }

Target:
public void doQuit ( ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "doQuit" ) ; mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } unregOldMediaControllerCb ( ) ; mMediaSessionManager.removeOnActiveSessionsChangedListener ( mActiveSessionListener ) ; mHandler = null ; mMPLObj = null ; mContext.unregisterReceiver ( mAvrcpReceiver ) ; mContext.unregisterReceiver ( mBootReceiver ) ; mAddressedMediaPlayer.cleanup ( ) ; mAvrcpBrowseManager.cleanup ( ) ; }
Source:
public void unregisterUiTestAutomationService ( android.accessibilityservice.IAccessibilityServiceClient serviceClient ) { synchronized ( mLock ) { if ( ( ( mUiAutomationService ) != null ) && ( ( mUiAutomationService.mServiceInterface ) == serviceClient ) ) { mUiAutomationService.binderDied ( ) ; } } }

Target:
public void unregisterUiTestAutomationService ( android.accessibilityservice.IAccessibilityServiceClient serviceClient ) { synchronized ( mLock ) { if ( ( ( ( ( mUiAutomationService ) != null ) && ( ( mUiAutomationService.mServiceInterface ) != null ) ) && ( serviceClient != null ) ) && ( ( mUiAutomationService.mServiceInterface.asBinder ( ) ) == ( serviceClient.asBinder ( ) ) ) ) { mUiAutomationService.binderDied ( ) ; } } }