auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.sched.vfs.InputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { com.android.sched.vfs.VFS vfs = new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.READ , change ) , com.android.sched.util.file.FileOrDirectory.Permission.READ ) ; return new com.android.sched.vfs.GenericInputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.InputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { com.android.sched.vfs.VFS vfs = new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.READ , change ) , com.android.sched.util.file.FileOrDirectory.Permission.READ ) ; return new com.android.sched.vfs.GenericInputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public void addressUpdated ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { if ( mWifiStateMachine.mInterfaceName.equals ( iface ) ) { if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( ( ( ( ( "addressUpdated: " + address ) + " on " ) + iface ) + " flags " ) + flags ) + " scope " ) + scope ) ) ; } mWifiStateMachine.sendMessage ( android.net.wifi.WifiStateMachine.CMD_IP_ADDRESS_UPDATED , address ) ; } }

Target:
private void maybeLog ( java.lang.String operation , java.lang.String iface , android.net.LinkAddress address ) { if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( ( ( ( ( ( operation + ": " ) + address ) + " on " ) + iface ) + " flags " ) + ( address.getFlags ( ) ) ) + " scope " ) + ( address.getScope ( ) ) ) ) ; } }
Source:
public int patchoat ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.patchoat ( apkPath , uid , isPublic , instructionSet ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , instructionSet , dexoptNeeded ) ; }
Source:
public boolean isDataConnectivityPossible ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isDataConnectivityPossible ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataConnectivityPossible" , e ) ; } return false ; }

Target:
public boolean isDataConnectivityPossible ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isDataConnectivityPossible ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataAllowed" , e ) ; } return false ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.android.server.telecom.Log.setTag ( com.android.server.telecom.tests.TelecomTestCase.TESTING_TAG ) ; mMockitoHelper.setUp ( getContext ( ) , getClass ( ) ) ; mComponentContextFixture = new com.android.server.telecom.tests.ComponentContextFixture ( ) ; com.android.server.telecom.Log.setContext ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) ) ; com.android.server.telecom.Log.sCleanStaleSessions = null ; org.mockito.MockitoAnnotations.initMocks ( this ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { android.telecom.Log.setTag ( com.android.server.telecom.tests.TelecomTestCase.TESTING_TAG ) ; mMockitoHelper.setUp ( getContext ( ) , getClass ( ) ) ; mComponentContextFixture = new com.android.server.telecom.tests.ComponentContextFixture ( ) ; android.telecom.Log.setSessionContext ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; }
Source:
public void findAllAsync ( final java.lang.String searchString ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findAllAsync ( searchString ) ; } } ) ; return ; } mAwContents.findAllAsync ( searchString ) ; }

Target:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }
Source:
public void requestActivityInfo ( android.os.ResultReceiver result ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putParcelable ( BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY , reportActivityInfo ( ) ) ; result.send ( 0 , bundle ) ; }

