auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static boolean isCommittedInChainedCalls ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { lombok.ast.Node parent = node.getParent ( ) ; while ( parent instanceof lombok.ast.MethodInvocation ) { lombok.ast.MethodInvocation methodInvocation = ( ( lombok.ast.MethodInvocation ) ( parent ) ) ; if ( ( com.android.tools.lint.checks.CleanupDetector.isTransactionCommitMethodCall ( context , methodInvocation ) ) || ( com.android.tools.lint.checks.CleanupDetector.isShowTransactionMethodCall ( context , methodInvocation ) ) ) { return true ; } parent = parent.getParent ( ) ; } return false ; }

Target:
private static boolean isCommittedInChainedCalls ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { lombok.ast.Node parent = node.getParent ( ) ; while ( parent instanceof lombok.ast.MethodInvocation ) { lombok.ast.MethodInvocation methodInvocation = ( ( lombok.ast.MethodInvocation ) ( parent ) ) ; if ( ( com.android.tools.lint.checks.CleanupDetector.isTransactionCommitMethodCall ( context , methodInvocation ) ) || ( com.android.tools.lint.checks.CleanupDetector.isShowFragmentMethodCall ( context , methodInvocation ) ) ) { return true ; } parent = parent.getParent ( ) ; } return false ; }
Source:
void flushBatchResults ( int scannerId ) { logd ( ( "flushPendingBatchResults - scannerId = " + scannerId ) ) ; if ( ( mBatchScanParms.fullScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.fullScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ) ; waitForCallback ( ) ; } if ( ( mBatchScanParms.truncatedScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.truncatedScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ) ; waitForCallback ( ) ; } setBatchAlarm ( ) ; }

Target:
void flushBatchResults ( int scannerId ) { if ( com.android.bluetooth.gatt.ScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.ScanManager.TAG , ( "flushPendingBatchResults - scannerId = " + scannerId ) ) ; if ( ( mBatchScanParms.fullScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.fullScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ) ; waitForCallback ( ) ; } if ( ( mBatchScanParms.truncatedScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.truncatedScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ) ; waitForCallback ( ) ; } setBatchAlarm ( ) ; }
Source:
private void initializeElementValue ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Annotation annotation , proguard.classfile.util.ElementValue elementValue ) { if ( ( ( annotation != null ) && ( ( annotation.referencedClasses ) != null ) ) && ( ( elementValue.u2elementNameIndex ) != 0 ) ) { java.lang.String name = clazz.getString ( elementValue.u2elementNameIndex ) ; proguard.classfile.util.Clazz referencedClass = annotation.referencedClasses [ 0 ] ; elementValue.referencedClass = referencedClass ; elementValue.referencedMethod = referencedClass.findMethod ( name , null ) ; } }

Target:
private void initializeElementValue ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Annotation annotation , proguard.classfile.util.ElementValue elementValue ) { if ( ( ( annotation != null ) && ( ( annotation.referencedClasses ) != null ) ) && ( ( elementValue.u2elementNameIndex ) != 0 ) ) { java.lang.String name = elementValue.getMethodName ( clazz ) ; proguard.classfile.util.Clazz referencedClass = annotation.referencedClasses [ 0 ] ; elementValue.referencedClass = referencedClass ; elementValue.referencedMethod = referencedClass.findMethod ( name , null ) ; } }
Source:
private void notifyFocusChanged ( com.android.ddmlib.IDevice device ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . focusChanged ( device ) ; } } }

Target:
private void notifyDeviceChanged ( com.android.hierarchyviewerlib.device.IHvDevice device ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . deviceChanged ( device ) ; } } }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( com.android.tools.perflib.heap.ClassInstance.FieldValue field : getValues ( ) ) { if ( ( field.getValue ( ) ) instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) . addReference ( this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) ) ; } } mReferencesAdded = true ; }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( com.android.tools.perflib.heap.ClassInstance.FieldValue field : getValues ( ) ) { if ( ( field.getValue ( ) ) instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) . addReference ( field.getField ( ) , this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) ) ; } } mReferencesAdded = true ; }
Source:
public boolean disables ( java.security.Key key ) { int size = sun.security.util.KeyUtil.getKeySize ( key ) ; if ( size == 0 ) { return true ; } else if ( size > 0 ) { return ( ( size < ( minSize ) ) || ( size > ( maxSize ) ) ) || ( ( prohibitedSize ) == size ) ; } return false ; }

