auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void sendPing ( java.io.FileDescriptor s , java.net.InetAddress address , byte [ ] packet ) throws java.io.IOException , libcore.io.ErrnoException { int port = ( ( int ) ( ( java.lang.Math.random ( ) ) * 2048 ) ) ; int ret = Libcore.os.sendto ( s , java.nio.ByteBuffer.wrap ( packet ) , 0 , address , port ) ; assertEquals ( packet.length , ret ) ; }

Target:
private void sendPing ( java.io.FileDescriptor s , java.net.InetAddress address , byte [ ] packet ) throws android.system.ErrnoException , java.io.IOException { int port = ( ( int ) ( ( java.lang.Math.random ( ) ) * 2048 ) ) ; int ret = android.system.Os.sendto ( s , java.nio.ByteBuffer.wrap ( packet ) , 0 , address , port ) ; assertEquals ( packet.length , ret ) ; }
Source:
public void testScreenUnlocked ( ) throws java.lang.Exception { android.app.KeyguardManager km = ( ( android.app.KeyguardManager ) ( getContext ( ) . getSystemService ( Context.KEYGUARD_SERVICE ) ) ) ; assertFalse ( "Device must have screen lock disabled" , km.isDeviceSecure ( ) ) ; }

Target:
public void testScreenUnlocked ( ) throws java.lang.Exception { android.content.pm.PackageManager pm = getContext ( ) . getPackageManager ( ) ; if ( ( ( pm.hasSystemFeature ( PackageManager.FEATURE_LEANBACK ) ) || ( pm.hasSystemFeature ( PackageManager.FEATURE_WATCH ) ) ) || ( pm.hasSystemFeature ( PackageManager.FEATURE_AUTOMOTIVE ) ) ) { android.util.Log.i ( com.android.cts.preconditions.PreconditionsTest.TAG , "Skipping screen lock precondition for this device type" ) ; return ; } android.app.KeyguardManager km = ( ( android.app.KeyguardManager ) ( getContext ( ) . getSystemService ( Context.KEYGUARD_SERVICE ) ) ) ; assertFalse ( "Device must have screen lock disabled" , km.isDeviceSecure ( ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( mShouldTestTelecom ) { cleanupCalls ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( mPreviousDefaultDialer ) ) ) { android.telecom.cts.TestUtils.TestUtils.setDefaultDialer ( getInstrumentation ( ) , mPreviousDefaultDialer ) ; } tearDownConnectionService ( android.telecom.cts.BaseTelecomTestWithMockServices.TEST_PHONE_ACCOUNT_HANDLE ) ; assertMockInCallServiceUnbound ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( mShouldTestTelecom ) { cleanupCalls ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( mPreviousDefaultDialer ) ) ) { android.telecom.cts.TestUtils.setDefaultDialer ( getInstrumentation ( ) , mPreviousDefaultDialer ) ; } tearDownConnectionService ( android.telecom.cts.BaseTelecomTestWithMockServices.TEST_PHONE_ACCOUNT_HANDLE ) ; assertMockInCallServiceUnbound ( ) ; } super . tearDown ( ) ; }
Source:
public void onSdkChange ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }

Target:
private com.android.sdklib.IAndroidTarget getRenderingTarget ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk == null ) { return null ; } com.android.sdklib.IAndroidTarget renderingTarget = mConfigComposite.getRenderingTarget ( ) ; if ( renderingTarget != null ) { return renderingTarget ; } if ( ( mEditedFile ) != null ) { return currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; } return null ; }
Source:
private int applyUserId ( int uid , int userId ) { return android.os.UserHandle.getUid ( userId , uid ) ; }

Target:
final void runInBackgroundDisabled ( int uid ) { synchronized ( this ) { com.android.server.am.UidRecord uidRec = mActiveUids.get ( uid ) ; if ( uidRec != null ) { if ( uidRec.idle ) { doStopUidLocked ( uidRec.uid , uidRec ) ; } } else { doStopUidLocked ( uid , null ) ; } } }
Source:
public void postUrl ( java.lang.String url , byte [ ] postData ) { org.chromium.content.browser.LoadUrlParams params = org.chromium.content.browser.LoadUrlParams.createLoadHttpPostParams ( url , postData ) ; java.util.Map < java.lang.String , java.lang.String > headers = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; headers.put ( "Content-Type" , "application/x-www-form-urlencoded" ) ; params.setExtraHeaders ( headers ) ; loadUrlOnUiThread ( params ) ; }

