auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void removeCapability ( long capability , android.telephony.ims.internal.aidl.IImsCapabilityCallback c ) throws android.os.RemoteException { this . removeCapability ( capability , c ) ; }

Target:
private void queryCapabilityConfigurationInternal ( int capability , int radioTech , android.telephony.ims.internal.aidl.IImsCapabilityCallback c ) { boolean enabled = queryCapabilityConfiguration ( capability , radioTech ) ; try { if ( c != null ) { c.onQueryCapabilityConfiguration ( capability , radioTech , enabled ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.feature.MmTelFeature.LOG_TAG , "queryCapabilityConfigurationInternal called on dead binder!" ) ; } }
Source:
private boolean isValidDevice ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) return false ; if ( android.bluetooth.BluetoothAdapter.checkBluetoothAddress ( device.getAddress ( ) ) ) return true ; return false ; }

Target:
public boolean disconnectAudio ( android.bluetooth.BluetoothDevice device ) { final android.bluetooth.IBluetoothHeadsetClient service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.disconnectAudio ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadsetClient.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadsetClient.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadsetClient.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadsetClient.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }
Source:
public void timeFloor ( int reps ) { for ( int rep = 0 ; rep < reps ; ++ rep ) { java.lang.StrictMath.floor ( d ) ; } }

Target:
public void timeFloorOverInterestingValues ( int reps ) { for ( int rep = 0 ; rep < reps ; ++ rep ) { for ( int i = 0 ; i < ( benchmarks.regression.StrictMathBenchmark.FLOOR_DOUBLES.length ) ; ++ i ) { java.lang.StrictMath.floor ( benchmarks.regression.StrictMathBenchmark.FLOOR_DOUBLES [ i ] ) ; } } }
Source:
public org.w3c.dom.Node toXml ( org.w3c.dom.Document document ) { return null ; }

Target:
public com.google.common.collect.ImmutableMultimap < java.lang.Integer , com.android.manifmerger.Actions.Record > getResultingSourceMapping ( com.android.manifmerger.XmlDocument xmlDocument ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.manifmerger.XmlLoader.SourceLocation inMemory = XmlLoader.UNKNOWN ; com.android.manifmerger.XmlDocument loadedWithLineNumbers = com.android.manifmerger.XmlLoader.load ( inMemory , xmlDocument.prettyPrint ( ) ) ; com.google.common.collect.ImmutableMultimap.Builder < java.lang.Integer , com.android.manifmerger.Actions.Record > mappingBuilder = com.google.common.collect.ImmutableMultimap.builder ( ) ; for ( com.android.manifmerger.XmlElement xmlElement : loadedWithLineNumbers.getRootNode ( ) . getMergeableElements ( ) ) { parse ( xmlElement , mappingBuilder ) ; } return mappingBuilder.build ( ) ; }
Source:
public void setApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName , android.os.Bundle settings ) { throwIfParentInstance ( "setApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { mService.setApplicationRestrictions ( admin , packageName , settings ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public android.os.Bundle getApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName ) { throwIfParentInstance ( "getApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { return mService.getApplicationRestrictions ( admin , mContext.getPackageName ( ) , packageName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }
Source:
com.android.rs.image2.TestBase changeTest ( com.android.rs.image2.IPTestList.TestName t , boolean setupUI ) { com.android.rs.image2.TestBase tb = com.android.rs.image2.IPTestList.newTest ( t ) ; tb.createBaseTest ( this ) ; if ( setupUI ) { setupBars ( tb ) ; } return tb ; }

Target:
com.android.rs.image2.TestBase changeTest ( com.android.rs.image2.IPTestList.TestName t , boolean setupUI ) { com.android.rs.image2.TestBase tb = com.android.rs.image2.IPTestList.newTest ( t ) ; mTestNameChanged = true ; mTestName = t.toString ( ) ; mProcessor.mHandler.sendMessage ( android.os.Message.obtain ( ) ) ; tb.createBaseTest ( this ) ; if ( setupUI ) { setupBars ( tb ) ; } return tb ; }
Source:
public int getTargetApiLevel ( ) { com.google.common.base.Preconditions.checkState ( ( ( mTarget ) != null ) , "Target not set." ) ; return mTarget.getVersion ( ) . getApiLevel ( ) ; }

Target:
private void doMerge ( com.android.manifmerger.ManifestMerger merger , java.io.File output , java.io.File input , java.util.List < java.io.File > subManifests , java.util.Map < java.lang.String , java.lang.String > injectionMap , java.lang.String packageOverride ) { if ( ! ( merger.process ( output , input , subManifests.toArray ( new java.io.File [ subManifests.size ( ) ] ) , injectionMap , packageOverride ) ) ) { throw new java.lang.RuntimeException ( ) ; } }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] getEvents ( int count ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return null ; } mTestSensorEventListener.waitForEvents ( count ) ; android.hardware.cts.helpers.TestSensorEvent [ ] events = mTestSensorEventListener.getEvents ( ) ; mTestSensorEventListener.clearEvents ( ) ; return events ; }

Target:
public void waitForEvents ( int eventCount ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return ; } mTestSensorEventListener.waitForEvents ( eventCount ) ; }
Source:
public void mark ( int readlimit ) { }

