auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void validate ( ) { }

Target:
private com.android.builder.VariantConfiguration getVariant ( ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
private long getSecureLong ( java.lang.String name , long def ) { return Settings.Secure.getLong ( mResolver , name , def ) ; }

Target:
private boolean getGlobalBoolean ( java.lang.String name , boolean def ) { final int defInt = ( def ) ? 1 : 0 ; return ( Settings.Global.getInt ( mResolver , name , defInt ) ) != 0 ; }
Source:
synchronized long nScriptGroup2Create ( java.lang.String cachePath , long [ ] closures ) { validate ( ) ; return rsnScriptGroup2Create ( mContext , cachePath , closures ) ; }

Target:
native long rsnScriptGroup2Create ( long con , java.lang.String name , java.lang.String cachePath , long [ ] closures ) ;
Source:
public void notifyANQPDone ( boolean success , com.android.server.wifi.hotspot2.AnqpEvent anqpResult ) { mHandler.notifyANQPDone ( success , anqpResult ) ; }

Target:
public void notifyIconDone ( com.android.server.wifi.hotspot2.IconEvent iconEvent ) { mHandler.notifyIconDone ( iconEvent ) ; }
Source:
public com.android.ddmlib.RawImage getScreenshot ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { return com.android.ddmlib.AdbHelper.getFrameBuffer ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , this ) ; }

Target:
public com.android.ddmlib.RawImage getScreenshot ( long timeout , java.util.concurrent.TimeUnit unit ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { return com.android.ddmlib.AdbHelper.getFrameBuffer ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , this , timeout , unit ) ; }
Source:
public android.content.Intent getLongClickIntent ( ) { return new android.content.Intent ( android.provider.Settings.ACTION_WIRELESS_SETTINGS ) ; }

Target:
public android.content.Intent getLongClickIntent ( ) { return new android.content.Intent ( com.android.systemui.qs.tiles.HotspotTile.TETHER_SETTINGS ) ; }
Source:
private static java.security.Provider getDefaultProvider ( ) { tests.api.javax.net.ssl.TrustManagerFactory1Test.init ( ) ; return tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER ; }

Target:
private static java.security.Provider getDefaultProvider ( ) { org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.init ( ) ; return org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_PROVIDER ; }
Source:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int maxThreads , int timeout , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull java.io.File coverageDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.TestRunner.NoAuthorizedDeviceFoundException , com.android.builder.testing.api.TestException , java.lang.InterruptedException ;

Target:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int maxThreads , int timeoutInMs , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull java.io.File coverageDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.TestRunner.NoAuthorizedDeviceFoundException , com.android.builder.testing.api.TestException , java.lang.InterruptedException ;
Source:
public void onExternalCallChanged ( com.android.server.telecom.Call call , boolean isExternalCall ) { if ( isExternalCall ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_REMOVE_CALL , call ) . sendToTarget ( ) ; } else { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_ADD_CALL , call ) . sendToTarget ( ) ; } }

Target:
public void onConnectionServiceDeath ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_CONNECTION_SERVICE_DEATH , new com.android.server.telecom.ConnectionServiceFocusManager.MessageArgs ( android.telecom.Log.createSubsession ( ) , "CSFM.oCSD" , connectionServiceFocus ) ) . sendToTarget ( ) ; }
Source:
public static java.lang.String getStringForIndexCreation ( java.lang.String tableName ) { return ( ( ( "CREATE INDEX IF NOT EXISTS mccmncIndex ON " + tableName ) + " (" ) + ( com.android.providers.telephony.CarrierIdProvider.MCCMNC ) ) + ");" ; }

Target:
public static java.lang.String getStringForIndexCreation ( java.lang.String tableName ) { return ( ( ( "CREATE INDEX IF NOT EXISTS mccmncIndex ON " + tableName ) + " (" ) + ( android.provider.Telephony.CarrierIdentification.MCCMNC ) ) + ");" ; }
Source:
void onLongClick ( android.view.View view , com.android.dialer.speeddial.loader.SpeedDialUiItem speedDialUiItem ) ;

