auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void responseRadioCapability ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.RadioCapability rc ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.RadioCapability ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalRadioCapability ( rc , mRil ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseRadioCapability ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.RadioCapability rc ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.RadioCapability ret = com.android.internal.telephony.RIL.convertHalRadioCapability ( rc , mRil ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
protected android.icu.util.UResourceBundle findTopLevel ( int index ) { for ( android.icu.util.UResourceBundle res = this ; res != null ; res = res.getParent ( ) ) { android.icu.util.UResourceBundle obj = res.handleGet ( index , null , this ) ; if ( obj != null ) { ( ( android.icu.impl.ICUResourceBundle ) ( obj ) ) . setLoadingStatus ( getLocaleID ( ) ) ; return obj ; } } return null ; }

Target:
protected android.icu.util.UResourceBundle findTopLevel ( int index ) { for ( android.icu.util.UResourceBundle res = this ; res != null ; res = res.getParent ( ) ) { android.icu.util.UResourceBundle obj = res.handleGet ( index , null , this ) ; if ( obj != null ) { return obj ; } } return null ; }
Source:
public void interrupt ( ) { synchronized ( interruptActions ) { for ( int i = ( interruptActions.size ( ) ) - 1 ; i >= 0 ; i -- ) { interruptActions.get ( i ) . run ( ) ; } } java.lang.VMThread vmt = this . vmThread ; if ( vmt != null ) { vmt.interrupt ( ) ; } }

Target:
public void interrupt ( ) { java.lang.VMThread vmt = this . vmThread ; if ( vmt != null ) { vmt.interrupt ( ) ; } synchronized ( interruptActions ) { for ( int i = ( interruptActions.size ( ) ) - 1 ; i >= 0 ; i -- ) { interruptActions.get ( i ) . run ( ) ; } } }
Source:
public boolean saveProperties ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.util.Properties props , @ com.android.annotations.NonNull java.lang.String comments ) { java.io.OutputStream fos = null ; try { fos = newFileOutputStream ( file ) ; props.store ( fos , comments ) ; return true ; } catch ( java.io.IOException ignore ) { } finally { if ( fos != null ) { try { fos.close ( ) ; } catch ( java.io.IOException e ) { } } } return false ; }

Target:
public void saveProperties ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.util.Properties props , @ com.android.annotations.NonNull java.lang.String comments ) throws java.io.IOException { java.io.OutputStream fos = null ; try { fos = newFileOutputStream ( file ) ; props.store ( fos , comments ) ; } finally { if ( fos != null ) { try { fos.close ( ) ; } catch ( java.io.IOException e ) { } } } }
Source:
public static float min ( float a , float b ) { if ( a != a ) return a ; if ( ( ( a == 0.0F ) && ( b == 0.0F ) ) && ( ( java.lang.Float.floatToIntBits ( b ) ) == ( java.lang.Math.negativeZeroFloatBits ) ) ) { return b ; } return a <= b ? a : b ; }

