auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public android.telephony.ImsiEncryptionInfo getCarrierInfoForImsiEncryption ( int subId , int keyType , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getCarrierInfoForImsiEncryption" ) ) ) { return null ; } return phone.getCarrierInfoForImsiEncryption ( keyType ) ; } else { loge ( ( "getCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public android.telephony.ImsiEncryptionInfo getCarrierInfoForImsiEncryption ( int subId , int keyType , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , subId , callingPackage , "getCarrierInfoForImsiEncryption" ) ) ) { return null ; } return phone.getCarrierInfoForImsiEncryption ( keyType ) ; } else { loge ( ( "getCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
private void checkStructure ( @ javax.annotation.Nonnull java.lang.String test ) throws java.lang.Exception { com.android.jack.test.helper.SourceToDexComparisonTestHelper helper = new com.android.jack.test.helper.CheckDexStructureTestHelper ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.inner." + test ) + ".jack" ) ) ) ; helper.runTest ( new com.android.jack.test.comparator.ComparatorDex ( helper.getCandidateDex ( ) , helper.getReferenceDex ( ) ) ) ; }

Target:
private void checkStructure ( @ javax.annotation.Nonnull java.lang.String test ) throws java.lang.Exception { com.android.jack.test.helper.SourceToDexComparisonTestHelper helper = new com.android.jack.test.helper.CheckDexStructureTestHelper ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.inner." + test ) + ".jack" ) ) ) ; helper.runTest ( new com.android.jack.test.comparator.ComparatorDex ( helper.getReferenceDex ( ) , helper.getCandidateDex ( ) ) ) ; }
Source:
public void test_getCollationKeyLjava_lang_String ( ) { java.lang.String source = null ; java.text.RuleBasedCollator rbc = null ; try { java.lang.String Simple = "< a< b< c< d" ; rbc = new java.text.RuleBasedCollator ( Simple ) ; } catch ( java.text.ParseException e ) { fail ( ( "Assert 0: Unexpected format exception " + e ) ) ; } java.text.CollationKey ck = rbc.getCollationKey ( source ) ; assertNull ( "Assert 1: getCollationKey (null) does not return null" , ck ) ; }

Target:
public void test_getCollationKeyLjava_lang_String ( ) throws java.lang.Exception { java.lang.String source = null ; java.lang.String Simple = "< a< b< c< d" ; java.text.RuleBasedCollator rbc = new java.text.RuleBasedCollator ( Simple ) ; java.text.CollationKey ck = rbc.getCollationKey ( source ) ; assertNull ( "Assert 1: getCollationKey (null) does not return null" , ck ) ; }
Source:
public com.google.common.collect.ImmutableSortedMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return this ; }

Target:
public com.google.common.collect.ImmutableSortedMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { super . putAll ( map ) ; return this ; }
Source:
private void changePathRequestFromNative ( byte [ ] address , byte direction , byte [ ] folderUid ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "changePathRequestFromNative: direction=" + direction ) ) ; android.os.Bundle data = new android.os.Bundle ( ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_CHANGE_PATH ) ; data.putByteArray ( "BdAddress" , address ) ; data.putByteArray ( "folderUid" , folderUid ) ; data.putByte ( "direction" , direction ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void changePathRequestFromNative ( byte [ ] address , byte direction , byte [ ] folderUid ) { android.os.Bundle data = new android.os.Bundle ( ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_CHANGE_PATH ) ; data.putByteArray ( "BdAddress" , address ) ; data.putByteArray ( "folderUid" , folderUid ) ; data.putByte ( "direction" , direction ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }
Source:
public void doVisit ( java.lang.Iterable < ? extends com.android.tools.perflib.heap.Instance > startNodes ) { for ( com.android.tools.perflib.heap.Instance node : startNodes ) { if ( node instanceof com.android.tools.perflib.heap.RootObj ) { node.accept ( this ) ; } else { visitLater ( node ) ; } } while ( ! ( mStack.isEmpty ( ) ) ) { com.android.tools.perflib.heap.Instance node = mStack.pop ( ) ; if ( mSeen.add ( node.getId ( ) ) ) { node.accept ( this ) ; } } }

Target:
public void doVisit ( java.lang.Iterable < ? extends com.android.tools.perflib.heap.Instance > startNodes ) { for ( com.android.tools.perflib.heap.Instance node : startNodes ) { if ( node instanceof com.android.tools.perflib.heap.RootObj ) { node.accept ( this ) ; } else { visitLater ( null , node ) ; } } while ( ! ( mStack.isEmpty ( ) ) ) { com.android.tools.perflib.heap.Instance node = mStack.pop ( ) ; if ( mSeen.add ( node.getId ( ) ) ) { node.accept ( this ) ; } } }
Source:
public void testProcSelfPagemapSane ( ) throws android.system.ErrnoException , java.io.IOException { java.io.FileDescriptor pagemap = null ; int dumpable = android.system.Os.prctl ( OsConstants.PR_GET_DUMPABLE , 0 , 0 , 0 , 0 ) ; android.system.Os.prctl ( OsConstants.PR_SET_DUMPABLE , 1 , 0 , 0 , 0 ) ; try { pagemap = android.system.Os.open ( "/proc/self/pagemap" , OsConstants.O_RDONLY , 0 ) ; for ( android.util.Pair < java.lang.Long , java.lang.Long > range : android.permission.cts.FileSystemPermissionTest.mappedPageRanges ( ) ) if ( ! ( android.permission.cts.FileSystemPermissionTest.pfnIsZero ( pagemap , range.first , range.second ) ) ) fail ( ( "Device is missing the following kernel security patch: " + "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce" ) ) ; } catch ( android.system.ErrnoException e ) { if ( ( e.errno ) == ( android.system.OsConstants.EPERM ) ) return ; throw e ; } finally { if ( pagemap != null ) android.system.Os.close ( pagemap ) ; android.system.Os.prctl ( OsConstants.PR_SET_DUMPABLE , dumpable , 0 , 0 , 0 ) ; } }

Target:
public void testProcSelfPagemapSane ( ) throws android.system.ErrnoException , java.io.IOException { java.io.FileDescriptor pagemap = null ; try { pagemap = android.system.Os.open ( "/proc/self/pagemap" , OsConstants.O_RDONLY , 0 ) ; for ( android.util.Pair < java.lang.Long , java.lang.Long > range : android.permission.cts.FileSystemPermissionTest.mappedPageRanges ( ) ) if ( ! ( android.permission.cts.FileSystemPermissionTest.pfnIsZero ( pagemap , range.first , range.second ) ) ) fail ( ( "Device is missing the following kernel security patch: " + "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce" ) ) ; } catch ( android.system.ErrnoException e ) { if ( ( e.errno ) == ( android.system.OsConstants.EPERM ) ) return ; throw e ; } finally { if ( pagemap != null ) android.system.Os.close ( pagemap ) ; } }
Source:
private synchronized void onConnectStateChanged ( byte [ ] address , int state ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "onConnectStateChanged(): address=" + ( java.util.Arrays.toString ( address ) ) ) + " state=" ) + state ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }

Target:
private synchronized void onConnectStateChanged ( byte [ ] address , int state ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "onConnectStateChanged(): address=" + ( java.util.Arrays.toString ( address ) ) ) + " state=" ) + state ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }
Source:
public void onUserRestrictionsChanged ( int userId , android.os.Bundle newRestrictions , android.os.Bundle prevRestrictions ) { if ( ( ! ( newRestrictions.containsKey ( UserManager.DISALLOW_BLUETOOTH ) ) ) && ( ! ( prevRestrictions.containsKey ( UserManager.DISALLOW_BLUETOOTH ) ) ) ) { return ; } final boolean bluetoothDisallowed = newRestrictions.getBoolean ( UserManager.DISALLOW_BLUETOOTH ) ; if ( ( ( mEnable ) || ( mEnableExternal ) ) && bluetoothDisallowed ) { try { disable ( "android.os.UserManagerInternal" , true ) ; } catch ( android.os.RemoteException e ) { } } updateOppLauncherComponentState ( bluetoothDisallowed ) ; }

Target:
public void onUserRestrictionsChanged ( int userId , android.os.Bundle newRestrictions , android.os.Bundle prevRestrictions ) { final boolean bluetoothDisallowed = newRestrictions.getBoolean ( UserManager.DISALLOW_BLUETOOTH ) ; if ( ( ( mEnable ) || ( mEnableExternal ) ) && bluetoothDisallowed ) { try { disable ( "android.os.UserManagerInternal" , true ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private void getPlayStatusRequestFromNative ( byte [ ] address ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getPlayStatusRequestFromNative: address" + ( address.toString ( ) ) ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_PLAY_STATUS ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void getPlayStatusRequestFromNative ( byte [ ] address ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_PLAY_STATUS ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }
Source:
public void test_getAllowUserInteraction ( ) throws java.io.IOException { uc.setAllowUserInteraction ( false ) ; assertFalse ( "getAllowUserInteraction should have returned false" , uc.getAllowUserInteraction ( ) ) ; uc.setAllowUserInteraction ( true ) ; assertTrue ( "getAllowUserInteraction should have returned true" , uc.getAllowUserInteraction ( ) ) ; uc.connect ( ) ; try { uc.setAllowUserInteraction ( false ) ; fail ( "Exception expected" ) ; } catch ( java.lang.IllegalStateException e ) { } java.net.URL serverURL = new java.net.URL ( "http://onearth.jpl.nasa.gov/landsat.cgi" ) ; java.net.URLConnection uc2 = serverURL.openConnection ( ) ; java.net.HttpURLConnection conn = ( ( java.net.HttpURLConnection ) ( uc2 ) ) ; uc2.setAllowUserInteraction ( true ) ; uc2.setDoInput ( true ) ; uc2.setDoOutput ( true ) ; java.io.OutputStream os = uc2.getOutputStream ( ) ; java.io.InputStream in = uc2.getInputStream ( ) ; int contentLength = uc2.getContentLength ( ) ; java.lang.String contentType = uc2.getContentType ( ) ; int numBytesRead = 0 ; int allBytesRead = 0 ; byte [ ] buffer = new byte [ 4096 ] ; do { numBytesRead = in.read ( buffer ) ; allBytesRead += allBytesRead + numBytesRead ; } while ( numBytesRead > 0 ) ; assertTrue ( ( allBytesRead > 0 ) ) ; uc2.connect ( ) ; numBytesRead = in.read ( buffer ) ; assertEquals ( ( - 1 ) , numBytesRead ) ; }

Target:
public void test_getAllowUserInteraction ( ) throws java.lang.Exception { uc.setAllowUserInteraction ( false ) ; assertFalse ( uc.getAllowUserInteraction ( ) ) ; uc.setAllowUserInteraction ( true ) ; assertTrue ( uc.getAllowUserInteraction ( ) ) ; uc.connect ( ) ; try { uc.setAllowUserInteraction ( false ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
public void eventSubscribeTerminated ( short sessionId , android.hardware.wifi.V1_0.WifiNanStatus status ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventSubscribeTerminated: sessionId=" + sessionId ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; } mWifiAwareStateManager.onSessionTerminatedNotification ( sessionId , status.status , false ) ; }

Target:
public void eventSubscribeTerminated ( byte sessionId , android.hardware.wifi.V1_0.WifiNanStatus status ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventSubscribeTerminated: sessionId=" + sessionId ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; } mWifiAwareStateManager.onSessionTerminatedNotification ( sessionId , status.status , false ) ; }
Source:
public void resetBit ( int i ) throws java.lang.RuntimeException { if ( ( i < 0 ) || ( i > ( ( len ) - 1 ) ) ) { throw new java.lang.RuntimeException ( ) ; } if ( i > ( ( len ) - 1 ) ) { return ; } value [ ( i > > > 5 ) ] &= ~ ( org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ) ; }

Target:
public void resetBit ( int i ) throws java.lang.RuntimeException { if ( i < 0 ) { throw new java.lang.RuntimeException ( ) ; } if ( i > ( ( len ) - 1 ) ) { return ; } value [ ( i > > > 5 ) ] &= ~ ( org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ) ; }
Source:
public boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unregisterApp ( config ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean unregisterApp ( ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unregisterApp ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public java.nio.CharBuffer asCharBuffer ( ) { int size = ( this . remaining ( ) ) > > 1 ; int off = position ( ) ; return ( ( java.nio.CharBuffer ) ( new java.nio.ByteBufferAsCharBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public java.nio.CharBuffer asCharBuffer ( ) { int size = ( this . remaining ( ) ) > > 1 ; int off = position ( ) ; return new java.nio.ByteBufferAsCharBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
public java.lang.String $noinline$run0 ( ) { if ( Main.sFlag ) { throw new java.lang.Error ( ) ; } char [ ] arr = new char [ ] { 'a' , 'b' , 'c' } ; java.lang.String str = new java.lang.String ( arr , 0 , arr.length ) ; if ( ! ( str.equals ( "abc" ) ) ) { java.lang.System.out.println ( ( "Failure! " + str ) ) ; java.lang.System.exit ( 0 ) ; } return str ; }

Target:
public java.lang.String $noinline$run0 ( ) { if ( Main.sFlag ) { throw new java.lang.Error ( ) ; } char [ ] arr = new char [ ] { 'a' , 'b' , 'c' } ; return new java.lang.String ( arr , 0 , arr.length ) ; }
Source:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { android.util.MutableLong internalInOffset = new android.util.MutableLong ( inOffset.value ) ; try { return Libcore.os.sendfile ( outFd , inFd , internalInOffset , byteCount ) ; } finally { inOffset.value = internalInOffset.value ; } }

Target:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { if ( inOffset == null ) { return Libcore.os.sendfile ( outFd , inFd , null , byteCount ) ; } else { android.util.MutableLong internalInOffset = new android.util.MutableLong ( inOffset.value ) ; try { return Libcore.os.sendfile ( outFd , inFd , internalInOffset , byteCount ) ; } finally { inOffset.value = internalInOffset.value ; } } }
Source:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service == null ) return null ; android.bluetooth.BluetoothGattCharacteristic characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; return null ; } return characteristic ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = null ; android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service != null ) { characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } } return characteristic ; }
Source:
public java.util.List < com.android.jack.ir.ast.JType > getCallSiteParameterTypes ( ) { com.android.jack.ir.ast.JType jlv = com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_VOID ) ; java.util.List < com.android.jack.ir.ast.JType > callSiteParameterTypes = new java.util.ArrayList ( getArgs ( ) . size ( ) ) ; for ( com.android.jack.ir.ast.JExpression pExp : getArgs ( ) ) { if ( pExp instanceof com.android.jack.ir.ast.JNullLiteral ) { callSiteParameterTypes.add ( jlv ) ; } else { callSiteParameterTypes.add ( pExp.getType ( ) ) ; } } return callSiteParameterTypes ; }

Target:
public java.util.List < com.android.jack.ir.ast.JType > getCallSiteParameterTypes ( ) { return callSiteParameterTypes ; }
Source:
public void TestCircularAliases ( ) { try { android.icu.util.UResourceBundle rb = ( ( android.icu.util.UResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( "android/icu/dev/data/testdata" , "testaliases" , android.icu.dev.test.util.ICUResourceBundleTest.testLoader ) ) ) ; android.icu.util.UResourceBundle sub = rb.get ( "aaa" ) ; java.lang.String s1 = sub.getString ( ) ; if ( s1 != null ) { errln ( "Did not get the expected exception" ) ; } } catch ( java.lang.IllegalArgumentException ex ) { logln ( "got expected exception for circular references" ) ; } catch ( java.util.MissingResourceException ex ) { warnln ( ( "could not load resource data: " + ( ex.getMessage ( ) ) ) ) ; } }

Target:
public void TestCircularAliases ( ) { try { android.icu.util.UResourceBundle rb = android.icu.util.UResourceBundle.getBundleInstance ( "android/icu/dev/data/testdata" , "testaliases" , android.icu.dev.test.util.ICUResourceBundleTest.testLoader ) ; android.icu.util.UResourceBundle sub = rb.get ( "aaa" ) ; java.lang.String s1 = sub.getString ( ) ; if ( s1 != null ) { errln ( "Did not get the expected exception" ) ; } } catch ( java.lang.IllegalArgumentException ex ) { logln ( "got expected exception for circular references" ) ; } catch ( java.util.MissingResourceException ex ) { warnln ( ( "could not load resource data: " + ( ex.getMessage ( ) ) ) ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.prefetchClassNames ( ) ; Main.doTest ( l ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.prefetchClassNames ( ) ; Main.doTest ( l ) ; }
Source:
private void declineIncomingCall ( android.content.Context context ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( context ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.declineIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.reject ( false , null ) ; } } }

Target:
private void declineIncomingCall ( ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.declineIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.reject ( false , null ) ; } } }
Source:
private void handleViewItemSelected ( ) { try { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; android.content.Intent intent = new android.content.Intent ( this , com.android.cts.verifier.ReportViewerActivity.class ) ; intent.putExtra ( ReportViewerActivity.EXTRA_REPORT_CONTENTS , report.getContents ( ) ) ; startActivity ( intent ) ; } catch ( java.io.IOException e ) { android.widget.Toast.makeText ( this , R.string.test_results_error , Toast.LENGTH_SHORT ) . show ( ) ; android.util.Log.e ( com.android.cts.verifier.TestListActivity.TAG , "Couldn't copy test results report" , e ) ; } }

Target:
private void handleViewItemSelected ( ) { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; android.content.Intent intent = new android.content.Intent ( this , com.android.cts.verifier.ReportViewerActivity.class ) ; intent.putExtra ( ReportViewerActivity.EXTRA_REPORT_CONTENTS , report.getContents ( ) ) ; startActivity ( intent ) ; }
Source:
public int getRequestedOrientation ( android.os.IBinder token ) { synchronized ( this ) { int index = indexOfTokenLocked ( token , false ) ; if ( index < 0 ) { return android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED ; } com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; return mWindowManager.getAppOrientation ( r ) ; } }

Target:
public int getRequestedOrientation ( android.os.IBinder token ) { synchronized ( this ) { int index = indexOfTokenLocked ( token ) ; if ( index < 0 ) { return android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED ; } com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; return mWindowManager.getAppOrientation ( r ) ; } }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; cancelNotificationTaskOfSecureTestStartFailure ( ) ; stopAdvertise ( ) ; if ( ( mGattServer ) == null ) { return ; } if ( ( mDevice ) != null ) { mGattServer.cancelConnection ( mDevice ) ; } mGattServer.clearServices ( ) ; mGattServer.close ( ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; stopAdvertise ( ) ; if ( ( mGattServer ) == null ) { return ; } if ( ( mDevice ) != null ) mGattServer.cancelConnection ( mDevice ) ; mGattServer.close ( ) ; }
Source:
void finaliseHandshake ( ) throws java.io.IOException { if ( ( ( ( ( readCompression ) != ( pendingCompression ) ) || ( ( writeCompression ) != ( pendingCompression ) ) ) || ( ( readCipher ) != ( pendingCipher ) ) ) || ( ( writeCipher ) != ( pendingCipher ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.handshake_failure ) ; } pendingCompression = null ; pendingCipher = null ; }

Target:
void finaliseHandshake ( ) throws java.io.IOException { if ( ( ( ( ( readCompression ) != ( pendingCompression ) ) || ( ( writeCompression ) != ( pendingCompression ) ) ) || ( ( readCipher ) != ( pendingCipher ) ) ) || ( ( writeCipher ) != ( pendingCipher ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.handshake_failure ) ; } this . pendingCompression = null ; this . pendingCipher = null ; }
Source:
public V get ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { if ( ( rowKey == null ) || ( columnKey == null ) ) { return null ; } java.util.Map < C , V > map = com.google.common.collect.Maps.safeGet ( backingMap , rowKey ) ; return map == null ? null : com.google.common.collect.Maps.safeGet ( map , columnKey ) ; }

Target:
public V get ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { return ( rowKey == null ) || ( columnKey == null ) ? null : super . get ( rowKey , columnKey ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { java.net.ResponseCache.setDefault ( null ) ; java.net.Authenticator.setDefault ( null ) ; java.lang.System.clearProperty ( "proxyHost" ) ; java.lang.System.clearProperty ( "proxyPort" ) ; java.lang.System.clearProperty ( "http.proxyHost" ) ; java.lang.System.clearProperty ( "http.proxyPort" ) ; java.lang.System.clearProperty ( "https.proxyHost" ) ; java.lang.System.clearProperty ( "https.proxyPort" ) ; server.shutdown ( ) ; if ( ( cache ) != null ) { cache.getCache ( ) . delete ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { java.net.ResponseCache.setDefault ( null ) ; java.net.Authenticator.setDefault ( null ) ; java.lang.System.clearProperty ( "proxyHost" ) ; java.lang.System.clearProperty ( "proxyPort" ) ; java.lang.System.clearProperty ( "http.proxyHost" ) ; java.lang.System.clearProperty ( "http.proxyPort" ) ; java.lang.System.clearProperty ( "https.proxyHost" ) ; java.lang.System.clearProperty ( "https.proxyPort" ) ; server.shutdown ( ) ; if ( ( cache ) != null ) { cache.delete ( ) ; } super . tearDown ( ) ; }
Source:
public static < E > com.google.common.collect.ImmutableList < E > copyOf ( java.lang.Iterable < ? extends E > elements ) { com.google.common.base.Preconditions.checkNotNull ( elements ) ; return elements instanceof java.util.Collection ? com.google.common.collect.ImmutableList.copyOf ( com.google.common.collect.Collections2.cast ( elements ) ) : com.google.common.collect.ImmutableList.copyOf ( elements.iterator ( ) ) ; }

Target:
public static < E > com.google.common.collect.ImmutableList < E > copyOf ( java.lang.Iterable < ? extends E > elements ) { com.google.common.base.Preconditions.checkNotNull ( elements ) ; return elements instanceof java.util.Collection ? com.google.common.collect.ImmutableList.copyOf ( ( ( java.util.Collection < ? extends E > ) ( elements ) ) ) : com.google.common.collect.ImmutableList.copyOf ( elements.iterator ( ) ) ; }
Source:
public void testSendImsGmsTestWithOutDesAddr ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 0 ) ) . sendImsGsmSms ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }

Target:
public void testSendImsGmsTestWithOutDesAddr ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.TAG , null , null , null , null , false ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 0 ) ) . sendImsGsmSms ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }
Source:
private com.googlecode.android_scripting.interpreter.InterpreterProcess removeProcess ( int port ) { com.googlecode.android_scripting.interpreter.InterpreterProcess process = mProcessMap.remove ( port ) ; if ( process == null ) { return null ; } ( mModCount ) ++ ; if ( ! ( mHide ) ) { updateNotification ( ( ( process.getName ( ) ) + " exited." ) ) ; } return process ; }

Target:
private com.googlecode.android_scripting.interpreter.InterpreterProcess removeProcess ( int port ) { com.googlecode.android_scripting.interpreter.InterpreterProcess process ; synchronized ( mProcessMap ) { process = mProcessMap.remove ( port ) ; if ( process == null ) { return null ; } ( mModCount ) ++ ; } if ( ! ( mHide ) ) { updateNotification ( ( ( process.getName ( ) ) + " exited." ) ) ; } return process ; }
Source:
java.lang.Void call ( ) throws java.lang.Exception { java.lang.String hash = com.android.build.gradle.tasks.PreDex.getFileHash ( fileToProcess ) ; synchronized ( hashs ) { if ( hashs.contains ( hash ) ) { return null ; } hashs.add ( hash ) ; } com.android.build.gradle.tasks.File preDexedFile = com.android.build.gradle.tasks.PreDex.getDexFileName ( outFolder , fileToProcess ) ; if ( multiDexEnabled ) { preDexedFile.mkdirs ( ) ; } builder.preDexLibrary ( fileToProcess , preDexedFile , multiDexEnabled , options , mOutputHandler ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { java.lang.String hash = com.android.build.gradle.tasks.PreDex.getFileHash ( fileToProcess ) ; synchronized ( hashs ) { if ( hashs.contains ( hash ) ) { return null ; } hashs.add ( hash ) ; } java.io.File preDexedFile = com.android.build.gradle.tasks.PreDex.getDexFileName ( outFolder , fileToProcess ) ; if ( multiDexEnabled ) { preDexedFile.mkdirs ( ) ; } builder.preDexLibrary ( fileToProcess , preDexedFile , multiDexEnabled , options , mOutputHandler ) ; return null ; }
Source:
private void placeWindowAfter ( java.lang.Object pos , com.android.server.WindowManagerService.WindowState window ) { final int i = mWindows.indexOf ( pos ) ; if ( ( com.android.server.WindowManagerService.DEBUG_FOCUS ) || ( com.android.server.WindowManagerService.DEBUG_WINDOW_MOVEMENT ) ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( ( ( ( ( "Adding window " + window ) + " at " ) + ( i + 1 ) ) + " of " ) + ( mWindows.size ( ) ) ) + " (after " ) + pos ) + ")" ) ) ; mWindows.add ( ( i + 1 ) , window ) ; }

Target:
private void placeWindowAfter ( java.lang.Object pos , com.android.server.WindowManagerService.WindowState window ) { final int i = mWindows.indexOf ( pos ) ; if ( ( com.android.server.WindowManagerService.DEBUG_FOCUS ) || ( com.android.server.WindowManagerService.DEBUG_WINDOW_MOVEMENT ) ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( ( ( ( ( "Adding window " + window ) + " at " ) + ( i + 1 ) ) + " of " ) + ( mWindows.size ( ) ) ) + " (after " ) + pos ) + ")" ) ) ; mWindows.add ( ( i + 1 ) , window ) ; }
Source:
public void setLineStyle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.LineStyle style ) { int swtStyle = 0 ; switch ( style ) { case LINE_SOLID : swtStyle = org.eclipse.swt.SWT.LINE_SOLID ; break ; case LINE_DASH : swtStyle = org.eclipse.swt.SWT.LINE_DASH ; break ; case LINE_DOT : swtStyle = org.eclipse.swt.SWT.LINE_DOT ; break ; case LINE_DASHDOT : swtStyle = org.eclipse.swt.SWT.LINE_DASHDOT ; break ; case LINE_DASHDOTDOT : swtStyle = org.eclipse.swt.SWT.LINE_DASHDOTDOT ; break ; } if ( swtStyle != 0 ) { checkGC ( ) ; getGc ( ) . setLineStyle ( swtStyle ) ; } }

Target:
public void setLineStyle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.LineStyle style ) { int swtStyle = 0 ; switch ( style ) { case LINE_SOLID : swtStyle = org.eclipse.swt.SWT.LINE_SOLID ; break ; case LINE_DASH : swtStyle = org.eclipse.swt.SWT.LINE_DASH ; break ; case LINE_DOT : swtStyle = org.eclipse.swt.SWT.LINE_DOT ; break ; case LINE_DASHDOT : swtStyle = org.eclipse.swt.SWT.LINE_DASHDOT ; break ; case LINE_DASHDOTDOT : swtStyle = org.eclipse.swt.SWT.LINE_DASHDOTDOT ; break ; default : assert false : style ; break ; } if ( swtStyle != 0 ) { checkGC ( ) ; getGc ( ) . setLineStyle ( swtStyle ) ; } }
Source:
public void doubleClick ( org.eclipse.jface.viewers.DoubleClickEvent event ) { com.android.ddmlib.ThreadInfo selectedThread = getThreadSelection ( event.getSelection ( ) ) ; if ( selectedThread != null ) { com.android.ddmlib.Client client = ( ( com.android.ddmlib.Client ) ( mThreadViewer.getInput ( ) ) ) ; if ( client != null ) { client.requestThreadStackTrace ( selectedThread.getThreadId ( ) ) ; } } }

Target:
private void requestThreadStackTrace ( com.android.ddmlib.ThreadInfo selectedThread ) { if ( selectedThread != null ) { com.android.ddmlib.Client client = ( ( com.android.ddmlib.Client ) ( mThreadViewer.getInput ( ) ) ) ; if ( client != null ) { client.requestThreadStackTrace ( selectedThread.getThreadId ( ) ) ; } } }
Source:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( ( ! ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_ID ) ) ) && ( ! ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_TAG ) ) ) ) { context.report ( com.android.tools.lint.checks.MissingIdDetector.ISSUE , element , context.getLocation ( element ) , ( "This `<fragment>` tag should specify an id or a tag to preserve state " + "across activity restarts" ) , null ) ; } }