Target:
public void postUrl ( java.lang.String url , byte [ ] postData ) { org.chromium.content_public.browser.LoadUrlParams params = org.chromium.content_public.browser.LoadUrlParams.createLoadHttpPostParams ( url , postData ) ; java.util.Map < java.lang.String , java.lang.String > headers = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; headers.put ( "Content-Type" , "application/x-www-form-urlencoded" ) ; params.setExtraHeaders ( headers ) ; loadUrlOnUiThread ( params ) ; }
Source:
private boolean isJackFileNameOf ( @ javax.annotation.Nonnull java.lang.String fileName , @ javax.annotation.Nonnull java.lang.String typeName ) { return ( ( ( fileName.length ( ) ) > ( com.android.jack.backend.jayce.JayceFileImporter.JACK_EXTENSION_LENGTH ) ) && ( fileName.substring ( 0 , ( ( fileName.length ( ) ) - ( com.android.jack.backend.jayce.JayceFileImporter.JACK_EXTENSION_LENGTH ) ) ) . equals ( typeName ) ) ) && ( fileName.substring ( ( ( fileName.length ( ) ) - ( com.android.jack.backend.jayce.JayceFileImporter.JACK_EXTENSION_LENGTH ) ) ) . equalsIgnoreCase ( JayceFileImporter.JAYCE_FILE_EXTENSION ) ) ; }

Target:
private com.android.sched.vfs.VPath getPathFromPackage ( @ javax.annotation.Nonnull java.lang.String simpleName ) { com.android.sched.vfs.VPath typePath ; if ( ( packagePath ) != null ) { typePath = packagePath.clone ( ) ; typePath.appendPath ( new com.android.sched.vfs.VPath ( simpleName , '/' ) ) ; } else { typePath = new com.android.sched.vfs.VPath ( simpleName , '/' ) ; } return typePath ; }
Source:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , int [ ] fdsToIgnore , java.lang.String instructionSet , java.lang.String appDataDir ) ;

Target:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , int [ ] fdsToIgnore , java.lang.String instructionSet , java.lang.String appDataDir ) ;
Source:
private int getScaledMaxYScroll ( ) { int height ; if ( ( mHeightCanMeasure ) == false ) { height = ( getViewHeight ( ) ) / 4 ; } else { android.graphics.Rect visRect = new android.graphics.Rect ( ) ; calcOurVisibleRect ( visRect ) ; height = ( visRect.height ( ) ) / 2 ; } return viewToContent ( height ) ; }

Target:
private int getScaledMaxYScroll ( ) { int height ; if ( ( mHeightCanMeasure ) == false ) { height = ( getViewHeight ( ) ) / 4 ; } else { android.graphics.Rect visRect = new android.graphics.Rect ( ) ; calcOurVisibleRect ( visRect ) ; height = ( visRect.height ( ) ) / 2 ; } return java.lang.Math.round ( ( height * ( mInvActualScale ) ) ) ; }
Source:
public java.lang.String findIntegerExamples ( @ com.android.annotations.NonNull java.lang.String language , @ com.android.annotations.NonNull com.android.tools.lint.checks.PluralsDatabase.Quantity quantity ) { return null ; }

Target:
public java.lang.String findIntegerExamples ( @ com.android.annotations.NonNull java.lang.String language , @ com.android.annotations.NonNull com.android.tools.lint.checks.PluralsDatabase.Quantity quantity ) { if ( quantity == ( com.android.tools.lint.checks.PluralsDatabase.Quantity.one ) ) { return com.android.tools.lint.checks.PluralsDatabase.getExampleForQuantityOne ( language ) ; } else if ( quantity == ( com.android.tools.lint.checks.PluralsDatabase.Quantity.two ) ) { return com.android.tools.lint.checks.PluralsDatabase.getExampleForQuantityTwo ( language ) ; } else if ( quantity == ( com.android.tools.lint.checks.PluralsDatabase.Quantity.zero ) ) { return com.android.tools.lint.checks.PluralsDatabase.getExampleForQuantityZero ( language ) ; } else { return null ; } }
Source:
synchronized void onIntrDataFromNative ( byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "onIntrData(): reportId=" + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_INTR_DATA ) ; msg.arg1 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }

Target:
synchronized void onInterruptDataFromNative ( byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "onInterruptData(): reportId=" + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_INTR_DATA ) ; msg.arg1 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }
Source:
public void testGlGetString ( ) { java.lang.String retValue = "testString" ; com.android.ide.eclipse.gldebugger.GLEnum arg1 = com.android.ide.eclipse.gldebugger.GLEnum.GL_RENDERER ; com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg = constructGLMessage ( createStringDataType ( retValue ) , Function.glGetString , createEnumDataType ( arg1.value ) ) ; java.lang.String expected = java.lang.String.format ( "%s(name = %s) = (const GLchar*) %s" , Function.glGetString , arg1.toString ( ) , retValue ) ; java.lang.String actual = com.android.ide.eclipse.gltrace.format.GLMessageFormatterTest.sGLMessageFormatter.formatGLMessage ( msg ) ; assertEquals ( expected , actual ) ; }

Target:
public void testGlGetString ( ) { java.lang.String retValue = "testString" ; com.android.ide.eclipse.gltrace.GLEnum arg1 = com.android.ide.eclipse.gltrace.GLEnum.GL_RENDERER ; com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg = constructGLMessage ( createStringDataType ( retValue ) , Function.glGetString , createEnumDataType ( arg1.value ) ) ; java.lang.String expected = java.lang.String.format ( "%s(name = %s) = (const GLchar*) %s" , Function.glGetString , arg1.toString ( ) , retValue ) ; java.lang.String actual = com.android.ide.eclipse.gltrace.format.GLMessageFormatterTest.sGLMessageFormatter.formatGLMessage ( msg ) ; assertEquals ( expected , actual ) ; }
Source:
public boolean updatePublish ( short transactionId , android.net.wifi.nan.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanSessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiNanSessionCallback.REASON_OTHER ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanSessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }

Target:
public boolean updatePublish ( short transactionId , android.net.wifi.nan.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiNanDiscoverySessionCallback.REASON_OTHER ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( ( mActivityDoneReceiver ) != null ) { try { mContext.unregisterReceiver ( mActivityDoneReceiver ) ; } catch ( java.lang.IllegalArgumentException e ) { } mActivityDoneReceiver = null ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( ( mHasFeature ) && ( ( mActivityDoneReceiver ) != null ) ) { try { mContext.unregisterReceiver ( mActivityDoneReceiver ) ; } catch ( java.lang.IllegalArgumentException e ) { } mActivityDoneReceiver = null ; } super . tearDown ( ) ; }
Source:
public static void main ( java.lang.String [ ] arg ) { try { android.icu.dev.test.lang.UCharacterTest test = new android.icu.dev.test.lang.UCharacterTest ( ) ; test.run ( arg ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } }

Target:
public void testNameAliasing ( ) { int input = 'Ƣ' ; java.lang.String alias = android.icu.lang.UCharacter.getNameAlias ( input ) ; assertEquals ( "Wrong name alias" , "LATIN CAPITAL LETTER GHA" , alias ) ; int output = android.icu.lang.UCharacter.getCharFromNameAlias ( alias ) ; assertEquals ( ( ( "alias for '" + input ) + "'" ) , input , output ) ; }
Source:
private static long sadShort2LongAt1 ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; long sad = 1 ; for ( int i = 0 ; i < min_length ; i ++ ) { long x = s1 [ i ] ; long y = s2 [ i ] ; sad += java.lang.Math.abs ( ( x - y ) ) ; } return sad ; }

Target:
private static long sadChar2LongAt1 ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; long sad = 1 ; for ( int i = 0 ; i < min_length ; i ++ ) { long x = s1 [ i ] ; long y = s2 [ i ] ; sad += java.lang.Math.abs ( ( x - y ) ) ; } return sad ; }
Source:
public void testLibProguardConsumerFile ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguardConsumerFiles" ) ; java.io.File debugFileOutput = new java.io.File ( project , "build/bundles/debug" ) ; java.io.File releaseFileOutput = new java.io.File ( project , "build/bundles/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( debugFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" } ) ; com.android.build.gradle.ManualBuildTest.checkFile ( releaseFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" , "B" , "C" } ) ; }

Target:
public void testLibProguardConsumerFile ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguardConsumerFiles" ) ; java.io.File debugFileOutput = new java.io.File ( project , "build/bundles/debug" ) ; java.io.File releaseFileOutput = new java.io.File ( project , "build/bundles/release" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( debugFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" } ) ; com.android.build.gradle.ManualBuildTest.checkFile ( releaseFileOutput , "proguard.txt" , new java.lang.String [ ] { "A" , "B" , "C" } ) ; }
Source:
public void testGetOutputAfterGetInputStreamFails ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.setDoOutput ( true ) ; try { connection.getInputStream ( ) ; connection.getOutputStream ( ) ; fail ( ) ; } catch ( java.net.ProtocolException expected ) { } }

Target:
public void testGetOutputAfterGetInputStreamFails ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.setDoOutput ( true ) ; try { connection.getInputStream ( ) ; connection.getOutputStream ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.net.ProtocolException expected ) { } }
Source:
public com.google.appengine.api.datastore.Entity toEntity ( ) { com.google.appengine.api.datastore.Entity testEntity = new com.google.appengine.api.datastore.Entity ( com.android.vts.entity.TestEntity.KIND , this . testName ) ; return testEntity ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( obj == null ) || ( ! ( com.android.vts.entity.TestEntity.class . isAssignableFrom ( obj.getClass ( ) ) ) ) ) { return false ; } com.android.vts.entity.TestEntity test2 = ( ( com.android.vts.entity.TestEntity ) ( obj ) ) ; return ( this . testName.equals ( test2.testName ) ) && ( ( this . hasProfilingData ) == ( test2.hasProfilingData ) ) ; }
Source:
public void checkCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodInsnNode call ) { java.lang.String owner = call.owner ; if ( ( owner.equals ( "android/util/FloatMath" ) ) && ( ( context.getProject ( ) . getMinSdk ( ) ) >= 8 ) ) { java.lang.String message = java.lang.String.format ( ( "Use java.lang.Math#%1$s instead of android.util.FloatMath#%1$s() " + "since it is faster as of API 8" ) , call.name ) ; context.report ( com.android.tools.lint.checks.MathDetector.ISSUE , method , call , context.getLocation ( call ) , message , null ) ; } }