Target:
public static float min ( float a , float b ) { if ( a != a ) return a ; if ( ( ( a == 0.0F ) && ( b == 0.0F ) ) && ( ( java.lang.Float.floatToRawIntBits ( b ) ) == ( java.lang.Math.negativeZeroFloatBits ) ) ) { return b ; } return a <= b ? a : b ; }
Source:
public java.lang.String getISO3Language ( ) { if ( languageCode.isEmpty ( ) ) { return "" ; } java.lang.String code = libcore.icu.ICU.getISO3Language ( this ) ; if ( ( ! ( languageCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter language code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortLanguage" ) ; } return code ; }

Target:
public java.lang.String getISO3Language ( ) { if ( languageCode.isEmpty ( ) ) { return "" ; } java.lang.String code = libcore.icu.ICU.getISO3Language ( languageCode ) ; if ( ( ! ( languageCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter language code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortLanguage" ) ; } return code ; }
Source:
public int createMapMasRecord ( java.lang.String serviceName , int masId , int rfcommChannel , int l2capPsm , int version , int msgTypes , int features ) { if ( ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) == false ) { throw new java.lang.RuntimeException ( ( ( com.android.bluetooth.sdp.SdpManager.TAG ) + " sNativeAvailable == false - native not initialized" ) ) ; } return sdpCreateMapMasRecordNative ( serviceName , masId , rfcommChannel , l2capPsm , version , msgTypes , features ) ; }

Target:
public int createMapMasRecord ( java.lang.String serviceName , int masId , int rfcommChannel , int l2capPsm , int version , int msgTypes , int features ) { if ( ! ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) ) { throw new java.lang.RuntimeException ( ( ( com.android.bluetooth.sdp.SdpManager.TAG ) + " sNativeAvailable == false - native not initialized" ) ) ; } return sdpCreateMapMasRecordNative ( serviceName , masId , rfcommChannel , l2capPsm , version , msgTypes , features ) ; }
Source:
public void binderDied ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( "Binder is dead - unregistering client (" + ( mAppIf ) ) + ")!" ) ) ; if ( isScanClient ( mAppIf ) ) { com.android.bluetooth.gatt.ScanClient client = new com.android.bluetooth.gatt.ScanClient ( mAppIf , false ) ; client.appDied = true ; stopScan ( client ) ; } else { com.android.bluetooth.gatt.AdvertiseClient client = new com.android.bluetooth.gatt.AdvertiseClient ( mAppIf ) ; client.appDied = true ; stopMultiAdvertising ( client ) ; } }

Target:
public void binderDied ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( "Binder is dead - unregistering client (" + ( mAppIf ) ) + ")!" ) ) ; if ( isScanClient ( mAppIf ) ) { com.android.bluetooth.gatt.ScanClient client = new com.android.bluetooth.gatt.ScanClient ( mAppIf , false ) ; client.appDied = true ; stopScan ( client ) ; } }
Source:
public void testIpReachabilityEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.IpReachabilityEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( IpReachabilityEvent.NUD_FAILED ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " time_ms: 1" , " transport: 0" , " ip_reachability_event <" , " event_type: 512" , " if_name: \"wlan0\"" , " >" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testIpReachabilityEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.IpReachabilityEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( IpReachabilityEvent.NUD_FAILED ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " ip_reachability_event <" , " event_type: 512" , " if_name: \"wlan0\"" , " >" , " time_ms: 1" , " transport: 0" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicConvolve5x5 create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( rs.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( rs ) ) ; return android.support.v8.renderscript.ScriptIntrinsicConvolve5x5Thunker.create ( rs , e ) ; } int id = rs.nScriptIntrinsicCreate ( 4 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicConvolve5x5 ( id , rs ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicConvolve5x5 create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 4 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicConvolve5x5 ( id , rs ) ; }
Source:
private boolean removeOutFile ( com.android.ide.common.res2.ResourceItem resourceItem ) { com.android.ide.common.res2.ResourceFile resourceFile = resourceItem.getSource ( ) ; if ( ( resourceFile.getType ( ) ) == ( ResourceFile.FileType.MULTI ) ) { throw new java.lang.IllegalArgumentException ( "SourceFile cannot be a FileType.MULTI" ) ; } java.io.File file = resourceFile.getFile ( ) ; java.lang.String fileName = file.getName ( ) ; java.lang.String folderName = com.android.ide.common.res2.MergedResourceWriter.getFolderName ( resourceItem ) ; return removeOutFile ( folderName , fileName ) ; }

Target:
private boolean removeOutFile ( com.android.ide.common.res2.ResourceItem resourceItem ) { return removeOutFile ( com.android.ide.common.res2.MergedResourceWriter.getFolderName ( resourceItem ) , resourceItem.getFile ( ) . getName ( ) ) ; }
Source:
public static void verifyGolden ( junit.framework.TestCase test , java.lang.Object [ ] objects ) throws java.lang.Exception { assertFalse ( "Empty array" , ( ( objects.length ) == 0 ) ) ; org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden ( test , objects , org.apache.harmony.testframework.serialization.SerializationTest.defineComparator ( test , objects [ 0 ] ) ) ; }

Target:
public static void verifyGolden ( java.lang.Object test , java.lang.Object [ ] objects ) throws java.lang.Exception { assertFalse ( "Empty array" , ( ( objects.length ) == 0 ) ) ; org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden ( test , objects , org.apache.harmony.testframework.serialization.SerializationTest.defineComparator ( test , objects [ 0 ] ) ) ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
public boolean enableDisableTdls ( boolean enable , java.lang.String macAdd , com.android.server.wifi.WifiNative.TdlsEventHandler tdlsCallBack ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.enableDisableTdls ( enable , macAdd , tdlsCallBack ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { com.android.server.wifi.WifiNative.sTdlsEventHandler = tdlsCallBack ; return com.android.server.wifi.WifiNative.enableDisableTdlsNative ( com.android.server.wifi.WifiNative.sWlan0Index , enable , macAdd ) ; } }

Target:
public boolean enableDisableTdls ( boolean enable , java.lang.String macAdd , com.android.server.wifi.WifiNative.TdlsEventHandler tdlsCallBack ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { com.android.server.wifi.WifiNative.sTdlsEventHandler = tdlsCallBack ; return com.android.server.wifi.WifiNative.enableDisableTdlsNative ( com.android.server.wifi.WifiNative.sWlan0Index , enable , macAdd ) ; } }
Source:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void enter ( ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } try { mConnSocket.close ( ) ; mConnSocket = null ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.pbap.PbapStateMachine.TAG , ( "Close Connection Socket error: " + ( e.toString ( ) ) ) ) ; } mServiceHandler.obtainMessage ( BluetoothPbapService.MSG_STATE_MACHINE_DONE ) . sendToTarget ( ) ; }

Target:
public void enter ( ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } try { mConnSocket.close ( ) ; mConnSocket = null ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.pbap.PbapStateMachine.TAG , ( "Close Connection Socket error: " + ( e.toString ( ) ) ) ) ; } mServiceHandler.obtainMessage ( BluetoothPbapService.MSG_STATE_MACHINE_DONE , this ) . sendToTarget ( ) ; }
Source:
public void testDisconnectAfterOnlyResponseCodeCausesNoCloseGuardWarning ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( gzip ( "ABCABCABC" . getBytes ( "UTF-8" ) ) ) . addHeader ( "Content-Encoding: gzip" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { assertEquals ( 200 , connection.getResponseCode ( ) ) ; } finally { connection.disconnect ( ) ; } }