Target:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( ( ! ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_ID ) ) ) && ( ! ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_TAG ) ) ) ) { context.report ( com.android.tools.lint.checks.MissingIdDetector.ISSUE , element , context.getLocation ( element ) , ( "This `<fragment>` tag should specify an id or a tag to preserve state " + "across activity restarts" ) ) ; } }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertNull ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertNull ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void onStateChange ( boolean state ) { synchronized ( mLock ) { android.util.Log.i ( mTag , ( "OnStateChange:" + state ) ) ; mIsConnected = state ; if ( ! state ) { if ( ( mAccessControlEnforcer ) != null ) { mAccessControlEnforcer.reset ( ) ; } } else { try { initializeAccessControl ( ) ; } catch ( java.lang.Exception e ) { } synchronized ( mLock ) { mDefaultApplicationSelectedOnBasicChannel = true ; } } } }

Target:
public void onStateChange ( boolean state ) { synchronized ( mLock ) { android.util.Log.i ( mTag , ( "OnStateChange:" + state ) ) ; mIsConnected = state ; if ( ! state ) { if ( ( mAccessControlEnforcer ) != null ) { mAccessControlEnforcer.reset ( ) ; } } else { try { initializeAccessControl ( ) ; } catch ( java.lang.Exception e ) { } mDefaultApplicationSelectedOnBasicChannel = true ; } } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }
Source:
public java.util.Collection engineGenerateCertificates ( java.io.InputStream inStream ) throws java.security.cert.CertificateException { java.security.cert.Certificate cert ; java.io.BufferedInputStream in = new java.io.BufferedInputStream ( inStream ) ; java.util.List certs = new java.util.ArrayList ( ) ; while ( ( cert = engineGenerateCertificate ( in ) ) != null ) { certs.add ( cert ) ; } return certs ; }