Target:
public boolean permits ( java.security.Key key ) { java.util.Set < sun.security.util.DisabledAlgorithmConstraints.Constraint > set = getConstraints ( key.getAlgorithm ( ) ) ; if ( set == null ) { return true ; } for ( sun.security.util.DisabledAlgorithmConstraints.Constraint constraint : set ) { if ( ! ( constraint.permits ( key ) ) ) { if ( ( sun.security.util.DisabledAlgorithmConstraints.debug ) != null ) { sun.security.util.DisabledAlgorithmConstraints.debug.println ( ( ( "keySizeConstraint: failed key " + "constraint check " ) + ( sun.security.util.KeyUtil.getKeySize ( key ) ) ) ) ; } return false ; } } return true ; }
Source:
public void schedule ( long when ) { long delayMs = when - ( android.os.SystemClock.elapsedRealtime ( ) ) ; if ( delayMs < 0 ) delayMs = 0 ; if ( delayMs > ( com.android.server.ConnectivityServiceTest.FakeWakeupMessage.UNREASONABLY_LONG_WAIT ) ) { fail ( ( ( ( "Attempting to send msg more than " + ( com.android.server.ConnectivityServiceTest.FakeWakeupMessage.UNREASONABLY_LONG_WAIT ) ) + "ms into the future: " ) + delayMs ) ) ; } android.os.Message msg = mHandler.obtainMessage ( mCmd , mArg1 , mArg2 , mObj ) ; mHandler.sendMessageDelayed ( msg , delayMs ) ; }

Target:
public void schedule ( long when ) { long delayMs = when - ( android.os.SystemClock.elapsedRealtime ( ) ) ; if ( delayMs < 0 ) delayMs = 0 ; if ( delayMs > ( com.android.server.ConnectivityServiceTest.FakeWakeupMessage.UNREASONABLY_LONG_WAIT ) ) { org.junit.Assert.fail ( ( ( ( "Attempting to send msg more than " + ( com.android.server.ConnectivityServiceTest.FakeWakeupMessage.UNREASONABLY_LONG_WAIT ) ) + "ms into the future: " ) + delayMs ) ) ; } android.os.Message msg = mHandler.obtainMessage ( mCmd , mArg1 , mArg2 , mObj ) ; mHandler.sendMessageDelayed ( msg , delayMs ) ; }
Source:
private void unregisterProfileService ( com.android.bluetooth.btservice.ProfileService profile ) { if ( ! ( mRegisteredProfiles.contains ( profile ) ) ) { android.util.Log.e ( com.android.bluetooth.btservice.AdapterService.TAG , ( ( profile.getName ( ) ) + " not registered (UNREGISTERED)." ) ) ; return ; } mRegisteredProfiles.remove ( profile ) ; }

Target:
private void unregisterProfileService ( com.android.bluetooth.btservice.ProfileService profile ) { if ( ! ( mRegisteredProfiles.contains ( profile ) ) ) { android.util.Log.e ( com.android.bluetooth.btservice.AdapterService.TAG , ( ( profile.getName ( ) ) + " not registered (UNREGISTER)." ) ) ; return ; } mRegisteredProfiles.remove ( profile ) ; }
Source:
public void canBeTethered ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_BLUETOOTH ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }

