auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( java.lang.Exception e ) { riljLoge ( ( "sendAck: exception : " + e ) ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }

Target:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null , mRILDefaultWorkSource ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { resetProxyAndRequestList ( ) ; riljLoge ( "sendAck" , e ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }
Source:
public java.net.Socket accept ( ) throws java.io.IOException { if ( ! ( channelImpl.isBound ) ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } java.nio.channels.SocketChannel sc = channelImpl.accept ( ) ; if ( sc == null ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } return sc.socket ( ) ; }

Target:
public java.net.Socket accept ( ) throws java.io.IOException { if ( ! ( isBound ( ) ) ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } java.nio.channels.SocketChannel sc = channelImpl.accept ( ) ; if ( sc == null ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } return sc.socket ( ) ; }
Source:
public void onViewCreated ( android.view.View view , android.os.Bundle savedInstanceState ) { super . onViewCreated ( view , savedInstanceState ) ; final android.app.Activity activity = getActivity ( ) ; if ( activity != null ) { mProgressHeader = ( ( android.widget.ProgressBar ) ( setPinnedHeaderView ( R.layout.wifi_progress_header ) ) ) ; setProgressBarVisible ( false ) ; } }

Target:
public void onViewCreated ( android.view.View view , android.os.Bundle savedInstanceState ) { super . onViewCreated ( view , savedInstanceState ) ; final android.app.Activity activity = getActivity ( ) ; if ( activity != null ) { mProgressHeader = setPinnedHeaderView ( R.layout.wifi_progress_header ) . findViewById ( R.id.progress_bar_animation ) ; setProgressBarVisible ( false ) ; } }
Source:
public void dispose ( ) { org.eclipse.swt.widgets.Control c = getControl ( ) ; if ( ( c != null ) && ( ! ( c.isDisposed ( ) ) ) ) { mTreeViewer = null ; c.dispose ( ) ; } }

Target:
public void dispose ( ) { org.eclipse.swt.widgets.Control c = getControl ( ) ; if ( ( c != null ) && ( ! ( c.isDisposed ( ) ) ) ) { mTreeViewer = null ; c.dispose ( ) ; } mRootWrapper.setRoot ( null ) ; }
Source:
public java.lang.String getNetworkTypeName ( ) { switch ( getNetworkType ( ) ) { case android.telephony.TelephonyManager.NETWORK_TYPE_GPRS : return "GPRS" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EDGE : return "EDGE" ; case android.telephony.TelephonyManager.NETWORK_TYPE_UMTS : return "UMTS" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSDPA : return "HSDPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSUPA : return "HSUPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSPA : return "HSPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_CDMA : return "CDMA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_0 : return "CDMA - EvDo rev. 0" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_A : return "CDMA - EvDo rev. A" ; case android.telephony.TelephonyManager.NETWORK_TYPE_1xRTT : return "CDMA - 1xRTT" ; default : return "UNKNOWN" ; } }

Target:
public java.lang.String getNetworkTypeName ( ) { switch ( getNetworkType ( ) ) { case android.telephony.TelephonyManager.NETWORK_TYPE_GPRS : return "GPRS" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EDGE : return "EDGE" ; case android.telephony.TelephonyManager.NETWORK_TYPE_UMTS : return "UMTS" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSDPA : return "HSDPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSUPA : return "HSUPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_HSPA : return "HSPA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_CDMA : return "CDMA" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_0 : return "CDMA - EvDo rev. 0" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_A : return "CDMA - EvDo rev. A" ; case android.telephony.TelephonyManager.NETWORK_TYPE_EVDO_B : return "CDMA - EvDo rev. B" ; case android.telephony.TelephonyManager.NETWORK_TYPE_1xRTT : return "CDMA - 1xRTT" ; default : return "UNKNOWN" ; } }
Source:
public void testCannotAccessScanResult_AppNotAllowed ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mPermissionsList.put ( mMacAddressPermission , mUid ) ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }

Target:
public void testCannotAccessScanResult_AppNotAllowed ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mPermissionsList.put ( mMacAddressPermission , mUid ) ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScorerAppManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }
Source:
public static java.util.Comparator < com.android.tools.perflib.heap.Instance > defaultInstanceCompare ( com.android.ahat.AhatSnapshot snapshot ) { java.util.List < java.util.Comparator < com.android.tools.perflib.heap.Instance > > comparators = new java.util.ArrayList < java.util.Comparator < com.android.tools.perflib.heap.Instance > > ( ) ; com.android.tools.perflib.heap.Heap appHeap = snapshot.getHeap ( "app" ) ; if ( appHeap != null ) { comparators.add ( new com.android.ahat.Sort.InstanceByHeapRetainedSize ( snapshot , appHeap ) ) ; } comparators.add ( new com.android.ahat.Sort.InstanceByTotalRetainedSize ( ) ) ; return new com.android.ahat.Sort.WithPriority < com.android.tools.perflib.heap.Instance > ( comparators ) ; }

Target:
public static java.util.Comparator < com.android.ahat.heapdump.AhatInstance > defaultInstanceCompare ( com.android.ahat.heapdump.AhatSnapshot snapshot ) { java.util.List < java.util.Comparator < com.android.ahat.heapdump.AhatInstance > > comparators = new java.util.ArrayList < java.util.Comparator < com.android.ahat.heapdump.AhatInstance > > ( ) ; com.android.ahat.heapdump.AhatHeap appHeap = snapshot.getHeap ( "app" ) ; if ( appHeap != null ) { comparators.add ( new com.android.ahat.Sort.InstanceByHeapRetainedSize ( appHeap ) ) ; } comparators.add ( new com.android.ahat.Sort.InstanceByTotalRetainedSize ( ) ) ; return new com.android.ahat.Sort.WithPriority < com.android.ahat.heapdump.AhatInstance > ( comparators ) ; }
Source:
public void testDefaultConfiguration ( ) throws java.lang.Exception { javax.net.ssl.SSLServerSocket serverSocket = ( ( javax.net.ssl.SSLServerSocket ) ( javax.net.ssl.SSLServerSocketFactory.getDefault ( ) . createServerSocket ( ) ) ) ; libcore.java.security.StandardNames.assertDefaultCipherSuites ( serverSocket.getEnabledCipherSuites ( ) ) ; libcore.java.security.StandardNames.assertSupportedCipherSuites ( serverSocket.getSupportedCipherSuites ( ) ) ; libcore.java.security.StandardNames.assertDefaultProtocolsServer ( serverSocket.getEnabledProtocols ( ) ) ; libcore.java.security.StandardNames.assertSupportedProtocols ( serverSocket.getSupportedProtocols ( ) ) ; assertTrue ( serverSocket.getEnableSessionCreation ( ) ) ; assertFalse ( serverSocket.getNeedClientAuth ( ) ) ; assertFalse ( serverSocket.getWantClientAuth ( ) ) ; }

Target:
public void testDefaultConfiguration ( ) throws java.lang.Exception { libcore.javax.net.ssl.SSLDefaultConfigurationAsserts.assertSSLServerSocket ( ( ( javax.net.ssl.SSLServerSocket ) ( javax.net.ssl.SSLServerSocketFactory.getDefault ( ) . createServerSocket ( ) ) ) ) ; }
Source:
public void testDecode_nonPrintableBytes_urlAlphabet ( ) throws java.lang.Exception { assertNull ( libcore.io.Base64Test.decodeToBytes ( "_w==" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-4=" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7d" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7dzA==" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7dzLs=" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7dzLuq" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7dzLuqmQ==" ) ) ; assertNull ( libcore.io.Base64Test.decodeToBytes ( "_-7dzLuqmYg=" ) ) ; }

Target:
public void testDecode_urlAlphabet ( ) throws java.lang.Exception { assertNull ( libcore.io.Base64Test.decodeToInts ( "_w==" ) ) ; assertNull ( libcore.io.Base64Test.decodeToInts ( "-w==" ) ) ; }
Source:
public void pullLceData ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_PULL_LCEDATA , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void requestShutdown ( 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_SHUTDOWN , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } try { radioProxy.requestShutdown ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "requestShutdown" , e ) ; } } }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }
Source:
public int hashCode ( ) { int retval = 0 ; for ( int i = 1 ; i < ( this . key.length ) ; i ++ ) { retval += ( this . key [ i ] ) * i ; } if ( this . algorithm.equalsIgnoreCase ( "TripleDES" ) ) return retval ^= "desede" . hashCode ( ) ; else return retval ^= this . algorithm.toLowerCase ( ) . hashCode ( ) ; }