Target:
public void checkCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodInsnNode call ) { java.lang.String owner = call.owner ; if ( ( owner.equals ( "android/util/FloatMath" ) ) && ( ( context.getProject ( ) . getMinSdk ( ) ) >= 8 ) ) { java.lang.String message = java.lang.String.format ( ( "Use `java.lang.Math#%1$s` instead of `android.util.FloatMath#%1$s()` " + "since it is faster as of API 8" ) , call.name ) ; context.report ( com.android.tools.lint.checks.MathDetector.ISSUE , method , call , context.getLocation ( call ) , message , null ) ; } }
Source:
public void start ( ) { if ( started ( ) ) return ; if ( ! ( mConfigInitialized ) ) { mConfigInitialized = mHwInterface.initOffloadConfig ( ) ; if ( ! ( mConfigInitialized ) ) { mLog.i ( "tethering offload config not supported" ) ; return ; } } mControlInitialized = mHwInterface.initOffloadControl ( ) ; }

Target:
public void onOffloadEvent ( int event ) { mLog.log ( ( "got offload event: " + event ) ) ; }
Source:
public void visitClassConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.ClassConstant classConstant ) { if ( proguard.classfile.editor.ClassUtil.isInternalArrayType ( classConstant.getName ( clazz ) ) ) { isInterfaceMethod = false ; } else { proguard.classfile.editor.Clazz referencedClass = classConstant.referencedClass ; if ( referencedClass != null ) { isInterfaceMethod = ( ( referencedClass.getAccessFlags ( ) ) & ( ClassConstants.INTERNAL_ACC_INTERFACE ) ) != 0 ; } } }

Target:
public void visitClassConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.ClassConstant classConstant ) { if ( proguard.classfile.editor.ClassUtil.isInternalArrayType ( classConstant.getName ( clazz ) ) ) { isInterfaceMethod = false ; } else { proguard.classfile.editor.Clazz referencedClass = classConstant.referencedClass ; if ( referencedClass != null ) { isInterfaceMethod = ( ( referencedClass.getAccessFlags ( ) ) & ( ClassConstants.ACC_INTERFACE ) ) != 0 ; } } }
Source:
protected static java.io.File getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { return new java.io.File ( com.android.jack.experimental.incremental.JackIncremental.jackFilesFolder , new com.android.sched.vfs.VPath ( ( typeName + ( com.android.jack.backend.jayce.JayceFileImporter.JAYCE_FILE_EXTENSION ) ) , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) . getPathAsString ( java.io.File.separatorChar ) ) ; }

Target:
protected static java.io.File getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { return new java.io.File ( com.android.jack.experimental.incremental.JackIncremental.jackFilesFolder , ( ( ( FileType.JAYCE.getPrefix ( ) ) + ( java.io.File.separatorChar ) ) + ( new com.android.sched.vfs.VPath ( ( typeName + ( com.android.jack.backend.jayce.JayceFileImporter.JAYCE_FILE_EXTENSION ) ) , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) . getPathAsString ( java.io.File.separatorChar ) ) ) ) ; }
Source:
public void addI64 ( android.support.v8.renderscript.Long2 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI64 ( new android.support.v8.renderscript.Long2 ( v.x , v.y ) ) ; return ; } addI64 ( v.x ) ; addI64 ( v.y ) ; }

Target:
public void addU64 ( android.support.v8.renderscript.Long4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addU64 ( v ) ; return ; } addU64 ( v.x ) ; addU64 ( v.y ) ; addU64 ( v.z ) ; addU64 ( v.w ) ; }
Source:
private java.lang.String reformat ( com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatStyle style , java.lang.String contents ) { if ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . getUseCustomXmlFormatter ( ) ) { com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences formatPrefs = com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) ; return com.android.ide.eclipse.adt.internal.editors.formatting.XmlPrettyPrinter.prettyPrint ( contents , formatPrefs , style , null ) ; } else { return contents ; } }

Target:
private java.lang.String reformat ( com.android.ide.common.xml.XmlFormatStyle style , java.lang.String contents ) { if ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . getUseCustomXmlFormatter ( ) ) { com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences formatPrefs = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) ; return com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlPrettyPrinter.prettyPrint ( contents , formatPrefs , style , null ) ; } else { return contents ; } }
Source:
private static java.lang.String cleanup ( java.lang.String name ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( name.length ( ) ) ; for ( int i = 0 ; i < ( name.length ( ) ) ; i ++ ) { char c = name.charAt ( i ) ; if ( java.lang.Character.isJavaIdentifierPart ( c ) ) { sb.append ( java.lang.Character.toLowerCase ( c ) ) ; } } return sb.toString ( ) ; }