Target:
public void mark ( int readlimit ) { in.mark ( readlimit ) ; if ( ( skippingCipher ) != null ) { markPosition = skippingCipher.getPosition ( ) ; } if ( ( buf ) != null ) { markBuf = new byte [ buf.length ] ; java.lang.System.arraycopy ( buf , 0 , markBuf , 0 , buf.length ) ; } markBufOff = bufOff ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.String name = java.lang.System.getProperty ( "java.vm.name" ) ; if ( ! ( "Dalvik" . equals ( name ) ) ) { java.lang.System.out.println ( ( "This test is not supported on " + name ) ) ; return ; } Main.testMethodTracing ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.String name = java.lang.System.getProperty ( "java.vm.name" ) ; if ( ! ( "Dalvik" . equals ( name ) ) ) { java.lang.System.out.println ( ( "This test is not supported on " + name ) ) ; return ; } Main.testMethodTracing ( ) ; Main.testRuntimeStat ( ) ; }
Source:
private void setBrowsedPlayerRequestFromNative ( byte [ ] address , int playerId ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_SET_BR_PLAYER , playerId , 0 ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
public void adjustVolume ( int direction ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "adjustVolume: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME , direction , 0 ) ; handler.sendMessage ( msg ) ; }
Source:
private static boolean ensureContextMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.client.api.JavaParser.TypeDescriptor containingClass = method.getContainingClass ( ) ; if ( ( containingClass.matchesName ( "android.content.ContextWrapper" ) ) || ( containingClass.matchesName ( "android.content.Context" ) ) ) { return true ; } } return false ; }

Target:
private static boolean ensureContextMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass containingClass = method.getContainingClass ( ) ; if ( containingClass.isSubclassOf ( "android.content.Context" , false ) ) { return true ; } } return false ; }
Source:
public void unregisterListeners ( org.eclipse.swt.dnd.DragSource dragSource , org.eclipse.swt.dnd.DropTarget dropTarget ) { if ( ( mListener ) != null ) { mCanvas.removeMouseMoveListener ( mListener ) ; mCanvas.removeMouseListener ( mListener ) ; mCanvas.removeKeyListener ( mListener ) ; mListener = null ; } if ( dragSource != null ) { dragSource.removeDragListener ( mDragSourceListener ) ; } if ( dropTarget != null ) { dropTarget.removeDropListener ( mDropListener ) ; } }

Target:
public void unregisterListeners ( org.eclipse.swt.dnd.DragSource dragSource , org.eclipse.swt.dnd.DropTarget dropTarget ) { if ( mCanvas.isDisposed ( ) ) { mListener = null ; return ; } if ( ( mListener ) != null ) { mCanvas.removeMouseMoveListener ( mListener ) ; mCanvas.removeMouseListener ( mListener ) ; mCanvas.removeKeyListener ( mListener ) ; mListener = null ; } if ( dragSource != null ) { dragSource.removeDragListener ( mDragSourceListener ) ; } if ( dropTarget != null ) { dropTarget.removeDropListener ( mDropListener ) ; } }
Source:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }

Target:
public android.webkit.WebBackForwardList saveState ( final android.os.Bundle outState ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return saveState ( outState ) ; } } ) ; return ret ; } if ( outState == null ) return null ; if ( ! ( mAwContents.saveState ( outState ) ) ) return null ; return copyBackForwardList ( ) ; }
Source:
public static void notifyShowDialogToBlockNumberAndOptionallyReportSpam ( android.content.Context context , java.lang.String normalizedNumber , java.lang.String countryIso , int callType ) { com.android.dialer.common.LogUtil.enterBlock ( "ShowBlockReportSpamDialogNotifier.notifyShowDialogToBlockNumberAndOptionallyReportSpam" ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.setAction ( ShowBlockReportSpamDialogReceiver.ACTION_SHOW_DIALOG_TO_BLOCK_NUMBER_AND_OPTIONALLY_REPORT_SPAM ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_NUMBER , normalizedNumber ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_COUNTRY_ISO , countryIso ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_CALL_TYPE , callType ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( context ) . sendBroadcast ( intent ) ; }

Target:
public static void notifyShowDialogToBlockNumberAndOptionallyReportSpam ( android.content.Context context , java.lang.String normalizedNumber , java.lang.String countryIso , int callType , com.android.dialer.logging.ReportingLocation.Type reportingLocation ) { com.android.dialer.common.LogUtil.enterBlock ( "ShowBlockReportSpamDialogNotifier.notifyShowDialogToBlockNumberAndOptionallyReportSpam" ) ; android.content.Intent intent = new android.content.Intent ( ) ; intent.setAction ( ShowBlockReportSpamDialogReceiver.ACTION_SHOW_DIALOG_TO_BLOCK_NUMBER_AND_OPTIONALLY_REPORT_SPAM ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_NUMBER , normalizedNumber ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_COUNTRY_ISO , countryIso ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_CALL_TYPE , callType ) ; intent.putExtra ( ShowBlockReportSpamDialogReceiver.EXTRA_REPORTING_LOCATION , reportingLocation.getNumber ( ) ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( context ) . sendBroadcast ( intent ) ; }
Source:
public void testGetImei ( ) { java.lang.String imei = mTelephonyManager.getImei ( ) ; if ( ( ( mTelephonyManager.getSimState ( ) ) == ( android.telephony.TelephonyManager.SIM_STATE_ABSENT ) ) && ( imei == null ) ) { return ; } verifyImei ( imei , mTelephonyManager.getDeviceId ( ) ) ; }

Target:
public void testGetImei ( ) { java.lang.String imei = mTelephonyManager.getImei ( ) ; if ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { if ( ! ( android.text.TextUtils.isEmpty ( imei ) ) ) { android.telephony.cts.TelephonyManagerTest.assertImei ( imei ) ; } else { org.junit.Assert.assertFalse ( android.text.TextUtils.isEmpty ( mTelephonyManager.getMeid ( ) ) ) ; } } }
Source:
public void testZenMode ( ) throws java.lang.Exception { final android.service.notification.NotificationServiceDumpProto dump = getDump ( android.service.notification.NotificationServiceDumpProto.parser ( ) , "dumpsys notification --proto" ) ; android.service.notification.ZenModeProto zenProto = dump.getZen ( ) ; assertEquals ( ZenMode.ZEN_MODE_OFF , zenProto.getZenMode ( ) ) ; assertEquals ( 0 , zenProto.getEnabledActiveConditionsCount ( ) ) ; if ( ! ( getDevice ( ) . hasFeature ( com.android.server.cts.NotificationTest.FEATURE_WATCH ) ) ) { assertEquals ( 0 , zenProto.getSuppressedEffects ( ) ) ; assertEquals ( 0 , zenProto.getSuppressorsCount ( ) ) ; } zenProto.getPolicy ( ) ; }

Target:
public void testZenMode ( ) throws java.lang.Exception { final android.service.notification.NotificationServiceDumpProto dump = getDump ( android.service.notification.NotificationServiceDumpProto.parser ( ) , "dumpsys notification --proto" ) ; android.service.notification.ZenModeProto zenProto = dump.getZen ( ) ; switch ( zenProto.getZenMode ( ) ) { case ZEN_MODE_OFF : case ZEN_MODE_IMPORTANT_INTERRUPTIONS : case ZEN_MODE_NO_INTERRUPTIONS : case ZEN_MODE_ALARMS : break ; default : fail ( "Unexpected ZenMode value" ) ; break ; } zenProto.getPolicy ( ) ; }
Source:
public com.android.sched.vfs.InputVFile getBinary ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath , @ javax.annotation.Nonnull com.android.jack.library.BinaryKind binaryKind ) throws com.android.jack.library.BinaryDoesNotExistException { try { return libraryVDir.getInputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( BinaryKind.DEX.getFileExtension ( ) ) ) , '/' ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.BinaryDoesNotExistException ( getLocation ( ) , typePath , binaryKind ) ; } }

Target:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return libraryVDir.getInputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( fileType.getFileExtension ( ) ) ) , '/' ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public void start ( ) throws java.io.IOException { if ( isStarted ( ) ) { throw new java.lang.IllegalStateException ( "Already started!" ) ; } log.verbose ( ( "executing " + ( args ) ) ) ; java.lang.ProcessBuilder processBuilder = new java.lang.ProcessBuilder ( ) . command ( args ) . redirectErrorStream ( true ) ; processBuilder.environment ( ) . putAll ( env ) ; process = processBuilder.start ( ) ; }

Target:
public void start ( ) throws java.io.IOException { if ( isStarted ( ) ) { throw new java.lang.IllegalStateException ( "Already started!" ) ; } log.verbose ( ( ( "executing " + ( args ) ) + ( ( workingDir ) != null ? " in " + ( workingDir ) : "" ) ) ) ; java.lang.ProcessBuilder processBuilder = new java.lang.ProcessBuilder ( ) . directory ( workingDir ) . command ( args ) . redirectErrorStream ( true ) ; processBuilder.environment ( ) . putAll ( env ) ; process = processBuilder.start ( ) ; }
Source:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; when ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) . thenReturn ( true ) ; when ( mWifiConfigStore.areStoresPresent ( ) ) . thenReturn ( false ) ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }

Target:
public void testHandleUserSwitchAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user2 = ( com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ) + 1 ; when ( mUserManager.isUserUnlockingOrUnlocked ( user2 ) ) . thenReturn ( false ) ; mWifiConfigManager.handleUserSwitch ( user2 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }
Source:
public void TestLast ( ) { com.ibm.icu.text.RuleBasedBreakIterator rbbi = new com.ibm.icu.text.RuleBasedBreakIterator ( "" ) ; rbbi.setText ( ( ( java.text.CharacterIterator ) ( null ) ) ) ; if ( ( rbbi.last ( ) ) != ( com.ibm.icu.text.BreakIterator.DONE ) ) { errln ( ( "RuleBasedBreakIterator.last() was suppose to return " + "BreakIterator.DONE when the object has a null fText." ) ) ; } }