Target:
public void requestActivityInfo ( android.os.ResultReceiver result ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; mLog.trace ( "requestActivityInfo uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; bundle.putParcelable ( BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY , reportActivityInfo ( ) ) ; result.send ( 0 , bundle ) ; }
Source:
private android.content.Intent waitForNoIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
private android.content.Intent waitForIntent ( int timeoutMs , java.util.concurrent.LinkedBlockingQueue < android.content.Intent > queue ) { try { org.junit.Assert.assertNotNull ( queue ) ; android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNotNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
private java.util.List < com.android.jack.ir.ast.JExpression > getAllExpressionsInPostOrder ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { final java.util.List < com.android.jack.ir.ast.JExpression > result = new java.util.ArrayList < > ( ) ; new com.android.jack.ir.ast.JVisitor ( ) { @ java.lang.Override public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression e ) { result.add ( e ) ; } } . accept ( node ) ; return result ; }

Target:
protected void performCommonChecks ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { }
Source:
public void onPostDialChar ( java.lang.String callId , char nextChar ) throws android.os.RemoteException { com.android.server.telecom.Log.startSession ( "CSW.oPDC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialChar %s %s" , callId , nextChar ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialChar ( nextChar ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void onPostDialChar ( java.lang.String callId , char nextChar ) throws android.os.RemoteException { android.telecom.Log.startSession ( "CSW.oPDC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialChar %s %s" , callId , nextChar ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialChar ( nextChar ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public static boolean isSyntheticCloseResourceMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_SYNTHETIC ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_NAME.equals ( name ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_DESC.equals ( desc ) ) ; }

Target:
public static boolean isSyntheticCloseResourceMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.io.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_SYNTHETIC ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_NAME.equals ( name ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_DESC.equals ( desc ) ) ; }
Source:
public java.lang.String compact ( java.lang.String message ) { if ( ( ( ( fExpected ) == null ) || ( ( fActual ) == null ) ) || ( areStringsEqual ( ) ) ) { return junit.framework.ComparisonCompactor.format ( message , fExpected , fActual ) ; } findCommonPrefix ( ) ; findCommonSuffix ( ) ; java.lang.String expected = compactString ( fExpected ) ; java.lang.String actual = compactString ( fActual ) ; return junit.framework.ComparisonCompactor.format ( message , expected , actual ) ; }

Target:
public java.lang.String compact ( java.lang.String message ) { if ( ( ( ( fExpected ) == null ) || ( ( fActual ) == null ) ) || ( areStringsEqual ( ) ) ) return junit.framework.Assert.format ( message , fExpected , fActual ) ; findCommonPrefix ( ) ; findCommonSuffix ( ) ; java.lang.String expected = compactString ( fExpected ) ; java.lang.String actual = compactString ( fActual ) ; return junit.framework.Assert.format ( message , expected , actual ) ; }
Source:
protected void doBuildPatchFile ( java.io.File olderFile , java.io.File newerFile , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { patchOutput.putNextEntry ( new java.util.zip.ZipEntry ( myPath ) ) ; writeExecutableFlag ( patchOutput , newerFile ) ; writeDiff ( olderFile , newerFile , patchOutput ) ; patchOutput.closeEntry ( ) ; }

Target:
protected void doBuildPatchFile ( java.io.File olderFile , java.io.File newerFile , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { if ( ! ( myIsMove ) ) { patchOutput.putNextEntry ( new java.util.zip.ZipEntry ( myPath ) ) ; writeExecutableFlag ( patchOutput , newerFile ) ; writeDiff ( olderFile , newerFile , patchOutput ) ; patchOutput.closeEntry ( ) ; } }
Source:
public static boolean isDeveloperOptionsEnabled ( android.app.Instrumentation instrumentation ) throws android.support.test.uiautomator.UiObjectNotFoundException { com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "Settings" ) ; android.support.test.uiautomator.UiScrollable itemList = new android.support.test.uiautomator.UiScrollable ( new android.support.test.uiautomator.UiSelector ( ) . resourceIdMatches ( Res.SETTINGS_LIST_CONTAINER_RES ) ) ; itemList.setAsVerticalList ( ) ; try { itemList.getChildByText ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.TextView" ) , "Developer options" ) ; return true ; } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { return false ; } }

Target:
public static boolean isDeveloperOptionsEnabled ( android.app.Instrumentation instrumentation ) throws android.support.test.uiautomator.UiObjectNotFoundException { return com.android.devtools.systemimage.uitest.utils.SettingsUtil.scrollToItem ( instrumentation , "Developer options" ) ; }
Source:
public void screenTurnedOff ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; synchronized ( mLock ) { mScreenOnEarly = false ; mScreenOnFully = false ; } if ( ( mKeyguardDelegate ) != null ) { mKeyguardDelegate.onScreenTurnedOff ( why ) ; } synchronized ( mLock ) { updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } }

Target:
public void goingToSleep ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; if ( com.android.internal.policy.impl.PhoneWindowManager.DEBUG_WAKEUP ) android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "Going to sleep..." ) ; synchronized ( mLock ) { mAwake = false ; mKeyguardDrawComplete = false ; updateWakeGestureListenerLp ( ) ; updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } if ( ( mKeyguardDelegate ) != null ) { mKeyguardDelegate.onScreenTurnedOff ( why ) ; } }
Source:
protected void notifyToolsNeedsToBeRestarted ( int flags ) { java.lang.String msg = null ; if ( ( flags & ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_ADT ) ) != 0 ) { msg = "The Android SDK and AVD Manager that you are currently using has been updated. " + ( "Please also run Eclipse > Help > Check for Updates to see if the Android " + "plug-in needs to be updated." ) ; } else if ( ( flags & ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_SDKMAN ) ) != 0 ) { msg = "The Android SDK and AVD Manager that you are currently using has been updated. " + ( ( "It is recommended that you now close the manager window and re-open it. " + "If you use Eclipse, please run Help > Check for Updates to see if the Android " ) + "plug-in needs to be updated." ) ; } mSdkLog.info ( "%s" , msg ) ; }

Target:
protected void notifyToolsNeedsToBeRestarted ( int flags ) { java.lang.String msg = null ; if ( ( flags & ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_ADT ) ) == ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_ADT ) ) { msg = "The Android SDK and AVD Manager that you are currently using has been updated. " + ( "Please also run Eclipse > Help > Check for Updates to see if the Android " + "plug-in needs to be updated." ) ; } else if ( ( flags & ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_SDKMAN ) ) == ( com.android.sdklib.internal.repository.updater.UpdaterData.TOOLS_MSG_UPDATED_FROM_SDKMAN ) ) { msg = "The Android SDK and AVD Manager that you are currently using has been updated. " + ( ( "It is recommended that you now close the manager window and re-open it. " + "If you use Eclipse, please run Help > Check for Updates to see if the Android " ) + "plug-in needs to be updated." ) ; } else if ( ( flags & ( com.android.sdklib.internal.repository.updater.UpdaterData.NO_TOOLS_MSG ) ) == ( com.android.sdklib.internal.repository.updater.UpdaterData.NO_TOOLS_MSG ) ) { return ; } mSdkLog.info ( "%s" , msg ) ; }
Source:
public void testFormatDurationMinutes ( ) throws java.lang.Exception { assertEquals ( "59 seconds" , android.text.format.DateUtils.formatDuration ( 59000 ) ) ; assertEquals ( "60 seconds" , android.text.format.DateUtils.formatDuration ( 59500 ) ) ; assertEquals ( "1 minute" , android.text.format.DateUtils.formatDuration ( 60000 ) ) ; assertEquals ( "2 minutes" , android.text.format.DateUtils.formatDuration ( 120000 ) ) ; }

Target:
public void test_formatDuration_Minutes ( ) throws java.lang.Exception { assertEquals ( "59 seconds" , android.text.format.DateUtils.formatDuration ( 59000 ) ) ; assertEquals ( "60 seconds" , android.text.format.DateUtils.formatDuration ( 59500 ) ) ; assertEquals ( "1 minute" , android.text.format.DateUtils.formatDuration ( 60000 ) ) ; assertEquals ( "2 minutes" , android.text.format.DateUtils.formatDuration ( 120000 ) ) ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/bytecode/CustomView1.java: Warning: Custom view test/pkg/CustomView1 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + ( ( "src/test/bytecode/CustomView2.java: Warning: Custom view test/pkg/CustomView2 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/CustomView1.java.txt=>src/test/bytecode/CustomView1.java" , "bytecode/CustomView2.java.txt=>src/test/bytecode/CustomView2.java" , "bytecode/CustomView3.java.txt=>src/test/bytecode/CustomView3.java" , "bytecode/CustomView1.class.data=>bin/classes/test/bytecode/CustomView1.class" , "bytecode/CustomView2.class.data=>bin/classes/test/bytecode/CustomView2.class" , "bytecode/CustomView3.class.data=>bin/classes/test/bytecode/CustomView3.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/bytecode/CustomView1.java:5: Warning: Custom view CustomView1 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + "public class CustomView1 extends View {\n" ) + " ~~~~~~~~~~~\n" ) + "src/test/bytecode/CustomView2.java:7: Warning: Custom view CustomView2 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" ) + "public class CustomView2 extends Button {\n" ) + " ~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/CustomView1.java.txt=>src/test/bytecode/CustomView1.java" , "bytecode/CustomView2.java.txt=>src/test/bytecode/CustomView2.java" , "bytecode/CustomView3.java.txt=>src/test/bytecode/CustomView3.java" , "bytecode/CustomView1.class.data=>bin/classes/test/bytecode/CustomView1.class" , "bytecode/CustomView2.class.data=>bin/classes/test/bytecode/CustomView2.class" , "bytecode/CustomView3.class.data=>bin/classes/test/bytecode/CustomView3.class" ) ) ; }
Source:
final void get ( long [ ] dst , int dstOffset , int longCount ) { int byteCount = checkGetBounds ( SizeOf.LONG , dst.length , dstOffset , longCount ) ; this . block.peekLongArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , longCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( int [ ] src , int srcOffset , int intCount ) { int byteCount = checkPutBounds ( SizeOf.INT , src.length , srcOffset , intCount ) ; this . block.pokeIntArray ( ( ( offset ) + ( position ) ) , src , srcOffset , intCount , order.needsSwap ) ; position += byteCount ; }
Source:
android.bluetooth.BluetoothDevice [ ] getBondedDevices ( ) { android.bluetooth.BluetoothDevice [ ] bondedDeviceList = new android.bluetooth.BluetoothDevice [ 0 ] ; synchronized ( mObject ) { if ( mBondedDevices.isEmpty ( ) ) return new android.bluetooth.BluetoothDevice [ 0 ] ; try { bondedDeviceList = mBondedDevices.toArray ( bondedDeviceList ) ; infoLog ( ( "getBondedDevices: length=" + ( bondedDeviceList.length ) ) ) ; return bondedDeviceList ; } catch ( java.lang.ArrayStoreException ee ) { errorLog ( "Error retrieving bonded device array" ) ; return new android.bluetooth.BluetoothDevice [ 0 ] ; } } }

Target:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } if ( mReceiverRegistered ) { mService.unregisterReceiver ( mReceiver ) ; mReceiverRegistered = false ; } mService = null ; mBondedDevices.clear ( ) ; }
Source:
public static java.lang.String getString ( java.nio.ByteBuffer buf , int len ) { char [ ] data = new char [ len ] ; for ( int i = 0 ; i < len ; i ++ ) data [ i ] = buf.getChar ( ) ; return new java.lang.String ( data ) ; }

Target:
public static java.lang.String getString ( java.nio.ByteBuffer buf , int len ) { return com.android.ddmlib.ByteBufferUtil.getString ( buf , len ) ; }
Source:
public static com.android.dialer.historyitemactions.IntentModule newVideoCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . setIsVideoCall ( true ) ) , R.string.video_call , R.drawable.quantum_ic_videocam_white_24 ) ; }

Target:
public static com.android.dialer.historyitemactions.IntentModule newVideoCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . setIsVideoCall ( true ) ) , R.string.video_call , R.drawable.quantum_ic_videocam_vd_white_24 ) ; }
Source:
public android.app.admin.DevicePolicyManager getParentProfileInstance ( android.content.pm.UserInfo uInfo ) { mContext.checkSelfPermission ( android.app.admin.android.Manifest.permission ) ; if ( ! ( uInfo.isManagedProfile ( ) ) ) { throw new java.lang.SecurityException ( ( ( "The user " + ( uInfo.id ) ) + " does not have a parent profile." ) ) ; } return new android.app.admin.DevicePolicyManager ( mContext , true ) ; }