Target:
void showContextMenu ( android.view.View view , com.android.dialer.speeddial.loader.SpeedDialUiItem speedDialUiItem ) ;
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { node.setAttribute ( com.android.ide.common.layout.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }
Source:
public void testCreatingAndApplying ( ) throws java.lang.Exception { createPatch ( ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testCreatingAndApplying ( ) throws java.lang.Exception { com.intellij.updater.Patch patch = createPatch ( ) ; assertAppliedAndRevertedCorrectly ( patch , com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
public void startPrefixMapping ( java.lang.String prefix , java.lang.String uri ) { data_startPrefixMapping.append ( ( ( prefix + ( tests.api.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ) + uri ) ) ; }

Target:
public void startPrefixMapping ( java.lang.String prefix , java.lang.String uri ) { data_startPrefixMapping.append ( ( ( prefix + ( org.apache.harmony.tests.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ) + uri ) ) ; }
Source:
public void setSmsListener ( com.android.ims.internal.IImsSmsListener l ) throws android.os.RemoteException { this . setSmsListener ( l ) ; }

Target:
public void setSmsListener ( android.telephony.ims.aidl.IImsSmsListener l ) throws android.os.RemoteException { this . setSmsListener ( l ) ; }
Source:
private void logd ( java.lang.String str ) { android.util.Log.d ( android.telephony.MbmsStreamingManager.LOG_TAG , str ) ; }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { android.util.Log.i ( android.telephony.MbmsStreamingManager.LOG_TAG , java.lang.String.format ( "Disconnected from service %s" , name ) ) ; synchronized ( this ) { mService = null ; mServiceListeners.forEach ( android.telephony.MbmsStreamingManager.ServiceListener :: onServiceDisconnected ) ; } }
Source:
public void validateConfigWithoutCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = android.net.wifi.hotspot2.PasspointConfigurationTest.createHomeSp ( ) ; org.junit.Assert.assertFalse ( config.validate ( ) ) ; }

Target:
public void verifyParcelWithoutPolicy ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.policy = null ; android.net.wifi.hotspot2.PasspointConfigurationTest.verifyParcel ( config ) ; }
Source:
public static void checkClientTrusted ( javax.net.ssl.X509TrustManager x509tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.net.Socket socket ) throws java.security.cert.CertificateException { x509tm.checkClientTrusted ( chain , authType ) ; }

Target:
public static void checkServerTrusted ( javax.net.ssl.X509TrustManager x509tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { x509tm.checkServerTrusted ( chain , authType ) ; }
Source:
public boolean enableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "ENABLE_NETWORK " + netId ) ) ; }

Target:
public com.android.server.wifi.WifiNative.TxPacketCounters getTxPacketCounters ( ) { return mWificondControl.getTxPacketCounters ( ) ; }
Source:
public java.lang.Class < ? > [ ] getParameterTypes ( ) { return super . getParameterTypesInternal ( ) ; }

Target:
public java.lang.Class < ? > [ ] getParameterTypes ( ) { java.lang.Class < ? > [ ] paramTypes = super . getParameterTypesInternal ( ) ; if ( paramTypes == null ) { return libcore.util.EmptyArray.CLASS ; } return paramTypes ; }
Source:
public void test_RSA_public_decrypt_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.RSA_public_decrypt ( 0 , new byte [ 0 ] , new byte [ 0 ] , org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY , 0 ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_RSA_public_decrypt_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.RSA_public_decrypt ( 0 , new byte [ 0 ] , new byte [ 0 ] , null , 0 ) ; fail ( "Expecting null pointer exception for RSA_public decrypt with null key" ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public int getCallingThreadId ( ) { return android.os.Process.myTid ( ) ; }

Target:
public int getCallingThreadId ( ) { return mCurrentThreadId.get ( ) ; }
Source:
public void addNetwork ( com.android.sdklib.devices.Network n ) { mNetworking.add ( n ) ; }

Target:
public void addAllNetworks ( @ com.android.annotations.NonNull java.util.Collection < com.android.sdklib.devices.Network > ns ) { mNetworking.addAll ( ns ) ; }
Source:
java.util.Collection < ? extends com.android.builder.model.SigningConfig > getSigningConfigs ( ) ;

Target:
java.lang.String getTargetVariant ( ) ;
Source:
public void testE2 ( ) { dot.junit.opcodes.aput_char.d.T_aput_char_1 t = new dot.junit.opcodes.aput_char.d.T_aput_char_1 ( ) ; try { t.run ( null , 2 , 'g' ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aput_char.d.T_aput_char_1" , java.lang.NullPointerException.class , null , 0 , 'g' ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { selectContext ( ( ( mContextSwitchCombo.getSelectionIndex ( ) ) - 1 ) ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { int selectedFrame = mFrameSelectionScale.getSelection ( ) ; mFrameSelectionSpinner.setSelection ( selectedFrame ) ; selectFrame ( selectedFrame ) ; }
Source:
private static java.lang.String wpaCipherToString ( int cipher ) { switch ( cipher ) { case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_NONE : return "NONE" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_TKIP : return "TKIP" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_CCMP : return "CCMP" ; default : return "?" ; } }

Target:
private java.lang.String protocolToString ( int protocol ) { switch ( protocol ) { case android.net.wifi.ScanResult.PROTOCOL_NONE : return "None" ; case android.net.wifi.ScanResult.PROTOCOL_WPA : return "WPA" ; case android.net.wifi.ScanResult.PROTOCOL_WPA2 : return "WPA2" ; default : return "?" ; } }
Source:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { this . out.write ( b , off , len ) ; }

Target:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { writeEntryIfNeeded ( ) ; out.write ( b , off , len ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onDeviceChange ( true ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onDockChange ( ) ; }
Source:
void onSaveInstanceState ( @ android.support.annotation.NonNull android.os.Bundle bundle ) { bundle.putParcelableArrayList ( com.android.incallui.rtt.impl.RttChatAdapter.KEY_MESSAGE_DATA , ( ( java.util.ArrayList < com.android.incallui.rtt.impl.RttChatMessage > ) ( rttMessages ) ) ) ; bundle.putInt ( com.android.incallui.rtt.impl.RttChatAdapter.KEY_LAST_LOCAL_MESSAGE , lastIndexOfLocalMessage ) ; }

Target:
java.util.List < com.android.dialer.rtt.RttTranscriptMessage > getRttTranscriptMessageList ( ) { return com.android.incallui.rtt.impl.RttChatMessage.toTranscriptMessageList ( rttMessages ) ; }
Source:
private static int bits32 ( int x ) { return java.lang.Integer.bitCount ( x ) ; }

Target:
private static int $noinline$BitCountBoolean ( boolean x ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return java.lang.Integer.bitCount ( ( x ? 1 : 0 ) ) ; }
Source:
public boolean isSystemView ( ) { return false ; }

Target:
public com.android.ide.common.rendering.api.ViewType getViewType ( ) { return ViewType.USER ; }
Source:
public boolean apply ( com.android.tools.idea.run.GoogleCloudTestingConfiguration testingConfiguration ) { return testingConfiguration.isEditable ( ) ; }

Target:
public boolean apply ( com.android.tools.idea.run.CloudTestConfiguration testingConfiguration ) { return testingConfiguration.isEditable ( ) ; }
Source:
public void errorResponse ( int token ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "errorResponse: token " + token ) ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_RIL_UNKNOWN ) ; sendSapMessage ( sapMessage ) ; }

Target:
public void errorResponse ( int token ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "errorResponse: token " + token ) ) ; com.android.bluetooth.sap.SapService.notifyUpdateWakeLock ( mSapServiceHandler ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_RIL_UNKNOWN ) ; sendSapMessage ( sapMessage ) ; }
Source:
public boolean setConfiguration ( java.lang.String [ ] folderSegments ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.getConfig ( folderSegments ) ; if ( config == null ) { return false ; } setConfiguration ( config ) ; return true ; }

Target:
public boolean setConfiguration ( java.lang.String [ ] folderSegments ) { com.android.ide.common.resources.configuration.FolderConfiguration config = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( folderSegments ) ; if ( config == null ) { return false ; } setConfiguration ( config ) ; return true ; }
Source:
public void show ( ) { super . show ( ) ; }

Target:
public void showClearFrequents ( boolean show ) { getMenu ( ) . findItem ( R.id.clear_frequents ) . setVisible ( show ) ; }
Source:
public void setGlobalStartTime ( long globalStartTime ) { mGlobalStartTime = globalStartTime ; }

Target:
void updateRootCallTimeBounds ( ) { if ( ! ( mIsEmpty ) ) { mRootCall.mGlobalStartTime = mGlobalStartTime ; mRootCall.mGlobalEndTime = mGlobalEndTime ; mRootCall.mThreadStartTime = mThreadStartTime ; mRootCall.mThreadEndTime = mThreadEndTime ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.accessibilityservice.cts.ShellCommandBuilder.create ( this . getInstrumentation ( ) ) . deleteSecureSetting ( android.accessibilityservice.cts.AccessibilityMagnificationTest.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED ) . run ( ) ; mInstrumentation = getInstrumentation ( ) ; android.accessibilityservice.cts.b2e8c Merge ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.accessibilityservice.cts.ShellCommandBuilder.create ( this . getInstrumentation ( ) ) . deleteSecureSetting ( android.accessibilityservice.cts.AccessibilityMagnificationTest.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED ) . run ( ) ; mInstrumentation = getInstrumentation ( ) ; mService = android.accessibilityservice.cts.StubMagnificationAccessibilityService.enableSelf ( mInstrumentation ) ; }
Source:
private void writeOutput ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Writing output..." ) ; } new proguard.OutputWriter ( configuration ) . execute ( programClassPool ) ; }

Target:
private void preverify ( ) { if ( configuration.verbose ) { java.lang.System.out.println ( "Preverifying..." ) ; } new proguard.Preverifier ( configuration ) . execute ( programClassPool ) ; }
Source:
public void testKeyStore_GetType_Success ( ) throws java.lang.Exception { assertEquals ( AndroidKeyStore.NAME , mKeyStore.getType ( ) ) ; }

Target:
public void testKeyStore_GetType_Encrypted_Success ( ) throws java.lang.Exception { assertEquals ( AndroidKeyStore.NAME , mKeyStore.getType ( ) ) ; setupPassword ( ) ; assertEquals ( AndroidKeyStore.NAME , mKeyStore.getType ( ) ) ; }
Source:
public void testCheckSignaturesSharedSomeMatch2 ( ) { int apk1 = SHARED1_CERT1_CERT2 ; int apk2 = SHARED2_CERT2 ; boolean fail = true ; int retCode = PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }

Target:
public void testCheckSignaturesSharedNoMatch ( ) { int apk1 = SHARED1_CERT1 ; int apk2 = SHARED2_CERT2 ; boolean fail = true ; int retCode = android.content.pm.PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }
Source:
public void disconnect ( ) { if ( mIsConnected ) { mCurrentConnection.disconnect ( ) ; mIsConnected = false ; } else { com.android.server.telecom.Log.i ( this , "already disconnected" ) ; } }

Target:
public void disconnect ( ) { if ( mIsConnected ) { mCurrentConnection.disconnect ( ) ; mIsConnected = false ; } else { android.telecom.Log.i ( this , "already disconnected" ) ; } }
Source:
public void stopTethering ( int type ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }

Target:
public void stopTethering ( int type , java.lang.String callerPkg ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }
Source:
public static void d ( java.lang.String caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.gsm.stk.StkLog.DEBUG ) ) { return ; } android.util.Log.d ( "STK" , ( ( caller + ": " ) + msg ) ) ; }

Target:
public static void d ( java.lang.String caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.cat.CatLog.DEBUG ) ) { return ; } android.util.Log.d ( "CAT" , ( ( caller + ": " ) + msg ) ) ; }
Source:
public void addRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . addRegistrationListener ( mSlotId , mSupportedFeature , listener ) ; } }

Target:
public boolean isOpened ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isOpened ( mSlotId , mSupportedFeature ) ; } }
Source:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mHidDevice ) != null ) && ( mHidDevice.equals ( device ) ) ) { return mHidDeviceState ; } return android.bluetooth.BluetoothHidDevice.STATE_DISCONNECTED ; }