Target:
public void TestLast ( ) { com.ibm.icu.text.RuleBasedBreakIterator rbbi = new com.ibm.icu.text.RuleBasedBreakIterator ( ".;" ) ; rbbi.setText ( ( ( java.text.CharacterIterator ) ( null ) ) ) ; if ( ( rbbi.last ( ) ) != ( com.ibm.icu.text.BreakIterator.DONE ) ) { errln ( ( "RuleBasedBreakIterator.last() was suppose to return " + "BreakIterator.DONE when the object has a null fText." ) ) ; } }
Source:
public void test_equalsLjava_lang_Object ( ) { java.text.DecimalFormat format = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( java.util.Locale.US ) ) ) ; java.text.DecimalFormat cloned = ( ( java.text.DecimalFormat ) ( format.clone ( ) ) ) ; cloned.setDecimalFormatSymbols ( new java.text.DecimalFormatSymbols ( java.util.Locale.US ) ) ; assertEquals ( format , cloned ) ; java.util.Currency c = java.util.Currency.getInstance ( java.util.Locale.US ) ; cloned.setCurrency ( c ) ; assertEquals ( format , cloned ) ; }

Target:
public void test_equals ( ) { java.text.DecimalFormat format = ( ( java.text.DecimalFormat ) ( java.text.NumberFormat.getInstance ( java.util.Locale.US ) ) ) ; java.text.DecimalFormat cloned = ( ( java.text.DecimalFormat ) ( format.clone ( ) ) ) ; cloned.setDecimalFormatSymbols ( new java.text.DecimalFormatSymbols ( java.util.Locale.US ) ) ; assertEquals ( format , cloned ) ; java.util.Currency c = java.util.Currency.getInstance ( java.util.Locale.US ) ; cloned.setCurrency ( c ) ; assertEquals ( format , cloned ) ; }
Source:
private java.io.File getListingOfDex ( @ javax.annotation.Nonnull java.io.File dex ) throws java.io.FileNotFoundException , java.io.IOException { assert dex.isFile ( ) ; com.android.jack.util.ExecuteFile exec = new com.android.jack.util.ExecuteFile ( new java.lang.String [ ] { "bash" , "-c" , ( ( ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "dexdump" ) . getAbsolutePath ( ) ) + " " ) + ( dex.getAbsolutePath ( ) ) ) + " | grep \" Class descriptor : \" | cut -d\\\' -f2 | sed -e \'s/$/:/\'" } ) ; java.io.File outList = com.android.jack.TestTools.createTempFile ( "types" , ".txt" ) ; exec.setOut ( outList ) ; junit.framework.Assert.assertTrue ( exec.run ( ) ) ; return outList ; }

Target:
private java.lang.String getListingOfDex ( @ javax.annotation.Nonnull java.io.File dex ) throws java.io.IOException { assert dex.isFile ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.jack.dx.io.ClassDef def : new com.android.jack.dx.io.DexBuffer ( dex ) . classDefs ( ) ) { sb.append ( def.getTypeName ( ) ) ; sb.append ( ":" ) ; sb.append ( TextUtils.LINE_SEPARATOR ) ; } return sb.toString ( ) ; }
Source:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage , java.lang.String callingPackage ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT , callingPackage ) ; } }