Target:
public android.app.admin.DevicePolicyManager getParentProfileInstance ( android.content.pm.UserInfo uInfo ) { mContext.checkSelfPermission ( android.app.admin.android.Manifest.permission ) ; if ( ! ( uInfo.isManagedProfile ( ) ) ) { throw new java.lang.SecurityException ( ( ( "The user " + ( uInfo.id ) ) + " does not have a parent profile." ) ) ; } return new android.app.admin.DevicePolicyManager ( mContext , mService , true ) ; }
Source:
public static boolean isLiteralIpAddress ( java.lang.String hostname ) { try { java.lang.reflect.Method m_isNumeric = java.net.InetAddress.class . getMethod ( "isNumeric" , java.lang.String.class ) ; return ( ( java.lang.Boolean ) ( m_isNumeric.invoke ( null , hostname ) ) ) ; } catch ( java.lang.Exception ignored ) { } return false ; }

Target:
public static boolean isLiteralIpAddress ( java.lang.String hostname ) { try { java.lang.reflect.Method m_isNumeric = java.net.InetAddress.class . getMethod ( "isNumeric" , java.lang.String.class ) ; return ( ( java.lang.Boolean ) ( m_isNumeric.invoke ( null , hostname ) ) ) ; } catch ( java.lang.Exception ignored ) { } return org.conscrypt.AddressUtils.isLiteralIpAddress ( hostname ) ; }
Source:
public void testMixedFormat ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-xxhdpi/f.xml: Warning: The following images appear both as density independent .xml files and as bitmap files: res/drawable-hdpi/f.xml, res/drawable-mdpi/f.png [IconXmlAndPng]\n" + ( ( ( " res/drawable-xhdpi/f.xml: <No location-specific message\n" + " res/drawable-mdpi/f.png: <No location-specific message\n" ) + " res/drawable-hdpi/f.xml: <No location-specific message\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "res/drawable-mdpi/frame.png=>res/drawable-mdpi/f.png" , "res/drawable/states.xml=>res/drawable-hdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xhdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xxhdpi/f.xml" ) ) ; }