Target:
public void canBeTethered ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_BLUETOOTH ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . updateInterfaceState ( mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; inOrder.verify ( mTetherHelper ) . updateLinkProperties ( org.mockito.Matchers.eq ( mTestedSm ) , org.mockito.Matchers.any ( android.net.LinkProperties.class ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }
Source:
protected boolean downgradeDatabase ( android.database.sqlite.SQLiteDatabase db , int oldVersion , int newVersion ) { throw new com.android.service.ims.presence.InvalidDBException ( ) ; }

Target:
protected boolean downgradeDatabase ( android.database.sqlite.SQLiteDatabase db , int oldVersion , int newVersion ) { logger.info ( "Enter: downgradeDatabase()" ) ; db.execSQL ( com.android.service.ims.presence.EABProvider.EAB_DROP_STATEMENT ) ; upgradeDatabase ( db , 0 , com.android.service.ims.presence.EABProvider.EAB_DB_VERSION ) ; sendEabResetBroadcast ( ) ; logger.debug ( "Dropped and created new EABPresence table." ) ; logger.info ( "Exit: downgradeDatabase()" ) ; return true ; }
Source:
public boolean checkForCondition ( ) { try { boolean isSuccess = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Add your account" ) ) . waitForExists ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 5L , java.util.concurrent.TimeUnit.SECONDS ) ) ; if ( ! isSuccess ) { return false ; } com.android.devtools.systemimage.uitest.utils.AccountManager.loginGoogleAccount ( mDevice , mUsername , mPassword ) ; return true ; } catch ( java.lang.Exception e ) { junit.framework.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; } return false ; }

Target:
public boolean checkForCondition ( ) { try { boolean isSuccess = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Add your account" ) ) . waitForExists ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 5L , java.util.concurrent.TimeUnit.SECONDS ) ) ; if ( ! isSuccess ) { return false ; } com.android.devtools.systemimage.uitest.utils.AccountManager.loginGoogleAccount ( mDevice , mUsername , mPassword ) ; return true ; } catch ( java.lang.Exception e ) { org.junit.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; } return false ; }
Source:
static boolean canOptimizePackage ( android.content.pm.PackageParser.Package pkg ) { return ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) != 0 ; }

Target:
static boolean canOptimizePackage ( android.content.pm.PackageParser.Package pkg ) { if ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) == 0 ) { return false ; } if ( pkg.isPrivilegedApp ( ) ) { return android.os.SystemProperties.getBoolean ( "pm.dexopt.priv-apps" , true ) ; } return true ; }
Source:
void splitFromConference ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "splitFromConference" ) ) ) { try { logOutgoing ( "splitFromConference %s" , callId ) ; mServiceInterface.splitFromConference ( callId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void sendCallEvent ( com.android.server.telecom.Call call , java.lang.String event , android.os.Bundle extras ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "sendCallEvent" ) ) ) { try { logOutgoing ( "sendCallEvent %s %s" , callId , event ) ; mServiceInterface.sendCallEvent ( callId , event , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case android.widget.TextView.Marquee.MESSAGE_START : mStatus = android.widget.TextView.Marquee.MARQUEE_RUNNING ; tick ( ) ; break ; case android.widget.TextView.Marquee.MESSAGE_TICK : tick ( ) ; break ; case android.widget.TextView.Marquee.MESSAGE_RESTART : if ( ( mStatus ) == ( android.widget.TextView.Marquee.MARQUEE_RUNNING ) ) { if ( ( mRepeatLimit ) >= 0 ) { ( mRepeatLimit ) -- ; } start ( mRepeatLimit ) ; } break ; } }

Target:
public void doFrame ( long frameTimeNanos ) { mStatus = android.widget.TextView.Marquee.MARQUEE_RUNNING ; mLastAnimationMs = mChoreographer.getFrameTime ( ) ; tick ( ) ; }
Source:
public void testRewriteGradleMessages ( ) { java.lang.String original = "error example\ntwo line error\nnext line\nsomething else" ; java.lang.String rewriten = mGradleMessageRewriter.rewriteMessages ( original ) ; java.lang.String expected = "Android Gradle Plugin - Build Issue: " + ( ( ( ( ( ( ( "{\"kind\":\"ERROR\",\"text\":\"errorText\",\"sourcePath\":\"error/source\"," + "\"position\":{\"startLine\":1,\"startColumn\":2,\"startOffset\":3," ) + "\"endLine\":4,\"endColumn\":5,\"endOffset\":6},\"original\":\"\"}\n" ) + "Android Gradle Plugin - Build Issue: {\"kind\":\"WARNING\",\"text\":" ) + "\"two line warning\",\"sourcePath\":\"sourcePath\"," ) + "\"position\":{\"startLine\":1,\"startColumn\":2},\"original\":\"\"}\n" ) + "Android Gradle Plugin - Build Issue: {\"kind\":\"SIMPLE\"," ) + "\"text\":\"something else\",\"position\":{},\"original\":\"something else\"}" ) ; assertEquals ( expected.trim ( ) , rewriten.trim ( ) ) ; }

Target:
public void testRewriteGradleMessages ( ) { java.lang.String original = "error example\ntwo line error\nnext line\nsomething else" ; java.lang.String rewriten = mGradleMessageRewriter.rewriteMessages ( original ) ; java.lang.String expected = "{\"kind\":\"ERROR\",\"text\":\"errorText\",\"sourcePath\":\"error/source\"," + ( ( ( ( ( ( "\"position\":{\"startLine\":1,\"startColumn\":2,\"startOffset\":3," + "\"endLine\":4,\"endColumn\":5,\"endOffset\":6},\"original\":\"\"}\n" ) + "{\"kind\":\"WARNING\",\"text\":" ) + "\"two line warning\",\"sourcePath\":\"sourcePath\"," ) + "\"position\":{\"startLine\":1,\"startColumn\":2},\"original\":\"\"}\n" ) + "{\"kind\":\"SIMPLE\"," ) + "\"text\":\"something else\",\"position\":{},\"original\":\"something else\"}" ) ; assertEquals ( expected.trim ( ) , rewriten.trim ( ) ) ; }
Source:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags , boolean samplingEnabled , int intervalUs ) { if ( fd == null ) { throw new java.lang.NullPointerException ( "fd == null" ) ; } dalvik.system.VMDebug.startMethodTracingFd ( traceFileName , fd , dalvik.system.VMDebug.checkBufferSize ( bufferSize ) , flags , samplingEnabled , intervalUs ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags , boolean samplingEnabled , int intervalUs , boolean streamingOutput ) { if ( fd == null ) { throw new java.lang.NullPointerException ( "fd == null" ) ; } dalvik.system.VMDebug.startMethodTracingFd ( traceFileName , fd , dalvik.system.VMDebug.checkBufferSize ( bufferSize ) , flags , samplingEnabled , intervalUs , streamingOutput ) ; }
Source:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table ) { android.database.Cursor cursor = db.query ( table , android.database.DatabaseUtils.countProjection , null , null , null , null , null ) ; try { cursor.moveToFirst ( ) ; return cursor.getLong ( 0 ) ; } finally { cursor.close ( ) ; } }

Target:
public static void cursorLongToContentValuesIfPresent ( android.database.Cursor cursor , android.content.ContentValues values , java.lang.String column ) { final int index = cursor.getColumnIndexOrThrow ( column ) ; if ( ! ( cursor.isNull ( index ) ) ) { values.put ( column , cursor.getLong ( index ) ) ; } }
Source:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ) { com.android.ide.eclipse.adt.internal.resources.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = mResourceType.getXmlString ( item , ( ( com.android.ide.eclipse.adt.internal.ui.ResourceChooser.SHOW_SYSTEM_RESOURCE ) && ( mSystemButton.getSelection ( ) ) ) ) ; } }