Target:
private static java.lang.String cleanup ( @ com.android.annotations.Nullable java.lang.String name ) { if ( name == null ) { return "" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( name.length ( ) ) ; for ( int i = 0 ; i < ( name.length ( ) ) ; i ++ ) { char c = name.charAt ( i ) ; if ( java.lang.Character.isJavaIdentifierPart ( c ) ) { sb.append ( java.lang.Character.toLowerCase ( c ) ) ; } } return sb.toString ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.$opt$TestAllocations ( ) ; Main.$opt$TestWithInitializations ( ) ; Main.testSmaliFilledNewArray ( ) ; Main.testSmaliFillArrayData ( ) ; Main.testSmaliVerifyError ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.$opt$TestAllocations ( ) ; Main.$opt$TestWithInitializations ( ) ; Main.$opt$TestNegativeValueNewByteArray ( ) ; Main.$opt$TestNegativeValueNewCharArray ( ) ; Main.testSmaliFilledNewArray ( ) ; Main.testSmaliFillArrayData ( ) ; Main.testSmaliVerifyError ( ) ; }
Source:
private com.android.server.VibratorService.Vibration removeVibrationLocked ( android.os.IBinder token ) { java.util.ListIterator < com.android.server.VibratorService.Vibration > iter = mVibrations.listIterator ( 0 ) ; while ( iter.hasNext ( ) ) { com.android.server.VibratorService.Vibration vib = iter.next ( ) ; if ( ( vib.mToken ) == token ) { iter.remove ( ) ; return vib ; } } if ( ( ( mCurrentVibration ) != null ) && ( ( mCurrentVibration.mToken ) == token ) ) { return mCurrentVibration ; } return null ; }

Target:
private com.android.server.VibratorService.Vibration removeVibrationLocked ( android.os.IBinder token ) { java.util.ListIterator < com.android.server.VibratorService.Vibration > iter = mVibrations.listIterator ( 0 ) ; while ( iter.hasNext ( ) ) { com.android.server.VibratorService.Vibration vib = iter.next ( ) ; if ( ( vib.mToken ) == token ) { iter.remove ( ) ; unlinkVibration ( vib ) ; return vib ; } } if ( ( ( mCurrentVibration ) != null ) && ( ( mCurrentVibration.mToken ) == token ) ) { unlinkVibration ( mCurrentVibration ) ; return mCurrentVibration ; } return null ; }
Source:
public void testSubscribeBadServiceName ( ) { android.net.wifi.nan.SubscribeConfig subscribeConfig = new android.net.wifi.nan.SubscribeConfig.Builder ( ) . setServiceName ( "InvalidServiceCharacters__" ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.nan.IWifiNanDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.nan.IWifiNanDiscoverySessionCallback.class ) ; mDut.subscribe ( clientId , subscribeConfig , mockCallback ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . subscribe ( clientId , subscribeConfig , mockCallback ) ; }

Target:
private void doBadSubscribeConfiguration ( java.lang.String serviceName , byte [ ] ssi , byte [ ] matchFilter ) throws java.lang.IllegalArgumentException { android.net.wifi.nan.SubscribeConfig subscribeConfig = new android.net.wifi.nan.SubscribeConfig.Builder ( ) . setServiceName ( serviceName ) . setServiceSpecificInfo ( ssi ) . setMatchFilter ( matchFilter ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.nan.IWifiNanDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.nan.IWifiNanDiscoverySessionCallback.class ) ; mDut.subscribe ( clientId , subscribeConfig , mockCallback ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . subscribe ( clientId , subscribeConfig , mockCallback ) ; }
Source:
private static void install ( java.lang.ClassLoader loader , java.util.List < ? extends java.io.File > additionalClassPathEntries , java.io.File optimizedDirectory ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException , java.lang.NoSuchFieldException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { java.lang.reflect.Field pathListField = android.support.multidex.MultiDex.findField ( loader , "pathList" ) ; java.lang.Object dexPathList = pathListField.get ( loader ) ; android.support.multidex.MultiDex.expandFieldArray ( dexPathList , "dexElements" , android.support.multidex.MultiDex.V14.makeDexElements ( dexPathList , new java.util.ArrayList < java.io.File > ( additionalClassPathEntries ) , optimizedDirectory ) ) ; }

Target:
static void install ( java.lang.ClassLoader loader , java.util.List < ? extends java.io.File > additionalClassPathEntries ) throws java.io.IOException , java.lang.ClassNotFoundException , java.lang.IllegalAccessException , java.lang.IllegalArgumentException , java.lang.InstantiationException , java.lang.NoSuchFieldException , java.lang.NoSuchMethodException , java.lang.SecurityException , java.lang.reflect.InvocationTargetException { java.lang.reflect.Field pathListField = android.support.multidex.MultiDex.findField ( loader , "pathList" ) ; java.lang.Object dexPathList = pathListField.get ( loader ) ; android.support.multidex.MultiDex.expandFieldArray ( dexPathList , "dexElements" , new android.support.multidex.MultiDex.V14 ( ) . makeDexElements ( additionalClassPathEntries ) ) ; }
Source:
public void testAesCbcHmacMd5Tcp6 ( ) 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 ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha512Tcp6 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public static void doTest ( ) throws java.lang.Exception { java.lang.reflect.Method say_hi_method = art.Test986.Transform.class . getDeclaredMethod ( "sayHi" ) ; art.Main.bindAgentJNIForClass ( art.Test986.Transform.class ) ; art.Test986.Transform.sayHi ( ) ; art.Test986.setNativeTransform ( say_hi_method , "NoReallySayGoodbye" ) ; art.Main.bindAgentJNIForClass ( art.Test986.Transform.class ) ; art.Test986.Transform.sayHi ( ) ; art.Main.bindAgentJNIForClass ( art.Main.class ) ; art.Main.bindAgentJNIForClass ( art.Test986.class ) ; }

Target:
private static void rebindTransformClass ( ) { art.Test986.rebindTransformClass ( art.Test986.Transform.class ) ; }
Source:
public static boolean isLegal ( java.lang.String str ) { int size = str.length ( ) ; int codepoint ; for ( int i = 0 ; i < size ; i ++ ) { codepoint = android.icu.text.UTF16.charAt ( str , i ) ; if ( ! ( android.icu.lang.UCharacter.isLegal ( codepoint ) ) ) { return false ; } if ( android.icu.lang.UCharacter.isSupplementary ( codepoint ) ) { i ++ ; } } return true ; }

Target:
public static boolean isLegal ( java.lang.String str ) { int size = str.length ( ) ; int codepoint ; for ( int i = 0 ; i < size ; i += java.lang.Character.charCount ( codepoint ) ) { codepoint = str.codePointAt ( i ) ; if ( ! ( android.icu.lang.UCharacter.isLegal ( codepoint ) ) ) { return false ; } } return true ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.reset ( mContext ) ; org.mockito.Mockito.reset ( mCS ) ; mCM = new com.android.server.connectivity.tethering.UpstreamNetworkMonitorTest.TestConnectivityManager ( mContext , mCS ) ; mUNM = new com.android.server.connectivity.tethering.UpstreamNetworkMonitor ( null , com.android.server.connectivity.tethering.UpstreamNetworkMonitorTest.EVENT_UNM_UPDATE , ( ( android.net.ConnectivityManager ) ( mCM ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.reset ( mContext ) ; org.mockito.Mockito.reset ( mCS ) ; mCM = org.mockito.Mockito.spy ( new com.android.server.connectivity.tethering.UpstreamNetworkMonitorTest.TestConnectivityManager ( mContext , mCS ) ) ; mUNM = new com.android.server.connectivity.tethering.UpstreamNetworkMonitor ( null , com.android.server.connectivity.tethering.UpstreamNetworkMonitorTest.EVENT_UNM_UPDATE , ( ( android.net.ConnectivityManager ) ( mCM ) ) ) ; }
Source:
public static java.security.KeyStore getInstance ( java.lang.String type , java.security.Provider provider ) throws java.security.KeyStoreException { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( ) ; } if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } try { java.lang.Object spi = java.security.KeyStore.ENGINE.getInstance ( type , provider , null ) ; return new java.security.KeyStore ( ( ( java.security.KeyStoreSpi ) ( spi ) ) , provider , type ) ; } catch ( java.lang.Exception e ) { throw new java.security.KeyStoreException ( e ) ; } }

Target:
public static java.security.KeyStore getInstance ( java.lang.String type , java.security.Provider provider ) throws java.security.KeyStoreException { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( "provider == null" ) ; } if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } try { java.lang.Object spi = java.security.KeyStore.ENGINE.getInstance ( type , provider , null ) ; return new java.security.KeyStore ( ( ( java.security.KeyStoreSpi ) ( spi ) ) , provider , type ) ; } catch ( java.lang.Exception e ) { throw new java.security.KeyStoreException ( e ) ; } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_noroot s = new com.android.rs.unittest.ScriptC_noroot ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_foo ( A , A ) ; s.invoke_verify_foo ( ) ; s.invoke_noroot_test ( ) ; pRS.finish ( ) ; A.getType ( ) . destroy ( ) ; A.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_noroot s = new com.android.rs.unittest.ScriptC_noroot ( pRS ) ; initializeGlobals ( pRS , s ) ; s.forEach_foo ( A , A ) ; s.invoke_verify_foo ( ) ; s.invoke_noroot_test ( ) ; pRS.finish ( ) ; A.getType ( ) . destroy ( ) ; A.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void setComment ( java.lang.String comment ) { if ( comment == null ) { this . commentBytes = null ; return ; } byte [ ] newCommentBytes = comment.getBytes ( Charsets.UTF_8 ) ; if ( ( newCommentBytes.length ) > 65535 ) { throw new java.lang.IllegalArgumentException ( ( ( "Comment too long: " + ( newCommentBytes.length ) ) + " bytes" ) ) ; } this . commentBytes = newCommentBytes ; }

Target:
public void setComment ( java.lang.String comment ) { if ( comment == null ) { this . commentBytes = null ; return ; } byte [ ] newCommentBytes = comment.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; if ( ( newCommentBytes.length ) > 65535 ) { throw new java.lang.IllegalArgumentException ( ( ( "Comment too long: " + ( newCommentBytes.length ) ) + " bytes" ) ) ; } this . commentBytes = newCommentBytes ; }
Source:
protected void orderItems ( ) { int idx = 0 ; if ( ( items ( ) . size ( ) ) > ( ( com.android.dex.DexFormat.MAX_MEMBER_IDX ) + 1 ) ) { throw new com.android.dex.DexException ( getTooManyMembersMessage ( ) ) ; } for ( java.lang.Object i : items ( ) ) { ( ( com.android.dx.dex.file.MemberIdItem ) ( i ) ) . setIndex ( idx ) ; idx ++ ; } }

Target:
protected void orderItems ( ) { int idx = 0 ; if ( ( items ( ) . size ( ) ) > ( ( com.android.dex.DexFormat.MAX_MEMBER_IDX ) + 1 ) ) { throw new com.android.dex.DexIndexOverflowException ( getTooManyMembersMessage ( ) ) ; } for ( java.lang.Object i : items ( ) ) { ( ( com.android.dx.dex.file.MemberIdItem ) ( i ) ) . setIndex ( idx ) ; idx ++ ; } }
Source:
protected org.bouncycastle.crypto.tls.TlsStreamCipher createRC4Cipher ( org.bouncycastle.crypto.tls.TlsContext context , int cipherKeySize , int macAlgorithm ) throws java.io.IOException { return new org.bouncycastle.crypto.tls.TlsStreamCipher ( context , createRC4StreamCipher ( ) , createRC4StreamCipher ( ) , createHMACDigest ( macAlgorithm ) , createHMACDigest ( macAlgorithm ) , cipherKeySize ) ; }

Target:
protected org.bouncycastle.crypto.tls.TlsStreamCipher createSalsa20Cipher ( org.bouncycastle.crypto.tls.TlsContext context , int rounds , int cipherKeySize , int macAlgorithm ) throws java.io.IOException { return new org.bouncycastle.crypto.tls.TlsStreamCipher ( context , createSalsa20StreamCipher ( rounds ) , createSalsa20StreamCipher ( rounds ) , createHMACDigest ( macAlgorithm ) , createHMACDigest ( macAlgorithm ) , cipherKeySize , true ) ; }
Source:
public static android.net.MacAddress createRandomUnicastAddress ( android.net.MacAddress base , java.util.Random r ) { long addr = ( ( base.mAddr ) & ( android.net.MacAddress.OUI_MASK ) ) | ( ( android.net.MacAddress.NIC_MASK ) & ( r.nextLong ( ) ) ) ; addr = addr | ( android.net.MacAddress.LOCALLY_ASSIGNED_MASK ) ; addr = addr & ( ~ ( android.net.MacAddress.MULTICAST_MASK ) ) ; return new android.net.MacAddress ( addr ) ; }

Target:
public static android.net.MacAddress createRandomUnicastAddress ( ) { java.security.SecureRandom r = new java.security.SecureRandom ( ) ; long addr = ( r.nextLong ( ) ) & ( android.net.MacAddress.VALID_LONG_MASK ) ; addr |= android.net.MacAddress.LOCALLY_ASSIGNED_MASK ; addr &= ~ ( android.net.MacAddress.MULTICAST_MASK ) ; return new android.net.MacAddress ( addr ) ; }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.replyReport ( type , id , data ) ) ; }

Target:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.replyReport ( type , id , data ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; startActivity ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_A , com.android.cts.taskswitching.control.TaskswitchingDeviceTest.ACTIVITY_A ) ; startActivity ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_B , com.android.cts.taskswitching.control.TaskswitchingDeviceTest.ACTIVITY_B ) ; android.content.IntentFilter filterA = new android.content.IntentFilter ( ) ; filterA.addAction ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_A ) ; android.content.IntentFilter filterB = new android.content.IntentFilter ( ) ; filterB.addAction ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_B ) ; getContext ( ) . registerReceiver ( mReceiverA , filterA ) ; getContext ( ) . registerReceiver ( mReceiverB , filterB ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getContext ( ) . registerReceiver ( mReceiverA , new android.content.IntentFilter ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_A ) ) ; getContext ( ) . registerReceiver ( mReceiverB , new android.content.IntentFilter ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_B ) ) ; startActivity ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_A , com.android.cts.taskswitching.control.TaskswitchingDeviceTest.ACTIVITY_A ) ; assertTrue ( mReceiverA.waitForBroadcast ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.TASK_SWITCHING_WAIT_TIME ) ) ; startActivity ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.PKG_B , com.android.cts.taskswitching.control.TaskswitchingDeviceTest.ACTIVITY_B ) ; assertTrue ( mReceiverB.waitForBroadcast ( com.android.cts.taskswitching.control.TaskswitchingDeviceTest.TASK_SWITCHING_WAIT_TIME ) ) ; }
Source:
public void testInitialize ( ) { if ( skipTest ( ) ) return ; android.util.Log.i ( com.android.bluetooth.mapclient.MapClientTest.TAG , "testInitialize, test passed" ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ) { return ; } com.android.bluetooth.TestUtils.stopService ( mServiceRule , com.android.bluetooth.mapclient.MapClientService.class ) ; mService = com.android.bluetooth.mapclient.MapClientService.getMapClientService ( ) ; org.junit.Assert.assertNull ( mService ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mAdapterService ) ; }
Source:
protected static boolean isInterestingBlock ( @ com.android.annotations.NonNull java.lang.String parent , @ com.android.annotations.Nullable java.lang.String parentParent ) { return ( ( ( parent.equals ( "defaultConfig" ) ) || ( parent.equals ( "android" ) ) ) || ( parent.equals ( "dependencies" ) ) ) || ( ( parentParent != null ) && ( parentParent.equals ( "buildTypes" ) ) ) ; }