Target:
public void testMixedFormat ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-xxxhdpi/f.xml: Warning: The following images appear both as density independent .xml files and as bitmap files: res/drawable-hdpi/f.xml, res/drawable-mdpi/f.png [IconXmlAndPng]\n" + ( ( ( ( " res/drawable-xxhdpi/f.xml: <No location-specific message\n" + " res/drawable-xhdpi/f.xml: <No location-specific message\n" ) + " res/drawable-mdpi/f.png: <No location-specific message\n" ) + " res/drawable-hdpi/f.xml: <No location-specific message\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "res/drawable-mdpi/frame.png=>res/drawable-mdpi/f.png" , "res/drawable/states.xml=>res/drawable-hdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xhdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xxhdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xxxhdpi/f.xml" ) ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptInvoke ( long id , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptInvoke ( curCon , id , slot , mUseInc ) ; }
Source:
private void calcOurContentVisibleRect ( android.graphics.Rect r ) { calcOurVisibleRect ( r ) ; r.left = viewToContent ( r.left ) ; r.top = viewToContent ( r.top ) ; r.right = viewToContent ( r.right ) ; r.bottom = viewToContent ( r.bottom ) ; }

Target:
private void calcOurContentVisibleRect ( android.graphics.Rect r ) { calcOurVisibleRect ( r ) ; r.left = viewToContentX ( r.left ) ; r.top = viewToContentY ( ( ( r.top ) + ( getVisibleTitleHeight ( ) ) ) ) ; r.right = viewToContentX ( r.right ) ; r.bottom = viewToContentY ( r.bottom ) ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { recordIfInstanceMethod ( access , name , desc ) ; return null ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( ( ignoreEmulatedMethods ) && ( com.google.devtools.build.android.desugar.io.BitFlags.noneSet ( access , Opcodes.ACC_STATIC ) ) ) && ( ( coreLibrarySupport.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEVIRTUAL , className , name , desc , false ) ) != null ) ) { return null ; } recordIfInstanceMethod ( access , name , desc ) ; return null ; }
Source:
public void testAesCbcHmacMd5Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
public void testSimpleCountry ( ) throws java.lang.Exception { java.lang.String countryText = " isoCode:\"ad\"\n" + ( ( ( " timeZoneMappings:<\n" + " utcOffset:\"1:00\"\n" ) + " id:\"Europe/Andorra\"\n" ) + " >\n" ) ; com.android.libcore.timezone.tzlookup.zonetree.Country country = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.parseCountry ( countryText ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree zoneTree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( country , com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.START_INSTANT , com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.END_INSTANT ) ; org.junit.Assert.assertTrue ( zoneTree.validateNoPriorityClashes ( ) . isEmpty ( ) ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage zoneUsage = zoneTree.calculateCountryZoneUsage ( ) ; org.junit.Assert.assertNull ( zoneUsage.getNotUsedAfterInstant ( "Europe/Andorra" ) ) ; }

Target:
public void testSimpleCountry ( ) throws java.lang.Exception { java.lang.String countryText = " isoCode:\"ad\"\n" + ( ( ( " timeZoneMappings:<\n" + " utcOffset:\"1:00\"\n" ) + " id:\"Europe/Andorra\"\n" ) + " >\n" ) ; com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country country = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.parseCountry ( countryText ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree zoneTree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( country , com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.RULES_START_INSTANT , com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.RULES_END_INSTANT ) ; org.junit.Assert.assertTrue ( zoneTree.validateNoPriorityClashes ( ) . isEmpty ( ) ) ; com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage zoneUsage = zoneTree.calculateCountryZoneUsage ( com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTreeTest.NOT_USED_AFTER_CUT_OFF ) ; org.junit.Assert.assertNull ( zoneUsage.getNotUsedAfterInstant ( "Europe/Andorra" ) ) ; }
Source:
private static java.lang.String generateMessageId ( ) { final java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "<" ) ; for ( int i = 0 ; i < 24 ; i ++ ) { final int value = ( com.android.voicemail.impl.mail.internet.MimeMessage.sRandom.nextInt ( ) ) & 31 ; final char c = "0123456789abcdefghijklmnopqrstuv" . charAt ( value ) ; sb.append ( c ) ; } sb.append ( "." ) ; sb.append ( java.lang.Long.toString ( java.lang.System.currentTimeMillis ( ) ) ) ; sb.append ( "@email.android.com>" ) ; return sb.toString ( ) ; }

Target:
private static java.lang.String generateMessageId ( ) { final java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "<" ) ; for ( int i = 0 ; i < 24 ; i ++ ) { final int value = ( com.android.voicemail.impl.mail.internet.MimeMessage.random.nextInt ( ) ) & 31 ; final char c = "0123456789abcdefghijklmnopqrstuv" . charAt ( value ) ; sb.append ( c ) ; } sb.append ( "." ) ; sb.append ( java.lang.Long.toString ( java.lang.System.currentTimeMillis ( ) ) ) ; sb.append ( "@email.android.com>" ) ; return sb.toString ( ) ; }
Source:
public boolean setScanMode ( @ android.bluetooth.BluetoothAdapter.ScanMode int mode , int duration ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.setScanMode ( mode , duration ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean setName ( java.lang.String name ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.setName ( name ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
private void broadcastMetaDataChanged ( android.media.MediaMetadata metadata ) { android.content.Intent intent = new android.content.Intent ( AvrcpControllerService.ACTION_TRACK_EVENT ) ; intent.putExtra ( AvrcpControllerService.EXTRA_METADATA , metadata ) ; if ( com.android.bluetooth.avrcpcontroller.AvrcpControllerStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.avrcpcontroller.AvrcpControllerStateMachine.TAG , ( " broadcastMetaDataChanged = " + ( metadata.getDescription ( ) ) ) ) ; } mContext.sendBroadcast ( intent , ProfileService.BLUETOOTH_PERM ) ; }

Target:
public void fetchAttrAndPlayItem ( java.lang.String uid ) { com.android.bluetooth.avrcpcontroller.BrowseTree.BrowseNode currItem = mBrowseTree.findFolderByIDLocked ( uid ) ; com.android.bluetooth.avrcpcontroller.BrowseTree.BrowseNode currFolder = mBrowseTree.getCurrentBrowsedFolder ( ) ; if ( com.android.bluetooth.avrcpcontroller.AvrcpControllerStateMachine.DBG ) android.util.Log.d ( com.android.bluetooth.avrcpcontroller.AvrcpControllerStateMachine.TAG , ( ( ( "fetchAttrAndPlayItem mediaId=" + uid ) + " node=" ) + currItem ) ) ; if ( currItem != null ) { int scope = ( currFolder.isNowPlaying ( ) ) ? AvrcpControllerService.BROWSE_SCOPE_NOW_PLAYING : AvrcpControllerService.BROWSE_SCOPE_VFS ; android.os.Message msg = obtainMessage ( com.android.bluetooth.avrcpcontroller.AvrcpControllerStateMachine.MESSAGE_FETCH_ATTR_AND_PLAY_ITEM , scope , 0 , currItem.getFolderUID ( ) ) ; sendMessage ( msg ) ; } }
Source:
public void visitEnumConstantElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.EnumConstantElementValue enumConstantElementValue ) { println ( ( ( ( ( ( ( ( ( visitorInfo ( enumConstantElementValue ) ) + " Enum constant element value [" ) + ( ( enumConstantElementValue.u2elementNameIndex ) == 0 ? "(default)" : clazz.getString ( enumConstantElementValue.u2elementNameIndex ) ) ) + ", " ) + ( clazz.getString ( enumConstantElementValue.u2typeNameIndex ) ) ) + ", " ) + ( clazz.getString ( enumConstantElementValue.u2constantNameIndex ) ) ) + "]" ) ) ; }

Target:
public void visitEnumConstantElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.EnumConstantElementValue enumConstantElementValue ) { println ( ( ( ( ( ( ( ( ( visitorInfo ( enumConstantElementValue ) ) + " Enum constant element value [" ) + ( ( enumConstantElementValue.u2elementNameIndex ) == 0 ? "(default)" : enumConstantElementValue.getMethodName ( clazz ) ) ) + ", " ) + ( enumConstantElementValue.getTypeName ( clazz ) ) ) + ", " ) + ( enumConstantElementValue.getConstantName ( clazz ) ) ) + "]" ) ) ; }
Source:
public void readDescriptor ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int descrInstanceId , android.os.ParcelUuid descrId , int authReq ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.readDescriptor ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , descrInstanceId , descrId.getUuid ( ) , authReq ) ; }

