auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void startDeviceMonitorThread ( ) throws java.io.IOException { mSelector = java.nio.channels.Selector.open ( ) ; new java.lang.Thread ( "Device Client Monitor" ) { @ java.lang.Override public void run ( ) { deviceClientMonitorLoop ( ) ; } } . start ( ) ; }

Target:
private void processIncomingDeviceData ( int length ) throws java.io.IOException { java.util.Map < java.lang.String , com.android.ddmlib.IDevice.DeviceState > result ; if ( length <= 0 ) { result = java.util.Collections.emptyMap ( ) ; } else { java.lang.String response = com.android.ddmlib.DeviceMonitor.read ( mAdbConnection , new byte [ length ] ) ; result = com.android.ddmlib.DeviceMonitor.DeviceListMonitorTask.parseDeviceListResponse ( response ) ; } mListener.deviceListUpdate ( result ) ; }
Source:
public void testSetValues001_Boolean ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointBoolean" , StackTrace002Debuggee.BOOLEAN_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointBoolean" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.BOOLEAN_PARAM_VALUE ) , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.BOOLEAN_PARAM_VALUE_TO_SET ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testSetValues010_ArrayAsObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value newValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE_TO_SET" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.ARRAY_AS_OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObject" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue , newValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , oldValue , newValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function , java.util.concurrent.Executor executor ) { com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( output , executor ) ; return output ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function ) { com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( output , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
private void setupPassword ( ) { assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; java.lang.String [ ] aliases = mAndroidKeyStore.saw ( "" ) ; assertNotNull ( aliases ) ; assertEquals ( 0 , aliases.length ) ; }

Target:
private void setupPassword ( ) { assertTrue ( mAndroidKeyStore.onUserPasswordChanged ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; java.lang.String [ ] aliases = mAndroidKeyStore.saw ( "" ) ; assertNotNull ( aliases ) ; assertEquals ( 0 , aliases.length ) ; }
Source:
public static java.io.InputStream getXsdStream ( int version ) { java.lang.String filename = java.lang.String.format ( "sdk-addon-%d.xsd" , version ) ; java.io.InputStream stream = com.android.sdklib.repository.SdkAddonConstants.class . getResourceAsStream ( filename ) ; if ( stream == null ) { filename = java.lang.String.format ( "-sdk-addon-%d.xsd" , version ) ; stream = com.android.sdklib.repository.SdkRepoConstants.class . getResourceAsStream ( filename ) ; } return stream ; }

Target:
public static java.io.InputStream getXsdStream ( int version ) { return com.android.sdklib.repository.SdkAddonConstants.getXsdStream ( com.android.sdklib.repository.SdkAddonConstants.NODE_SDK_ADDON , version ) ; }
Source:
public void writeDescriptor ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int descrInstanceId , android.os.ParcelUuid descrId , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeDescriptor ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , descrInstanceId , descrId.getUuid ( ) , writeType , authReq , value ) ; }

Target:
public void writeDescriptor ( int clientIf , java.lang.String address , int handle , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeDescriptor ( clientIf , address , handle , writeType , authReq , value ) ; }
Source:
public boolean requestDrawGL ( android.graphics.Canvas canvas , boolean waitForCompletion , android.view.View containerView ) { if ( ( mGLfunctor ) == null ) { mGLfunctor = new com.android.webview.chromium.DrawGLFunctor ( mAwContents.getAwDrawGLViewContext ( ) ) ; } boolean result = mGLfunctor.requestDrawGL ( ( ( android.view.HardwareCanvas ) ( canvas ) ) , containerView.getViewRootImpl ( ) ) ; if ( result && waitForCompletion ) { java.lang.Runnable r = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } ; result = containerView.executeHardwareAction ( r ) ; } return result ; }