Target:
protected static boolean isInterestingBlock ( @ com.android.annotations.NonNull java.lang.String parent , @ com.android.annotations.Nullable java.lang.String parentParent ) { return ( ( ( ( parent.equals ( "defaultConfig" ) ) || ( parent.equals ( "android" ) ) ) || ( parent.equals ( "dependencies" ) ) ) || ( parent.equals ( "repositories" ) ) ) || ( ( parentParent != null ) && ( parentParent.equals ( "buildTypes" ) ) ) ; }
Source:
synchronized void nAllocationRead ( int id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { com.android.dialer.common.LogUtil.enterBlock ( "AnnotatedCallLogDatabaseHelper.onCreate" ) ; long startTime = java.lang.System.currentTimeMillis ( ) ; db.execSQL ( com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_TABLE_SQL ) ; db.execSQL ( java.lang.String.format ( java.util.Locale.US , com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_TRIGGER_SQL , maxRows , maxRows ) ) ; db.execSQL ( com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_INDEX_ON_CALL_TYPE_SQL ) ; com.android.dialer.common.LogUtil.i ( "AnnotatedCallLogDatabaseHelper.onCreate" , "took: %dms" , ( ( java.lang.System.currentTimeMillis ( ) ) - startTime ) ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { com.android.dialer.common.LogUtil.enterBlock ( "AnnotatedCallLogDatabaseHelper.onCreate" ) ; long startTime = java.lang.System.currentTimeMillis ( ) ; db.execSQL ( com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_TABLE_SQL ) ; db.execSQL ( java.lang.String.format ( java.util.Locale.US , com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_TRIGGER_SQL , maxRows , maxRows ) ) ; db.execSQL ( com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_INDEX_ON_CALL_TYPE_SQL ) ; db.execSQL ( com.android.dialer.calllog.database.AnnotatedCallLogDatabaseHelper.CREATE_INDEX_ON_NUMBER_SQL ) ; com.android.dialer.common.LogUtil.i ( "AnnotatedCallLogDatabaseHelper.onCreate" , "took: %dms" , ( ( java.lang.System.currentTimeMillis ( ) ) - startTime ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.util.ArrayList < java.lang.String > available = intent.getStringArrayListExtra ( ConnectivityManager.EXTRA_AVAILABLE_TETHER ) ; java.util.ArrayList < java.lang.String > active = intent.getStringArrayListExtra ( ConnectivityManager.EXTRA_ACTIVE_TETHER ) ; sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_TETHER_STATE_CHANGE , new com.android.server.wifi.WifiStateMachine.TetherStateChange ( available , active ) ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_BOOT_COMPLETED ) ; }
Source:
synchronized boolean connect ( ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , "connect()" ) ; return connectNative ( ) ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.reportError ( device , error ) ; }
Source:
public void applyTransportModeTransform ( java.io.FileDescriptor socket , int direction , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { applyTransportModeTransform ( pfd , direction , transform ) ; } }

Target:
public void applyTransportModeTransform ( java.io.FileDescriptor socket , int direction , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { mService.applyTransportModeTransform ( pfd , direction , transform.getResourceId ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.lang.CharSequence getSimCarrierIdName ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierName ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return null ; }

Target:
public int getSimCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }
Source:
public void installPackage ( java.lang.String originPath , android.content.pm.IPackageInstallObserver2 observer , int installFlags , java.lang.String installerPackageName , android.content.pm.VerificationParams verificationParams , java.lang.String packageAbiOverride ) { installPackageAsUser ( originPath , observer , installFlags , installerPackageName , verificationParams , packageAbiOverride , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
private void setInstallerPackageNameLPw ( android.content.pm.PackageParser.Package pkg , java.lang.String installerPackageName ) { mSettings.setInstallerPackageName ( pkg.packageName , installerPackageName ) ; final int childCount = ( ( pkg.childPackages ) != null ) ? pkg.childPackages.size ( ) : 0 ; for ( int i = 0 ; i < childCount ; i ++ ) { android.content.pm.PackageParser.Package childPkg = pkg.childPackages.get ( i ) ; mSettings.setInstallerPackageName ( childPkg.packageName , installerPackageName ) ; } }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } if ( fileType == ( com.android.jack.library.FileType.RSC ) ) { return resources.iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( inputVFS.getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } if ( fileType == ( com.android.jack.library.FileType.RSC ) ) { return resources.iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; com.android.jack.library.v0000.InputJackLibraryImpl.fillFiles ( inputVFS.getRootInputVDir ( ) , com.android.jack.library.v0000.InputJackLibraryImpl.getExtension ( fileType ) , inputVFiles ) ; return inputVFiles.iterator ( ) ; }