auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void initializeNdkConfig ( @ org.gradle.model.Path ( value = "android.ndk" ) com.android.build.gradle.managed.NdkConfig ndk ) { ndk.setModuleName ( "" ) ; ndk.setToolchain ( "" ) ; ndk.setToolchainVersion ( "" ) ; ndk.setCFlags ( "" ) ; ndk.setCppFlags ( "" ) ; ndk.setStl ( "" ) ; ndk.setRenderscriptNdkMode ( false ) ; }

Target:
public void initializeNdkConfig ( @ org.gradle.model.Path ( value = "android.ndk" ) com.android.build.gradle.managed.NdkConfig ndk ) { ndk.setModuleName ( "" ) ; ndk.setToolchain ( "" ) ; ndk.setToolchainVersion ( "" ) ; ndk.setCFlags ( com.google.common.collect.Lists.< java.lang.String > newArrayList ( ) ) ; ndk.setCppFlags ( com.google.common.collect.Lists.< java.lang.String > newArrayList ( ) ) ; ndk.setLdLibs ( com.google.common.collect.Lists.< java.lang.String > newArrayList ( ) ) ; ndk.setAbiFilters ( com.google.common.collect.Sets.< java.lang.String > newHashSet ( ) ) ; ndk.setStl ( "" ) ; ndk.setRenderscriptNdkMode ( false ) ; }
Source:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailViewHolder.onClick" , "voicemail id: %d, isViewHolderExpanded:%b" , viewHolderId , isViewHolderExpanded ) ; if ( isViewHolderExpanded ) { collapseViewHolder ( ) ; voicemailViewHolderListener.onViewHolderCollapsed ( this ) ; } else { expandViewHolder ( ) ; voicemailViewHolderListener.onViewHolderExpanded ( this ) ; } }

Target:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailViewHolder.onClick" , "voicemail id: %d, isViewHolderCurrentlyExpanded:%b" , viewHolderId , isViewHolderExpanded ) ; if ( isViewHolderExpanded ) { voicemailViewHolderListener.collapseExpandedViewHolder ( this ) ; } else { voicemailViewHolderListener.expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders ( this , com.android.dialer.common.Assert.isNotNull ( voicemailEntryOfViewHolder ) , com.android.dialer.common.Assert.isNotNull ( voicemailViewHolderListener ) ) ; } }
Source:
public boolean onPreferenceClick ( android.preference.Preference preference ) { final android.content.Intent intent = new android.content.Intent ( android.provider.Settings.ACTION_APN_SETTINGS ) ; intent.putExtra ( ":settings:show_fragment_as_subsetting" , true ) ; intent.putExtra ( "sub_id" , mPhone.getSubId ( ) ) ; mPrefFragment.startActivity ( intent ) ; return true ; }

Target:
public boolean onPreferenceClick ( android.preference.Preference preference ) { com.android.internal.logging.MetricsLogger.action ( mButtonAPNExpand.getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_APN_SETTINGS ) ; final android.content.Intent intent = new android.content.Intent ( android.provider.Settings.ACTION_APN_SETTINGS ) ; intent.putExtra ( ":settings:show_fragment_as_subsetting" , true ) ; intent.putExtra ( "sub_id" , mPhone.getSubId ( ) ) ; mPrefFragment.startActivity ( intent ) ; return true ; }
Source:
public void forEach ( java.util.function.Consumer < ? super E > action ) { if ( action == null ) throw new java.lang.NullPointerException ( ) ; for ( java.lang.Object x : getArray ( ) ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( x ) ) ; action.accept ( e ) ; } }

Target:
public synchronized E set ( int index , E e ) { java.lang.Object [ ] newElements = elements.clone ( ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( newElements [ index ] ) ) ; newElements [ index ] = e ; elements = newElements ; return result ; }
Source:
private java.io.File createHugeZipFile ( int count ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( result ) ) ) ; for ( int i = 0 ; i < count ; ++ i ) { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( java.lang.Integer.toHexString ( i ) ) ; out.putNextEntry ( entry ) ; out.closeEntry ( ) ; } out.close ( ) ; return result ; }

Target:
private java.lang.String makeString ( int count , java.lang.String ch ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < count ; ++ i ) { sb.append ( ch ) ; } return sb.toString ( ) ; }
Source:
public com.android.jack.ir.ast.cfg.JControlFlowGraph getCfg ( ) { return cfg ; }

Target:
public void run ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { new com.android.jack.ir.ast.cfg.BasicBlockLiveProcessor ( cfg , false ) { @ java.lang.Override public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JSimpleBasicBlock block ) { if ( ( ( block.getElementCount ( ) ) == 1 ) && ( ( block.getLastElement ( ) . getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) ) { block.delete ( ) ; } return false ; } } . process ( ) ; }
Source:
public void setShadowLayer ( float radius , float dx , float dy , int color ) { mTextPaint.setShadowLayer ( radius , dx , dy , color ) ; mShadowRadius = radius ; mShadowDx = dx ; mShadowDy = dy ; if ( ( mEditor ) != null ) mEditor.invalidateTextDisplayList ( ) ; invalidate ( ) ; }