Target:
public void computeScroll ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { computeScroll ( ) ; } } ) ; return ; } mAwContents.computeScroll ( ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.util.Log.i ( android.aidl.tests.TestServiceClient.TAG , "Starting!" ) ; try { init ( ) ; android.aidl.tests.ITestService service = getService ( ) ; mLog.log ( mSuccessSentinel ) ; } catch ( android.aidl.tests.TestServiceClient.TestFailException e ) { mLog.close ( ) ; throw new java.lang.RuntimeException ( e ) ; } finally { if ( ( mLog ) != null ) { mLog.close ( ) ; } } }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.util.Log.i ( android.aidl.tests.TestServiceClient.TAG , "Starting!" ) ; try { init ( ) ; android.aidl.tests.ITestService service = getService ( ) ; checkPrimitiveRepeat ( service ) ; mLog.log ( mSuccessSentinel ) ; } catch ( android.aidl.tests.TestServiceClient.TestFailException e ) { mLog.close ( ) ; throw new java.lang.RuntimeException ( e ) ; } finally { if ( ( mLog ) != null ) { mLog.close ( ) ; } } }
Source:
public void testDeflaterInputStreamInputStreamDeflater ( ) { new java.util.zip.DeflaterInputStream ( is , new java.util.zip.Deflater ( ) ) ; try { new java.util.zip.DeflaterInputStream ( is , null ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } try { new java.util.zip.DeflaterInputStream ( null , new java.util.zip.Deflater ( ) ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void testDeflaterInputStreamInputStreamDeflater ( ) throws java.io.IOException { java.util.zip.Deflater deflater = new java.util.zip.Deflater ( ) ; try { new java.util.zip.DeflaterInputStream ( is , deflater ) . close ( ) ; try { new java.util.zip.DeflaterInputStream ( is , null ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } try { new java.util.zip.DeflaterInputStream ( null , deflater ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } } finally { deflater.end ( ) ; } }
Source:
public boolean queriable ( java.util.List < com.android.server.wifi.anqp.Constants.ANQPElementType > queryElements ) { return ( ( mAnt ) != null ) && ( ( com.android.server.wifi.anqp.Constants.hasBaseANQPElements ( queryElements ) ) || ( ( com.android.server.wifi.anqp.Constants.hasR2Elements ( queryElements ) ) && ( ( mHSRelease ) == ( com.android.server.wifi.hotspot2.NetworkDetail.HSRelease.R2 ) ) ) ) ; }

Target:
public boolean queriable ( java.util.List < com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType > queryElements ) { return ( ( mAnt ) != null ) && ( ( com.android.server.wifi.hotspot2.anqp.Constants.hasBaseANQPElements ( queryElements ) ) || ( ( com.android.server.wifi.hotspot2.anqp.Constants.hasR2Elements ( queryElements ) ) && ( ( mHSRelease ) == ( com.android.server.wifi.hotspot2.NetworkDetail.HSRelease.R2 ) ) ) ) ; }
Source:
public void testRemoveAll ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( one ) ; v.add ( two ) ; full.removeAll ( v ) ; assertEquals ( 1 , full.size ( ) ) ; }

Target:
public void testRemoveAll ( ) { java.util.Set full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertTrue ( full.removeAll ( java.util.Arrays.asList ( one , two ) ) ) ; assertEquals ( 1 , full.size ( ) ) ; assertFalse ( full.removeAll ( java.util.Arrays.asList ( one , two ) ) ) ; assertEquals ( 1 , full.size ( ) ) ; }
Source:
public void addRecipient ( java.lang.String name , java.lang.String [ ] phoneNumbers , java.lang.String [ ] emailAddresses ) { if ( ( mRecipient ) == null ) mRecipient = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.vCard > ( ) ; mRecipient.add ( new com.android.bluetooth.map.BluetoothMapbMessage.vCard ( name , phoneNumbers , emailAddresses ) ) ; }

Target:
public void addRecipient ( java.lang.String name , java.lang.String [ ] phoneNumbers , java.lang.String [ ] emailAddresses ) { if ( ( mRecipient ) == null ) mRecipient = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.VCard > ( ) ; mRecipient.add ( new com.android.bluetooth.map.BluetoothMapbMessage.VCard ( name , phoneNumbers , emailAddresses ) ) ; }
Source:
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 ) ; }

Target:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }
Source:
public void TestThaiDefault ( ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( "th_TH" ) ) ; java.lang.String type = cal.getType ( ) ; if ( ! ( type.equals ( "buddhist" ) ) ) { errln ( ( "FAIL: Buddhist calendar is not returned for locale " + ( cal.toString ( ) ) ) ) ; } }

Target:
public void TestThaiDefault ( ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( "th_TH" ) ) ; java.lang.String type = cal.getType ( ) ; if ( ! ( type.equals ( "gregorian" ) ) ) { errln ( ( "FAIL: Gregorian calendar is not returned for locale " + ( cal.toString ( ) ) ) ) ; } }
Source:
public com.android.server.wifi.nan.WifiNanDiscoverySessionState getNanSessionStateForPubSubId ( int pubSubId ) { for ( int i = 0 ; i < ( mSessions.size ( ) ) ; ++ i ) { com.android.server.wifi.nan.WifiNanDiscoverySessionState session = mSessions.valueAt ( i ) ; if ( session.isPubSubIdSession ( pubSubId ) ) { return session ; } } return null ; }