Target:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ) { com.android.ide.eclipse.adt.internal.resources.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getXmlString ( mResourceType , item , ( ( com.android.ide.eclipse.adt.internal.ui.ResourceChooser.SHOW_SYSTEM_RESOURCE ) && ( mSystemButton.getSelection ( ) ) ) ) ; } }
Source:
public com.android.monkeyrunner.MonkeyView getViewByAccessibilityIds ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; int windowId = ap.getInt ( 0 ) ; int accessibilityId = ap.getInt ( 1 ) ; com.android.chimpchat.core.IChimpView view = impl.getView ( com.android.chimpchat.core.By.accessibilityIds ( windowId , accessibilityId ) ) ; return new com.android.monkeyrunner.MonkeyView ( view ) ; }

Target:
public com.android.monkeyrunner.MonkeyView getViewByAccessibilityIds ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; int windowId = java.lang.Integer.parseInt ( ap.getString ( 0 ) ) ; long accessibilityId = java.lang.Long.parseLong ( ap.getString ( 1 ) ) ; com.android.chimpchat.core.IChimpView view = impl.getView ( com.android.chimpchat.core.By.accessibilityIds ( windowId , accessibilityId ) ) ; return new com.android.monkeyrunner.MonkeyView ( view ) ; }
Source:
public java.lang.String getName ( ) { return file.equals ( directory ) ? file.getName ( ) : file.getPath ( ) . substring ( ( ( directory.getPath ( ) . length ( ) ) + ( java.io.File.separator.length ( ) ) ) ) . replace ( java.io.File.separatorChar , ClassConstants.INTERNAL_PACKAGE_SEPARATOR ) ; }

Target:
public java.lang.String getName ( ) { return file.equals ( directory ) ? file.getName ( ) : file.getPath ( ) . substring ( ( ( directory.getPath ( ) . length ( ) ) + ( java.io.File.separator.length ( ) ) ) ) . replace ( java.io.File.separatorChar , ClassConstants.PACKAGE_SEPARATOR ) ; }
Source:
public java.util.List < java.lang.Object > getValue ( ) { java.util.List < java.lang.Object > result = new java.util.ArrayList < > ( ) ; for ( com.google.devtools.common.options.OptionPriority priority : com.google.devtools.common.options.OptionPriority.values ( ) ) { if ( optionValues.containsKey ( priority ) ) { result.addAll ( optionValues.get ( priority ) ) ; } } return result ; }