Target:
public void setShadowLayer ( float radius , float dx , float dy , int color ) { mTextPaint.setShadowLayer ( radius , dx , dy , color ) ; mShadowRadius = radius ; mShadowDx = dx ; mShadowDy = dy ; mShadowColor = color ; if ( ( mEditor ) != null ) mEditor.invalidateTextDisplayList ( ) ; invalidate ( ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName componentName ) { try { android.telecom.Log.startSession ( "SBC.oSD" ) ; synchronized ( mLock ) { logServiceDisconnected ( "onServiceDisconnected" ) ; mServiceConnection = null ; clearAbort ( ) ; handleServiceDisconnected ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void onServiceDisconnected ( android.content.ComponentName componentName ) { try { android.telecom.Log.startSession ( "SBC.oSD" ) ; synchronized ( mLock ) { logServiceDisconnected ( "onServiceDisconnected" ) ; handleDisconnect ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private void transformFields ( com.android.dx.merge.IndexMap indexMap , com.android.dx.io.ClassData [ ] fields ) { int lastOutFieldIndex = 0 ; for ( com.android.dx.io.ClassData.Field field : fields ) { int outFieldIndex = indexMap.adjustField ( field.getFieldIndex ( ) ) ; classDataOut.writeUleb128 ( ( outFieldIndex - lastOutFieldIndex ) ) ; lastOutFieldIndex = outFieldIndex ; classDataOut.writeUleb128 ( field.getAccessFlags ( ) ) ; } }

Target:
private void transformFields ( com.android.dx.merge.IndexMap indexMap , com.android.dex.ClassData [ ] fields ) { int lastOutFieldIndex = 0 ; for ( com.android.dex.ClassData.Field field : fields ) { int outFieldIndex = indexMap.adjustField ( field.getFieldIndex ( ) ) ; classDataOut.writeUleb128 ( ( outFieldIndex - lastOutFieldIndex ) ) ; lastOutFieldIndex = outFieldIndex ; classDataOut.writeUleb128 ( field.getAccessFlags ( ) ) ; } }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( super . hashCode ( ) , mName , mDimension , mMinSdkVersion , mTargetSdkVersion , mMaxSdkVersion , mRenderscriptTargetApi , mRenderscriptSupportModeEnabled , mRenderscriptNdkModeEnabled , mVersionCode , mVersionName , mApplicationId , mTestApplicationId , mTestInstrumentationRunner , mTestHandleProfiling , mTestFunctionalTest , mSigningConfig , mResourceConfiguration ) ; }

Target:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( super . hashCode ( ) , mName , mDimension , mMinSdkVersion , mTargetSdkVersion , mMaxSdkVersion , mRenderscriptTargetApi , mRenderscriptSupportModeEnabled , mRenderscriptNdkModeEnabled , mVersionCode , mVersionName , mApplicationId , mTestApplicationId , mTestInstrumentationRunner , mTestInstrumentationRunnerArguments , mTestHandleProfiling , mTestFunctionalTest , mSigningConfig , mResourceConfiguration ) ; }
Source:
public void onCreate ( ) { android.util.Log.i ( com.android.phone.testapps.imstestapp.TestImsService.LOG_TAG , "TestImsService: onCreate" ) ; mImsRegistration = com.android.phone.testapps.imstestapp.TestImsRegistrationImpl.getInstance ( ) ; mTestMmTelFeature = com.android.phone.testapps.imstestapp.TestMmTelFeatureImpl.getInstance ( ) ; mTestRcsFeature = new com.android.phone.testapps.imstestapp.TestRcsFeatureImpl ( ) ; com.android.phone.testapps.imstestapp.TestImsService.mInstance = this ; }

Target:
public void onCreate ( ) { android.util.Log.i ( com.android.phone.testapps.imstestapp.TestImsService.LOG_TAG , "TestImsService: onCreate" ) ; mImsRegistration = com.android.phone.testapps.imstestapp.TestImsRegistrationImpl.getInstance ( ) ; mTestMmTelFeature = com.android.phone.testapps.imstestapp.TestMmTelFeatureImpl.getInstance ( ) ; mTestRcsFeature = new com.android.phone.testapps.imstestapp.TestRcsFeatureImpl ( ) ; mTestImsConfig = com.android.phone.testapps.imstestapp.TestImsConfigImpl.getInstance ( ) ; com.android.phone.testapps.imstestapp.TestImsService.mInstance = this ; }
Source:
public void test_getDisplayName_noLocaleArgument ( ) { java.util.Currency currency = java.util.Currency.getInstance ( "DEM" ) ; libcore.java.util.CurrencyTest.Locales locales = libcore.java.util.CurrencyTest.getDefaultLocales ( ) ; try { libcore.java.util.CurrencyTest.setDefaultLocales ( new libcore.java.util.CurrencyTest.Locales ( java.util.Locale.US , java.util.Locale.GERMANY , java.util.Locale.FRANCE ) ) ; assertEquals ( "Deutsche Mark" , currency.getDisplayName ( ) ) ; } finally { libcore.java.util.CurrencyTest.setDefaultLocales ( locales ) ; } }

Target:
public void test_getDisplayName_noLocaleArgument ( ) { java.util.Currency currency = java.util.Currency.getInstance ( "DEM" ) ; libcore.java.util.Locales locales = libcore.java.util.Locales.getAndSetDefaultForTest ( java.util.Locale.US , java.util.Locale.GERMANY , java.util.Locale.FRANCE ) ; try { assertEquals ( "Deutsche Mark" , currency.getDisplayName ( ) ) ; } finally { locales.setAsDefault ( ) ; } }
Source:
public void testCannotSetChunkedStreamingModeAfterConnect ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; assertEquals ( "A" , readAscii ( connection.getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; try { connection.setChunkedStreamingMode ( 1 ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testCannotSetFixedLengthStreamingModeAfterChunkedStreamingMode ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.setChunkedStreamingMode ( 1 ) ; try { connection.setFixedLengthStreamingMode ( 1 ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
public static native int addHostRoute ( java.lang.String interfaceName , int hostaddr ) ;

Target:
public static boolean addDefaultRoute ( java.lang.String interfaceName , java.net.InetAddress gw ) { java.lang.String dstStr ; java.lang.String gwStr = gw.getHostAddress ( ) ; if ( gw instanceof java.net.Inet4Address ) { dstStr = "0.0.0.0" ; } else if ( gw instanceof java.net.Inet6Address ) { dstStr = "::" ; } else { android.util.Log.w ( android.net.NetworkUtils.TAG , ( ( ( "addDefaultRoute failure: address is neither IPv4 nor IPv6" + "(" ) + gwStr ) + ")" ) ) ; return false ; } return ( android.net.NetworkUtils.addRoute ( interfaceName , dstStr , 0 , gwStr ) ) == 0 ; }
Source:
public java.io.File getOutput ( ) { assert ( output ) != null ; if ( ( workingDir ) != null ) { return new java.io.File ( workingDir , output.getPath ( ) ) ; } else { return output ; } }

Target:
public java.io.File getOutput ( ) { assert ( output ) != null ; if ( ( ( workingDir ) != null ) && ( ! ( output.isAbsolute ( ) ) ) ) { return new java.io.File ( workingDir , output.getPath ( ) ) ; } else { return output ; } }
Source:
com.android.sched.vfs.DirectFS.DirectVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) , name ) ; com.android.sched.util.file.AbstractStreamFile.check ( file , new com.android.sched.util.location.FileLocation ( file ) ) ; return new com.android.sched.vfs.DirectFS.DirectVFile ( this , parent , name ) ; }

Target:
com.android.sched.vfs.ParentVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = getNativeFile ( parent.getPath ( ) , name ) ; com.android.sched.util.file.AbstractStreamFile.check ( path , new com.android.sched.util.location.FileLocation ( path ) ) ; return new com.android.sched.vfs.ParentVFile ( this , parent , name ) ; }
Source:
protected java.io.FileDescriptor createSocket ( ) { java.io.FileDescriptor s = null ; try { s = android.system.Os.socket ( android.net.ip.AF_PACKET , android.net.ip.SOCK_RAW , 0 ) ; android.net.NetworkUtils.attachControlPacketFilter ( s , android.net.ip.ARPHRD_ETHER ) ; android.system.Os.bind ( s , new android.system.PacketSocketAddress ( ( ( short ) ( ETH_P_ALL ) ) , mIfIndex ) ) ; } catch ( android.system.ErrnoException | java.io.IOException e ) { logError ( "Failed to create packet tracking socket: " , e ) ; closeSocket ( s ) ; return null ; } return s ; }

Target:
protected java.io.FileDescriptor createFd ( ) { java.io.FileDescriptor s = null ; try { s = android.system.Os.socket ( android.net.ip.AF_PACKET , android.net.ip.SOCK_RAW , 0 ) ; android.net.NetworkUtils.attachControlPacketFilter ( s , android.net.ip.ARPHRD_ETHER ) ; android.system.Os.bind ( s , new android.system.PacketSocketAddress ( ( ( short ) ( ETH_P_ALL ) ) , mIfIndex ) ) ; } catch ( android.system.ErrnoException | java.io.IOException e ) { logError ( "Failed to create packet tracking socket: " , e ) ; closeFd ( s ) ; return null ; } return s ; }
Source:
public void setAlwaysOnVpnPackage ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.Nullable java.lang.String vpnPackage ) throws android.content.pm.PackageManager.NameNotFoundException , java.lang.UnsupportedOperationException { setAlwaysOnVpnPackage ( admin , vpnPackage , true ) ; }

Target:
public void setDelegatedScopes ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.lang.String delegatePackage , @ android.annotation.NonNull java.util.List < java.lang.String > scopes ) { throwIfParentInstance ( "setDelegatedScopes" ) ; if ( ( mService ) != null ) { try { mService.setDelegatedScopes ( admin , delegatePackage , scopes ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public void newSms ( int var1 , java.util.ArrayList < java.lang.Byte > var2 ) { }

Target:
public void newSms ( int indicationType , java.util.ArrayList < java.lang.Byte > pdu ) { mRil.processIndication ( indicationType ) ; byte [ ] pduArray = com.android.internal.telephony.RIL.arrayListToPrimitiveArray ( pdu ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_NEW_SMS ) ; mRil.writeMetricsNewSms ( SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; android.telephony.SmsMessage sms = android.telephony.SmsMessage.newFromCMT ( pduArray ) ; if ( ( mRil.mGsmSmsRegistrant ) != null ) { mRil.mGsmSmsRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , sms , null ) ) ; } }
Source:
protected abstract void sendText ( java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , android.net.Uri messageUri , java.lang.String callingPkg , boolean persistMessage ) ;

Target:
private boolean sendSmsByCarrierApp ( boolean isDataSms , com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { java.lang.String carrierPackage = getCarrierAppPackageName ( ) ; if ( carrierPackage != null ) { android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "Found carrier package." ) ; com.android.internal.telephony.SMSDispatcher.SmsSender smsSender ; if ( isDataSms ) { smsSender = new com.android.internal.telephony.SMSDispatcher.DataSmsSender ( tracker ) ; } else { smsSender = new com.android.internal.telephony.SMSDispatcher.TextSmsSender ( tracker ) ; } smsSender.sendSmsByCarrierApp ( carrierPackage , new com.android.internal.telephony.SMSDispatcher.SmsSenderCallback ( smsSender ) ) ; return true ; } return false ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation cls ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } return c.getAnnotations ( ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; type.getEnclosingPackage ( ) . remove ( type ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; type.setEnclosingPackage ( newPackage ) ; newPackage.addType ( type ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; lookup.removeType ( type ) ; type.getEnclosingPackage ( ) . remove ( type ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; type.setEnclosingPackage ( newPackage ) ; newPackage.addType ( type ) ; }
Source:
public void interrupt ( ) { if ( ! ( Constants.USE_TCP_DEBUG ) ) { if ( ( btSocket ) != null ) { try { btSocket.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , "Error when close socket" ) ; } } } }

Target:
public void interrupt ( ) { if ( com.android.bluetooth.opp.BluetoothOppTransfer.D ) android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , ( "start interrupt :" + ( btSocket ) ) ) ; isInterrupted = true ; if ( ( btSocket ) != null ) { try { btSocket.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , "Error when close socket" ) ; } } }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "getAnimation" , args = { } ) } ) public void testClearBeforeAnimation ( ) throws java.lang.Throwable { final android.view.View view = mActivity.findViewById ( R.id.fit_windows ) ; assertFalse ( mAnimation.hasStarted ( ) ) ; view.setAnimation ( mAnimation ) ; assertSame ( mAnimation , view.getAnimation ( ) ) ; view.clearAnimation ( ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.invalidate ( ) ; } } ) ; java.lang.Thread.sleep ( android.view.cts.View_AnimationTest.TIME_OUT ) ; assertFalse ( mAnimation.hasStarted ( ) ) ; assertNull ( view.getAnimation ( ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "getAnimation" , args = { } ) } ) public void testClearBeforeAnimation ( ) throws java.lang.Throwable { final android.view.View view = mActivity.findViewById ( R.id.mock_view ) ; assertFalse ( mAnimation.hasStarted ( ) ) ; view.setAnimation ( mAnimation ) ; assertSame ( mAnimation , view.getAnimation ( ) ) ; view.clearAnimation ( ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.invalidate ( ) ; } } ) ; java.lang.Thread.sleep ( android.view.cts.View_AnimationTest.TIME_OUT ) ; assertFalse ( mAnimation.hasStarted ( ) ) ; assertNull ( view.getAnimation ( ) ) ; }
Source:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallbackDelegate.MSG_SNAPSHOT_OK : mCallback.onSuccess ( ( ( android.os.ParcelFileDescriptor ) ( msg.obj ) ) ) ; break ; case android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallbackDelegate.MSG_ERROR : mCallback.onError ( msg.arg1 ) ; break ; default : return false ; } return true ; }