Target:
public com.android.server.wifi.aware.WifiAwareDiscoverySessionState getAwareSessionStateForPubSubId ( int pubSubId ) { for ( int i = 0 ; i < ( mSessions.size ( ) ) ; ++ i ) { com.android.server.wifi.aware.WifiAwareDiscoverySessionState session = mSessions.valueAt ( i ) ; if ( session.isPubSubIdSession ( pubSubId ) ) { return session ; } } return null ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { Main.foo ( ) ; throw new java.lang.Error ( "Expected NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public static void main ( java.lang.String [ ] args ) { try { Main.foo ( ) ; throw new java.lang.Error ( "Expected NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } try { Main.bar ( ) ; throw new java.lang.Error ( "Expected NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } try { Main.test1 ( ) ; throw new java.lang.Error ( "Expected NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }
Source:
public void testGetLauncherActivity ( ) { com.android.sdklib.xml.AndroidManifestParser.Activity activity = mManifestTestApp.getLauncherActivity ( ) ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; }

Target:
public void testGetActivities ( ) { assertEquals ( 1 , mManifestTestApp.getActivities ( ) . length ) ; com.android.sdklib.xml.ManifestData.Activity activity = mManifestTestApp.getActivities ( ) [ 0 ] ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertEquals ( activity , mManifestTestApp.getActivities ( ) [ 0 ] ) ; }
Source:
public void networkAgentMayBeNull ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mWifiInfo.getRssi ( ) ) . thenReturn ( ( - 33 ) ) ; mWifiScoreReport.enableVerboseLogging ( true ) ; mWifiScoreReport.calculateAndReportScore ( mWifiInfo , null , 0 , mWifiMetrics ) ; org.mockito.Mockito.verify ( mWifiMetrics ) . incrementWifiScoreCount ( org.mockito.Mockito.anyInt ( ) ) ; }

Target:
public void networkAgentMayBeNull ( ) throws java.lang.Exception { mWifiInfo.setRssi ( ( - 33 ) ) ; mWifiScoreReport.enableVerboseLogging ( true ) ; mWifiScoreReport.calculateAndReportScore ( mWifiInfo , null , 0 , mWifiMetrics ) ; org.mockito.Mockito.verify ( mWifiMetrics ) . incrementWifiScoreCount ( org.mockito.Mockito.anyInt ( ) ) ; }
Source:
public static org.eclipse.swt.widgets.Display getDisplay ( ) { org.eclipse.ui.IWorkbench bench = null ; synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { if ( ( com.android.ide.eclipse.adt.AdtPlugin.sPlugin ) == null ) { return null ; } bench = com.android.ide.eclipse.adt.AdtPlugin.sPlugin.getWorkbench ( ) ; } if ( bench != null ) { return bench.getDisplay ( ) ; } return null ; }

Target:
public static org.eclipse.swt.widgets.Display getDisplay ( ) { synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { if ( ( com.android.ide.eclipse.adt.AdtPlugin.sPlugin ) != null ) { org.eclipse.ui.IWorkbench bench = com.android.ide.eclipse.adt.AdtPlugin.sPlugin.getWorkbench ( ) ; if ( bench != null ) { org.eclipse.swt.widgets.Display display = bench.getDisplay ( ) ; if ( display != null ) { return display ; } } } } org.eclipse.swt.widgets.Display display = org.eclipse.swt.widgets.Display.getCurrent ( ) ; if ( display != null ) { return display ; } return org.eclipse.swt.widgets.Display.getDefault ( ) ; }
Source:
public void testCompile022 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test022.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; runTestCase ( TEST022 ) ; }

Target:
public void testRun022 ( ) throws java.lang.Exception { runTestCase ( TEST022 ) ; }
Source:
public int getComponentEnabledSetting ( android.content.ComponentName componentName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; checkValidCaller ( uid , userId ) ; synchronized ( mPackages ) { return mSettings.getComponentEnabledSettingLPr ( componentName , userId ) ; } }

Target:
public void setApplicationEnabledSetting ( java.lang.String appPackageName , int newState , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; setEnabledSetting ( appPackageName , null , newState , flags , userId ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , literal , a , b ) ; }
Source:
static void add ( java.lang.Object referent ) { java.lang.ref.FinalizerReference < ? > reference = new java.lang.ref.FinalizerReference < java.lang.Object > ( referent , java.lang.ref.FinalizerReference.queue ) ; synchronized ( java.lang.ref.FinalizerReference.class ) { reference.prev = null ; reference.next = java.lang.ref.FinalizerReference.head ; if ( ( java.lang.ref.FinalizerReference.head ) != null ) { java.lang.ref.FinalizerReference.head.prev = reference ; } java.lang.ref.FinalizerReference.head = reference ; } }