Target:
public java.util.List < java.lang.Object > getValue ( ) { return optionValues.asMap ( ) . entrySet ( ) . stream ( ) . sorted ( java.util.Comparator.comparing ( java.util.Map.Entry :: getKey ) ) . map ( java.util.Map.Entry :: getValue ) . flatMap ( java.util.Collection :: stream ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public boolean processMessage ( android.os.Message message ) { if ( super . processMessage ( message ) ) return true ; maybeLogMessage ( this , message.what ) ; switch ( message.what ) { case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_REQUESTED : android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , "CMD_TETHER_REQUESTED while in local hotspot mode." ) ; break ; case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_CONNECTION_CHANGED : break ; default : return false ; } return true ; }

Target:
public boolean processMessage ( android.os.Message message ) { if ( super . processMessage ( message ) ) return true ; maybeLogMessage ( this , message.what ) ; switch ( message.what ) { case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_REQUESTED : mLog.e ( "CMD_TETHER_REQUESTED while in local-only hotspot mode." ) ; break ; case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_CONNECTION_CHANGED : break ; default : return false ; } return true ; }
Source:
public java.lang.Object clone ( ) { return new java.util.jar.Manifest ( this ) ; }

Target:
public java.lang.Object clone ( ) { java.util.jar.Manifest result ; try { result = ( ( java.util.jar.Manifest ) ( super . clone ( ) ) ) ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( e ) ; } result.cloneAttributesAndEntriesFrom ( this ) ; return result ; }
Source:
public boolean isDrawnLw ( ) { final com.android.server.WindowManagerService.AppWindowToken atoken = mAppToken ; return ( ( ( ( mSurface ) != null ) && ( ! ( mDestroying ) ) ) && ( ! ( mDrawPending ) ) ) && ( ! ( mCommitDrawPending ) ) ; }

Target:
public boolean isVisibleOrBehindKeyguardLw ( ) { final com.android.server.WindowManagerService.AppWindowToken atoken = mAppToken ; return ( ( ( ( ( ( mSurface ) != null ) && ( ! ( mAttachedHidden ) ) ) && ( atoken == null ? mPolicyVisibility : ! ( atoken.hiddenRequested ) ) ) && ( ( mOrientationChanging ) || ( ( ! ( mDrawPending ) ) && ( ! ( mCommitDrawPending ) ) ) ) ) && ( ! ( mExiting ) ) ) && ( ! ( mDestroying ) ) ; }
Source:
public static synchronized int getCacheVersion ( ) { if ( org.apache.harmony.security.fortress.Services.needRefresh ) { ( org.apache.harmony.security.fortress.Services.cacheVersion ) ++ ; synchronized ( org.apache.harmony.security.fortress.Services.services ) { org.apache.harmony.security.fortress.Services.services.clear ( ) ; } org.apache.harmony.security.fortress.Services.cachedSecureRandomService = null ; for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { org.apache.harmony.security.fortress.Services.initServiceInfo ( p ) ; } org.apache.harmony.security.fortress.Services.needRefresh = false ; } return org.apache.harmony.security.fortress.Services.cacheVersion ; }

Target:
private static synchronized java.security.Provider.Service getFirstServiceOfType ( java.lang.String type ) { for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { java.security.Provider.Service s = Engine.door.getService ( p , type ) ; if ( s != null ) { return s ; } } return null ; }
Source:
public com.google.common.collect.ImmutableMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { entries.ensureCapacity ( ( ( entries.size ( ) ) + ( map.size ( ) ) ) ) ; for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return this ; }

Target:
public com.google.common.collect.ImmutableMap.Builder < K , V > put ( K key , V value ) { ensureCapacity ( ( ( size ) + 1 ) ) ; com.google.common.collect.ImmutableMapEntry.TerminalEntry < K , V > entry = com.google.common.collect.ImmutableMap.entryOf ( key , value ) ; entries [ ( ( size ) ++ ) ] = entry ; return this ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mFile = java.io.File.createTempFile ( "test" , "txt" ) ; com.android.io.FileWrapper fw = new com.android.io.FileWrapper ( mFile ) ; fw.setContents ( new java.io.ByteArrayInputStream ( "1234" . getBytes ( com.google.common.base.Charsets.UTF_8 ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; java.lang.reflect.Method method = com.android.bluetooth.btservice.AdapterService.class . getDeclaredMethod ( "setAdapterService" , com.android.bluetooth.btservice.AdapterService.class ) ; method.setAccessible ( true ) ; method.invoke ( null , mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }

Target:
public void tearDown ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { com.android.bluetooth.TestUtils.clearAdapterService ( mMockAdapterService ) ; mMockAdapterService = null ; mProfiles = null ; }
Source:
private void recordInheritedMethods ( ) { com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder recorder = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder ( ) ; java.lang.String internalName = superName ; while ( internalName != null ) { org.objectweb.asm.ClassReader bytecode = bootclasspath.readIfKnown ( internalName ) ; if ( bytecode == null ) { bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( internalName ) , "Not found: %s" , internalName ) ; } bytecode.accept ( recorder , ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; internalName = bytecode.getSuperName ( ) ; } }

Target:
private void recordInheritedMethods ( ) { com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder recorder = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder ( ) ; java.lang.String internalName = superName ; while ( internalName != null ) { org.objectweb.asm.ClassReader bytecode = bootclasspath.readIfKnown ( internalName ) ; if ( bytecode == null ) { bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( internalName ) , "Superclass not found: %s" , internalName ) ; } bytecode.accept ( recorder , ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; internalName = bytecode.getSuperName ( ) ; } }
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] getSelectionAsElements ( ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > elements = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection cs : mDragSelection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = cs.getViewInfo ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement e = transformToSimpleElement ( vi ) ; elements.add ( e ) ; } return elements.toArray ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ elements.size ( ) ] ) ; }

Target:
public void dragSetData ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( org.eclipse.swt.dnd.TextTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = getSelectionAsText ( mDragSelection ) ; return ; } if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = mDragElements ; return ; } e.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; e.doit = false ; }
Source:
private java.lang.String getRawTargetSdkVersion ( ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > usesSdk = getByTypeAndKey ( ManifestModel.NodeTypes.USES_SDK , null ) ; if ( usesSdk.isPresent ( ) ) { com.google.common.base.Optional < com.android.manifmerger.XmlAttribute > targetSdkVersion = usesSdk.get ( ) . getAttribute ( com.android.manifmerger.XmlNode.fromXmlName ( "android:targetSdkVersion" ) ) ; if ( targetSdkVersion.isPresent ( ) ) { return targetSdkVersion.get ( ) . getValue ( ) ; } } return getMinSdkVersion ( ) ; }