Target:
public void onError ( int errCode ) { mExecutor.execute ( ( ) -> mCallback.onError ( errCode ) ) ; }
Source:
public void notString ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.tools.perflib.heap.Instance obj = ( ( com.android.tools.perflib.heap.Instance ) ( dump.getDumpedThing ( "anObject" ) ) ) ; org.junit.Assert.assertNotNull ( obj ) ; org.junit.Assert.assertNull ( com.android.ahat.InstanceUtils.asString ( obj ) ) ; }

Target:
public void asStringNotString ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.tools.perflib.heap.Instance obj = ( ( com.android.tools.perflib.heap.Instance ) ( dump.getDumpedThing ( "anObject" ) ) ) ; org.junit.Assert.assertNotNull ( obj ) ; org.junit.Assert.assertNull ( com.android.ahat.InstanceUtils.asString ( obj ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new com.ibm.icu.dev.test.format.TestMessageFormat ( ) . run ( args ) ; }

Target:
public void TestDateFormatHashCode ( ) { com.ibm.icu.text.DateFormat testDF = com.ibm.icu.text.DateFormat.getDateInstance ( DateFormat.DEFAULT , ULocale.GERMAN ) ; com.ibm.icu.text.NumberFormat testNF = testDF.getNumberFormat ( ) ; int expectedResult = ( ( testNF.getMaximumIntegerDigits ( ) ) * 37 ) + ( testNF.getMaximumFractionDigits ( ) ) ; int actualHashResult = testDF.hashCode ( ) ; assertEquals ( "DateFormat hashCode" , expectedResult , actualHashResult ) ; }
Source:
public void writeRawLittleEndian32 ( final int value ) throws java.io.IOException { writeRawByte ( ( value & 255 ) ) ; writeRawByte ( ( ( value > > 8 ) & 255 ) ) ; writeRawByte ( ( ( value > > 16 ) & 255 ) ) ; writeRawByte ( ( ( value > > 24 ) & 255 ) ) ; }

Target:
public void writeBytesNoTag ( final byte [ ] value , final int offset , final int length ) throws java.io.IOException { writeRawVarint32 ( length ) ; writeRawBytes ( value , offset , length ) ; }
Source:
public void test_getByAddress_loopbackIpv6 ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByAddress ( libcore.java.net.InetAddressTest.LOOPBACK6_BYTES ) ; libcore.java.net.InetAddressTest.assertEquals ( libcore.java.net.InetAddressTest.LOOPBACK6_BYTES , "ip6-localhost" , inetAddress ) ; assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }

Target:
public void test_getAllByName_localhost ( ) throws java.lang.Exception { java.net.InetAddress [ ] inetAddresses = java.net.InetAddress.getAllByName ( "localhost" ) ; org.junit.Assert.assertEquals ( 1 , inetAddresses.length ) ; java.net.InetAddress inetAddress = inetAddresses [ 0 ] ; libcore.java.net.InetAddressTest.checkInetAddress ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; org.junit.Assert.assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }
Source:
private java.util.List < ? extends com.android.tools.idea.run.CloudTestConfiguration > getDefaultConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.CloudTestConfigurationImpl allConfiguration = new com.google.gct.testing.CloudTestConfigurationImpl ( CloudTestConfigurationImpl.ALL_ID , "All" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }

Target:
private java.util.List < ? extends com.android.tools.idea.run.CloudTestConfiguration > getDefaultConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.CloudTestConfigurationImpl allConfiguration = new com.google.gct.testing.CloudTestConfigurationImpl ( CloudTestConfigurationImpl.ALL_ID , "All Compatible" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }
Source:
public static void assertEquals ( java.lang.String message , double expected , double actual , double delta ) { if ( ( java.lang.Double.compare ( expected , actual ) ) == 0 ) return ; if ( ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) <= delta ) ) org.junit.Assert.failNotEquals ( message , new java.lang.Double ( expected ) , new java.lang.Double ( actual ) ) ; }