Target:
static void add ( java.lang.Object referent ) { java.lang.ref.FinalizerReference < ? > reference = new java.lang.ref.FinalizerReference < java.lang.Object > ( referent , java.lang.ref.FinalizerReference.queue ) ; synchronized ( java.lang.ref.FinalizerReference.LIST_LOCK ) { reference.prev = null ; reference.next = java.lang.ref.FinalizerReference.head ; if ( ( java.lang.ref.FinalizerReference.head ) != null ) { java.lang.ref.FinalizerReference.head.prev = reference ; } java.lang.ref.FinalizerReference.head = reference ; } }
Source:
public void testIsInternal ( ) { java.lang.String targetPackage = android.support.test.InstrumentationRegistry.getTargetContext ( ) . getPackageName ( ) ; android.content.ComponentName targetComponent = new android.content.ComponentName ( targetPackage , ( targetPackage + ".SomeClass " ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.isInternal ( ) . matches ( new android.content.Intent ( ) . setComponent ( targetComponent ) ) ) ; assertFalse ( org.hamcrest.Matchers.not ( android.support.test.espresso.intent.matcher.IntentMatchers.isInternal ( ) ) . matches ( new android.content.Intent ( ) . setComponent ( targetComponent ) ) ) ; }

Target:
public void isInternalTesting ( ) { java.lang.String targetPackage = android.support.test.InstrumentationRegistry.getTargetContext ( ) . getPackageName ( ) ; android.content.ComponentName targetComponent = new android.content.ComponentName ( targetPackage , ( targetPackage + ".SomeClass " ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.isInternal ( ) . matches ( new android.content.Intent ( ) . setComponent ( targetComponent ) ) ) ; org.junit.Assert.assertFalse ( org.hamcrest.Matchers.not ( android.support.test.espresso.intent.matcher.IntentMatchers.isInternal ( ) ) . matches ( new android.content.Intent ( ) . setComponent ( targetComponent ) ) ) ; }
Source:
public final char getChar ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }

Target:
public final char getChar ( ) { checkNotFreed ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }
Source:
public void testStateTransitionFromConnectingToDisconnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToDisconnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_DISCONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTING , mMceStateMachine.getState ( ) ) ; }

Target:
public void testStateTransitionFromConnectingToDisconnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToDisconnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_DISCONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; boolean result = false ; try { result = mDisconnectedLatch.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertTrue ( result ) ; }
Source:
synchronized boolean replyReport ( byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "replyReport(): type=" + type ) + " id=" ) + id ) ) ; return replyReportNative ( type , id , data ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public static < V , X extends java.lang.Exception > com.google.common.util.concurrent.CheckedFuture < V , X > immediateCheckedFuture ( @ javax.annotation.Nullable V value ) { com.google.common.util.concurrent.SettableFuture < V > future = com.google.common.util.concurrent.SettableFuture.create ( ) ; future.set ( value ) ; return com.google.common.util.concurrent.Futures.makeChecked ( future , new com.google.common.base.Function < java.lang.Exception , X > ( ) { @ java.lang.Override public X apply ( java.lang.Exception e ) { throw new java.lang.AssertionError ( "impossible" ) ; } } ) ; }

Target:
public static < V , X extends java.lang.Exception > com.google.common.util.concurrent.CheckedFuture < V , X > immediateCheckedFuture ( @ javax.annotation.Nullable V value ) { return new com.google.common.util.concurrent.Futures.ImmediateSuccessfulCheckedFuture < V , X > ( value ) ; }
Source:
public void drawOval ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . drawOval ( x , y , w , h ) ; }

Target:
public void fillRect ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; useFillAlpha ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . fillRectangle ( x , y , w , h ) ; }
Source:
protected void onLayout ( boolean changed , int l , int t , int r , int b ) { super . onLayout ( changed , l , t , r , b ) ; if ( changed ) { if ( mIsLandscape ) { adjustKeyWidths ( ) ; } else { adjustKeyHeightsInFirstRow ( ) ; } } }

Target:
protected void onLayout ( boolean changed , int l , int t , int r , int b ) { super . onLayout ( changed , l , t , r , b ) ; if ( changed ) { if ( mIsLandscape ) { adjustKeyWidths ( ) ; } else { adjustDigitKeyHeights ( ) ; } } }
Source:
public void testQuickFix_withStartingDigits ( ) { com.google.gct.intellij.endpoints.validation.ApiNameInspection.MyQuickFix localQuickFix = new com.google.gct.intellij.endpoints.validation.ApiNameInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; junit.framework.Assert.assertEquals ( "digit" , localQuickFix.getNameSuggestions ( "1digit" ) ) ; junit.framework.Assert.assertEquals ( "digit" , localQuickFix.getNameSuggestions ( "123digit" ) ) ; junit.framework.Assert.assertEquals ( "api12345" , localQuickFix.getNameSuggestions ( "12345" ) ) ; }