Target:
private java.lang.String getRawTargetSdkVersion ( ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > usesSdk = getByTypeAndKey ( ManifestModel.NodeTypes.USES_SDK , null ) ; if ( usesSdk.isPresent ( ) ) { com.google.common.base.Optional < com.android.manifmerger.XmlAttribute > targetSdkVersion = usesSdk.get ( ) . getAttribute ( com.android.manifmerger.XmlNode.fromXmlName ( "android:targetSdkVersion" ) ) ; if ( targetSdkVersion.isPresent ( ) ) { return targetSdkVersion.get ( ) . getValue ( ) ; } } return getRawMinSdkVersion ( ) ; }
Source:
public void stkProactiveCommand ( int var1 , java.lang.String var2 ) { }

Target:
public void stkProactiveCommand ( int indicationType , java.lang.String cmd ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_STK_PROACTIVE_COMMAND ) ; if ( ( mRil.mCatProCmdRegistrant ) != null ) { mRil.mCatProCmdRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , cmd , null ) ) ; } }
Source:
public void report ( java.util.List < java.lang.String > dexPaths ) { if ( dexPaths.isEmpty ( ) ) { return ; } java.lang.String packageName = android.app.ActivityThread.currentPackageName ( ) ; try { android.app.ActivityThread.getPackageManager ( ) . notifyDexLoad ( packageName , dexPaths , dalvik.system.VMRuntime.getRuntime ( ) . vmInstructionSet ( ) ) ; } catch ( android.os.RemoteException re ) { android.util.Slog.e ( android.app.DexLoadReporter.TAG , ( "Failed to notify PM about dex load for package " + packageName ) , re ) ; } }