Target:
public int hashCode ( ) { int retval = 0 ; for ( int i = 1 ; i < ( this . key.length ) ; i ++ ) { retval += ( this . key [ i ] ) * i ; } if ( this . algorithm.equalsIgnoreCase ( "TripleDES" ) ) return retval ^= "desede" . hashCode ( ) ; else return retval ^= this . algorithm.toLowerCase ( java.util.Locale.ENGLISH ) . hashCode ( ) ; }
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 getDataCallList ( 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_DATA_CALL_LIST , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getDataCallList ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getDataCallList" , e ) ; } } }
Source:
private void update ( ) { boolean tracingOn = com.android.traceur.AtraceUtils.isTracingOn ( ) ; java.lang.String titleString = getString ( ( tracingOn ? R.string.save_and_share_trace : R.string.record_trace ) ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( titleString ) ; getQsTile ( ) . updateTile ( ) ; }

Target:
private void update ( ) { android.content.SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences ( this ) ; boolean tracingOn = prefs.getBoolean ( getString ( R.string.pref_key_tracing_on ) , false ) ; java.lang.String titleString = getString ( ( tracingOn ? R.string.stop_tracing : R.string.record_trace ) ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( titleString ) ; getQsTile ( ) . updateTile ( ) ; }
Source:
public void run ( ) { ( mTestIndex ) ++ ; if ( ( mTestIndex ) < ( mTests.length ) ) { mTests [ mTestIndex ] . run ( ) ; } }

Target:
public void run ( ) { ( mTestIndex ) ++ ; if ( ( mTestIndex ) < ( mTests.length ) ) { mTests [ mTestIndex ] . run ( ) ; } else { mNextButton.setVisibility ( View.GONE ) ; findViewById ( R.id.pass_button ) . setVisibility ( View.VISIBLE ) ; } }
Source:
public java.lang.String getIsimIst ( ) throws android.os.RemoteException { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimIst ( ) ; } else { return null ; } }

Target:
public java.lang.String getIsimIst ( int subId ) throws android.os.RemoteException { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimIst ( ) ; } else { return null ; } } else { loge ( ( "getIsimIst phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
private static void runReleaseAfterFlush ( android.media.MediaCodec encoder , java.util.concurrent.CountDownLatch buffersExhausted , java.util.concurrent.CountDownLatch codecFlushed , java.util.concurrent.atomic.AtomicInteger numBuffers ) { android.media.cts.InputSurface inputSurface = null ; try { inputSurface = android.media.cts.MediaCodecTest.initCodecAndSurface ( encoder ) ; java.util.List < java.lang.Integer > outputBufferIndices = android.media.cts.MediaCodecTest.getOutputBufferIndices ( encoder , inputSurface ) ; if ( numBuffers != null ) { numBuffers.set ( outputBufferIndices.size ( ) ) ; } android.media.cts.MediaCodecTest.releaseAfterFlush ( encoder , outputBufferIndices , buffersExhausted , codecFlushed ) ; } finally { android.media.cts.MediaCodecTest.cleanupCodecAndSurface ( encoder , inputSurface ) ; } }

Target:
private static void runReleaseAfterFlush ( java.lang.String mime , android.media.MediaCodec encoder , java.util.concurrent.CountDownLatch buffersExhausted , java.util.concurrent.CountDownLatch codecFlushed , java.util.concurrent.atomic.AtomicInteger numBuffers ) { android.media.cts.InputSurface inputSurface = null ; try { inputSurface = android.media.cts.MediaCodecTest.initCodecAndSurface ( mime , encoder ) ; java.util.List < java.lang.Integer > outputBufferIndices = android.media.cts.MediaCodecTest.getOutputBufferIndices ( encoder , inputSurface ) ; if ( numBuffers != null ) { numBuffers.set ( outputBufferIndices.size ( ) ) ; } android.media.cts.MediaCodecTest.releaseAfterFlush ( encoder , outputBufferIndices , buffersExhausted , codecFlushed ) ; } finally { android.media.cts.MediaCodecTest.cleanupCodecAndSurface ( encoder , inputSurface ) ; } }
Source:
private void handleSupplicantConnectionLoss ( boolean killSupplicant ) { if ( killSupplicant ) { mWifiMonitor.killSupplicant ( mP2pSupported ) ; } mWifiNative.closeSupplicantConnection ( ) ; sendSupplicantConnectionChangedBroadcast ( false ) ; setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_DISABLED ) ; }

Target:
private void handleSupplicantConnectionLoss ( boolean killSupplicant ) { if ( killSupplicant ) { mWifiMonitor.stopAllMonitoring ( ) ; try { if ( ! ( mClientInterface.disableSupplicant ( ) ) ) { loge ( "Failed to disable supplicant after connection loss" ) ; } } catch ( android.os.RemoteException e ) { } } mWifiNative.closeSupplicantConnection ( ) ; sendSupplicantConnectionChangedBroadcast ( false ) ; setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_DISABLED ) ; }
Source:
public com.android.sdklib.internal.repository.packages.UpdateInfo canBeUpdatedBy ( java.lang.Package replacementPackage ) { if ( replacementPackage == null ) { return UpdateInfo.INCOMPATIBLE ; } if ( ! ( sameItemAs ( replacementPackage , true ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( ! ( getRevision ( ) . isPreview ( ) ) ) && ( replacementPackage.getRevision ( ) . isPreview ( ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) . compareTo ( this . getRevision ( ) ) ) > 0 ) { return UpdateInfo.UPDATE ; } return UpdateInfo.NOT_UPDATE ; }

Target:
public com.android.sdklib.internal.repository.packages.UpdateInfo canBeUpdatedBy ( java.lang.Package replacementPackage ) { if ( replacementPackage == null ) { return UpdateInfo.INCOMPATIBLE ; } if ( ! ( sameItemAs ( replacementPackage , PreviewComparison.IGNORE ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( ! ( getRevision ( ) . isPreview ( ) ) ) && ( replacementPackage.getRevision ( ) . isPreview ( ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) . compareTo ( this . getRevision ( ) ) ) > 0 ) { return UpdateInfo.UPDATE ; } return UpdateInfo.NOT_UPDATE ; }
Source:
public java.lang.Object newReporterInstance ( ) { java.lang.Object result = null ; java.lang.Class reporterClass = org.testng.internal.ClassHelper.forName ( m_className ) ; if ( reporterClass != null ) { result = org.testng.internal.ClassHelper.newInstance ( reporterClass ) ; for ( org.testng.ReporterConfig.Property property : m_properties ) { org.testng.internal.PropertyUtils.setProperty ( result , property.getName ( ) , property.getValue ( ) ) ; } } return result ; }

Target:
public java.lang.Object newReporterInstance ( ) { java.lang.Object result = null ; java.lang.Class reporterClass = org.testng.internal.ClassHelper.forName ( m_className ) ; if ( reporterClass != null ) { result = org.testng.internal.ClassHelper.newInstance ( reporterClass ) ; for ( org.testng.ReporterConfig.Property property : m_properties ) { mPropertyUtils.setProperty ( result , property.getName ( ) , property.getValue ( ) ) ; } } return result ; }
Source:
public void testKeyStore_IsKeyEntry_CA_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertFalse ( "Should return false for CA certificate" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_IsKeyEntry_CA_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertFalse ( "Should return false for CA certificate" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
static void deadCycleWithException ( int k ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = 4 ; dead += Main.a [ k ] ; } }

Target:
static void deadCycleWithException ( int k ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = ( Main.novec [ ( 2 * i ) ] ) + 4 ; dead += Main.a [ k ] ; } }
Source:
protected final void notifyIncomingCall ( com.android.ims.internal.ImsCallSession c ) throws android.os.RemoteException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Session is not available." ) ; } mListener.onIncomingCall ( c.getSession ( ) ) ; } }

Target:
protected final void notifyIncomingCall ( com.android.ims.internal.ImsCallSession c , android.os.Bundle extras ) throws android.os.RemoteException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Session is not available." ) ; } mListener.onIncomingCall ( c.getSession ( ) , extras ) ; } }
Source:
public static com.android.dx.dex.file.ClassDefItem translate ( com.android.dx.cf.direct.DirectClassFile cf , byte [ ] bytes , com.android.dx.dex.cf.CfOptions cfOptions , com.android.dx.dex.DexOptions dexOptions , com.android.dx.dex.file.DexFile dexFile ) { try { return com.android.dx.dex.cf.CfTranslator.translate0 ( cf , bytes , cfOptions , dexOptions , dexFile ) ; } catch ( java.lang.RuntimeException ex ) { java.lang.String msg = "...while processing " + ( cf.getFilePath ( ) ) ; throw com.android.dex.util.ExceptionWithContext.withContext ( ex , msg ) ; } }

Target:
public static com.android.dx.dex.file.ClassDefItem translate ( com.android.dx.command.dexer.DxContext context , com.android.dx.cf.direct.DirectClassFile cf , byte [ ] bytes , com.android.dx.dex.cf.CfOptions cfOptions , com.android.dx.dex.DexOptions dexOptions , com.android.dx.dex.file.DexFile dexFile ) { try { return com.android.dx.dex.cf.CfTranslator.translate0 ( context , cf , bytes , cfOptions , dexOptions , dexFile ) ; } catch ( java.lang.RuntimeException ex ) { java.lang.String msg = "...while processing " + ( cf.getFilePath ( ) ) ; throw com.android.dex.util.ExceptionWithContext.withContext ( ex , msg ) ; } }
Source:
private boolean handleEctIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { int len = dialString.length ( ) ; if ( len != 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 4: explicit call transfer" ) ; try { explicitCallTransfer ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "transfer failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.TRANSFER ) ; } return true ; }

Target:
private boolean handleEctIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { int len = dialString.length ( ) ; if ( len != 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 4: explicit call transfer" ) ; try { explicitCallTransfer ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "transfer failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.TRANSFER ) ; } return true ; }
Source:
public static java.lang.String formatAssertionMessage ( android.hardware.Sensor sensor , java.lang.String label , java.lang.String format , java.lang.Object ... params ) { return java.lang.String.format ( "%s | %s, handle: %d | %s" , label , android.hardware.cts.helpers.SensorTestInformation.getSensorName ( sensor.getType ( ) ) , sensor.getHandle ( ) , java.lang.String.format ( format , params ) ) ; }

Target:
public static java.lang.String formatAssertionMessage ( android.hardware.Sensor sensor , java.lang.String label , int rateUs , int maxBatchReportLatencyUs , java.lang.String format , java.lang.Object ... params ) { return java.lang.String.format ( "%s | %s, handle: %d, rateUs: %d, maxBatchReportLatencyUs: %d | %s" , label , android.hardware.cts.helpers.SensorTestInformation.getSensorName ( sensor.getType ( ) ) , sensor.getHandle ( ) , rateUs , maxBatchReportLatencyUs , java.lang.String.format ( format , params ) ) ; }
Source:
public final void yyreset ( java.io.Reader reader ) { zzReader = reader ; zzAtBOL = true ; zzAtEOF = false ; zzEOFDone = false ; zzEndRead = zzStartRead = 0 ; zzCurrentPos = zzMarkedPos = 0 ; yyline = yychar = yycolumn = 0 ; zzLexicalState = org.jf.smali.smaliFlexLexer.YYINITIAL ; }

Target:
public final void yyreset ( java.io.Reader reader ) { zzReader = reader ; zzAtBOL = true ; zzAtEOF = false ; zzEOFDone = false ; zzEndRead = zzStartRead = 0 ; zzCurrentPos = zzMarkedPos = 0 ; zzFinalHighSurrogate = 0 ; yyline = yychar = yycolumn = 0 ; zzLexicalState = org.jf.smali.smaliFlexLexer.YYINITIAL ; if ( ( zzBuffer.length ) > ( org.jf.smali.smaliFlexLexer.ZZ_BUFFERSIZE ) ) zzBuffer = new char [ org.jf.smali.smaliFlexLexer.ZZ_BUFFERSIZE ] ; }
Source:
public void testGetValues010_Array ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointArray" , StackTrace002Debuggee.ARRAY_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointArray" ) ; methodInfo.addVariable ( "param" , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues010_Array ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.ARRAY_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointArray" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointArray" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private void setupKey ( ) throws java.lang.Exception { final java.lang.String privateKeyAlias = ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertTrue ( mAndroidKeyStore.generate ( privateKeyAlias , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; java.security.cert.X509Certificate cert = android.security.AndroidKeyStoreTest.generateCertificate ( mAndroidKeyStore , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , android.security.AndroidKeyStoreTest.TEST_SERIAL_1 , android.security.AndroidKeyStoreTest.TEST_DN_1 , android.security.AndroidKeyStoreTest.NOW , android.security.AndroidKeyStoreTest.NOW_PLUS_10_YEARS ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , cert.getEncoded ( ) , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; }

Target:
private void setupKey ( ) throws java.lang.Exception { final java.lang.String privateKeyAlias = ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertTrue ( mAndroidKeyStore.generate ( privateKeyAlias , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; java.security.cert.X509Certificate cert = android.security.AndroidKeyStoreTest.generateCertificate ( mAndroidKeyStore , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , android.security.AndroidKeyStoreTest.TEST_SERIAL_1 , android.security.AndroidKeyStoreTest.TEST_DN_1 , android.security.AndroidKeyStoreTest.NOW , android.security.AndroidKeyStoreTest.NOW_PLUS_10_YEARS ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , cert.getEncoded ( ) , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; }
Source:
public void run ( ) { idleOptimization ( pm , pkgs , this ) ; if ( ! ( mAbortIdleOptimization.get ( ) ) ) { jobFinished ( jobParams , false ) ; } }

Target:
private int abortIdleOptimizations ( long lowStorageThreshold ) { if ( mAbortIdleOptimization.get ( ) ) { return com.android.server.pm.BackgroundDexOptService.OPTIMIZE_ABORT_BY_JOB_SCHEDULER ; } long usableSpace = mDataDir.getUsableSpace ( ) ; if ( usableSpace < lowStorageThreshold ) { android.util.Log.w ( com.android.server.pm.BackgroundDexOptService.TAG , ( "Aborting background dex opt job due to low storage: " + usableSpace ) ) ; return com.android.server.pm.BackgroundDexOptService.OPTIMIZE_ABORT_NO_SPACE_LEFT ; } return com.android.server.pm.BackgroundDexOptService.OPTIMIZE_CONTINUE ; }
Source:
private void updateNodeProxies ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { if ( vi == null ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode key = vi.getUiViewKey ( ) ; if ( key != null ) { mCanvas.getNodeFactory ( ) . create ( vi ) ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : vi.getChildren ( ) ) { updateNodeProxies ( child ) ; } }

Target:
private void updateNodeProxies ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { if ( vi == null ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode key = vi.getUiViewNode ( ) ; if ( key != null ) { mCanvas.getNodeFactory ( ) . create ( vi ) ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : vi.getChildren ( ) ) { updateNodeProxies ( child ) ; } }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) { return null ; } return service.getRemoteDevice ( ) ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < > ( ) ; if ( ( mRemoteDevice ) != null ) { devices.add ( mRemoteDevice ) ; } return devices ; }
Source:
protected int engineGetOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { return inputLen + ( modeBlockSize ) ; } }

Target:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.apache.harmony.xnet.provider.jsse.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx.getContext ( ) ) ; if ( ( ! ( encrypting ) ) || ( ( padding ) == ( org.apache.harmony.xnet.provider.jsse.OpenSSLCipher.Padding.NOPADDING ) ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
protected void runTest ( ) throws java.lang.Throwable { try { super . runTest ( ) ; } catch ( java.lang.RuntimeException e ) { if ( e.getMessage ( ) . startsWith ( "Test requires build-tools 22" ) ) { com.android.builder.png.NinePatchAsyncAaptProcessTest.sLogger.warning ( ( ( "Skipped " + ( this . getName ( ) ) ) + " as it requires build tools 22." ) ) ; } else { throw e ; } } }

Target:
private static com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; java.io.File aapt = com.android.builder.png.NinePatchAaptProcessorTestUtils.getAapt ( com.android.sdklib.repository.FullRevision.parseRevision ( "22.1.3" ) ) ; return QueuedCruncher.Builder.INSTANCE.newCruncher ( aapt.getAbsolutePath ( ) , logger ) ; }
Source:
public void handleKeyUp ( android.view.KeyEvent event , int stream ) { int keyCode = event.getKeyCode ( ) ; switch ( keyCode ) { case android.view.KeyEvent.KEYCODE_VOLUME_UP : case android.view.KeyEvent.KEYCODE_VOLUME_DOWN : if ( mUseVolumeKeySounds ) { if ( mUseMasterVolume ) { adjustMasterVolume ( android.media.AudioManager.ADJUST_SAME , android.media.AudioManager.FLAG_PLAY_SOUND ) ; } else { int flags = android.media.AudioManager.FLAG_PLAY_SOUND ; adjustSuggestedStreamVolume ( android.media.AudioManager.ADJUST_SAME , stream , flags ) ; } } mVolumeKeyUpTime = android.os.SystemClock.uptimeMillis ( ) ; break ; case android.view.KeyEvent.KEYCODE_VOLUME_MUTE : android.media.session.MediaSessionLegacyHelper.getHelper ( getContext ( ) ) . sendVolumeKeyEvent ( event , false ) ; break ; } }

Target:
public void handleKeyUp ( android.view.KeyEvent event , int stream ) { int keyCode = event.getKeyCode ( ) ; switch ( keyCode ) { case android.view.KeyEvent.KEYCODE_VOLUME_UP : case android.view.KeyEvent.KEYCODE_VOLUME_DOWN : if ( mUseVolumeKeySounds ) { if ( mUseMasterVolume ) { adjustMasterVolume ( android.media.AudioManager.ADJUST_SAME , android.media.AudioManager.FLAG_PLAY_SOUND ) ; } else { int flags = android.media.AudioManager.FLAG_PLAY_SOUND ; adjustSuggestedStreamVolume ( android.media.AudioManager.ADJUST_SAME , stream , flags ) ; } } mVolumeKeyUpTime = android.os.SystemClock.uptimeMillis ( ) ; break ; case android.view.KeyEvent.KEYCODE_VOLUME_MUTE : android.media.session.MediaSessionLegacyHelper.getHelper ( mApplicationContext ) . sendVolumeKeyEvent ( event , false ) ; break ; } }
Source:
public void run ( ) { org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document = editor.getStructuredDocument ( ) ; if ( document != null ) { java.lang.String include = computeIncludeString ( newName , androidNsPrefix ) ; try { document.replace ( start , ( end - start ) , include ) ; } catch ( org.eclipse.jface.text.BadLocationException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Cannot insert <include> tag" ) ; return ; } } }

Target:
public void run ( ) { org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document = editor.getStructuredDocument ( ) ; if ( document != null ) { try { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ExtractIncludeAction.Edit edit : edits ) { edit.apply ( document ) ; } } catch ( org.eclipse.jface.text.BadLocationException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Cannot insert <include> tag" ) ; return ; } } }
Source:
public boolean matches ( @ com.android.annotations.NonNull java.lang.String name ) { int length = name.length ( ) ; char [ ] c = ( isConstructor ( ) ) ? mBinding.declaringClass.readableName ( ) : mBinding.selector ; if ( ( c.length ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( c [ i ] ) != ( name.charAt ( i ) ) ) { return false ; } } return true ; }

Target:
public boolean matches ( @ com.android.annotations.NonNull java.lang.String name ) { char [ ] c = ( isConstructor ( ) ) ? mBinding.declaringClass.readableName ( ) : mBinding.selector ; return com.android.tools.lint.EcjParser.sameChars ( name , c ) ; }
Source:
public void testGetExampleNumber ( ) { assertEquals ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER , phoneUtil.getExampleNumber ( RegionCode.DE ) ) ; assertEquals ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER , phoneUtil.getExampleNumberForType ( RegionCode.DE , PhoneNumberUtil.PhoneNumberType.FIXED_LINE ) ) ; assertEquals ( null , phoneUtil.getExampleNumberForType ( RegionCode.DE , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( RegionCode.US , PhoneNumberUtil.PhoneNumberType.FIXED_LINE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( RegionCode.US , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNull ( phoneUtil.getExampleNumberForType ( RegionCode.CS , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNull ( phoneUtil.getExampleNumber ( RegionCode.UN001 ) ) ; }

Target:
public void testNormaliseReplaceAlphaCharacters ( ) { java.lang.StringBuilder inputNumber = new java.lang.StringBuilder ( "034-I-am-HUNGRY" ) ; java.lang.String expectedOutput = "034426486479" ; assertEquals ( "Conversion did not correctly replace alpha characters" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( inputNumber ) . toString ( ) ) ; }
Source:
public void onImsProgressing ( int imsRadioTech ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsProgressing imsRadioTech=" + imsRadioTech ) ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.PROGRESSING , null ) ; }

Target:
public void onRegistering ( @ android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech int imsRadioTech ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsProgressing imsRadioTech=" + imsRadioTech ) ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.PROGRESSING , null ) ; }
Source:
public boolean onTouchEvent ( final android.view.MotionEvent ev ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onTouchEvent ( ev ) ; } } ) ; return ret ; } return mAwContents.onTouchEvent ( ev ) ; }

Target:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }
Source:
public static void atraceDumpAndSend ( android.content.Context context , java.lang.String tags , int bufferSizeKb ) { java.lang.String format = "yyyy-MM-dd-HH-mm-ss" ; java.lang.String now = new java.text.SimpleDateFormat ( format , java.util.Locale.US ) . format ( new java.util.Date ( ) ) ; java.io.File file = new java.io.File ( com.android.traceur.AtraceUtils.TRACE_DIRECTORY , java.lang.String.format ( "traceur-%s-%s-%s.txt" , Build.BOARD , Build.ID , now ) ) ; com.android.traceur.FileSender.postCaptureNotification ( context , file ) ; com.android.traceur.AtraceUtils.atraceDump ( tags , bufferSizeKb , file ) ; com.android.traceur.FileSender.postNotification ( context , file ) ; }

Target:
public static void atraceDumpAndSend ( android.content.Context context , java.lang.String tags , int bufferSizeKb ) { java.lang.String format = "yyyy-MM-dd-HH-mm-ss" ; java.lang.String now = new java.text.SimpleDateFormat ( format , java.util.Locale.US ) . format ( new java.util.Date ( ) ) ; java.io.File file = new java.io.File ( com.android.traceur.AtraceUtils.TRACE_DIRECTORY , java.lang.String.format ( "trace-%s-%s-%s.ctrace" , Build.BOARD , Build.ID , now ) ) ; com.android.traceur.FileSender.postCaptureNotification ( context , file ) ; com.android.traceur.AtraceUtils.atraceDump ( tags , bufferSizeKb , file ) ; com.android.traceur.FileSender.postNotification ( context , file ) ; }
Source:
public void testApia ( ) throws java.lang.Exception { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "Pacific/Apia" ) ; assertEquals ( "Samoa Daylight Time" , tz.getDisplayName ( true , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "Samoa Standard Time" , tz.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "GMT+14:00" , tz.getDisplayName ( true , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; assertEquals ( "GMT+13:00" , tz.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; }

Target:
public void testApia ( ) throws java.lang.Exception { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "Pacific/Apia" ) ; assertEquals ( "Apia Daylight Time" , tz.getDisplayName ( true , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "Apia Standard Time" , tz.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "GMT+14:00" , tz.getDisplayName ( true , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; assertEquals ( "GMT+13:00" , tz.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; }
Source:
public void testGoogleNowWelcomeViewWatcher ( ) throws java.lang.Exception { com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( mInstrumentation , "Google" ) ; }

Target:
public void testGoogleNowWelcomeViewWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; device.registerWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher.class . getName ( ) , new com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher ( device ) ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "Google" ) ; device.removeWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher.class . getName ( ) ) ; }
Source:
public boolean isOtaSpNumber ( java.lang.String dialStr ) { boolean isOtaSpNum = false ; java.lang.String dialableStr = android.telephony.PhoneNumberUtils.extractNetworkPortionAlt ( dialStr ) ; if ( dialableStr != null ) { isOtaSpNum = com.android.internal.telephony.cdma.CDMAPhone.isIs683OtaSpDialStr ( dialableStr ) ; if ( isOtaSpNum == false ) { isOtaSpNum = isCarrierOtaSpNum ( dialableStr ) ; } } if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "isOtaSpNumber " + isOtaSpNum ) ) ; return isOtaSpNum ; }

Target:
public boolean isOtaSpNumber ( java.lang.String dialStr ) { boolean isOtaSpNum = false ; java.lang.String dialableStr = android.telephony.PhoneNumberUtils.extractNetworkPortionAlt ( dialStr ) ; if ( dialableStr != null ) { isOtaSpNum = com.android.internal.telephony.cdma.CDMAPhone.isIs683OtaSpDialStr ( dialableStr ) ; if ( isOtaSpNum == false ) { isOtaSpNum = isCarrierOtaSpNum ( dialableStr ) ; } } if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "isOtaSpNumber " + isOtaSpNum ) ) ; return isOtaSpNum ; }
Source:
public void testGetActivitiesForNonProfileFails ( ) throws java.lang.Exception { if ( ! ( mMultiUserSupported ) ) { return ; } installApp ( com.android.cts.devicepolicy.SIMPLE_APP_APK ) ; try { assertTrue ( runDeviceTests ( com.android.cts.devicepolicy.LAUNCHER_TESTS_PKG , com.android.cts.devicepolicy.LAUNCHER_TESTS_CLASS , "testGetActivitiesForUserFails" , 0 , ( "-e testUser " + ( mSecondaryUserSerialNumber ) ) ) ) ; } finally { getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.SIMPLE_APP_PKG ) ; } }

Target:
public void testGetActivitiesForNonProfileFails ( ) throws java.lang.Exception { if ( ( ! ( mMultiUserSupported ) ) || ( mHasLiveTvFeature ) ) { return ; } installApp ( com.android.cts.devicepolicy.SIMPLE_APP_APK ) ; try { assertTrue ( runDeviceTests ( com.android.cts.devicepolicy.LAUNCHER_TESTS_PKG , com.android.cts.devicepolicy.LAUNCHER_TESTS_CLASS , "testGetActivitiesForUserFails" , 0 , ( "-e testUser " + ( mSecondaryUserSerialNumber ) ) ) ) ; } finally { getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.SIMPLE_APP_PKG ) ; } }
Source:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVDir outputVDir , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( FileType.DEX.getFileExtension ( ) ) ; } try { return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVfs , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( FileType.DEX.getFileExtension ( ) ) ; } try { return outputVfs.getRootDir ( ) . createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
void addProcessName ( java.lang.String processName ) { if ( ( mProcesses ) == null ) { mProcesses = new java.util.TreeSet < java.lang.String > ( ) ; } mProcesses.add ( processName ) ; }

Target:
void addProcessName ( java.lang.String processName ) { if ( ( mProcesses ) == null ) { mProcesses = new java.util.TreeSet < java.lang.String > ( ) ; } if ( processName.startsWith ( ":" ) ) { mProcesses.add ( ( ( mPackage ) + processName ) ) ; } else { mProcesses.add ( processName ) ; } }