Target:
public static void assertNotEquals ( java.lang.String message , java.lang.Object unexpected , java.lang.Object actual ) { if ( org.junit.Assert.equalsRegardingNull ( unexpected , actual ) ) { org.junit.Assert.failEquals ( message , actual ) ; } }
Source:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModels ( ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection ) ; } finally { connection.close ( ) ; } }

Target:
public com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; return modelMap.get ( ":" ) ; } finally { connection.close ( ) ; } }
Source:
public boolean endCall ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.eC" ) ; synchronized ( mLock ) { enforceModifyPermission ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { return endCallInternal ( callingPackage ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public boolean endCall ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.eC" ) ; synchronized ( mLock ) { if ( ! ( enforceAnswerCallPermission ( callingPackage , android.os.Binder.getCallingUid ( ) ) ) ) { throw new java.lang.SecurityException ( "requires ANSWER_PHONE_CALLS permission" ) ; } long token = android.os.Binder.clearCallingIdentity ( ) ; try { return endCallInternal ( callingPackage ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperation expr ) { if ( ! ( expr instanceof com.android.jack.ir.ast.JAsgOperation ) ) { return expr.canThrow ( ) ? visitThrowingRValue ( expr ) : visitNonThrowingOperation ( expr ) ; } confirmBlockElement ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class , com.android.jack.ir.ast.cfg.JStoreBlockElement.class ) ; return true ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperation expr ) { if ( expr instanceof com.android.jack.ir.ast.JConditionalOperation ) { throw new com.android.jack.ir.JNodeInternalError ( expr , "JConditionalOperation is not allowed on this level" ) ; } if ( ! ( expr instanceof com.android.jack.ir.ast.JAsgOperation ) ) { return expr.canThrow ( ) ? visitThrowingRValue ( expr ) : visitNonThrowingOperation ( expr ) ; } confirmBlockElement ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class , com.android.jack.ir.ast.cfg.JStoreBlockElement.class ) ; return true ; }
Source:
public static java.lang.String getScopedToken ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.util.Collection < java.lang.String > scopes , @ org.jetbrains.annotations.Nullable java.lang.String note ) throws java.io.IOException { java.lang.String path = "/authorizations" ; org.jetbrains.plugins.github.api.GithubAuthorizationRequest request = new org.jetbrains.plugins.github.api.GithubAuthorizationRequest ( new java.util.ArrayList < java.lang.String > ( scopes ) , note , null ) ; org.jetbrains.plugins.github.api.GithubAuthorization response = org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( org.jetbrains.plugins.github.api.GithubApiUtil.postRequest ( auth , path , org.jetbrains.plugins.github.api.GithubApiUtil.gson.toJson ( request ) ) , org.jetbrains.plugins.github.api.GithubAuthorizationRaw.class ) , org.jetbrains.plugins.github.api.GithubAuthorization.class ) ; return response.getToken ( ) ; }