Target:
private void notifyPackageManager ( java.util.List < java.lang.String > dexPaths ) { java.lang.String packageName = android.app.ActivityThread.currentPackageName ( ) ; try { android.app.ActivityThread.getPackageManager ( ) . notifyDexLoad ( packageName , dexPaths , dalvik.system.VMRuntime.getRuntime ( ) . vmInstructionSet ( ) ) ; } catch ( android.os.RemoteException re ) { android.util.Slog.e ( android.app.DexLoadReporter.TAG , ( "Failed to notify PM about dex load for package " + packageName ) , re ) ; } }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = c.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
public void TestGetRulesSetDisplayName ( ) { com.ibm.icu.text.RuleBasedNumberFormat rbnf = new com.ibm.icu.text.RuleBasedNumberFormat ( "dummy" ) ; try { rbnf.getRuleSetDisplayName ( "" , new com.ibm.icu.util.ULocale ( "en_US" ) ) ; errln ( ( "RuleBasedNumberFormat.getRuleSetDisplayName(String ruleSetName, ULocale loc) " + "was suppose to have an exception." ) ) ; } catch ( java.lang.Exception e ) { } try { rbnf.getRuleSetDisplayName ( "dummy" , new com.ibm.icu.util.ULocale ( "en_US" ) ) ; errln ( ( "RuleBasedNumberFormat.getRuleSetDisplayName(String ruleSetName, ULocale loc) " + "was suppose to have an exception." ) ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void TestGetRulesSetDisplayName ( ) { com.ibm.icu.text.RuleBasedNumberFormat rbnf = new com.ibm.icu.text.RuleBasedNumberFormat ( "dummy" ) ; try { rbnf.getRuleSetDisplayName ( "" , new com.ibm.icu.util.ULocale ( "en_US" ) ) ; errln ( ( "RuleBasedNumberFormat.getRuleSetDisplayName(String ruleSetName, ULocale loc) " + "was suppose to have an exception." ) ) ; } catch ( java.lang.Exception ignored ) { } try { rbnf.getRuleSetDisplayName ( "dummy" , new com.ibm.icu.util.ULocale ( "en_US" ) ) ; errln ( ( "RuleBasedNumberFormat.getRuleSetDisplayName(String ruleSetName, ULocale loc) " + "was suppose to have an exception." ) ) ; } catch ( java.lang.Exception ignored ) { } }
Source:
private boolean isScoAcceptable ( ) { if ( mForceScoAudio ) { return true ; } if ( ! ( mService.getAudioRouteAllowed ( ) ) ) { return false ; } if ( ( isInCall ( ) ) || ( mVoiceRecognitionStarted ) ) { return true ; } if ( ( isRinging ( ) ) && ( android.bluetooth.BluetoothHeadset.isInbandRingingSupported ( mService ) ) ) { return true ; } return false ; }

Target:
private boolean isScoAcceptable ( ) { if ( mForceScoAudio ) { return true ; } if ( ! ( mService.getAudioRouteAllowed ( ) ) ) { return false ; } if ( ( isInCall ( ) ) || ( mVoiceRecognitionStarted ) ) { return true ; } if ( ( isRinging ( ) ) && ( mService.isInbandRingingEnabled ( ) ) ) { return true ; } return false ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { new com.ibm.icu.dev.test.shaping.ArabicShapingRegTest ( ) . run ( args ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( e ) ; } }

Target:
private boolean getStaticCharacterHelperFunctionValue ( java.lang.String methodName , char testValue ) throws java.lang.Exception { java.lang.reflect.Method m = com.ibm.icu.text.ArabicShaping.class . getDeclaredMethod ( methodName , java.lang.Character.TYPE ) ; m.setAccessible ( true ) ; java.lang.Object returnValue = m.invoke ( null , testValue ) ; if ( java.lang.Integer.class . isInstance ( returnValue ) ) { return ( ( java.lang.Integer ) ( returnValue ) ) == 1 ; } return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
public int getVersionCode ( @ com.android.annotations.NonNull java.io.File manifestFile ) { javax.xml.xpath.XPath xpath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; try { java.lang.String value = xpath.evaluate ( "/manifest/@android:versionCode" , new org.xml.sax.InputSource ( new java.io.FileInputStream ( manifestFile ) ) ) ; if ( value != null ) { return java.lang.Integer.parseInt ( value ) ; } } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( java.io.FileNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } catch ( java.lang.NumberFormatException e ) { } return - 1 ; }

Target:
private static java.lang.String getStringValue ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.lang.String xPath ) { javax.xml.xpath.XPath xpath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; java.io.FileInputStream fis = null ; try { fis = new java.io.FileInputStream ( file ) ; return xpath.evaluate ( xPath , new org.xml.sax.InputSource ( fis ) ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( java.io.FileNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } finally { com.google.common.io.Closeables.closeQuietly ( fis ) ; } return null ; }
Source:
public boolean isApplicable ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { if ( ( forNameMethodId ) == null ) { forNameMethodId = javaLangClass.getMethodId ( com.android.jack.transformations.ast.string.parameterrefiners.ForNameParameterRefiner.FORNAME_METHOD_NAME , java.util.Collections.singletonList ( ( ( com.android.jack.ir.ast.JType ) ( javaLangString ) ) ) , MethodKind.STATIC ) ; } if ( ( call.getReceiverType ( ) . equals ( javaLangClass ) ) && ( call.getMethodId ( ) . equals ( forNameMethodId ) ) ) { assert call.getType ( ) . equals ( javaLangClass ) ; return true ; } return false ; }

Target:
public boolean isApplicable ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { if ( ( forNameMethodId ) == null ) { forNameMethodId = javaLangClass.getMethodId ( com.android.jack.transformations.ast.string.parameterrefiners.ForNameParameterRefiner.FORNAME_METHOD_NAME , java.util.Collections.singletonList ( ( ( com.android.jack.ir.ast.JType ) ( javaLangString ) ) ) , MethodKind.STATIC ) ; } if ( ( call.getReceiverType ( ) . isSameType ( javaLangClass ) ) && ( call.getMethodId ( ) . equals ( forNameMethodId ) ) ) { assert call.getType ( ) . isSameType ( javaLangClass ) ; return true ; } return false ; }
Source:
void systemReady ( ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "systemReady" ) ; android.content.ContentResolver cr = mContext.getContentResolver ( ) ; if ( ( Settings.Global.getInt ( cr , Settings.Global.NETWORK_SCORING_PROVISIONED , 0 ) ) == 0 ) { java.lang.String defaultPackage = mContext.getResources ( ) . getString ( R.string.config_defaultNetworkScorerPackageName ) ; if ( ! ( android.text.TextUtils.isEmpty ( defaultPackage ) ) ) { mNetworkScorerAppManager.setActiveScorer ( defaultPackage ) ; } Settings.Global.putInt ( cr , Settings.Global.NETWORK_SCORING_PROVISIONED , 1 ) ; } registerPackageMonitorIfNeeded ( ) ; }

Target:
public void onChange ( boolean selfChange ) { onChange ( selfChange , null ) ; }
Source:
public java.nio.ByteBuffer putFloat ( float value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putFloat ( float value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; position = newPosition ; return this ; }
Source:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onDetachedFromWindow ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.detach ( ) ; } }

Target:
public void detachGLFunctor ( ) { if ( ( mGLfunctor ) != null ) { mGLfunctor.detach ( ) ; } }
Source:
public void onDraw ( final android.graphics.Canvas canvas ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDraw ( canvas ) ; } } ) ; return ; } mAwContents.onDraw ( canvas ) ; }