Target:
public void testDisconnectAfterOnlyResponseCodeCausesNoCloseGuardWarning ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( gzip ( "ABCABCABC" . getBytes ( "UTF-8" ) ) ) . addHeader ( "Content-Encoding: gzip" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { org.junit.Assert.assertEquals ( 200 , connection.getResponseCode ( ) ) ; } finally { connection.disconnect ( ) ; } }
Source:
protected java.lang.Void doInBackground ( java.lang.Void ... voids ) { testIdleConstraintFails_notIdle ( ) ; if ( ! ( sendBroadcastAndBlockForResult ( new android.content.Intent ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.ACTION_EXPEDITE_IDLE_MODE ) ) ) ) { runOnUiThread ( new com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.IdleTestResultRunner ( com.android.cts.verifier.jobscheduler.IdleConstraintTestActivity.IDLE_ON_JOB_ID , false ) ) ; } testIdleConstraintExecutes_onIdle ( ) ; notifyTestCompleted ( ) ; return null ; }

Target:
protected java.lang.Void doInBackground ( java.lang.Void ... voids ) { testIdleConstraintFails_notIdle ( ) ; return null ; }
Source:
private static android.telecom.PhoneAccountHandle getSystemPhoneAccountHandle ( @ android.support.annotation.NonNull android.content.Context context ) { android.telecom.TelecomManager telecomManager = context.getSystemService ( android.telecom.TelecomManager.class ) ; java.util.List < android.telecom.PhoneAccountHandle > handles ; try { handles = telecomManager.getCallCapablePhoneAccounts ( ) ; } catch ( java.lang.SecurityException e ) { throw com.android.dialer.common.Assert.createIllegalStateFailException ( ( "Unable to get phone accounts: " + e ) ) ; } for ( android.telecom.PhoneAccountHandle handle : handles ) { android.telecom.PhoneAccount account = telecomManager.getPhoneAccount ( handle ) ; if ( account.hasCapabilities ( PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION ) ) { return handle ; } } throw com.android.dialer.common.Assert.createIllegalStateFailException ( "no SIM phone account available" ) ; }