Target:
public void readDescriptor ( int clientIf , java.lang.String address , int handle , int authReq ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.readDescriptor ( clientIf , address , handle , authReq ) ; }
Source:
public void setDataOnRoamingEnabled ( boolean enabled ) { if ( ( getDataOnRoamingEnabled ( ) ) != enabled ) { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; Settings.Secure.putInt ( resolver , Settings.Secure.DATA_ROAMING , ( enabled ? 1 : 0 ) ) ; } }

Target:
public boolean getDataOnRoamingEnabled ( ) { try { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; return ( Settings.Global.getInt ( resolver , Settings.Global.DATA_ROAMING ) ) != 0 ; } catch ( android.provider.Settings.SettingNotFoundException snfe ) { return false ; } }
Source:
public void testBroadcastUndeliveredUserUnlocked ( ) throws java.lang.Exception { replaceInstance ( com.android.internal.telephony.SmsBroadcastUndelivered.class , "instance" , null , null ) ; doReturn ( 0 ) . when ( mInboundSmsTracker ) . getDestPort ( ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCV ) ; doReturn ( 1 ) . when ( mInboundSmsTracker ) . getMessageCount ( ) ; com.android.internal.telephony.SmsBroadcastUndelivered.initialize ( mContext , mGsmInboundSmsHandler , mCdmaInboundSmsHandler ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 0 ) ; }