Target:
public void testQuickFix_withStartingDigits ( ) { com.google.gct.idea.appengine.validation.ApiNameInspection.MyQuickFix localQuickFix = new com.google.gct.idea.appengine.validation.ApiNameInspection ( ) . new com.google.gct.idea.appengine.validation.MyQuickFix ( ) ; junit.framework.Assert.assertEquals ( "digit" , localQuickFix.getNameSuggestions ( "1digit" ) ) ; junit.framework.Assert.assertEquals ( "digit" , localQuickFix.getNameSuggestions ( "123digit" ) ) ; junit.framework.Assert.assertEquals ( "api12345" , localQuickFix.getNameSuggestions ( "12345" ) ) ; }
Source:
public java.lang.String getCdmaEriTextForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getCdmaEriIconTextForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getCdmaEriText ( ) ; } else { return null ; } }

Target:
public java.lang.String getCdmaEriTextForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getCdmaEriIconTextForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getCdmaEriText ( ) ; } else { return null ; } }
Source:
static int amToHfVol ( int amVol ) { int amRange = ( ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) > ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ) ? ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) : 1 ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int hfOffset = ( hfRange * ( amVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ) ) / amRange ; int hfVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) + hfOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "AM -> HF " + amVol ) + " " ) + hfVol ) ) ; return hfVol ; }

Target:
static int amToHfVol ( int amVol ) { int amRange = ( ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMaxAmVcVol ) > ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMinAmVcVol ) ) ? ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMinAmVcVol ) : 1 ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int hfOffset = ( hfRange * ( amVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMinAmVcVol ) ) ) / amRange ; int hfVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) + hfOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "AM -> HF " + amVol ) + " " ) + hfVol ) ) ; return hfVol ; }
Source:
private boolean canMapRegs ( java.util.ArrayList < com.android.dx.ssa.back.RegisterSpec > specs , int ropReg ) { for ( com.android.dx.ssa.back.RegisterSpec spec : specs ) { if ( ssaRegsMapped.get ( spec.getReg ( ) ) ) continue ; if ( ! ( canMapReg ( spec , ropReg ) ) ) return false ; } return true ; }

Target:
private boolean canMapRegs ( java.util.ArrayList < com.android.dx.rop.code.RegisterSpec > specs , int ropReg ) { for ( com.android.dx.rop.code.RegisterSpec spec : specs ) { if ( ssaRegsMapped.get ( spec.getReg ( ) ) ) continue ; if ( ! ( canMapReg ( spec , ropReg ) ) ) return false ; } return true ; }
Source:
public void loadEFImgLinearFixed ( int recordNum , com.android.internal.telephony.Message onLoaded ) { com.android.internal.telephony.Message response = obtainMessage ( com.android.internal.telephony.IccFileHandler.EVENT_READ_IMG_DONE , new com.android.internal.telephony.IccFileHandler.LoadLinearFixedContext ( IccConstants.EF_IMG , recordNum , onLoaded ) ) ; mCi.iccIOForApp ( com.android.internal.telephony.IccFileHandler.COMMAND_GET_RESPONSE , IccConstants.EF_IMG , "img" , recordNum , com.android.internal.telephony.IccFileHandler.READ_RECORD_MODE_ABSOLUTE , com.android.internal.telephony.IccFileHandler.GET_RESPONSE_EF_IMG_SIZE_BYTES , null , null , mAid , response ) ; }

Target:
public void loadEFImgLinearFixed ( int recordNum , com.android.internal.telephony.Message onLoaded ) { com.android.internal.telephony.Message response = obtainMessage ( com.android.internal.telephony.IccFileHandler.EVENT_GET_RECORD_SIZE_IMG_DONE , new com.android.internal.telephony.IccFileHandler.LoadLinearFixedContext ( IccConstants.EF_IMG , recordNum , onLoaded ) ) ; mCi.iccIOForApp ( com.android.internal.telephony.IccFileHandler.COMMAND_GET_RESPONSE , IccConstants.EF_IMG , getEFPath ( IccConstants.EF_IMG ) , recordNum , com.android.internal.telephony.IccFileHandler.READ_RECORD_MODE_ABSOLUTE , com.android.internal.telephony.IccFileHandler.GET_RESPONSE_EF_IMG_SIZE_BYTES , null , null , mAid , response ) ; }
Source:
public static java.lang.String getApkFilename ( org.eclipse.core.resources.IProject project , java.lang.String config ) { if ( config != null ) { return ( ( ( project.getName ( ) ) + "-" ) + config ) + ( com.android.ide.eclipse.adt.AndroidConstants.DOT_ANDROID_PACKAGE ) ; } return ( project.getName ( ) ) + ( com.android.ide.eclipse.adt.AndroidConstants.DOT_ANDROID_PACKAGE ) ; }