Target:
public static android.telecom.PhoneAccountHandle getSystemPhoneAccountHandle ( @ android.support.annotation.NonNull android.content.Context context ) { android.telecom.TelecomManager telecomManager = context.getSystemService ( android.telecom.TelecomManager.class ) ; java.util.List < android.telecom.PhoneAccountHandle > handles ; try { handles = telecomManager.getCallCapablePhoneAccounts ( ) ; } catch ( java.lang.SecurityException e ) { throw com.android.dialer.common.Assert.createIllegalStateFailException ( ( "Unable to get phone accounts: " + e ) ) ; } for ( android.telecom.PhoneAccountHandle handle : handles ) { android.telecom.PhoneAccount account = telecomManager.getPhoneAccount ( handle ) ; if ( account.hasCapabilities ( PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION ) ) { return handle ; } } throw com.android.dialer.common.Assert.createIllegalStateFailException ( "no SIM phone account available" ) ; }
Source:
public void testProcessChldHoldActiveHold ( ) throws java.lang.Exception { com.android.server.telecom.Call activeCall = createActiveCall ( ) ; addCallCapability ( activeCall , Connection.CAPABILITY_HOLD ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_HOLDACTIVE_ACCEPTHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . holdCall ( org.mockito.Matchers.eq ( activeCall ) ) ; assertEquals ( didProcess , true ) ; }

Target:
public void testProcessChldHoldActiveHold ( ) throws java.lang.Exception { com.android.server.telecom.Call activeCall = createActiveCall ( ) ; addCallCapability ( activeCall , Connection.CAPABILITY_HOLD ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_HOLDACTIVE_ACCEPTHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . holdCall ( org.mockito.Matchers.eq ( activeCall ) ) ; org.junit.Assert.assertEquals ( didProcess , true ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 0 ] ) ; boolean secondary = false ; boolean full_signatures = false ; for ( java.lang.String arg : args ) { if ( arg.equals ( "--secondary" ) ) { secondary = true ; } if ( arg.equals ( "--full-signatures" ) ) { full_signatures = true ; } } new Main ( secondary , full_signatures ) . run ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new Main ( args ) . run ( ) ; }
Source:
private static void checkStatements ( java.lang.Object expected , java.lang.String statementsSource , final java.lang.String targetVariable ) { @ org.intellij.lang.annotations.Language ( value = "JAVA" ) java.lang.String source = ( ( ( ( ( ( ( "" + ( ( ( "package test.pkg;\n" + "public class Test {\n" ) + " public void test() {\n" ) + " " ) ) + statementsSource ) + "\n" ) + " }\n" ) + " public static final int MY_INT_FIELD = 5;\n" ) + " public static final boolean MY_BOOLEAN_FIELD = true;\n" ) + " public static final String MY_STRING_FIELD = \"test\";\n" ) + "}\n" ; com.android.tools.lint.detector.api.ConstantEvaluatorTest.check ( expected , source , targetVariable ) ; }

Target:
private void checkStatements ( java.lang.Object expected , java.lang.String statementsSource , final java.lang.String targetVariable ) { @ org.intellij.lang.annotations.Language ( value = "JAVA" ) java.lang.String source = ( ( ( ( ( ( ( "" + ( ( ( "package test.pkg;\n" + "public class Test {\n" ) + " public void test() {\n" ) + " " ) ) + statementsSource ) + "\n" ) + " }\n" ) + " public static final int MY_INT_FIELD = 5;\n" ) + " public static final boolean MY_BOOLEAN_FIELD = true;\n" ) + " public static final String MY_STRING_FIELD = \"test\";\n" ) + "}\n" ; check ( expected , source , targetVariable ) ; }
Source:
protected java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { java.util.List < com.android.tools.lint.detector.api.Issue > issues = new java.util.ArrayList < com.android.tools.lint.detector.api.Issue > ( ) ; java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetectorInstance ( ) . getClass ( ) ; java.util.List < com.android.tools.lint.detector.api.Issue > candidates = new com.android.tools.lint.checks.BuiltinIssueRegistry ( ) . getIssues ( ) ; for ( com.android.tools.lint.detector.api.Issue issue : candidates ) { if ( ( issue.getImplementation ( ) . getDetectorClass ( ) ) == detectorClass ) { issues.add ( issue ) ; } } return issues ; }

Target:
protected abstract java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) ;
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( obj != null ) && ( obj instanceof java.lang.reflect.Constructor ) ) { java.lang.reflect.Constructor < ? > other = ( ( java.lang.reflect.Constructor < ? > ) ( obj ) ) ; if ( ( getDeclaringClass ( ) ) == ( other.getDeclaringClass ( ) ) ) { return java.lang.reflect.Constructor.equalParamTypes ( getParameterTypes ( ) , other.getParameterTypes ( ) ) ; } } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( obj != null ) && ( obj instanceof java.lang.reflect.Constructor ) ) { java.lang.reflect.Constructor < ? > other = ( ( java.lang.reflect.Constructor < ? > ) ( obj ) ) ; if ( ( getDeclaringClass ( ) ) == ( other.getDeclaringClass ( ) ) ) { return equalParamTypes ( getParameterTypes ( ) , other.getParameterTypes ( ) ) ; } } return false ; }
Source:
public void enter ( ) { super . enter ( ) ; removeDeferredMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_AUDIO ) ; if ( ! ( mDevice.equals ( mHeadsetService.getActiveDevice ( ) ) ) ) { mHeadsetService.setActiveDevice ( mDevice ) ; } setAudioParameters ( ) ; mSystemInterface.getAudioManager ( ) . setBluetoothScoOn ( true ) ; broadcastStateTransitions ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; removeDeferredMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_AUDIO ) ; if ( ! ( mDevice.equals ( mHeadsetService.getActiveDevice ( ) ) ) ) { mHeadsetService.setActiveDevice ( mDevice ) ; } setAudioParameters ( ) ; broadcastStateTransitions ( ) ; }
Source:
public void testNullComment ( ) throws java.io.IOException { java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.ByteArrayOutputStream ( ) ) ; out.setComment ( null ) ; out.putNextEntry ( new java.util.zip.ZipEntry ( "name" ) ) ; out.write ( new byte [ 1 ] ) ; out.closeEntry ( ) ; out.finish ( ) ; }

Target:
public void testNullComment ( ) throws java.io.IOException { try ( java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.ByteArrayOutputStream ( ) ) ) { out.setComment ( null ) ; out.putNextEntry ( new java.util.zip.ZipEntry ( "name" ) ) ; out.write ( new byte [ 1 ] ) ; out.closeEntry ( ) ; out.finish ( ) ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.FLOAT_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public void test_getLocalAddress ( ) throws java.lang.Exception { java.net.InetAddress local = java.net.InetAddress.getLocalHost ( ) ; java.net.DatagramSocket ds = new java.net.DatagramSocket ( 0 , local ) ; assertEquals ( java.net.InetAddress.getByName ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ) , ds.getLocalAddress ( ) ) ; java.net.DatagramSocket s = new java.net.DatagramSocket ( 0 ) ; assertTrue ( ( "ANY address not IPv6: " + ( s.getLocalSocketAddress ( ) ) ) , ( ( s.getLocalAddress ( ) ) instanceof java.net.Inet6Address ) ) ; s.close ( ) ; }