Target:
public void testBroadcastUndeliveredUserUnlocked ( ) throws java.lang.Exception { replaceInstance ( com.android.internal.telephony.SmsBroadcastUndelivered.class , "instance" , null , null ) ; org.mockito.Mockito.doReturn ( 0 ) . when ( mInboundSmsTracker ) . getDestPort ( ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCV ) ; org.mockito.Mockito.doReturn ( 1 ) . when ( mInboundSmsTracker ) . getMessageCount ( ) ; com.android.internal.telephony.SmsBroadcastUndelivered.initialize ( mContext , mGsmInboundSmsHandler , mCdmaInboundSmsHandler ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 0 ) ; }
Source:
public static android.graphics.BitmapRegionDecoder newInstance ( java.io.InputStream is , boolean isShareable ) throws java.io.IOException { if ( is instanceof android.content.res.AssetManager.AssetInputStream ) { return android.graphics.BitmapRegionDecoder.nativeNewInstance ( ( ( android.content.res.AssetManager.AssetInputStream ) ( is ) ) . getAssetInt ( ) , isShareable ) ; } else { byte [ ] tempStorage = new byte [ 16 * 1024 ] ; return android.graphics.BitmapRegionDecoder.nativeNewInstance ( is , tempStorage , isShareable ) ; } }