Target:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( ( mHidDevice ) != null ) && ( mHidDevice.equals ( device ) ) ) { return mHidDeviceState ; } return android.bluetooth.BluetoothHidDevice.STATE_DISCONNECTED ; }
Source:
public static boolean hasExtension ( java.lang.String extension ) { if ( ( extension == null ) || ( extension.isEmpty ( ) ) ) { return false ; } return libcore.net.MimeUtils.extensionToMimeTypeMap.containsKey ( extension ) ; }

Target:
public static boolean hasExtension ( java.lang.String extension ) { return ( libcore.net.MimeUtils.guessMimeTypeFromExtension ( extension ) ) != null ; }
Source:
public void completedNormally ( boolean completedNormally ) { com.google.caliper.internal.gson.JsonObject jsonObject = new com.google.caliper.internal.gson.JsonObject ( ) ; jsonObject.addProperty ( "completedNormally" , completedNormally ) ; writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }

Target:
public void completedNormally ( boolean completedNormally ) { com.google.gson.JsonObject jsonObject = new com.google.gson.JsonObject ( ) ; jsonObject.addProperty ( "completedNormally" , completedNormally ) ; writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }
Source:
public void sendEnvelopeResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String var2 ) { }

Target:
public void setCallWaitingResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo ) { responseVoid ( responseInfo ) ; }
Source:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , libcore.util.MutableLong inOffset , long byteCount ) throws libcore.io.ErrnoException { return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }

Target:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }
Source:
private void endDtmfSession ( com.android.server.telecom.Call call ) { if ( ( call != null ) && ( ( mCall ) == call ) ) { stopTone ( call ) ; mCall = null ; com.android.server.telecom.Log.d ( this , "Posting delete." ) ; postMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_DELETE_OBJECT ) ; } }

Target:
private void endDtmfSession ( com.android.server.telecom.Call call ) { if ( ( call != null ) && ( ( mCall ) == call ) ) { stopTone ( call ) ; mCall = null ; android.telecom.Log.d ( this , "Posting delete." ) ; postMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_DELETE_OBJECT ) ; } }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { android.content.Intent intent = new android.content.Intent ( "android.intent.action.MANAGE_PACKAGE_STORAGE" ) ; startActivity ( intent ) ; finish ( ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { android.util.Log.i ( TAG , "Canceling installation" ) ; finish ( ) ; }
Source:
public boolean isBoundary ( int offset ) { checkOffset ( offset ) ; return wrapped.isBoundary ( offset ) ; }

Target:
public int preceding ( int offset ) { checkOffset ( offset ) ; return wrapped.preceding ( offset ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.rem_long_2addr.d.T_rem_long_2addr_1 t = new dot.junit.opcodes.rem_long_2addr.d.T_rem_long_2addr_1 ( ) ; try { t.run ( 1234567890123L , 0L ) ; fail ( "expected ArithmeticException" ) ; } catch ( java.lang.ArithmeticException ae ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.rem_long_2addr.d.T_rem_long_2addr_1" , java.lang.ArithmeticException.class , 1234567890123L , 0L ) ; }
Source:
public void addActiveDcByCid ( com.android.internal.telephony.dataconnection.DataConnection dc ) { if ( ( com.android.internal.telephony.dataconnection.DcController.DBG ) && ( ( dc.mCid ) < 0 ) ) { log ( ( "addActiveDcByCid dc.mCid < 0 dc=" + dc ) ) ; } mDcListActiveByCid.put ( dc.mCid , dc ) ; }

Target:
public void addActiveDcByCid ( com.android.internal.telephony.dataconnection.DataConnection dc ) { if ( ( com.android.internal.telephony.dataconnection.DcController.DBG ) && ( ( dc.mCid ) < 0 ) ) { log ( ( "addActiveDcByCid dc.mCid < 0 dc=" + dc ) ) ; } synchronized ( mDcListAll ) { mDcListActiveByCid.put ( dc.mCid , dc ) ; } }
Source:
static void constClassSgetAndInvokeStatic ( java.lang.Iterable < ? > it ) { Main.$opt$inline$ignoreClass ( Main.ClassWithClinit9.class ) ; Main.$opt$inline$ignoreInt ( Main.ClassWithClinit9.value ) ; Main.ClassWithClinit9.someStaticMethod ( it ) ; }

Target:
static void constClassSgetAndInvokeStatic ( java.lang.Iterable < ? > it ) { Main.$opt$inline$ignoreClass ( Main.ClassWithClinit9.class ) ; Main.$opt$inline$ignoreInt ( Main.ClassWithClinit9.value ) ; Main.ClassWithClinit9.$noinline$someStaticMethod ( it ) ; }
Source:
private void cacheField ( @ javax.annotation.Nonnull java.lang.String key , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { assert ! ( fields.containsKey ( key ) ) ; fields.put ( key , field ) ; }

Target:
private void cacheField ( @ javax.annotation.Nonnull com.android.jack.ir.impl.ReferenceMapper.SignatureKey key , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { assert ! ( fields.containsKey ( key ) ) ; fields.put ( key , field ) ; }
Source:
public void run ( ) { mFrameLayout.setForeground ( foreground ) ; drawWaiter.registerDrawCompleteCallback ( mFrameLayout ) ; }

Target:
protected boolean check ( ) { return ( mFrameLayout.getHeight ( ) ) == ( ( rect.bottom ) - ( rect.top ) ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { validateIsInt16 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copyTo ( int [ ] d ) { validateIsInt32 ( ) ; copyTo ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public static int doubleConditionEqualZero ( double d ) { return ( d > 42.0 ) != false ? 13 : 54 ; }

Target:
public static int $noinline$doubleConditionEqualZero ( double d ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( d > 42.0 ) != false ? 13 : 54 ; }
Source:
public void testUidPoliciesToString ( ) { uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_NONE , "0 (NONE)" ) ; uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND , "1 (REJECT_METERED_BACKGROUND)" ) ; uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND , "4 (ALLOW_BACKGROUND_BATTERY_SAVE)" ) ; }

Target:
public void testUidPoliciesToString ( ) { uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_NONE , "0 (NONE)" ) ; uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND , "1 (REJECT_METERED_BACKGROUND)" ) ; uidPoliciesToStringTest ( android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND , "4 (ALLOW_METERED_BACKGROUND)" ) ; }
Source:
public int getDefaultVoiceSubId ( ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }

Target:
public int getDefaultVoiceSubId ( ) { if ( ( mDefaultVoiceSubId ) != null ) { return mDefaultVoiceSubId.get ( ) ; } else { return android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID ; } }
Source:
public static void d ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( com.android.services.telephony.Log.DEBUG ) { android.util.Log.d ( com.android.services.telephony.Log.TAG , com.android.services.telephony.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void d ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.d ( prefix , format , args ) ; }
Source:
public int preceding ( int offset ) { throw new java.lang.UnsupportedOperationException ( "preceding(int) is not yet implemented" ) ; }

Target:
public int preceding ( int offset ) { return internalPrev ( delegate.preceding ( offset ) ) ; }
Source:
protected void onPause ( ) { super . onPause ( ) ; log ( "onPause: unregister phone & data intents" ) ; mTelephonyManager.listen ( mPhoneStateListener , PhoneStateListener.LISTEN_NONE ) ; mTelephonyManager.setCellInfoListRate ( com.android.settings.RadioInfo.CELL_INFO_LIST_RATE_DISABLED ) ; }

Target:
protected void onPause ( ) { super . onPause ( ) ; log ( "onPause: unregister phone & data intents" ) ; mTelephonyManager.listen ( mPhoneStateListener , PhoneStateListener.LISTEN_NONE ) ; mTelephonyManager.setCellInfoListRate ( com.android.settings.RadioInfo.CELL_INFO_LIST_RATE_DISABLED ) ; mConnectivityManager.unregisterNetworkCallback ( mNetworkCallback ) ; }
Source:
public boolean perform ( ) { synchronized ( lock ) { try { lock.wait ( 100 , 0 ) ; } catch ( java.lang.InterruptedException ignored ) { } } return true ; }

Target:
public boolean perform ( ) { synchronized ( lock ) { try { lock.wait ( Main.TimedWait.SLEEP_TIME , 0 ) ; } catch ( java.lang.InterruptedException ignored ) { } } return true ; }
Source:
private static native byte getDirectionalityImpl ( int codePoint ) ;

Target:
public static native byte getIcuDirectionality ( int codePoint ) ;
Source:
java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number ) ;

Target:
java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number , java.lang.String countryIso ) ;
Source:
private synchronized boolean setAndSaveAlwaysOnPackage ( java.lang.String packageName , boolean lockdown ) { if ( setAlwaysOnPackage ( packageName , lockdown ) ) { saveAlwaysOnPackage ( ) ; return true ; } else { return false ; } }

Target:
public synchronized boolean setAlwaysOnPackage ( java.lang.String packageName , boolean lockdown ) { enforceControlPermissionOrInternalCaller ( ) ; if ( setAlwaysOnPackageInternal ( packageName , lockdown ) ) { saveAlwaysOnPackage ( ) ; return true ; } return false ; }
Source:
public boolean supportsMulticast ( ) throws java.net.SocketException { return java.net.NetworkInterface.supportsMulticast0 ( name , index ) ; }

Target:
public boolean isPointToPoint ( ) throws java.net.SocketException { return ( ( getFlags ( ) ) & ( IFF_POINTOPOINT ) ) != 0 ; }
Source:
public boolean isFitsSystemWindowsFlagSet ( ) { return ( ( mViewFlags ) & ( android.view.View.FITS_SYSTEM_WINDOWS ) ) == ( android.view.View.FITS_SYSTEM_WINDOWS ) ; }

Target:
public boolean fitsSystemWindows ( ) { return ( ( mViewFlags ) & ( android.view.View.FITS_SYSTEM_WINDOWS ) ) == ( android.view.View.FITS_SYSTEM_WINDOWS ) ; }
Source:
public void getDataCallList ( int slotId , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_GET_DATA_CALL_LIST , slotId , 0 , callback ) . sendToTarget ( ) ; }

Target:
public void getDataCallList ( int slotId , android.telephony.data.IDataServiceCallback callback ) { if ( callback == null ) { loge ( "getDataCallList: callback is null" ) ; return ; } mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_GET_DATA_CALL_LIST , slotId , 0 , callback ) . sendToTarget ( ) ; }
Source:
public boolean setupBcb ( java.lang.String command ) { if ( com.android.server.RecoverySystemService.DEBUG ) android.util.Slog.d ( com.android.server.RecoverySystemService.TAG , ( ( "setupBcb: [" + command ) + "]" ) ) ; return setupOrClearBcb ( true , command ) ; }

Target:
public boolean setupBcb ( java.lang.String command ) { if ( com.android.server.RecoverySystemService.DEBUG ) android.util.Slog.d ( com.android.server.RecoverySystemService.TAG , ( ( "setupBcb: [" + command ) + "]" ) ) ; synchronized ( com.android.server.RecoverySystemService.sRequestLock ) { return setupOrClearBcb ( true , command ) ; } }
Source:
public boolean inKeyguardRestrictedKeyInputMode ( ) { if ( ( mKeyguardMediator ) == null ) return false ; return mKeyguardMediator.isInputRestricted ( ) ; }

Target:
public void enableKeyguard ( boolean enabled ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.setKeyguardEnabled ( enabled ) ; } }
Source:
static com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler createFromPath ( java.io.File rootPath ) { return new com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler ( rootPath ) ; }

Target:
static com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler createFromPath ( java.io.File rootPath ) { return new com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler ( rootPath , new com.android.ide.eclipse.adt.internal.wizards.templates.TemplateManager ( ) ) ; }
Source:
void putUnchecked ( int pos , float [ ] dst , int srcOffset , int length ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
abstract void getUnchecked ( int pos , double [ ] dst , int dstOffset , int length ) ;
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values-he: Warning: The locale folder \"he\" should be called \"iw\" instead; see the java.util.Locale documentation [LocaleFolder]\n" + "res/values-id: Warning: The locale folder \"id\" should be called \"in\" instead; see the java.util.Locale documentation [LocaleFolder]\n" ) + "res/values-yi: Warning: The locale folder \"yi\" should be called \"ji\" instead; see the java.util.Locale documentation [LocaleFolder]\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values/strings.xml=>res/values-no/strings.xml" , "res/values/strings.xml=>res/values-he/strings.xml" , "res/values/strings.xml=>res/values-id/strings.xml" , "res/values/strings.xml=>res/values-yi/strings.xml" ) ) ; }