Target:
public static java.lang.String getApkFilename ( org.eclipse.core.resources.IProject project , java.lang.String config ) { if ( config != null ) { return ( ( ( project.getName ( ) ) + "-" ) + config ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_ANDROID_PACKAGE ) ; } return ( project.getName ( ) ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_ANDROID_PACKAGE ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( type.isExternal ( ) ) { return ; } visitor.accept ( type ) ; if ( ( type.getAnnotation ( mainDexAnnotation ) ) != null ) { type.addMarker ( ForceInMainDexMarker.INSTANCE ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( type.isExternal ( ) ) { return ; } visitor.accept ( type ) ; if ( ! ( type.getAnnotations ( mainDexAnnotation ) . isEmpty ( ) ) ) { type.addMarker ( ForceInMainDexMarker.INSTANCE ) ; } }
Source:
public java.lang.Void doInBackground ( java.lang.Boolean skipDirtyCheck ) throws android.content.OperationApplicationException , android.os.RemoteException { com.android.dialer.common.LogUtil.enterBlock ( "RefreshAnnotatedCallLogWorker.doInBackground" ) ; long startTime = java.lang.System.currentTimeMillis ( ) ; checkDirtyAndRebuildIfNecessary ( appContext , skipDirtyCheck ) ; com.android.dialer.common.LogUtil.i ( "RefreshAnnotatedCallLogWorker.doInBackground" , "took %dms" , ( ( java.lang.System.currentTimeMillis ( ) ) - startTime ) ) ; return null ; }

Target:
private java.lang.Void doInBackground ( boolean checkDirty ) throws android.content.OperationApplicationException , android.os.RemoteException { com.android.dialer.common.LogUtil.enterBlock ( "RefreshAnnotatedCallLogWorker.doInBackground" ) ; long startTime = java.lang.System.currentTimeMillis ( ) ; checkDirtyAndRebuildIfNecessary ( appContext , checkDirty ) ; com.android.dialer.common.LogUtil.i ( "RefreshAnnotatedCallLogWorker.doInBackground" , "took %dms" , ( ( java.lang.System.currentTimeMillis ( ) ) - startTime ) ) ; return null ; }
Source:
public static com.android.jill.Version getVersion ( ) { if ( ( com.android.jill.Jill.version ) == null ) { java.io.InputStream is = com.android.jill.Jill.class . getClassLoader ( ) . getResourceAsStream ( com.android.jill.Jill.PROPERTIES_FILE ) ; if ( is != null ) { com.android.jill.Jill.version = new com.android.jill.Version ( is ) ; } else { java.lang.System.err.println ( ( "Failed to open Jack properties file " + ( com.android.jill.Jill.PROPERTIES_FILE ) ) ) ; throw new java.lang.AssertionError ( ) ; } } assert ( com.android.jill.Jill.version ) != null ; return com.android.jill.Jill.version ; }

Target:
public static com.android.sched.util.Version getVersion ( ) { if ( ( com.android.jill.Jill.version ) == null ) { try { com.android.jill.Jill.version = new com.android.sched.util.Version ( "jill" , com.android.jill.Jill.class . getClassLoader ( ) ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( ( "Failed to read version properties file: " + ( e.getMessage ( ) ) ) ) ; throw new java.lang.AssertionError ( ) ; } } assert ( com.android.jill.Jill.version ) != null ; return com.android.jill.Jill.version ; }
Source:
public static void e ( java.lang.String prefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.ERROR ) { android.util.Log.e ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( prefix , format , args ) , tr ) ; } }

Target:
public static void e ( java.lang.Object objectPrefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.ERROR ) { android.util.Slog.e ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) , tr ) ; } }
Source:
public void testStandaloneWeekdayFormatting ( ) throws java.lang.Exception { java.util.Locale fi = new java.util.Locale ( "fi" ) ; assertEquals ( "torstai" , formatDate ( fi , "cccc" ) ) ; assertEquals ( "torstaina" , formatDate ( fi , "EEEE" ) ) ; }