Target:
public static android.graphics.BitmapRegionDecoder newInstance ( java.io.InputStream is , boolean isShareable ) throws java.io.IOException { if ( is instanceof android.content.res.AssetManager.AssetInputStream ) { return android.graphics.BitmapRegionDecoder.nativeNewInstance ( ( ( android.content.res.AssetManager.AssetInputStream ) ( is ) ) . getNativeAsset ( ) , isShareable ) ; } else { byte [ ] tempStorage = new byte [ 16 * 1024 ] ; return android.graphics.BitmapRegionDecoder.nativeNewInstance ( is , tempStorage , isShareable ) ; } }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object param1 ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }
Source:
public static int getSimStateForSlotIdx ( int slotIndex ) { int simState = TelephonyManager.SIM_STATE_UNKNOWN ; try { com.android.internal.telephony.ISub iSub = ISub.Stub.asInterface ( android.os.ServiceManager.getService ( "isub" ) ) ; if ( iSub != null ) { simState = iSub.getSimStateForSlotIdx ( slotIndex ) ; } } catch ( android.os.RemoteException ex ) { } return simState ; }

Target:
public static int getSimStateForSlotIndex ( int slotIndex ) { int simState = TelephonyManager.SIM_STATE_UNKNOWN ; try { com.android.internal.telephony.ISub iSub = ISub.Stub.asInterface ( android.os.ServiceManager.getService ( "isub" ) ) ; if ( iSub != null ) { simState = iSub.getSimStateForSlotIndex ( slotIndex ) ; } } catch ( android.os.RemoteException ex ) { } return simState ; }
Source:
private void verifyTimeServiceTimeWasSet ( long expectedTimeMillis ) { org.mockito.ArgumentCaptor < java.lang.Long > timeServiceTimeCaptor = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.TYPE ) ; org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTime ( timeServiceTimeCaptor.capture ( ) ) ; org.junit.Assert.assertEquals ( expectedTimeMillis , ( ( long ) ( timeServiceTimeCaptor.getValue ( ) ) ) ) ; }

Target:
private void verifyTimeServiceTimeZoneWasSet ( java.lang.String timeZoneId ) { org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTimeZone ( timeZoneId ) ; }
Source:
public void dispose ( ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) log ( "Disposing profile" ) ; unregisterAllAppEvents ( ) ; unregisterCurrAppEvents ( ) ; if ( com.android.internal.telephony.uicc.UiccProfile.ICC_CARD_PROXY_REMOVED ) { mCi.unregisterForOffOrNotAvailable ( this ) ; } if ( ( mCatService ) != null ) mCatService.dispose ( ) ; for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { app.dispose ( ) ; } } mCatService = null ; mUiccApplications = null ; mCarrierPrivilegeRules = null ; mDisposed = true ; } }

Target:
public void dispose ( ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) com.android.internal.telephony.uicc.UiccProfile.log ( "Disposing profile" ) ; unregisterAllAppEvents ( ) ; unregisterCurrAppEvents ( ) ; if ( com.android.internal.telephony.uicc.UiccProfile.ICC_CARD_PROXY_REMOVED ) { mCi.unregisterForOffOrNotAvailable ( this ) ; } if ( ( mCatService ) != null ) mCatService.dispose ( ) ; for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { app.dispose ( ) ; } } mCatService = null ; mUiccApplications = null ; mCarrierPrivilegeRules = null ; mDisposed = true ; } }
Source:
static com.android.jack.shrob.spec.NameSpecification name ( java.lang.String name ) { assert name != null ; java.lang.String transformedName = ( "^" + ( com.android.jack.shrob.proguard.GrammarActions.convertNameToPattern ( name ) ) ) + "$" ; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile ( transformedName ) ; return new com.android.jack.shrob.spec.NameSpecification ( pattern ) ; }

Target:
static com.android.jack.shrob.spec.NameSpecification name ( java.lang.String name , @ javax.annotation.Nonnull com.android.jack.shrob.proguard.GrammarActions.FilterSeparator separator ) { assert name != null ; java.lang.String transformedName = ( "^" + ( com.android.jack.shrob.proguard.GrammarActions.convertNameToPattern ( name , separator ) ) ) + "$" ; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile ( transformedName ) ; return new com.android.jack.shrob.spec.NameSpecification ( pattern ) ; }
Source:
public static void notifyMethodExit ( java.lang.Object m , boolean exception , java.lang.Object result ) { ( art.Test988.cnt ) -- ; if ( exception ) { art.Test988.results.add ( new art.Test988.MethodThrownThrough ( m , art.Test988.cnt ) ) ; } else { art.Test988.results.add ( new art.Test988.MethodReturn ( m , result , art.Test988.cnt ) ) ; } }