Target:
public void unhold ( java.lang.String reason ) { if ( ( mState ) == ( CallState.ON_HOLD ) ) { if ( ( mConnectionService ) != null ) { mConnectionService.unhold ( this ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "unhold call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_UNHOLD , reason ) ; } }
Source:
public void onNativeInitializationComplete ( ) { recordBrowserProcessHistogram ( ) ; }

Target:
private void recordBrowserProcessHistogram ( android.content.Context context ) { if ( org.chromium.base.library_loader.Linker.getInstance ( ) . isUsed ( ) ) { nativeRecordChromiumAndroidLinkerBrowserHistogram ( mIsUsingBrowserSharedRelros , mLoadAtFixedAddressFailed , getLibraryLoadFromApkStatus ( context ) , mLibraryLoadTimeMs ) ; } if ( ( org.chromium.base.library_loader.LibraryLoader.sLibraryPreloader ) != null ) { nativeRecordLibraryPreloaderBrowserHistogram ( mLibraryPreloaderStatus ) ; } }
Source:
void conference ( final com.android.server.telecom.Call call , com.android.server.telecom.Call otherCall ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; final java.lang.String otherCallId = mCallIdMapper.getCallId ( otherCall ) ; if ( ( ( callId != null ) && ( otherCallId != null ) ) && ( isServiceValid ( "conference" ) ) ) { try { logOutgoing ( "conference %s %s" , callId , otherCallId ) ; mServiceInterface.conference ( callId , otherCallId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void onPostDialContinue ( com.android.server.telecom.Call call , boolean proceed ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "onPostDialContinue" ) ) ) { try { logOutgoing ( "onPostDialContinue %s %b" , callId , proceed ) ; mServiceInterface.onPostDialContinue ( callId , proceed , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public static long getLastContactDeletedTimestamp ( android.content.Context context , long time ) { android.content.SharedPreferences pref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) ; return pref.getLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_DELETE_PREF_KEY , time ) ; }

Target:
public static long getLastContactDeletedTimestamp ( android.content.Context context , long time ) { long contactDeleteSyncTime = 0 ; android.content.SharedPreferences pref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) ; contactDeleteSyncTime = pref.getLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_DELETE_PREF_KEY , time ) ; return com.android.service.ims.presence.SharedPrefUtil.validateDeviceTimestamp ( context , contactDeleteSyncTime ) ; }
Source:
private com.android.apksigner.AndroidBinXmlParser.Attribute getAttribute ( int index ) { if ( ( mCurrentEvent ) != ( com.android.apksigner.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) { throw new java.lang.IndexOutOfBoundsException ( "Current event not a START_ELEMENT" ) ; } if ( index < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "index must be >= 0" ) ; } if ( index >= ( mCurrentElementAttributeCount ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( "index must be <= attr count (" + ( mCurrentElementAttributeCount ) ) + ")" ) ) ; } parseCurrentElementAttributesIfNotParsed ( ) ; return mCurrentElementAttributes.get ( index ) ; }

Target:
private com.android.apksig.apk.AndroidBinXmlParser.Attribute getAttribute ( int index ) { if ( ( mCurrentEvent ) != ( com.android.apksig.apk.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) { throw new java.lang.IndexOutOfBoundsException ( "Current event not a START_ELEMENT" ) ; } if ( index < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "index must be >= 0" ) ; } if ( index >= ( mCurrentElementAttributeCount ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( "index must be <= attr count (" + ( mCurrentElementAttributeCount ) ) + ")" ) ) ; } parseCurrentElementAttributesIfNotParsed ( ) ; return mCurrentElementAttributes.get ( index ) ; }
Source:
public boolean chainIsNotPinned ( java.util.List < java.security.cert.X509Certificate > chain ) { for ( java.security.cert.X509Certificate cert : chain ) { java.lang.String fingerprint = org.conscrypt.PinListEntry.getFingerprint ( cert ) ; if ( pinnedFingerprints.contains ( fingerprint ) ) { return false ; } } logPinFailure ( chain ) ; return enforcing ; }

Target:
public boolean isChainValid ( java.util.List < java.security.cert.X509Certificate > chain ) { for ( java.security.cert.X509Certificate cert : chain ) { java.lang.String fingerprint = org.conscrypt.PinListEntry.getFingerprint ( cert ) ; if ( pinnedFingerprints.contains ( fingerprint ) ) { return true ; } } logPinFailure ( chain ) ; return ! ( enforcing ) ; }
Source:
public void onVoiceMessageCountChanged ( int count ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onVoiceMessageCountChanged :: count=" + count ) ) ; mPhone.mDefaultPhone.setVoiceMessageCount ( count ) ; }

Target:
public void onVoiceMessageCountUpdate ( int count ) { if ( ( ( mPhone ) != null ) && ( ( mPhone.mDefaultPhone ) != null ) ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onVoiceMessageCountChanged :: count=" + count ) ) ; mPhone.mDefaultPhone.setVoiceMessageCount ( count ) ; } else { loge ( "onVoiceMessageCountUpdate: null phone" ) ; } }
Source:
public void tearDown ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( ( mEnforcingState ) != null ) && ( ! ( mEnforcingState.equals ( com.android.tradefed.targetprep.VtsCoveragePreparer.SELINUX_DISABLED ) ) ) ) { device.executeShellCommand ( ( "setenforce " + ( mEnforcingState ) ) ) ; } if ( ( mDeviceInfoPath ) != null ) { com.android.tradefed.util.FileUtil.recursiveDelete ( mDeviceInfoPath ) ; device.executeShellCommand ( ( "rm -r " + ( com.android.tradefed.targetprep.VtsCoveragePreparer.COVERAGE_CONFIGURE_DST ) ) ) ; } device.executeShellCommand ( "rm -rf /data/misc/trace/*" ) ; }

Target:
public void tearDown ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( ( mEnforcingState ) != null ) && ( ! ( mEnforcingState.equals ( com.android.tradefed.targetprep.VtsCoveragePreparer.SELINUX_DISABLED ) ) ) ) { device.executeShellCommand ( ( "setenforce " + ( mEnforcingState ) ) ) ; } if ( ( mDeviceInfoPath ) != null ) { com.android.tradefed.util.FileUtil.recursiveDelete ( mDeviceInfoPath ) ; device.executeShellCommand ( ( "rm -r " + ( com.android.tradefed.targetprep.VtsCoveragePreparer.COVERAGE_CONFIGURE_DST ) ) ) ; } device.executeShellCommand ( java.lang.String.format ( "rm -rf %s/*" , com.android.tradefed.targetprep.VtsCoveragePreparer.COVERAGE_DATA_PATH ) ) ; }
Source:
private java.lang.String getVersionCodeString ( int versionCode , com.android.ant.MultiApkExportTask.ApkData apkData ) { int trueVersionCode = versionCode * ( com.android.ant.MultiApkExportTask.OFFSET_VERSION_CODE ) ; trueVersionCode += ( apkData.buildInfo ) * ( com.android.ant.MultiApkExportTask.OFFSET_BUILD_INFO ) ; trueVersionCode += apkData.minor ; return java.lang.Integer.toString ( trueVersionCode ) ; }

Target:
private java.lang.String getVersionCodeString ( int versionCode , com.android.sdklib.internal.export.ApkData apkData ) { int trueVersionCode = versionCode * ( com.android.ant.MultiApkExportTask.OFFSET_VERSION_CODE ) ; trueVersionCode += ( apkData.getBuildInfo ( ) ) * ( com.android.ant.MultiApkExportTask.OFFSET_BUILD_INFO ) ; trueVersionCode += apkData.getMinor ( ) ; return java.lang.Integer.toString ( trueVersionCode ) ; }
Source:
public boolean canGoForward ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoForward ( ) ; } } ) ; return ret ; } return mAwContents.canGoForward ( ) ; }