Target:
public void test_getLocalAddress ( ) throws java.lang.Exception { java.net.InetAddress local = java.net.InetAddress.getLocalHost ( ) ; try ( java.net.DatagramSocket ds = new java.net.DatagramSocket ( 0 , local ) ) { assertEquals ( java.net.InetAddress.getByName ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ) , ds.getLocalAddress ( ) ) ; } try ( java.net.DatagramSocket s = new java.net.DatagramSocket ( 0 ) ) { assertTrue ( ( "ANY address not IPv6: " + ( s.getLocalSocketAddress ( ) ) ) , ( ( s.getLocalAddress ( ) ) instanceof java.net.Inet6Address ) ) ; } }
Source:
public void showAudioRouteSelector ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( context , com.android.incallui.AudioRouteSelectorActivity.class ) ; intent.setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK ) ) ) ; intent.putExtra ( AudioRouteSelectorActivity.SHOULD_LOG_BUBBLE_V2_IMPRESSION_EXTRA , true ) ; context.startActivity ( intent ) ; }

Target:
public void showAudioRouteSelector ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( context , com.android.incallui.AudioRouteSelectorActivity.class ) ; intent.setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK ) ) ) ; context.startActivity ( intent ) ; }
Source:
public static java.lang.String toHuman ( com.android.dx.rop.type.TypeList list ) { int size = list.size ( ) ; if ( size == 0 ) { return "<empty>" ; } java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( list.getType ( i ) . toHuman ( ) ) ; } return sb.toString ( ) ; }

Target:
public static java.lang.String toHuman ( com.android.dx.rop.type.TypeList list ) { int size = list.size ( ) ; if ( size == 0 ) { return "<empty>" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( list.getType ( i ) . toHuman ( ) ) ; } return sb.toString ( ) ; }
Source:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String shortNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ) { return true ; } } return false ; }

Target:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String shortNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( phoneMetadata == null ) { continue ; } if ( matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ) { return true ; } } return false ; }
Source:
public final void release ( ) throws android.os.RemoteException { synchronized ( this ) { if ( isReferenced ( ) ) { throw new java.lang.IllegalStateException ( "Cannot release a resource that has active references!" ) ; } if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { return ; } releaseResources ( ) ; getResourceTracker ( ) . give ( ) ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } mBinder = null ; mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; } }

Target:
public final void release ( ) throws android.os.RemoteException { synchronized ( this ) { if ( isReferenced ( ) ) { throw new java.lang.IllegalStateException ( "Cannot release a resource that has active references!" ) ; } if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { return ; } releaseResources ( ) ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } mBinder = null ; mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; } }
Source:
public void testTopSort ( ) { mSnapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 4 ) . addReferences ( 1 , 3 , 2 ) . addReferences ( 3 , 2 ) . addRoot ( 1 ) . getSnapshot ( ) ; mSnapshot.computeDominators ( ) ; assertEquals ( 6 , mSnapshot.findInstance ( 1 ) . getRetainedSize ( 1 ) ) ; assertEquals ( 2 , mSnapshot.findInstance ( 2 ) . getRetainedSize ( 1 ) ) ; assertEquals ( 3 , mSnapshot.findInstance ( 3 ) . getRetainedSize ( 1 ) ) ; }