Target:
public static java.lang.String getScopedToken ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.util.Collection < java.lang.String > scopes , @ org.jetbrains.annotations.Nullable java.lang.String note ) throws java.io.IOException { java.lang.String path = "/authorizations" ; org.jetbrains.plugins.github.api.GithubAuthorizationRequest request = new org.jetbrains.plugins.github.api.GithubAuthorizationRequest ( new java.util.ArrayList < java.lang.String > ( scopes ) , note , null ) ; org.jetbrains.plugins.github.api.GithubAuthorization response = org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( org.jetbrains.plugins.github.api.GithubApiUtil.postRequest ( auth , path , org.jetbrains.plugins.github.api.GithubApiUtil.gson.toJson ( request ) ) , org.jetbrains.plugins.github.api.GithubAuthorizationRaw.class ) , org.jetbrains.plugins.github.api.GithubAuthorization.class ) ; return response.getToken ( ) ; }
Source:
public void run ( ) { mTextView.setText ( "short" ) ; mTextView.setSingleLine ( ) ; getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }

Target:
public void run ( ) { mTextView.setText ( "short" ) ; mTextView.setSingleLine ( ) ; int width = android.widget.cts.WidgetTestUtils.convertDipToPixels ( getActivity ( ) , android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE ) ; getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( width , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }
Source:
private java.lang.String getRepresentationString ( com.google.common.base.Function < com.google.gct.testing.dimension.GoogleCloudTestingType , java.lang.String > typeToNameFunction , java.lang.String delimiter ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; for ( com.google.gct.testing.dimension.GoogleCloudTestingType type : typesByDimensionName.values ( ) ) { sb.append ( ( ( typeToNameFunction.apply ( type ) ) + delimiter ) ) ; } sb.replace ( ( ( sb.length ( ) ) - ( delimiter.length ( ) ) ) , sb.length ( ) , "" ) ; return sb.toString ( ) ; }

Target:
private java.lang.String getRepresentationString ( com.google.common.base.Function < com.google.gct.testing.dimension.CloudTestingType , java.lang.String > typeToNameFunction , java.lang.String delimiter ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; for ( com.google.gct.testing.dimension.CloudTestingType type : typesByDimensionName.values ( ) ) { sb.append ( ( ( typeToNameFunction.apply ( type ) ) + delimiter ) ) ; } sb.replace ( ( ( sb.length ( ) ) - ( delimiter.length ( ) ) ) , sb.length ( ) , "" ) ; return sb.toString ( ) ; }
Source:
public boolean passwordUid ( java.lang.String password , int uid ) { try { mError = mBinder.password_uid ( password , uid ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public java.lang.String [ ] saw ( java.lang.String prefix , int uid ) { return list ( prefix , uid ) ; }
Source:
public void process ( android.filterfw.core.FilterContext env ) { android.filterfw.core.Frame input = pullInput ( "mixedcase" ) ; java.lang.String inputString = ( ( java.lang.String ) ( input.getObjectValue ( ) ) ) ; android.filterfw.core.Frame output = env.getFrameManager ( ) . newFrame ( mOutputFormat ) ; output.setObjectValue ( inputString.toUpperCase ( ) ) ; pushOutput ( "uppercase" , output ) ; }

Target:
public void process ( android.filterfw.core.FilterContext env ) { android.filterfw.core.Frame input = pullInput ( "mixedcase" ) ; java.lang.String inputString = ( ( java.lang.String ) ( input.getObjectValue ( ) ) ) ; android.filterfw.core.Frame output = env.getFrameManager ( ) . newFrame ( mOutputFormat ) ; output.setObjectValue ( inputString.toUpperCase ( java.util.Locale.getDefault ( ) ) ) ; pushOutput ( "uppercase" , output ) ; }
Source:
synchronized java.util.logging.Logger findLogger ( java.lang.String name ) { ensureInitialized ( ) ; java.util.logging.LogManager.LoggerWeakRef ref = namedLoggers.get ( name ) ; if ( ref == null ) { return null ; } java.util.logging.Logger logger = ref.get ( ) ; if ( logger == null ) { removeLogger ( name ) ; } return logger ; }

Target:
synchronized java.util.logging.Logger findLogger ( java.lang.String name ) { ensureInitialized ( ) ; java.util.logging.LogManager.LoggerWeakRef ref = namedLoggers.get ( name ) ; if ( ref == null ) { return null ; } java.util.logging.Logger logger = ref.get ( ) ; if ( logger == null ) { ref.dispose ( ) ; } return logger ; }
Source:
private android.bluetooth.BluetoothGattService getService ( java.util.UUID serverUid ) { android.bluetooth.BluetoothGattService service = null ; if ( ( mBluetoothGatt ) != null ) { service = mBluetoothGatt.getService ( serverUid ) ; if ( service == null ) { showMessage ( "Service not found" ) ; } } return service ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service == null ) return null ; android.bluetooth.BluetoothGattCharacteristic characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; return null ; } return characteristic ; }
Source:
public void testWeights ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/inefficient_weight.xml:3: Error: Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at least one has layout_width=\"match_parent\" [Orientation]\n" + ( ( ( ( ( ( ( ( "<LinearLayout\n" + "^\n" ) + "res/layout/inefficient_weight.xml:10: Warning: Use a layout_width of 0dip instead of match_parent for better performance [InefficientWeight]\n" ) + " android:layout_width=\"match_parent\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/inefficient_weight.xml:24: Warning: Use a layout_height of 0dip instead of wrap_content for better performance [InefficientWeight]\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 2 warnings\n" ) ) , lintFiles ( "res/layout/inefficient_weight.xml" ) ) ; }

Target:
public void testWeights ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/inefficient_weight.xml:3: Error: Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at least one has layout_width=\"match_parent\" [Orientation]\n" + ( ( ( ( ( ( ( ( "<LinearLayout\n" + "^\n" ) + "res/layout/inefficient_weight.xml:10: Warning: Use a layout_width of 0dp instead of match_parent for better performance [InefficientWeight]\n" ) + " android:layout_width=\"match_parent\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/inefficient_weight.xml:24: Warning: Use a layout_height of 0dp instead of wrap_content for better performance [InefficientWeight]\n" ) + " android:layout_height=\"wrap_content\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 2 warnings\n" ) ) , lintFiles ( "res/layout/inefficient_weight.xml" ) ) ; }
Source:
private void sendDisplayPinIntent ( byte [ ] address , int pin , int variant ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_PAIRING_REQUEST ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mRemoteDevices.getDevice ( address ) ) ; if ( pin != 0 ) { intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_KEY , pin ) ; } intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_VARIANT , variant ) ; intent.setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) ; intent.setPackage ( com.android.bluetooth.btservice.BondStateMachine.PAIRING_REQUEST_PACKAGE ) ; mAdapterService.sendOrderedBroadcast ( intent , mAdapterService.BLUETOOTH_ADMIN_PERM ) ; }

Target:
private void sendDisplayPinIntent ( byte [ ] address , int pin , int variant ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_PAIRING_REQUEST ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mRemoteDevices.getDevice ( address ) ) ; if ( pin != 0 ) { intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_KEY , pin ) ; } intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_VARIANT , variant ) ; intent.setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) ; intent.setPackage ( mAdapterService.getString ( R.string.pairing_ui_package ) ) ; mAdapterService.sendOrderedBroadcast ( intent , mAdapterService.BLUETOOTH_ADMIN_PERM ) ; }
Source:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getNativeRef ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , proguardFlagFiles ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , boolean compareInstructionNumber , float instructionNumberTolerance ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , compareInstructionNumber , instructionNumberTolerance , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
public void run ( ) { Main.sleep ( 200 ) ; int field0 ; int field1 ; int field2 ; int field3 ; field0 = SlowInit.FIELD0.getValue ( ) ; field1 = SlowInit.FIELD1.getValue ( ) ; field2 = SlowInit.FIELD2.getValue ( ) ; field3 = SlowInit.FIELD3.getValue ( ) ; Main.sleep ( 400 ) ; java.lang.System.out.println ( ( ( ( ( "Fields (child thread): " + field0 ) + field1 ) + field2 ) + field3 ) ) ; }