Target:
public java.util.Collection engineGenerateCertificates ( java.io.InputStream inStream ) throws java.security.cert.CertificateException { java.security.cert.Certificate cert ; java.util.List certs = new java.util.ArrayList ( ) ; while ( ( cert = engineGenerateCertificate ( inStream ) ) != null ) { certs.add ( cert ) ; } return certs ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.parameterAnnotations ) != null ) { return m.parameterAnnotations.get ( parameterIndex ) ; } return m.annotations ; }

Target:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.parameterAnnotations ) != null ) { return m.parameterAnnotations.get ( parameterIndex ) ; } return null ; }
Source:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , bytes , messageId , retryCount ) ; }

Target:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , messageId , bytes , retryCount ) ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( "connect(): device=" + device ) ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.connect ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.connect ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( node ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }

Target:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( node , 0 , 0 ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }
Source:
public boolean isConferenceHost ( ) { if ( ( mConferenceHost ) == null ) { return false ; } android.telecom.Connection originalConnection = mConferenceHost.getOriginalConnection ( ) ; if ( ! ( originalConnection instanceof com.android.internal.telephony.imsphone.ImsPhoneConnection ) ) { return false ; } com.android.internal.telephony.imsphone.ImsPhoneConnection imsPhoneConnection = ( ( com.android.internal.telephony.imsphone.ImsPhoneConnection ) ( originalConnection ) ) ; return ( imsPhoneConnection.isMultiparty ( ) ) && ( imsPhoneConnection.isConferenceHost ( ) ) ; }

Target:
public boolean isConferenceHost ( ) { if ( ( mConferenceHost ) == null ) { return false ; } android.telecom.Connection originalConnection = mConferenceHost.getOriginalConnection ( ) ; return ( ( originalConnection != null ) && ( originalConnection.isMultiparty ( ) ) ) && ( originalConnection.isConferenceHost ( ) ) ; }
Source:
public void copyFromUnchecked ( float [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFromUnchecked ( float [ ] d ) { copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public com.android.ims.internal.IImsUt getUtInterface ( int slotId , int featureType , int sessionId ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getUtInterface ( sessionId ) ; } } return null ; }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getUtInterface ( ) ; } } return null ; }
Source:
static void nativeSetPixel ( int nativeBitmap , int x , int y , int color ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , color ) ; }

Target:
static void nativeSetPixel ( long nativeBitmap , int x , int y , int color ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , color ) ; }
Source:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > children = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( element ) ) . getChildren ( ) ; if ( children != null ) { return ( children.size ( ) ) > 0 ; } } return false ; }

Target:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) { java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > children = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( element ) ) . getChildren ( ) ; if ( children != null ) { return ( children.size ( ) ) > 0 ; } } return false ; }