Target:
public boolean canGoBack ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBack ( ) ; } } ) ; return ret ; } return mAwContents.canGoBack ( ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( ( ( ( opcode != ( org.objectweb.asm.Opcodes.INVOKESTATIC ) ) || ( ! ( owner.equals ( "java/lang/Long" ) ) ) ) || ( ! ( name.equals ( "compare" ) ) ) ) || ( ! ( desc.equals ( "(JJ)I" ) ) ) ) { super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; return ; } super . visitInsn ( org.objectweb.asm.Opcodes.LCMP ) ; }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( ( ( ( opcode == ( org.objectweb.asm.Opcodes.INVOKESTATIC ) ) && ( rewriter.unprefix ( owner ) . equals ( "java/lang/Long" ) ) ) && ( name.equals ( "compare" ) ) ) && ( desc.equals ( "(JJ)I" ) ) ) { super . visitInsn ( org.objectweb.asm.Opcodes.LCMP ) ; } else { super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; } }
Source:
public void testOkLibraries ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/classes.jar=>libs/classes.jar" ) ) ; }

Target:
public void testOkClasses ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING , com.android.tools.lint.checks.MissingClassDetector.INSTANTIATABLE , com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }
Source:
public static void stopFetchingChannelLogos ( ) { synchronized ( com.android.tv.data.ChannelLogoFetcher.sLock ) { if ( com.android.tv.data.ChannelLogoFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.ChannelLogoFetcher.TAG , "Request to stop fetching logos." ) ; if ( ( com.android.tv.data.ChannelLogoFetcher.sQueryTask ) != null ) { com.android.tv.data.ChannelLogoFetcher.sQueryTask.cancel ( true ) ; com.android.tv.data.ChannelLogoFetcher.sQueryTask = null ; } if ( ( com.android.tv.data.ChannelLogoFetcher.sFetchTask ) != null ) { com.android.tv.data.ChannelLogoFetcher.sFetchTask.cancel ( true ) ; com.android.tv.data.ChannelLogoFetcher.sFetchTask = null ; } } }

Target:
public static synchronized void startFetchingChannelLogos ( android.content.Context context , java.util.List < com.android.tv.data.Channel > channels ) { if ( ! ( com.android.tv.util.PermissionUtils.hasAccessAllEpg ( context ) ) ) { return ; } if ( ( com.android.tv.data.ChannelLogoFetcher.sFetchTask ) != null ) { com.android.tv.data.ChannelLogoFetcher.sFetchTask.cancel ( true ) ; } if ( com.android.tv.data.ChannelLogoFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.ChannelLogoFetcher.TAG , "Request to start fetching logos." ) ; if ( ( channels == null ) || ( channels.isEmpty ( ) ) ) { return ; } com.android.tv.data.ChannelLogoFetcher.sFetchTask = new com.android.tv.data.ChannelLogoFetcher.FetchLogoTask ( context , channels ) ; com.android.tv.data.ChannelLogoFetcher.sFetchTask.execute ( ) ; }
Source:
private void destroyJava ( ) { mCallbackProxy.blockMessages ( ) ; clearHelpers ( ) ; if ( ( mListBoxDialog ) != null ) { mListBoxDialog.dismiss ( ) ; mListBoxDialog = null ; } if ( ( mWebViewCore ) != null ) { synchronized ( this ) { android.webkit.WebViewCore webViewCore = mWebViewCore ; mWebViewCore = null ; webViewCore.destroy ( ) ; } mPrivateHandler.removeCallbacksAndMessages ( null ) ; } }

Target:
private void destroyJava ( ) { mCallbackProxy.blockMessages ( ) ; clearHelpers ( ) ; if ( ( mListBoxDialog ) != null ) { mListBoxDialog.dismiss ( ) ; mListBoxDialog = null ; } if ( ( mSavePasswordDialog ) != null ) { mSavePasswordDialog.dismiss ( ) ; mSavePasswordDialog = null ; } if ( ( mWebViewCore ) != null ) { synchronized ( this ) { android.webkit.WebViewCore webViewCore = mWebViewCore ; mWebViewCore = null ; webViewCore.destroy ( ) ; } mPrivateHandler.removeCallbacksAndMessages ( null ) ; } }
Source:
static void check ( java.lang.NullPointerException npe , int mainLine , int methodLine , java.lang.String methodName ) { java.lang.System.out.println ( methodName ) ; java.lang.StackTraceElement [ ] trace = npe.getStackTrace ( ) ; Main.checkElement ( trace [ 0 ] , "Main" , methodName , "Main.java" , methodLine ) ; Main.checkElement ( trace [ 1 ] , "Main" , "main" , "Main.java" , mainLine ) ; }