Target:
public void testStandaloneWeekdayParsing ( ) throws java.lang.Exception { java.util.Locale fi = new java.util.Locale ( "fi" ) ; assertEquals ( java.util.Calendar.TUESDAY , libcore.java.text.SimpleDateFormatTest.parseDateUtc ( fi , "cccc yyyy" , "tiistai 2000" ) . get ( java.util.Calendar.DAY_OF_WEEK ) ) ; assertEquals ( java.util.Calendar.TUESDAY , libcore.java.text.SimpleDateFormatTest.parseDateUtc ( fi , "EEEE yyyy" , "tiistaina 2000" ) . get ( java.util.Calendar.DAY_OF_WEEK ) ) ; libcore.java.text.SimpleDateFormatTest.assertCannotParse ( fi , "cccc yyyy" , "tiistaina 2000" ) ; libcore.java.text.SimpleDateFormatTest.assertCannotParse ( fi , "EEEE yyyy" , "tiistai 2000" ) ; }
Source:
private void checkJoinOrLeave ( java.net.InetAddress groupAddr ) throws java.io.IOException { checkOpen ( ) ; if ( ! ( groupAddr.isMulticastAddress ( ) ) ) { throw new java.io.IOException ( ( "Not a multicast group: " + groupAddr ) ) ; } }

Target:
private void checkJoinOrLeave ( java.net.InetAddress groupAddr ) throws java.io.IOException { checkOpen ( ) ; if ( groupAddr == null ) { throw new java.lang.IllegalArgumentException ( "groupAddress == null" ) ; } if ( ! ( groupAddr.isMulticastAddress ( ) ) ) { throw new java.io.IOException ( ( "Not a multicast group: " + groupAddr ) ) ; } }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
native void rsnScriptForEachClipped ( long con , long incCon , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend , boolean mUseInc ) ;
Source:
public void setField ( java.lang.String field , java.lang.String contents ) throws android.os.RemoteException { waitForReady ( ) ; final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "setfield" , field , contents ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }

Target:
public void setField ( java.lang.String field , java.lang.String contents ) throws android.os.RemoteException { mContext.enforceCallingOrSelfPermission ( Manifest.permission.STORAGE_INTERNAL , "no permission to access the crypt keeper" ) ; waitForReady ( ) ; final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "setfield" , field , contents ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }
Source:
public final void testGetTargetHashString ( ) { com.android.sdklib.internal.repository.MockPlatformTarget t = new com.android.sdklib.internal.repository.MockPlatformTarget ( 10 , 1 ) ; assertEquals ( "android-10" , com.android.sdklib.AndroidTargetHash.getTargetHashString ( t ) ) ; com.android.sdklib.internal.repository.MockAddonTarget a = new com.android.sdklib.internal.repository.MockAddonTarget ( "my-addon" , t , 2 ) ; assertEquals ( "vendor 10:my-addon:10" , com.android.sdklib.AndroidTargetHash.getTargetHashString ( a ) ) ; }