Target:
public void testDeprecated ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values-he: Warning: The locale folder \"he\" should be called \"iw\" instead; see the java.util.Locale documentation [LocaleFolder]\n" + "res/values-id: Warning: The locale folder \"id\" should be called \"in\" instead; see the java.util.Locale documentation [LocaleFolder]\n" ) + "res/values-yi: Warning: The locale folder \"yi\" should be called \"ji\" instead; see the java.util.Locale documentation [LocaleFolder]\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values/strings.xml=>res/values-no/strings.xml" , "res/values/strings.xml=>res/values-he/strings.xml" , "res/values/strings.xml=>res/values-id/strings.xml" , "res/values/strings.xml=>res/values-yi/strings.xml" ) ) ; }
Source:
public void reloadFromDatabase ( com.android.server.telecom.TelecomSystem.SyncRoot lock , com.android.server.telecom.CallsManager callsManager , com.android.server.telecom.ContactsAsyncHelper contactsAsyncHelper , com.android.server.telecom.CallerInfoAsyncQueryFactory callerInfoAsyncQueryFactory , android.os.UserHandle userHandle ) { }

Target:
public void reloadFromDatabase ( com.android.server.telecom.CallerInfoLookupHelper callerInfoLookupHelper , com.android.server.telecom.tests.CallInfoFactory callInfoFactory , android.os.UserHandle userHandle ) { }
Source:
public void tearDown ( ) { if ( ( mMceStateMachine ) != null ) { mMceStateMachine.doQuit ( ) ; } }