Target:
static void check ( java.lang.NullPointerException npe , int mainLine , int medthodLine , java.lang.String methodName ) { java.lang.System.out.println ( methodName ) ; java.lang.StackTraceElement [ ] trace = npe.getStackTrace ( ) ; Main.checkElement ( trace [ 0 ] , "Main" , methodName , "Main.java" , medthodLine ) ; Main.checkElement ( trace [ 1 ] , "Main" , "main" , "Main.java" , mainLine ) ; }
Source:
public void testExtraPathWithSlash ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.ValidateAddonXmlTest.OPEN_TAG_ADDON ) ) + "<r:extra> <r:revision>1</r:revision> <r:path>path/cannot\\contain\\segments</r:path> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:extra>" ) + ( com.android.sdklib.repository.ValidateAddonXmlTest.CLOSE_TAG_ADDON ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getAddonValidator ( SdkAddonConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-pattern-valid: Value \'path/cannot\\\\contain\\\\segments\' is not facet-valid with respect to pattern.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testExtraPathWithSlash ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.ValidateAddonXmlTest.OPEN_TAG_ADDON ) ) + "<r:extra> <r:revision><r:major>1</r:major></r:revision> <r:path>path/cannot\\contain\\segments</r:path> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:extra>" ) + ( com.android.sdklib.repository.ValidateAddonXmlTest.CLOSE_TAG_ADDON ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getAddonValidator ( SdkAddonConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-pattern-valid: Value \'path/cannot\\\\contain\\\\segments\' is not facet-valid with respect to pattern.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }
Source:
public void onPageStarted ( java.lang.String url ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onPageStarted=" + url ) ) ; mWebViewClient.onPageStarted ( mWebView , url , mWebView.getFavicon ( ) ) ; org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onPageStarted ( java.lang.String url ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onPageStarted=" + url ) ) ; mWebViewClient.onPageStarted ( mWebView , url , mWebView.getFavicon ( ) ) ; org.chromium.base.TraceEvent.end ( ) ; }
Source:
private java.lang.String getTestPath ( ) { com.android.dumprendertree.LayoutTestsAutoRunner runner = ( ( com.android.dumprendertree.LayoutTestsAutoRunner ) ( getInstrumentation ( ) ) ) ; java.lang.String test_path = com.android.dumprendertree.LayoutTestsAutoTest.LAYOUT_TESTS_ROOT ; if ( ( runner.mTestPath ) != null ) { test_path += runner.mTestPath ; } try { test_path = new java.io.File ( test_path ) . getCanonicalPath ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( "LayoutTestsAutoTest" , ( "Cannot get cannonical path " + ( e.getMessage ( ) ) ) ) ; } android.util.Log.v ( "LayoutTestsAutoTest" , ( " Test path : " + test_path ) ) ; return test_path ; }

Target:
private java.lang.String getTestPath ( ) { com.android.dumprendertree.LayoutTestsAutoRunner runner = ( ( com.android.dumprendertree.LayoutTestsAutoRunner ) ( getInstrumentation ( ) ) ) ; java.lang.String test_path = com.android.dumprendertree.LayoutTestsAutoTest.LAYOUT_TESTS_ROOT ; if ( ( runner.mTestPath ) != null ) { test_path += runner.mTestPath ; } test_path = new java.io.File ( test_path ) . getAbsolutePath ( ) ; android.util.Log.v ( "LayoutTestsAutoTest" , ( " Test path : " + test_path ) ) ; return test_path ; }
Source:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; com.android.ide.common.api.INode grandParent = parentNode.getParent ( ) ; if ( ( grandParent != null ) && ( grandParent.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_TABLE_LAYOUT ) ) ) { com.android.ide.common.layout.TableLayoutRule.addTableLayoutActions ( actions , grandParent , children ) ; } }