Target:
public void testTopSort ( ) { mSnapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 4 ) . addReferences ( 1 , 3 , 2 ) . addReferences ( 3 , 2 ) . addRoot ( 1 ) . build ( ) ; mSnapshot.computeDominators ( ) ; assertEquals ( 6 , mSnapshot.findInstance ( 1 ) . getRetainedSize ( 1 ) ) ; assertEquals ( 2 , mSnapshot.findInstance ( 2 ) . getRetainedSize ( 1 ) ) ; assertEquals ( 3 , mSnapshot.findInstance ( 3 ) . getRetainedSize ( 1 ) ) ; }
Source:
void clientReadPhy ( int clientIf , java.lang.String address ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mClientMap.connIdByAddress ( clientIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "clientReadPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientReadPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattClientReadPhyNative ( clientIf , connId ) ; }

Target:
void clientReadPhy ( int clientIf , java.lang.String address ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mClientMap.connIdByAddress ( clientIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "clientReadPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientReadPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattClientReadPhyNative ( clientIf , address ) ; }
Source:
public char getChar ( int i ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } checkIndex ( i , SizeOf.CHAR ) ; char x = ( ( char ) ( libcore.io.Memory.peekShort ( ix ( i ) , ( ! ( nativeByteOrder ) ) ) ) ) ; return x ; }

Target:
public final char getChar ( int i ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } checkIndex ( i , SizeOf.CHAR ) ; return ( ( char ) ( libcore.io.Memory.peekShort ( ix ( i ) , ( ! ( nativeByteOrder ) ) ) ) ) ; }
Source:
public void testMergeConflict ( ) throws java.io.IOException { com.android.dex.Dex a = resourceToDexBuffer ( "/testdata/A.dex" ) ; com.android.dex.Dex b = resourceToDexBuffer ( "/testdata/B.dex" ) ; com.android.dex.Dex ab = new com.android.dx.merge.DexMerger ( a , b , CollisionPolicy.FAIL ) . merge ( ) ; com.android.dx.merge.DexMerger dexMerger = new com.android.dx.merge.DexMerger ( a , ab , CollisionPolicy.FAIL ) ; try { dexMerger.merge ( ) ; fail ( ) ; } catch ( com.android.dex.DexException expected ) { assertEquals ( "Multiple dex files define Ltestdata/A;" , expected.getMessage ( ) ) ; } }

Target:
public void testMergeConflict ( ) throws java.io.IOException { com.android.dex.Dex a = resourceToDexBuffer ( "/testdata/A.dex" ) ; com.android.dex.Dex b = resourceToDexBuffer ( "/testdata/B.dex" ) ; com.android.dex.Dex ab = new com.android.dx.merge.DexMerger ( new com.android.dex.Dex [ ] { a , b } , CollisionPolicy.FAIL ) . merge ( ) ; com.android.dx.merge.DexMerger dexMerger = new com.android.dx.merge.DexMerger ( new com.android.dex.Dex [ ] { a , ab } , CollisionPolicy.FAIL ) ; try { dexMerger.merge ( ) ; fail ( ) ; } catch ( com.android.dex.DexException expected ) { assertEquals ( "Multiple dex files define Ltestdata/A;" , expected.getMessage ( ) ) ; } }
Source:
private void readObject ( java.io.ObjectInputStream ois ) throws java.io.IOException , java.lang.ClassNotFoundException { ois.defaultReadObject ( ) ; this . localeData = libcore.icu.LocaleData.get ( java.util.Locale.getDefault ( ) ) ; }

Target:
private void readObject ( java.io.ObjectInputStream ois ) throws java.io.IOException , java.lang.ClassNotFoundException { ois.defaultReadObject ( ) ; java.util.Locale locale = this . locale ; if ( locale == null ) { locale = java.util.Locale.getDefault ( ) ; } this . localeData = libcore.icu.LocaleData.get ( locale ) ; }
Source:
private java.io.File createFileFromStr ( java.lang.String configStr , java.lang.String module ) throws java.io.IOException { java.io.File file = java.io.File.createTempFile ( module , "dynamic" ) ; java.io.FileOutputStream stream = null ; try { stream = new java.io.FileOutputStream ( file ) ; stream.write ( configStr.getBytes ( ) ) ; stream.flush ( ) ; } finally { com.android.tradefed.util.StreamUtil.close ( stream ) ; } return file ; }

Target:
private java.io.File createFileFromStr ( java.lang.String configStr , java.lang.String module ) throws java.io.IOException { java.io.File file = java.io.File.createTempFile ( module , "dynamic" ) ; java.io.FileOutputStream stream = null ; try { stream = new java.io.FileOutputStream ( file ) ; stream.write ( configStr.getBytes ( ) ) ; stream.flush ( ) ; } finally { if ( stream != null ) { stream.close ( ) ; } } return file ; }
Source:
public java.io.File getInstallFolder ( java.lang.String osSdkRoot , java.lang.String suggestedDir , com.android.sdklib.SdkManager sdkManager ) { for ( com.android.sdklib.IAndroidTarget target : sdkManager.getTargets ( ) ) { if ( ( target.isPlatform ( ) ) && ( target.getVersion ( ) . equals ( mVersion ) ) ) { return new java.io.File ( target.getLocation ( ) ) ; } } java.io.File platforms = new java.io.File ( osSdkRoot , com.android.sdklib.SdkConstants.FD_PLATFORMS ) ; java.io.File folder = new java.io.File ( platforms , java.lang.String.format ( "android-%s" , getVersion ( ) . getApiString ( ) ) ) ; return folder ; }

Target:
public java.io.File getInstallFolder ( java.lang.String osSdkRoot , com.android.sdklib.SdkManager sdkManager ) { for ( com.android.sdklib.IAndroidTarget target : sdkManager.getTargets ( ) ) { if ( ( target.isPlatform ( ) ) && ( target.getVersion ( ) . equals ( mVersion ) ) ) { return new java.io.File ( target.getLocation ( ) ) ; } } java.io.File platforms = new java.io.File ( osSdkRoot , com.android.sdklib.SdkConstants.FD_PLATFORMS ) ; java.io.File folder = new java.io.File ( platforms , java.lang.String.format ( "android-%s" , getVersion ( ) . getApiString ( ) ) ) ; return folder ; }
Source:
public void testToXml5 ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<root>\n" ) + " <!-- <&\'>\" -->\n" ) + "</root>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc , true ) ; assertEquals ( xml , formatted ) ; }

Target:
public void testToXml5 ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<root>\n" ) + " <!-- <&\'>\" -->\n" ) + "</root>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc ) ; assertEquals ( xml , formatted ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor createMerge ( java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor > knownLayouts ) { java.lang.String xml_name = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE ; com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs = findViewLayoutAttributes ( SdkConstants.CLASS_FRAMELAYOUT , knownLayouts ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xml_name , xml_name , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE , "A root tag useful for XML layouts inflated using a ViewStub." , null , null , viewLayoutAttribs , null , false ) ; return desc ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createMerge ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor > knownLayouts ) { java.lang.String xml_name = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE ; com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs = findViewLayoutAttributes ( SdkConstants.CLASS_FRAMELAYOUT , knownLayouts ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xml_name , xml_name , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_MERGE , "A root tag useful for XML layouts inflated using a ViewStub." , null , null , viewLayoutAttribs , null , false ) ; return desc ; }
Source:
public void TestCompoundFilter ( ) { android.icu.text.Transliterator t = android.icu.text.Transliterator.getInstance ( "Greek-Latin; Latin-Greek; Lower" , Transliterator.FORWARD ) ; t.setFilter ( new android.icu.text.UnicodeSet ( "[^A]" ) ) ; expect ( t , android.icu.dev.test.translit.TransliteratorTest.CharsToUnicodeString ( "BA\\u039A\\u0391" ) , android.icu.dev.test.translit.TransliteratorTest.CharsToUnicodeString ( "\\u03b2A\\u03ba\\u03b1" ) ) ; }

Target:
public void TestCompoundFilter ( ) { android.icu.text.Transliterator t = android.icu.text.Transliterator.getInstance ( "Greek-Latin; Latin-Greek; Lower" , Transliterator.FORWARD ) ; t.setFilter ( new android.icu.text.UnicodeSet ( "[^A]" ) ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( t , android.icu.dev.test.translit.TransliteratorTest.CharsToUnicodeString ( "BA\\u039A\\u0391" ) , android.icu.dev.test.translit.TransliteratorTest.CharsToUnicodeString ( "\\u03b2A\\u03ba\\u03b1" ) ) ; }
Source:
public void showSearchPanel ( ) { super . showSearchPanel ( ) ; mHandler.removeCallbacks ( mShowSearchPanel ) ; mSearchPanelView.setSystemUiVisibility ( mSystemUiVisibility ) ; android.view.WindowManager.LayoutParams lp = ( ( android.view.WindowManager.LayoutParams ) ( mNavigationBarView.getLayoutParams ( ) ) ) ; lp.flags &= ~ ( android.view.ViewGroup.LayoutParams.FLAG_NOT_TOUCH_MODAL ) ; mWindowManager.updateViewLayout ( mNavigationBarView , lp ) ; }

Target:
public void showSearchPanel ( ) { super . showSearchPanel ( ) ; mHandler.removeCallbacks ( mShowSearchPanel ) ; mSearchPanelView.setSystemUiVisibility ( mSystemUiVisibility ) ; if ( ( mNavigationBarView ) != null ) { android.view.WindowManager.LayoutParams lp = ( ( android.view.WindowManager.LayoutParams ) ( mNavigationBarView.getLayoutParams ( ) ) ) ; lp.flags &= ~ ( android.view.ViewGroup.LayoutParams.FLAG_NOT_TOUCH_MODAL ) ; mWindowManager.updateViewLayout ( mNavigationBarView , lp ) ; } }
Source:
private void processAtBiev ( int ind_id , int ind_value , android.bluetooth.BluetoothDevice device ) { log ( ( ( ( " Process AT + BIEV Command : " + ind_id ) + ", " ) + ind_value ) ) ; java.lang.String ind_value_str = java.lang.Integer.toString ( ind_value ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHeadset.ACTION_HF_INDICATORS_VALUE_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; sendIndicatorIntent ( device , ind_id , ind_value_str ) ; }

Target:
private void processAtBiev ( int ind_id , int ind_value , android.bluetooth.BluetoothDevice device ) { log ( ( ( ( " Process AT + BIEV Command : " + ind_id ) + ", " ) + ind_value ) ) ; sendIndicatorIntent ( device , ind_id , ind_value ) ; }
Source:
private void addTestCase ( com.android.cts.verifier.ArrayTestListAdapter adapter , com.android.cts.verifier.p2p.testcase.TestCase testcase ) { android.content.Intent intent = new android.content.Intent ( this , getRequesterActivityClass ( ) ) ; intent.putExtra ( TestCase.EXTRA_TEST_NAME , testcase.getTestId ( ) ) ; adapter.add ( com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( testcase.getTestName ( ) , testcase.getTestId ( ) , intent , null ) ) ; }

Target:
private void addTestCase ( com.android.cts.verifier.ArrayTestListAdapter adapter , com.android.cts.verifier.p2p.testcase.TestCase testcase ) { android.content.Intent intent = new android.content.Intent ( this , getRequesterActivityClass ( ) ) ; intent.putExtra ( TestCase.EXTRA_TEST_NAME , testcase.getTestId ( ) ) ; adapter.add ( com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( testcase.getTestName ( ) , testcase.getTestId ( ) , intent ) ) ; }
Source:
public void test_numberLocalization ( ) throws java.lang.Exception { java.util.Locale arabic = new java.util.Locale ( "ar" ) ; if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( arabic ) ) ) { return ; } java.text.NumberFormat nf = java.text.NumberFormat.getNumberInstance ( arabic ) ; assertEquals ( '٠' , new java.text.DecimalFormatSymbols ( arabic ) . getZeroDigit ( ) ) ; assertEquals ( "١٢٣٤٥٦٧٨٩٠" , nf.format ( 1234567890 ) ) ; }

Target:
public void test_numberLocalization ( ) throws java.lang.Exception { java.util.Locale arabic = new java.util.Locale ( "ar" ) ; java.text.NumberFormat nf = java.text.NumberFormat.getNumberInstance ( arabic ) ; assertEquals ( '٠' , new java.text.DecimalFormatSymbols ( arabic ) . getZeroDigit ( ) ) ; assertEquals ( "١٢٣٤٥٦٧٨٩٠" , nf.format ( 1234567890 ) ) ; }
Source:
public void test_getIntegerInstance_ar ( ) throws java.lang.Exception { if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( new java.util.Locale ( "ar" ) ) ) ) { return ; } java.text.NumberFormat numberFormat = java.text.NumberFormat.getNumberInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0.###;#0.###-" , ( ( java.text.DecimalFormat ) ( numberFormat ) ) . toPattern ( ) ) ; java.text.NumberFormat integerFormat = java.text.NumberFormat.getIntegerInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0;#0-" , ( ( java.text.DecimalFormat ) ( integerFormat ) ) . toPattern ( ) ) ; }

Target:
public void test_getIntegerInstance_ar ( ) throws java.lang.Exception { java.text.NumberFormat numberFormat = java.text.NumberFormat.getNumberInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0.###;#0.###-" , ( ( java.text.DecimalFormat ) ( numberFormat ) ) . toPattern ( ) ) ; java.text.NumberFormat integerFormat = java.text.NumberFormat.getIntegerInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0;#0-" , ( ( java.text.DecimalFormat ) ( integerFormat ) ) . toPattern ( ) ) ; }
Source:
public void onEvent ( android.media.MediaDrm md , byte [ ] sessionId , int event , int extra , byte [ ] data ) { synchronized ( mLock ) { android.util.Log.d ( android.media.cts.MediaDrmMockTest.TAG , "testEventNoSessionNoData.onEvent" ) ; assertTrue ( ( md == ( mMediaDrm ) ) ) ; assertTrue ( ( event == 2 ) ) ; assertTrue ( ( extra == 456 ) ) ; assertTrue ( ( sessionId == null ) ) ; assertTrue ( ( data == null ) ) ; mGotEvent = true ; mLock.notify ( ) ; } }

Target:
public void onEvent ( android.media.MediaDrm md , byte [ ] sessionId , int event , int extra , byte [ ] data ) { synchronized ( mLock ) { android.util.Log.d ( android.media.cts.MediaDrmMockTest.TAG , "testEventNoSessionNoData.onEvent" ) ; assertTrue ( ( md == ( mMediaDrm ) ) ) ; assertTrue ( ( event == 2 ) ) ; assertTrue ( ( sessionId == null ) ) ; assertTrue ( ( data == null ) ) ; mGotEvent = true ; mLock.notify ( ) ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , data.length ) ; }

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 android.content.ClipData getPrimaryClip ( java.lang.String pkg ) { synchronized ( this ) { if ( ( ! ( clipboardAccessAllowed ( AppOpsManager.OP_READ_CLIPBOARD , pkg , android.os.Binder.getCallingUid ( ) ) ) ) || ( isDeviceLocked ( ) ) ) { return null ; } addActiveOwnerLocked ( android.os.Binder.getCallingUid ( ) , pkg ) ; return getClipboard ( ) . primaryClip ; } }

Target:
public android.content.ClipData getPrimaryClip ( java.lang.String pkg ) { synchronized ( this ) { if ( ! ( clipboardAccessAllowed ( AppOpsManager.OP_READ_CLIPBOARD , pkg , android.os.Binder.getCallingUid ( ) ) ) ) { return null ; } addActiveOwnerLocked ( android.os.Binder.getCallingUid ( ) , pkg ) ; return getClipboard ( ) . primaryClip ; } }
Source:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { mApiDatabase = com.android.tools.lint.checks.ApiLookup.get ( context.getClient ( ) ) ; if ( ( ( mApiDatabase ) == null ) && ( ! ( mWarnedMissingDb ) ) ) { mWarnedMissingDb = true ; context.report ( IssueRegistry.LINT_ERROR , com.android.tools.lint.detector.api.Location.create ( context.file ) , "Can't find API database; API check not performed" , null ) ; } }

Target:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { mApiDatabase = com.android.tools.lint.checks.ApiLookup.get ( context.getClient ( ) ) ; if ( ( ( mApiDatabase ) == null ) && ( ! ( mWarnedMissingDb ) ) ) { mWarnedMissingDb = true ; context.report ( IssueRegistry.LINT_ERROR , com.android.tools.lint.detector.api.Location.create ( context.file ) , "Can't find API database; API check not performed" ) ; } }