Target:
public void tearDown ( ) { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ) { return ; } if ( ( mMceStateMachine ) != null ) { mMceStateMachine.doQuit ( ) ; } }
Source:
private void checkEmpty ( android.net.StaticIpConfiguration s ) { assertNull ( s.ipAddress ) ; assertNull ( s.gateway ) ; assertNull ( s.domains ) ; assertEquals ( 0 , s.dnsServers.size ( ) ) ; }

Target:
private void checkEmpty ( android.net.StaticIpConfiguration s ) { org.junit.Assert.assertNull ( s.ipAddress ) ; org.junit.Assert.assertNull ( s.gateway ) ; org.junit.Assert.assertNull ( s.domains ) ; org.junit.Assert.assertEquals ( 0 , s.dnsServers.size ( ) ) ; }
Source:
public com.google.common.base.Objects.ToStringHelper add ( java.lang.String name , char value ) { checkNameAndAppend ( name ) . append ( value ) ; return this ; }

Target:
public com.google.common.base.Objects.ToStringHelper add ( java.lang.String name , char value ) { return addHolder ( name , java.lang.String.valueOf ( value ) ) ; }
Source:
public boolean setBluetoothCoexistenceMode ( int mode ) { return doBooleanCommand ( ( "DRIVER BTCOEXMODE " + mode ) ) ; }