Target:
public final void testGetTargetHashString ( ) { com.android.sdklib.internal.repository.MockPlatformTarget t = new com.android.sdklib.internal.repository.MockPlatformTarget ( 10 , 1 ) ; assertEquals ( "android-10" , com.android.sdklib.AndroidTargetHash.getTargetHashString ( t ) ) ; com.android.sdklib.internal.repository.MockAddonTarget a = new com.android.sdklib.internal.repository.MockAddonTarget ( "My Addon" , t , 2 ) ; assertEquals ( "vendor 10:My Addon:10" , com.android.sdklib.AndroidTargetHash.getTargetHashString ( a ) ) ; }
Source:
private byte getPlayBackState ( com.android.bluetooth.avrcp.MediaController mediaController ) { android.media.session.PlaybackState pbState = mediaController.getPlaybackState ( ) ; byte playStateBytes = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; if ( pbState != null ) { playStateBytes = ( ( byte ) ( convertPlayStateToBytes ( pbState.getState ( ) ) ) ) ; android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getPlayBackState: playStateBytes = " + playStateBytes ) ) ; } else { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "playState object null, sending playStateBytes = " + playStateBytes ) ) ; } return playStateBytes ; }

Target:
private byte getPlayStateBytes ( android.media.session.PlaybackState pbState ) { byte playStateBytes = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; if ( pbState != null ) { playStateBytes = ( ( byte ) ( convertPlayStateToBytes ( pbState.getState ( ) ) ) ) ; android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getPlayBackState: playStateBytes = " + playStateBytes ) ) ; } else { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "playState object null, sending playStateBytes = " + playStateBytes ) ) ; } return playStateBytes ; }
Source:
protected java.util.Set < java.lang.String > getAllowedValues ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 2 ) ) ; for ( com.android.resources.Density value : values ) { if ( ( value != ( com.android.resources.Density.NODPI ) ) && ( value != ( com.android.resources.Density.ANYDPI ) ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return fullList ; }

Target:
protected com.google.common.collect.ImmutableSet < java.lang.String > getAllowedValues ( ) { com.google.common.collect.ImmutableSet.Builder < java.lang.String > builder = com.google.common.collect.ImmutableSet.builder ( ) ; for ( com.android.resources.Density value : com.android.resources.Density.values ( ) ) { if ( ( value != ( com.android.resources.Density.NODPI ) ) && ( value != ( com.android.resources.Density.ANYDPI ) ) ) { builder.add ( value.getResourceValue ( ) ) ; } } return builder.build ( ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , name ) . add ( "storeLocation" , getStoreLocation ( ) ) . add ( "storePassword" , getStorePassword ( ) ) . add ( "keyAlias" , getKeyAlias ( ) ) . add ( "keyPassword" , getKeyPassword ( ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , name ) . add ( "storeLocation" , getStoreLocation ( ) ) . add ( "storePassword" , getStorePassword ( ) ) . add ( "keyAlias" , getKeyAlias ( ) ) . add ( "keyPassword" , getKeyPassword ( ) ) . add ( "storeType" , getStoreFile ( ) ) . toString ( ) ; }
Source:
public boolean iccCloseLogicalChannel ( int channel ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccCloseLogicalChannel ( channel ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return false ; }

Target:
public void setDataActivationState ( int subId , int activationState ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataActivationState ( subId , activationState ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }
Source:
public void exit ( ) { android.os.Message message = getCurrentMessage ( ) ; if ( ( ( message != null ) && ( ! ( isQuit ( message ) ) ) ) && ( ( mCurrentDevice ) == null ) ) { stateLogWtfStack ( "mCurrentDevice is null on exit() to non-quitting state" ) ; } mPrevState = this ; }

Target:
public void exit ( ) { android.os.Message message = getCurrentMessage ( ) ; if ( ( ( message != null ) && ( ! ( isQuit ( message ) ) ) ) && ( ( mCurrentDevice ) == null ) ) { throw new java.lang.IllegalStateException ( "mCurrentDevice is null on exit() to non-quitting state" ) ; } mPrevState = this ; }
Source:
protected void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onRestoreInstanceState: " + ( mSlotId ) ) ) ; mAcceptUsersInput = savedInstanceState.getBoolean ( "ACCEPT_USERS_INPUT" ) ; }

Target:
protected void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onRestoreInstanceState: " + ( mSlotId ) ) ) ; mAcceptUsersInput = savedInstanceState.getBoolean ( "ACCEPT_USERS_INPUT" ) ; if ( ( ( mAcceptUsersInput ) == false ) && ( ( mMoreOptions ) != null ) ) { mMoreOptions.setVisibility ( View.INVISIBLE ) ; } }
Source:
public boolean initializeSupplicantHal ( ) { if ( ! ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) ) { return true ; } if ( ! ( mSupplicantP2pIfaceHal.initialize ( ) ) ) { return false ; } return mSupplicantStaIfaceHal.initialize ( ) ; }

Target:
public boolean migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.loadNetworks ( configs , networkExtras ) ; } else { mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; return true ; } }
Source:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ! ( mStateMachine.isAudioOn ( ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO ) ; return true ; }

Target:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getAudioState ( ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "disconnectAudio, audio is not connected" ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }
Source:
public static org.jetbrains.plugins.gradle.model.data.WarDirectory fromPath ( @ org.jetbrains.annotations.NotNull final java.lang.String path ) { if ( com.intellij.openapi.util.text.StringUtil.isEmpty ( path ) ) return org.jetbrains.plugins.gradle.model.data.WarDirectory.WAR_ROOT ; final java.lang.String adjustedPath = ( ( path.charAt ( 0 ) ) != '/' ) ? '/' + path : path ; for ( org.jetbrains.plugins.gradle.model.data.WarDirectory warDirectory : org.jetbrains.plugins.gradle.model.data.WarDirectory.values ( ) ) { if ( warDirectory.myRelativePath.equals ( adjustedPath ) ) return warDirectory ; } return null ; }

Target:
private static java.lang.String getAdjustedPath ( @ org.jetbrains.annotations.NotNull final java.lang.String path ) { return ( path.isEmpty ( ) ) || ( ( path.charAt ( 0 ) ) != '/' ) ? '/' + path : path ; }
Source:
protected com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem findResourceItem ( com.android.ide.eclipse.adt.internal.resources.ResourceType type , java.lang.String name ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > list = mResourceMap.get ( type ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem item : list ) { if ( name.equals ( item.getName ( ) ) ) { return item ; } } return null ; }

Target:
protected com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem findResourceItem ( com.android.resources.ResourceType type , java.lang.String name ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > list = mResourceMap.get ( type ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem item : list ) { if ( name.equals ( item.getName ( ) ) ) { return item ; } } return null ; }