Target:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; if ( children != null ) { com.android.ide.common.api.INode grandParent = parentNode.getParent ( ) ; if ( ( grandParent != null ) && ( grandParent.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_TABLE_LAYOUT ) ) ) { com.android.ide.common.layout.TableLayoutRule.addTableLayoutActions ( mRulesEngine , actions , grandParent , children ) ; } } }
Source:
public void upgradeToVideo ( ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.upgradeToVideo" ) ; int unpausedVideoState = com.android.incallui.videotech.ims.ImsVideoTech.getUnpausedVideoState ( call.getDetails ( ) . getVideoState ( ) ) ; call.getVideoCall ( ) . sendSessionModifyRequest ( new android.telecom.VideoProfile ( ( unpausedVideoState | ( android.telecom.VideoProfile.STATE_BIDIRECTIONAL ) ) ) ) ; setSessionModificationState ( SessionModificationState.WAITING_FOR_UPGRADE_TO_VIDEO_RESPONSE ) ; logger.logImpression ( DialerImpression.Type.IMS_VIDEO_UPGRADE_REQUESTED ) ; }

Target:
public void upgradeToVideo ( @ android.support.annotation.NonNull android.content.Context context ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.upgradeToVideo" ) ; int unpausedVideoState = com.android.incallui.videotech.ims.ImsVideoTech.getUnpausedVideoState ( call.getDetails ( ) . getVideoState ( ) ) ; call.getVideoCall ( ) . sendSessionModifyRequest ( new android.telecom.VideoProfile ( ( unpausedVideoState | ( android.telecom.VideoProfile.STATE_BIDIRECTIONAL ) ) ) ) ; setSessionModificationState ( SessionModificationState.WAITING_FOR_UPGRADE_TO_VIDEO_RESPONSE ) ; logger.logImpression ( DialerImpression.Type.IMS_VIDEO_UPGRADE_REQUESTED ) ; }
Source:
public void xmlParsing_unknownTimeZoneIdIgnored ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Unknown_Id</id>\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; libcore.util.TimeZoneFinderTest.assertZonesEqual ( libcore.util.TimeZoneFinderTest.zones ( "Europe/London" ) , finder.lookupTimeZonesByCountry ( "gb" ) ) ; }

Target:
public void xmlParsing_unknownTimeZoneIdIgnored ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\" default=\"Europe/London\">\n" ) + " <id>Unknown_Id</id>\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; libcore.util.TimeZoneFinderTest.assertZonesEqual ( libcore.util.TimeZoneFinderTest.zones ( "Europe/London" ) , finder.lookupTimeZonesByCountry ( "gb" ) ) ; }
Source:
static boolean printXmlFile ( @ com.android.annotations.NonNull org.w3c.dom.Document doc , @ com.android.annotations.NonNull java.io.File outFile , @ com.android.annotations.NonNull com.android.sdklib.ISdkLog log ) { try { javax.xml.transform.Transformer tf = javax.xml.transform.TransformerFactory.newInstance ( ) . newTransformer ( ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION , "yes" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.ENCODING , "UTF-8" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.INDENT , "yes" ) ; tf.setOutputProperty ( "{http://xml.apache.org/xslt}indent-amount" , "4" ) ; tf.transform ( new javax.xml.transform.dom.DOMSource ( doc ) , new javax.xml.transform.stream.StreamResult ( outFile ) ) ; return true ; } catch ( javax.xml.transform.TransformerException e ) { log.error ( e , "Failed to write XML file: %s" , outFile ) ; return false ; } }

Target:
static boolean printXmlFile ( @ com.android.annotations.NonNull org.w3c.dom.Document doc , @ com.android.annotations.NonNull java.io.File outFile , @ com.android.annotations.NonNull com.android.manifmerger.IMergerLog log ) { try { javax.xml.transform.Transformer tf = javax.xml.transform.TransformerFactory.newInstance ( ) . newTransformer ( ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION , "yes" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.ENCODING , "UTF-8" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.INDENT , "yes" ) ; tf.setOutputProperty ( "{http://xml.apache.org/xslt}indent-amount" , "4" ) ; tf.transform ( new javax.xml.transform.dom.DOMSource ( doc ) , new javax.xml.transform.stream.StreamResult ( outFile ) ) ; return true ; } catch ( javax.xml.transform.TransformerException e ) { log.error ( Severity.ERROR , new com.android.manifmerger.IMergerLog.FileAndLine ( outFile.getName ( ) , 0 ) , "Failed to write XML file: %1$s" , e.toString ( ) ) ; return false ; } }
Source:
public void testStaticMethod ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method [ ] methods = com.android.jack.java8.parameter.test006.Tests.class . getDeclaredMethods ( ) ; for ( java.lang.reflect.Method method : methods ) { if ( method.isSynthetic ( ) ) { java.lang.reflect.Parameter [ ] parameters = method.getParameters ( ) ; junit.framework.Assert.assertEquals ( 1 , parameters.length ) ; check ( parameters [ 0 ] , "arg0" , false , false , false , com.android.jack.java8.parameter.test006.Tests.MODIFIER_NONE ) ; } } }

Target:
public void testStaticMethod ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method [ ] methods = com.android.jack.java8.parameter.test006.Tests.class . getDeclaredMethods ( ) ; for ( java.lang.reflect.Method method : methods ) { if ( method.isSynthetic ( ) ) { java.lang.reflect.Parameter [ ] parameters = method.getParameters ( ) ; junit.framework.Assert.assertEquals ( 1 , parameters.length ) ; check ( parameters [ 0 ] , "arg0" , false , false , false , ParameterTestModifier.MODIFIER_NONE ) ; } } }
Source:
public com.google.common.collect.ImmutableList < com.android.manifmerger.XmlNode.NodeName > getRecordedAttributeNames ( com.android.manifmerger.XmlNode.NodeKey nodeKey ) { com.android.manifmerger.Actions.DecisionTreeRecord decisionTreeRecord = mRecords.get ( nodeKey ) ; if ( decisionTreeRecord == null ) { return com.google.common.collect.ImmutableList.of ( ) ; } return decisionTreeRecord.getAttributesRecords ( ) . keySet ( ) . asList ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.manifmerger.Actions.NodeRecord > getNodeRecords ( com.android.manifmerger.XmlNode.NodeKey key ) { return mRecords.containsKey ( key ) ? mRecords.get ( key ) . getNodeRecords ( ) : com.google.common.collect.ImmutableList.< com.android.manifmerger.Actions.NodeRecord > of ( ) ; }