Target:
public void onWindowVisibilityChanged ( final int visibility ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowVisibilityChanged ( visibility ) ; } } ) ; return ; } mAwContents.onWindowVisibilityChanged ( visibility ) ; }
Source:
protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { mBackgroundSizeChanged = true ; final android.view.View.AttachInfo ai = mAttachInfo ; if ( ai != null ) { ai.mViewScrollChanged = true ; } }

Target:
protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { if ( android.view.accessibility.AccessibilityManager.getInstance ( mContext ) . isEnabled ( ) ) { postSendViewScrolledAccessibilityEventCallback ( ) ; } mBackgroundSizeChanged = true ; final android.view.View.AttachInfo ai = mAttachInfo ; if ( ai != null ) { ai.mViewScrollChanged = true ; } }
Source:
static com.google.devtools.common.options.OptionsParser.DocumentationLevel documentationLevel ( java.lang.String category ) { if ( "undocumented" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.UNDOCUMENTED ; } else if ( "hidden" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.HIDDEN ; } else { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.DOCUMENTED ; } }

Target:
static com.google.devtools.common.options.OptionsParser.DocumentationLevel documentationLevel ( java.lang.String category ) { if ( "undocumented" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.UNDOCUMENTED ; } else if ( "hidden" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.HIDDEN ; } else if ( "internal" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.INTERNAL ; } else { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.DOCUMENTED ; } }
Source:
void internalDelete ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotDeleteFileException { ensureFullyLoaded ( ) ; synchronized ( wrappedDirs ) { for ( com.android.sched.vfs.BaseVDir wrappedDir : wrappedDirs ) { try { com.android.sched.vfs.BaseVFile vFile = wrappedDir.getVFile ( name ) ; wrappedDir.delete ( vFile ) ; } catch ( com.android.sched.util.file.NotFileException e ) { } catch ( com.android.sched.util.file.NoSuchFileException e ) { } } } }

Target:
void internalDelete ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotDeleteFileException { ensureFullyLoaded ( ) ; synchronized ( wrappedDirs ) { for ( com.android.sched.vfs.BaseVDir wrappedDir : wrappedDirs ) { try { com.android.sched.vfs.BaseVFile vFile = wrappedDir.getVFile ( name ) ; wrappedDir.delete ( vFile ) ; if ( com.android.sched.vfs.UnionVFS.SHALLOW_DELETE ) { return ; } } catch ( com.android.sched.util.file.NotFileException e ) { } catch ( com.android.sched.util.file.NoSuchFileException e ) { } } } }
Source:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( typeIndex ) + " " ) + ( supertypeIndex ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( buffer.typeNames ( ) . get ( typeIndex ) ) ; if ( ( supertypeIndex ) != ( com.android.dx.io.ClassDef.NO_INDEX ) ) { result.append ( " extends " ) . append ( buffer.typeNames ( ) . get ( supertypeIndex ) ) ; } return result.toString ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( typeIndex ) + " " ) + ( supertypeIndex ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( buffer.typeNames ( ) . get ( typeIndex ) ) ; if ( ( supertypeIndex ) != ( com.android.dex.ClassDef.NO_INDEX ) ) { result.append ( " extends " ) . append ( buffer.typeNames ( ) . get ( supertypeIndex ) ) ; } return result.toString ( ) ; }
Source:
public void invokeZoomPicker ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { invokeZoomPicker ( ) ; } } ) ; return ; } mAwContents.invokeZoomPicker ( ) ; }

Target:
public WebView.HitTestResult getHitTestResult ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebView.HitTestResult ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebView.HitTestResult > ( ) { @ java.lang.Override public WebView.HitTestResult call ( ) { return getHitTestResult ( ) ; } } ) ; return ret ; } org.chromium.android_webview.AwContents.HitTestData data = mAwContents.getLastHitTestResult ( ) ; mHitTestResult.setType ( data.hitTestResultType ) ; mHitTestResult.setExtra ( data.hitTestResultExtraData ) ; return mHitTestResult ; }
Source:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) . never ( ) ) . pullExternalCall ( ids.mCallId ) ; }

Target:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( ids.mConnectionId ) ; }
Source:
private native void gattClientEnableAdvNative ( int advertiserId , int min_interval , int max_interval , int adv_type , int chnl_map , int tx_power , int timeout_s ) ;

Target:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; } else { gattAdvertiseNative ( client.advertiserId , enable ) ; } }