Target:
public boolean setBluetoothCoexistenceMode ( int mode ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setBtCoexistenceMode ( ( ( byte ) ( mode ) ) ) ; } else { return doBooleanCommand ( ( "DRIVER BTCOEXMODE " + mode ) ) ; } }
Source:
public void setMethodExitTime ( int threadTime , int globalTime ) { mExitThreadTime = threadTime ; mExitGlobalTime = globalTime ; }

Target:
public void setMethodEntryTime ( int threadTime , int globalTime ) { mEntryThreadTime = threadTime ; mEntryGlobalTime = globalTime ; }
Source:
public void openModuleSettings ( final com.intellij.openapi.module.Module module ) { com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showDialog ( myProject , module.getName ( ) , null ) ; }

Target:
public void openModuleSettings ( final com.intellij.openapi.module.Module module ) { warnIfGradleProject ( ) ; com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showDialog ( myProject , module.getName ( ) , null ) ; }
Source:
public java.lang.Object [ ] toArray ( ) { return com.google.common.collect.Lists.newArrayList ( iterator ( ) ) . toArray ( ) ; }

Target:
public boolean retainAll ( java.util.Collection < ? > c ) { return removeIf ( com.google.common.base.Predicates.not ( com.google.common.base.Predicates.in ( c ) ) ) ; }
Source:
public java.lang.String getStringValue ( ) { if ( ( mCode ) != ( com.android.ide.eclipse.adt.internal.resources.configurations.NetworkCodeQualifier.DEFAULT_CODE ) ) { return java.lang.String.format ( "MNC %1$d" , mCode ) ; } return "" ; }

Target:
public java.lang.String getShortDisplayValue ( ) { if ( ( mCode ) != ( com.android.ide.eclipse.adt.internal.resources.configurations.NetworkCodeQualifier.DEFAULT_CODE ) ) { return java.lang.String.format ( "MNC %1$d" , mCode ) ; } return "" ; }
Source:
public final void testGetBounds ( ) { assertEquals ( new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 10 , 5 , 60 , 40 ) , e.getBounds ( ) ) ; }

Target:
public final void testGetBounds ( ) { assertEquals ( new com.android.ide.common.api.Rect ( 10 , 5 , 60 , 40 ) , e.getBounds ( ) ) ; }
Source:
final void putDouble ( int offset , double value ) { sun.nio.ch.NativeObject.unsafe.putDouble ( ( offset + ( address ) ) , value ) ; }

Target:
final void putDouble ( int offset , double value ) { sun.nio.ch.NativeObject.unsafe.putDouble$ ( ( offset + ( address ) ) , value ) ; }
Source:
public final void testCopy ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r2 = r.copy ( ) ; assertNotSame ( r2 , r ) ; assertEquals ( r2 , r ) ; }

Target:
public final void testCopy ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.common.api.Rect r2 = r.copy ( ) ; assertNotSame ( r2 , r ) ; assertEquals ( r2 , r ) ; }
Source:
public void visitAnyMethodrefConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.RefConstant refConstant ) { bridgedMethodName = refConstant.getName ( clazz ) ; }