Target:
public static void notifyMethodExit ( java.lang.Object m , boolean exception , java.lang.Object result ) { ( art.Test988.cnt ) -- ; if ( ( ( art.Test988.cnt ) > ( art.Test988.METHOD_TRACING_IGNORE_DEPTH ) ) && ( art.Test988.sMethodTracingIgnore ) ) { return ; } if ( exception ) { art.Test988.results.add ( new art.Test988.MethodThrownThrough ( m , art.Test988.cnt ) ) ; } else { art.Test988.results.add ( new art.Test988.MethodReturn ( m , result , art.Test988.cnt ) ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( mCanceled ? "[X] " : "[ ] " ) + ( getUrl ( ) ) ) + " " ) + ( getPriority ( ) ) ) + " " ) + ( mSequence ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String trafficStatsTag = "0x" + ( java.lang.Integer.toHexString ( getTrafficStatsTag ( ) ) ) ; return ( ( ( ( ( ( ( mCanceled ? "[X] " : "[ ] " ) + ( getUrl ( ) ) ) + " " ) + trafficStatsTag ) + " " ) + ( getPriority ( ) ) ) + " " ) + ( mSequence ) ; }
Source:
public java.lang.String getGccToolchainVersion ( ) { if ( ndkExtension.getToolchain ( ) . equals ( "gcc" ) ) { return ndkExtension.getToolchainVersion ( ) ; } else { return supports64Bits ( ) ? "4.9" : "4.8" ; } }

Target:
public java.lang.String getGccToolchainVersion ( java.lang.String abi ) { if ( ndkExtension.getToolchain ( ) . equals ( "gcc" ) ) { java.lang.String toolchain = ndkExtension.getToolchain ( ) ; return toolchain.equals ( NdkExtensionConvention.DEFAULT_TOOLCHAIN ) ? com.android.build.gradle.ndk.internal.ToolchainConfiguration.getDefaultToolchainVersion ( toolchain , abi ) : ndkExtension.getToolchainVersion ( ) ; } else { return com.android.build.gradle.ndk.internal.NdkHandler.is64Bits ( abi ) ? com.android.build.gradle.ndk.internal.NdkHandler.DEFAULT_LLVM_GCC64_VERSION : com.android.build.gradle.ndk.internal.NdkHandler.DEFAULT_LLVM_GCC32_VERSION ; } }
Source:
private void checkSpecialCaller ( java.lang.Class < ? > specialCaller ) throws java.lang.IllegalAccessException { int allowedModes = this . allowedModes ; if ( ( ! ( hasPrivateAccess ( ) ) ) || ( ( specialCaller != ( lookupClass ( ) ) ) && ( ! ( ( java.lang.invoke.MethodHandles.Lookup.ALLOW_NESTMATE_ACCESS ) && ( sun.invoke.util.VerifyAccess.isSamePackageMember ( specialCaller , lookupClass ( ) ) ) ) ) ) ) throwMakeAccessException ( "no private access for invokespecial" , this ) ; }

Target:
private void checkSpecialCaller ( java.lang.Class < ? > specialCaller ) throws java.lang.IllegalAccessException { if ( ( ! ( hasPrivateAccess ( ) ) ) || ( specialCaller != ( lookupClass ( ) ) ) ) { throw new java.lang.IllegalAccessException ( ( ( ( "no private access for invokespecial : " + specialCaller ) + ", from" ) + ( this ) ) ) ; } }
Source:
public void testReleaseVersion ( ) { assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_RELEASE , Build.VERSION.RELEASE ) ; assertEquals ( ( "" + ( android.os.cts.BuildVersionTest.EXPECTED_SDK ) ) , Build.VERSION.SDK ) ; assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_SDK , Build.VERSION.SDK_INT ) ; }

Target:
public void testReleaseVersion ( ) { assertTrue ( ( ( ( "Your Build.VERSION.RELEASE of " + ( Build.VERSION.RELEASE ) ) + " was not one of the following: " ) + ( android.os.cts.BuildVersionTest.EXPECTED_RELEASES ) ) , android.os.cts.BuildVersionTest.EXPECTED_RELEASES.contains ( Build.VERSION.RELEASE ) ) ; assertEquals ( ( "" + ( android.os.cts.BuildVersionTest.EXPECTED_SDK ) ) , Build.VERSION.SDK ) ; assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_SDK , Build.VERSION.SDK_INT ) ; }