Target:
public void run ( ) { Main.sleep ( 1000 ) ; int field0 ; int field1 ; int field2 ; int field3 ; field0 = SlowInit.FIELD0.getValue ( ) ; field1 = SlowInit.FIELD1.getValue ( ) ; field2 = SlowInit.FIELD2.getValue ( ) ; field3 = SlowInit.FIELD3.getValue ( ) ; Main.sleep ( 5000 ) ; java.lang.System.out.println ( ( ( ( ( "Fields (child thread): " + field0 ) + field1 ) + field2 ) + field3 ) ) ; }
Source:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; checkLock ( ) ; try { mInstalld.rmdex ( codePath , instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public long getAppDataInode ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return - 1 ; try { return mInstalld.getAppDataInode ( uuid , packageName , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public boolean processMessage ( android.os.Message message ) { boolean retValue = true ; switch ( message.what ) { case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_TETHER_MODE_REQUESTED : com.android.server.connectivity.tethering.TetherInterfaceStateMachine who = ( ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine ) ( message.obj ) ) ; who.sendMessage ( mErrorNotification ) ; break ; case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_CLEAR_ERROR : mErrorNotification = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; transitionTo ( mInitialState ) ; break ; default : retValue = false ; } return retValue ; }

Target:
public boolean processMessage ( android.os.Message message ) { boolean retValue = true ; switch ( message.what ) { case com.android.server.connectivity.Tethering.TetherMasterSM.EVENT_IFACE_SERVING_STATE_ACTIVE : com.android.server.connectivity.tethering.TetherInterfaceStateMachine who = ( ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine ) ( message.obj ) ) ; who.sendMessage ( mErrorNotification ) ; break ; case com.android.server.connectivity.Tethering.TetherMasterSM.CMD_CLEAR_ERROR : mErrorNotification = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; transitionTo ( mInitialState ) ; break ; default : retValue = false ; } return retValue ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState " + ( mState ) ) ) ; if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getState(): not allowed for non-active user" ) ; return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mState ; }

Target:
private void updateDbIdentifier ( ) { com.android.bluetooth.pbap.BluetoothPbapService.mDbIndetifier.set ( java.util.Calendar.getInstance ( ) . getTime ( ) . getTime ( ) ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) , Element.DataType.SIGNED_16 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_32 , data.length ) ; }
Source:
public static < T > boolean hasNonZeroEntry ( com.android.ahat.AhatSnapshot snapshot , com.android.tools.perflib.heap.Heap heap , com.android.ahat.HeapTable.TableConfig < T > config , java.util.List < T > elements ) { if ( ( snapshot.getHeapSize ( heap ) ) > 0 ) { for ( T element : elements ) { if ( ( config.getSize ( element , heap ) ) > 0 ) { return true ; } } } return false ; }

Target:
public static < T > boolean hasNonZeroEntry ( com.android.ahat.heapdump.AhatHeap heap , com.android.ahat.HeapTable.TableConfig < T > config , java.util.List < T > elements ) { if ( ( heap.getSize ( ) ) > 0 ) { for ( T element : elements ) { if ( ( config.getSize ( element , heap ) ) > 0 ) { return true ; } } } return false ; }
Source:
protected void fillFiles ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir vDir , @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > files ) { for ( com.android.sched.vfs.InputVElement subFile : vDir.list ( ) ) { if ( subFile.isVDir ( ) ) { fillFiles ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , fileType , files ) ; } else { com.android.sched.vfs.InputVFile vFile = ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ; if ( fileType.isOfType ( vFile ) ) { files.add ( vFile ) ; } } } }

Target:
public java.lang.String buildPropertyName ( @ javax.annotation.Nonnull com.android.jack.library.FileType type , @ javax.annotation.CheckForNull java.lang.String suffix ) { return ( getPropertyPrefix ( type ) ) + ( suffix == null ? "" : suffix ) ; }