Target:
public void visitAnyMethodrefConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.constant.RefConstant refConstant ) { bridgedMethodName = refConstant.getName ( clazz ) ; }
Source:
synchronized void nScriptSetVarJ ( int id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptBindAllocation ( long script , long alloc , int slot ) { validate ( ) ; rsnScriptBindAllocation ( mContext , script , alloc , slot ) ; }
Source:
public void flushPendingBatchResults ( int appIf , boolean isServer ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.flushPendingBatchResults ( appIf , isServer ) ; }

Target:
public void flushPendingBatchResults ( int scannerId ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.flushPendingBatchResults ( scannerId ) ; }
Source:
private static void test_getResourceAsStream ( dalvik.system.DexClassLoaderTest.Configuration config ) throws java.lang.Exception { dalvik.system.DexClassLoaderTest.createInstanceAndCallStaticMethod ( config , "test.TestMethods" , "test_getResourceAsStream" ) ; }

Target:
public void test_twoJar_directGetResourceAsStream ( ) throws java.lang.Exception { java.lang.String result = createLoaderAndGetResource ( "test/Resource1.txt" , jar1 , jar2 ) ; assertEquals ( "Muffins are tasty!\n" , result ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildId ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; buildId_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildIdBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 32 ; buildId_ = value ; onChanged ( ) ; return this ; }
Source:
void addScoreForTest ( android.net.ScoredNetwork scoredNetwork ) { mStorage.addScore ( scoredNetwork ) ; safelyUpdateScores ( new android.net.ScoredNetwork [ ] { scoredNetwork } ) ; }

Target:
void addScoreForTest ( android.net.ScoredNetwork scoredNetwork ) { mStorage.addScore ( scoredNetwork ) ; if ( ! ( com.android.networkrecommendation.DefaultNetworkRecommendationService.WILDCARD_MAC.equals ( scoredNetwork.networkKey.wifiKey.bssid ) ) ) { safelyUpdateScores ( new android.net.ScoredNetwork [ ] { scoredNetwork } ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; assertNotNull ( mAbi ) ; assertNotNull ( mCtsBuild ) ; getDevice ( ) . uninstallPackage ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG ) ; getDevice ( ) . uninstallPackage ( android.appsecurity.cts.PermissionsHostTest.ESCALATE_PERMISSION_PKG ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; getDevice ( ) . uninstallPackage ( android.appsecurity.cts.PermissionsHostTest.PKG ) ; }
Source:
public static < T > org.hamcrest.core.CombinableMatcher.CombinableBothMatcher < T > both ( org.hamcrest.Matcher < ? super T > matcher ) { return org.hamcrest.CoreMatchers.both ( matcher ) ; }

Target:
public static < T > org.junit.internal.matchers.CombinableMatcher < T > both ( org.hamcrest.Matcher < T > matcher ) { return new org.junit.internal.matchers.CombinableMatcher < T > ( matcher ) ; }
Source:
public static java.io.InputStream findEntryInputStream ( com.intellij.updater.MultiZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( entry == null ) return null ; return com.intellij.updater.Utils.findEntryInputStreamForEntry ( zipFile , entry ) ; }

Target:
public static java.io.InputStream findEntryInputStream ( java.util.zip.ZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( entry == null ) return null ; return com.intellij.updater.Utils.findEntryInputStreamForEntry ( zipFile , entry ) ; }
Source:
private native void gattClientConnectNative ( int clientIf , java.lang.String address , boolean isDirect , int transport , int initiating_phys ) ;

Target:
private native void gattClientConnectNative ( int clientIf , java.lang.String address , boolean isDirect , int transport , boolean opportunistic , int initiating_phys ) ;
Source:
public static < T extends java.lang.Comparable < T > > org.hamcrest.org.hamcrest.Matcher < T > lessThan ( T value ) { return org.hamcrest.number.OrderingComparisons.lessThan ( value ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < T > > hasItems ( T ... items ) { return org.hamcrest.core.IsCollectionContaining.< T > hasItems ( items ) ; }
Source:
public int getNumberPresentation ( ) { return com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED ; }

Target:
public int getNumberPresentation ( ) { if ( com.android.internal.telephony.sip.SipConnectionBase.VDBG ) log ( "getNumberPresentation: ret=PRESENTATION_ALLOWED" ) ; return com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED ; }
Source:
private boolean isActiveSubId ( int subId ) { return com.android.internal.telephony.SubscriptionController.getInstance ( ) . isActiveSubId ( subId ) ; }

Target:
private com.android.internal.telephony.IccSmsInterfaceManager getIccSmsInterfaceManager ( int subId ) { return getPhone ( subId ) . getIccSmsInterfaceManager ( ) ; }
Source:
protected void standardClear ( ) { java.util.Iterator < E > iterator = iterator ( ) ; while ( iterator.hasNext ( ) ) { iterator.next ( ) ; iterator.remove ( ) ; } }

Target:
protected void standardClear ( ) { com.google.common.collect.Iterators.clear ( iterator ( ) ) ; }
Source:
public com.android.contacts.common.lettertiles.LetterTileDrawable setOffset ( float offset ) { junit.framework.Assert.assertTrue ( ( ( offset >= ( - 0.5F ) ) && ( offset <= 0.5F ) ) ) ; mOffset = offset ; return this ; }

Target:
public com.android.contacts.common.lettertiles.LetterTileDrawable setOffset ( float offset ) { com.google.common.base.Preconditions.checkArgument ( ( ( offset >= ( - 0.5F ) ) && ( offset <= 0.5F ) ) ) ; mOffset = offset ; return this ; }
Source:
public void invokeOemRilRequestStrings ( java.lang.String [ ] strings , android.os.Message response ) { if ( response != null ) { android.os.AsyncResult.forMessage ( response ) . result = strings ; response.sendToTarget ( ) ; } }

Target:
public void notifyModemReset ( ) { if ( ( mModemResetRegistrants ) != null ) { mModemResetRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , "Test" , null ) ) ; } }
Source:
public void setPreprocessResources ( boolean preprocessResources ) { this . preprocessResources = preprocessResources ; }

Target:
public void setEnabled ( boolean enabled ) { this . enabled = enabled ; }