auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isAnnotationPresent ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } if ( isDeclaredAnnotationPresent ( annotationType ) ) { return true ; } if ( annotationType.isDeclaredAnnotationPresent ( java.lang.annotation.Inherited.class ) ) { for ( java.lang.Class < ? > sup = getSuperclass ( ) ; sup != null ; sup = sup.getSuperclass ( ) ) { if ( sup.isDeclaredAnnotationPresent ( annotationType ) ) { return true ; } } } return false ; }

Target:
public boolean isAnnotationPresent ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) { return libcore.reflect.AnnotationAccess.isAnnotationPresent ( this , annotationType ) ; }
Source:
public final void testSetIntIntIntInt ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r2 = r.set ( 3 , 4 , 20 , 30 ) ; assertSame ( r2 , r ) ; assertEquals ( 3 , r2.x ) ; assertEquals ( 4 , r2.y ) ; assertEquals ( 20 , r2.w ) ; assertEquals ( 30 , r2.h ) ; }

Target:
public final void testSetIntIntIntInt ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.common.api.Rect r2 = r.set ( 3 , 4 , 20 , 30 ) ; assertSame ( r2 , r ) ; assertEquals ( 3 , r2.x ) ; assertEquals ( 4 , r2.y ) ; assertEquals ( 20 , r2.w ) ; assertEquals ( 30 , r2.h ) ; }
Source:
private void readHistoryStatsFromFile ( ) { synchronized ( mFileLock ) { if ( mHistoryFile.getBaseFile ( ) . exists ( ) ) { readHistoryStatsFLOCK ( mHistoryFile ) ; } } }

Target:
private void writeHistoryStatsFLOCK ( ) { java.io.FileOutputStream fos = null ; try { fos = mHistoryFile.startWrite ( ) ; org.xmlpull.v1.XmlSerializer out = new com.android.internal.util.FastXmlSerializer ( ) ; out.setOutput ( fos , "utf-8" ) ; out.startDocument ( null , true ) ; out.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; out.startTag ( null , "usage-history" ) ; synchronized ( mStatsLock ) { for ( int i = 0 ; i < ( mLastResumeTimes.size ( ) ) ; i ++ ) { out.startTag ( null , "pkg" ) ; out.attribute ( null , "name" , mLastResumeTimes.keyAt ( i ) ) ; android.util.ArrayMap < java.lang.String , java.lang.Long > comp = mLastResumeTimes.valueAt ( i ) ; for ( int j = 0 ; j < ( comp.size ( ) ) ; j ++ ) { out.startTag ( null , "comp" ) ; out.attribute ( null , "name" , comp.keyAt ( j ) ) ; out.attribute ( null , "lrt" , comp.valueAt ( j ) . toString ( ) ) ; out.endTag ( null , "comp" ) ; } out.endTag ( null , "pkg" ) ; } } out.endTag ( null , "usage-history" ) ; out.endDocument ( ) ; mHistoryFile.finishWrite ( fos ) ; } catch ( java.io.IOException e ) { android.util.Slog.w ( com.android.server.am.UsageStatsService.TAG , ( "Error writing history stats" + e ) ) ; if ( fos != null ) { mHistoryFile.failWrite ( fos ) ; } } }
Source:
public void referenceAndroidCode ( ) { android.app.Activity a = null ; }

Target:
public void mockFinalMethod ( ) { android.app.Activity activity = mock ( android.app.Activity.class ) ; android.app.Application app = mock ( android.app.Application.class ) ; when ( activity.getApplication ( ) ) . thenReturn ( app ) ; assertSame ( app , activity.getApplication ( ) ) ; verify ( activity ) . getApplication ( ) ; verifyNoMoreInteractions ( activity ) ; }
Source:
public void connectionForPutWithBodyRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.PutWithBody request = new com.android.volley.mock.TestRequest.PutWithBody ( ) ; assertEquals ( request.getMethod ( ) , Method.PUT ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; assertEquals ( "PUT" , mMockConnection.getRequestMethod ( ) ) ; assertTrue ( mMockConnection.getDoOutput ( ) ) ; }

Target:
public void connectionForPutRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.Put request = new com.android.volley.mock.TestRequest.Put ( ) ; org.junit.Assert.assertEquals ( request.getMethod ( ) , Method.PUT ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; org.mockito.Mockito.verify ( mMockConnection ) . setRequestMethod ( "PUT" ) ; org.mockito.Mockito.verify ( mMockConnection , org.mockito.Mockito.never ( ) ) . setDoOutput ( true ) ; }
Source:
public boolean hasFile ( final java.lang.String name ) { java.lang.String [ ] match = list ( new com.android.sdklib.io.FilenameFilter ( ) { public boolean accept ( com.android.sdklib.io.IAbstractFolder dir , java.lang.String filename ) { return name.equals ( filename ) ; } } ) ; return ( match.length ) > 0 ; }

Target:
public boolean hasFile ( final java.lang.String name ) { java.lang.String [ ] match = list ( new com.android.io.FilenameFilter ( ) { public boolean accept ( com.android.io.IAbstractFolder dir , java.lang.String filename ) { return name.equals ( filename ) ; } } ) ; return ( match.length ) > 0 ; }
Source:
public boolean generate ( java.lang.String key ) { try { return ( mBinder.generate ( key , ( - 1 ) ) ) == ( 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 ) { try { return mBinder.saw ( prefix , uid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 1 ) ; fail ( ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 1 ) ; org.junit.Assert.fail ( ) ; }
Source:
public void reloadSdk ( com.android.sdklib.ISdkLog log ) { java.util.ArrayList < com.android.sdklib.IAndroidTarget > list = new java.util.ArrayList < com.android.sdklib.IAndroidTarget > ( ) ; com.android.sdklib.SdkManager.loadPlatforms ( mOsSdkPath , list , log ) ; com.android.sdklib.SdkManager.loadAddOns ( mOsSdkPath , list , log ) ; java.util.Collections.sort ( list ) ; setTargets ( list.toArray ( new com.android.sdklib.IAndroidTarget [ list.size ( ) ] ) ) ; initializeSamplePaths ( log ) ; }

Target:
public void reloadSdk ( com.android.sdklib.ISdkLog log ) { mTargetDirs.clear ( ) ; java.util.ArrayList < com.android.sdklib.IAndroidTarget > targets = new java.util.ArrayList < com.android.sdklib.IAndroidTarget > ( ) ; com.android.sdklib.SdkManager.loadPlatforms ( mOsSdkPath , targets , mTargetDirs , log ) ; com.android.sdklib.SdkManager.loadAddOns ( mOsSdkPath , targets , mTargetDirs , log ) ; java.util.Collections.sort ( targets ) ; setTargets ( targets.toArray ( new com.android.sdklib.IAndroidTarget [ targets.size ( ) ] ) ) ; initializeSamplePaths ( log ) ; }
Source:
public void initialize ( android.telephony.SignalStrength ss , int timingAdvance ) { mSignalStrength = ss.getLteSignalStrenght ( ) ; mRsrp = ss.getLteRsrp ( ) ; mRsrq = ss.getLteRsrq ( ) ; mRssnr = ss.getLteRssnr ( ) ; mCqi = ss.getLteCqi ( ) ; mTimingAdvance = timingAdvance ; }

Target:
public void initialize ( android.telephony.SignalStrength ss , int timingAdvance ) { mSignalStrength = ss.getLteSignalStrength ( ) ; mRsrp = ss.getLteRsrp ( ) ; mRsrq = ss.getLteRsrq ( ) ; mRssnr = ss.getLteRssnr ( ) ; mCqi = ss.getLteCqi ( ) ; mTimingAdvance = timingAdvance ; }
Source:
public V get ( java.lang.Object key ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; return segmentFor ( hash ) . get ( key , hash ) ; }

Target:
private java.util.concurrent.ConcurrentHashMap.Segment < K , V > segmentForHash ( int h ) { long u = ( ( ( h > > > ( segmentShift ) ) & ( segmentMask ) ) << ( java.util.concurrent.ConcurrentHashMap.SSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.SBASE ) ; return ( ( java.util.concurrent.ConcurrentHashMap.Segment < K , V > ) ( java.util.concurrent.ConcurrentHashMap.UNSAFE.getObjectVolatile ( segments , u ) ) ) ; }
Source:
public void testRunNormalInputCommandFailed ( ) { mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockRunUtil ( "which" , "python" , CommandStatus.FAILED ) ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( "Failed to run VTS test" . equals ( e.getMessage ( ) ) ) ) { fail ( ) ; } } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }

Target:
public void testRunNormalInputCommandFailed ( ) { mTest.setDevice ( mMockITestDevice ) ; com.android.tradefed.util.CommandResult commandResult = new com.android.tradefed.util.CommandResult ( ) ; commandResult.setStatus ( CommandStatus.FAILED ) ; org.easymock.EasyMock.expect ( mRunUtil.runTimedCmd ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.TEST_TIMEOUT , mCommand ) ) . andReturn ( commandResult ) ; org.easymock.EasyMock.replay ( mRunUtil ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.RuntimeException e ) { } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }
Source:
private java.lang.String getFieldValue ( java.lang.String key , java.lang.String prefix ) { java.lang.String value = mFields.get ( key ) ; if ( android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE.equals ( value ) ) return "" ; return removeDoubleQuotes ( value ) . substring ( prefix.length ( ) ) ; }

Target:
private java.lang.String getFieldValue ( java.lang.String key , java.lang.String prefix ) { java.lang.String value = mFields.get ( key ) ; if ( ( android.text.TextUtils.isEmpty ( value ) ) || ( android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE.equals ( value ) ) ) return "" ; return removeDoubleQuotes ( value ) . substring ( prefix.length ( ) ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; mDevice.removeWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleAccountLoginWatcher.class . getName ( ) ) ; }

Target:
public void testGoogleAccountLoginWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; device.registerWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleAccountLoginWatcher.class . getName ( ) , new com.android.devtools.systemimage.uitest.watchers.GoogleAccountLoginWatcher ( device , null , null ) ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "Contacts" ) ; device.removeWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleAccountLoginWatcher.class . getName ( ) ) ; }
Source:
java.lang.String attemptToFormatAccruedDigits ( ) { for ( com.google.i18n.phonenumbers.Phonemetadata.NumberFormat numberFormat : possibleFormats ) { java.util.regex.Matcher m = regexCache.getPatternForRegex ( numberFormat.getPattern ( ) ) . matcher ( nationalNumber ) ; if ( m.matches ( ) ) { shouldAddSpaceAfterNationalPrefix = com.google.i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN.matcher ( numberFormat.getNationalPrefixFormattingRule ( ) ) . find ( ) ; java.lang.String formattedNumber = m.replaceAll ( numberFormat.getFormat ( ) ) ; return appendNationalNumber ( formattedNumber ) ; } } return "" ; }

Target:
java.lang.String attemptToFormatAccruedDigits ( ) { for ( com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat numberFormat : possibleFormats ) { java.util.regex.Matcher m = regexCache.getPatternForRegex ( numberFormat.pattern ) . matcher ( nationalNumber ) ; if ( m.matches ( ) ) { shouldAddSpaceAfterNationalPrefix = com.google.i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN.matcher ( numberFormat.nationalPrefixFormattingRule ) . find ( ) ; java.lang.String formattedNumber = m.replaceAll ( numberFormat.format ) ; return appendNationalNumber ( formattedNumber ) ; } } return "" ; }
Source:
private static void readStringTable ( java.nio.ByteBuffer data , java.lang.String [ ] strings ) { int count = strings.length ; int i ; for ( i = 0 ; i < count ; i ++ ) { int nameLen = data.getInt ( ) ; java.lang.String descriptor = com.android.ddmlib.ChunkHandler.getString ( data , nameLen ) ; strings [ i ] = com.android.ddmlib.AllocationsParser.descriptorToDot ( descriptor ) ; } }

Target:
private static void readStringTable ( java.nio.ByteBuffer data , java.lang.String [ ] strings ) { int count = strings.length ; int i ; for ( i = 0 ; i < count ; i ++ ) { int nameLen = data.getInt ( ) ; java.lang.String descriptor = com.android.ddmlib.ByteBufferUtil.getString ( data , nameLen ) ; strings [ i ] = com.android.ddmlib.AllocationsParser.descriptorToDot ( descriptor ) ; } }
Source:
public void onCreate ( ) { super . onCreate ( ) ; mExpectedComponentName = new android.content.ComponentName ( this , this . getClass ( ) ) ; mEmergencyTonePlayer = new com.android.services.telephony.EmergencyTonePlayer ( this ) ; com.android.services.telephony.TelecomAccountRegistry.getInstance ( this ) . setTelephonyConnectionService ( this ) ; }

Target:
public void onCreate ( ) { super . onCreate ( ) ; com.android.services.telephony.Log.initLogging ( this ) ; mExpectedComponentName = new android.content.ComponentName ( this , this . getClass ( ) ) ; mEmergencyTonePlayer = new com.android.services.telephony.EmergencyTonePlayer ( this ) ; com.android.services.telephony.TelecomAccountRegistry.getInstance ( this ) . setTelephonyConnectionService ( this ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mServiceHandler = org.mockito.Mockito.spy ( android.net.nsd.NsdManagerTest.MockServiceHandler.create ( mContext ) ) ; org.mockito.Mockito.when ( mService.getMessenger ( ) ) . thenReturn ( new android.os.Messenger ( mServiceHandler ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mServiceHandler = org.mockito.Mockito.spy ( android.net.nsd.NsdManagerTest.MockServiceHandler.create ( mContext ) ) ; org.mockito.Mockito.when ( mService.getMessenger ( ) ) . thenReturn ( new android.os.Messenger ( mServiceHandler ) ) ; mManager = makeManager ( ) ; }
Source:
public void run ( ) { try { server.setEnableSessionCreation ( false ) ; try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { server.setEnableSessionCreation ( false ) ; try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } return null ; }
Source:
private void controlCdmaOptions ( boolean enable ) { android.preference.PreferenceScreen prefSet = getPreferenceScreen ( ) ; if ( prefSet == null ) { return ; } if ( enable && ( ( mCdmaOptions ) == null ) ) { mCdmaOptions = new com.android.phone.CdmaOptions ( this , prefSet , mPhone ) ; } com.android.phone.CdmaSystemSelectListPreference systemSelect = ( ( com.android.phone.CdmaSystemSelectListPreference ) ( prefSet.findPreference ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.BUTTON_CDMA_SYSTEM_SELECT_KEY ) ) ) ; if ( systemSelect != null ) { systemSelect.setEnabled ( enable ) ; } }

Target:
private void controlCdmaOptions ( boolean enable ) { android.preference.PreferenceScreen prefSet = getPreferenceScreen ( ) ; if ( prefSet == null ) { return ; } updateCdmaOptions ( this , prefSet , mPhone ) ; com.android.phone.CdmaSystemSelectListPreference systemSelect = ( ( com.android.phone.CdmaSystemSelectListPreference ) ( prefSet.findPreference ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.BUTTON_CDMA_SYSTEM_SELECT_KEY ) ) ) ; if ( systemSelect != null ) { systemSelect.setEnabled ( enable ) ; } }
Source:
public void testInstallWithInvalidBundleVersionFile ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithInvalidBundleVersion ( "2030a" ) ; assertFalse ( install ( tzData ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testUnsuccessfulFollowOnUpdate_olderVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData1 = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertTrue ( installer.install ( tzData1.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( tzData1 ) ; libcore.tzdata.update2.ConfigBundle tzData2 = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.OLDER_RULES_VERSION ) ; assertFalse ( installer.install ( tzData2.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( tzData1 ) ; }
Source:
public void verifyPendingInstall ( int id , int verificationCode ) throws android.os.RemoteException { final android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.PACKAGE_VERIFIED ) ; final com.android.server.pm.PackageVerificationResponse response = new com.android.server.pm.PackageVerificationResponse ( verificationCode , android.os.Binder.getCallingUid ( ) ) ; msg.arg1 = id ; msg.obj = response ; mHandler.sendMessage ( msg ) ; }

Target:
public void verifyPendingInstall ( int id , int verificationCode ) throws android.os.RemoteException { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.PACKAGE_VERIFICATION_AGENT , "Only package verification agents can verify applications" ) ; final android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.PACKAGE_VERIFIED ) ; final com.android.server.pm.PackageVerificationResponse response = new com.android.server.pm.PackageVerificationResponse ( verificationCode , android.os.Binder.getCallingUid ( ) ) ; msg.arg1 = id ; msg.obj = response ; mHandler.sendMessage ( msg ) ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName ) { com.android.ide.common.rendering.api.ResourceValue item = style.findValue ( itemName , style.isFramework ( ) ) ; if ( ( item == null ) && ( ( mStyleInheritanceMap ) != null ) ) { com.android.ide.common.rendering.api.StyleResourceValue parentStyle = mStyleInheritanceMap.get ( style ) ; if ( parentStyle != null ) { return findItemInStyle ( parentStyle , itemName ) ; } } return item ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String attrName ) { com.android.ide.common.rendering.api.ResourceValue item = findItemInStyle ( style , attrName , false ) ; if ( item == null ) { item = findItemInStyle ( style , attrName , true ) ; } return item ; }
Source:
public void testRSInit ( ) { for ( int i = 0 ; i < 1000 ; i ++ ) { android.cts.rscpp.RenderScript mRS = android.cts.rscpp.RenderScript.create ( getContext ( ) ) ; mRS.destroy ( ) ; android.util.Log.d ( "rscpptest" , ( "Java iteration " + i ) ) ; } assertTrue ( initTest ( ) ) ; }

Target:
public void testRSInit ( ) { for ( int i = 0 ; i < 1000 ; i ++ ) { android.cts.rscpp.RenderScript mRS = android.cts.rscpp.RenderScript.create ( getContext ( ) ) ; mRS.destroy ( ) ; android.util.Log.d ( "rscpptest" , ( "Java iteration " + i ) ) ; } assertTrue ( initTest ( this . getContext ( ) . getCacheDir ( ) . toString ( ) ) ) ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
private static java.lang.String getMajorVersionAsString ( @ javax.annotation.Nonnull com.android.sched.vfs.InputRootVDir vdir , @ javax.annotation.Nonnull java.util.Properties libraryProperties ) throws com.android.jack.library.LibraryFormatException { try { return com.android.jack.library.JackLibraryFactory.getVersionString ( java.lang.Integer.parseInt ( ( ( java.lang.String ) ( libraryProperties.get ( JackLibrary.KEY_LIB_MAJOR_VERSION ) ) ) ) ) ; } catch ( java.lang.NumberFormatException e ) { com.android.jack.library.JackLibraryFactory.logger.log ( java.util.logging.Level.SEVERE , ( ( ( "Fails to parse the property " + ( JackLibrary.KEY_LIB_MAJOR_VERSION ) ) + " from the library " ) + vdir ) , e ) ; throw new com.android.jack.library.LibraryFormatException ( vdir.getLocation ( ) ) ; } }

Target:
private static java.lang.String getMajorVersionAsString ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFS vdir , @ javax.annotation.Nonnull java.util.Properties libraryProperties ) throws com.android.jack.library.LibraryFormatException { try { return com.android.jack.library.JackLibraryFactory.getVersionString ( java.lang.Integer.parseInt ( ( ( java.lang.String ) ( libraryProperties.get ( JackLibrary.KEY_LIB_MAJOR_VERSION ) ) ) ) ) ; } catch ( java.lang.NumberFormatException e ) { com.android.jack.library.JackLibraryFactory.logger.log ( java.util.logging.Level.SEVERE , ( ( ( "Fails to parse the property " + ( JackLibrary.KEY_LIB_MAJOR_VERSION ) ) + " from the library " ) + vdir ) , e ) ; throw new com.android.jack.library.LibraryFormatException ( vdir.getLocation ( ) ) ; } }
Source:
private static com.android.utils.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > findIdInDocument ( java.lang.String id , org.eclipse.core.resources.IFile file , org.w3c.dom.Document document ) { java.lang.String targetAttribute = ( com.android.SdkConstants.NEW_ID_PREFIX ) + id ; return com.android.ide.eclipse.adt.internal.editors.Hyperlinks.findIdInElement ( document.getDocumentElement ( ) , file , targetAttribute ) ; }

Target:
private static com.android.utils.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > findIdInDocument ( java.lang.String id , org.eclipse.core.resources.IFile file , org.w3c.dom.Document document ) { java.lang.String targetAttribute = ( com.android.SdkConstants.NEW_ID_PREFIX ) + id ; org.w3c.dom.Element root = document.getDocumentElement ( ) ; com.android.utils.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > result = com.android.ide.eclipse.adt.internal.editors.Hyperlinks.findIdInElement ( root , file , targetAttribute , true ) ; if ( result == null ) { result = com.android.ide.eclipse.adt.internal.editors.Hyperlinks.findIdInElement ( root , file , targetAttribute , false ) ; } return result ; }
Source:
private boolean visitFieldOrArrayRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert expr.canThrow ( ) ; confirmBlockElement ( expr ) ; confirmThrowingPosition ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class ) ; com.android.jack.ir.ast.JAsgOperation asgExpr = ( ( com.android.jack.ir.ast.JAsgOperation ) ( expr.getParent ( ) ) ) ; if ( ( asgExpr.getLhs ( ) ) == expr ) { confirmParent ( asgExpr , com.android.jack.ir.ast.cfg.JStoreBlockElement.class ) ; } else { confirmVarAsgValue ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; } return true ; }

Target:
private boolean visitFieldOrArrayRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert expr.canThrow ( ) ; confirmBlockElement ( expr ) ; confirmThrowingIsAllowed ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class ) ; com.android.jack.ir.ast.JAsgOperation asgExpr = ( ( com.android.jack.ir.ast.JAsgOperation ) ( expr.getParent ( ) ) ) ; if ( ( asgExpr.getLhs ( ) ) == expr ) { confirmParent ( asgExpr , com.android.jack.ir.ast.cfg.JStoreBlockElement.class ) ; } else { confirmVariableAssignmentRhs ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; } return true ; }
Source:
public void test_dropSourceSpecific_twice_IPv4 ( ) throws java.lang.Exception { test_dropSourceSpecific_twice ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; }

Target:
public void test_joinSourceSpecific_multipleSourceAddressLimit ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = libcore.java.nio.channels.DatagramChannelMulticastTest.createReceiverChannel ( ) ; for ( byte i = 1 ; i <= 20 ; i ++ ) { java.net.InetAddress sourceAddress = java.net.Inet4Address.getByAddress ( new byte [ ] { 10 , 0 , 0 , i } ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , ipv4networkInterface , sourceAddress ) ; } catch ( java.net.SocketException e ) { assertTrue ( ( i > 10 ) ) ; break ; } } dc.close ( ) ; }
Source:
public void onProfileServiceStateChanged ( com.android.bluetooth.btservice.ProfileService profile , int state ) { if ( ( state != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) && ( state != ( android.bluetooth.BluetoothAdapter.STATE_OFF ) ) ) { throw new java.lang.IllegalArgumentException ( android.bluetooth.BluetoothAdapter.nameForState ( state ) ) ; } android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.AdapterService.MESSAGE_PROFILE_SERVICE_STATE_CHANGED ) ; m.obj = profile ; m.arg1 = state ; mHandler.sendMessage ( m ) ; }

Target:
public void onProfileServiceStateChanged ( java.lang.String serviceName , int state ) { android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.AdapterService.MESSAGE_PROFILE_SERVICE_STATE_CHANGED ) ; m.obj = serviceName ; m.arg1 = state ; mHandler.sendMessage ( m ) ; }
Source:
public void nonExpiredCacheHit ( ) throws java.lang.Exception { com.android.volley.Cache.Entry entry = com.android.volley.utils.CacheTestUtils.makeRandomCacheEntry ( null , false , false ) ; mCache.setEntryToReturn ( entry ) ; mCacheQueue.add ( mRequest ) ; mCacheQueue.waitUntilEmpty ( com.android.volley.CacheDispatcherTest.TIMEOUT_MILLIS ) ; assertTrue ( mDelivery.postResponse_called ) ; assertFalse ( mDelivery.postError_called ) ; }

Target:
public void expiredCacheHit ( ) throws java.lang.Exception { com.android.volley.Cache.Entry entry = com.android.volley.utils.CacheTestUtils.makeRandomCacheEntry ( null , true , true ) ; org.mockito.Mockito.when ( mCache.get ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( entry ) ; mDispatcher.processRequest ( mRequest ) ; com.android.volley.CacheDispatcherTest.verifyNoResponse ( mDelivery ) ; org.mockito.Mockito.verify ( mNetworkQueue ) . put ( mRequest ) ; org.junit.Assert.assertSame ( entry , mRequest.getCacheEntry ( ) ) ; }
Source:
public boolean isNonDefault ( ) { return ( ( ( mSupport5gBand ) || ( ( mMasterPreference ) != 0 ) ) || ( ( mClusterLow ) != ( android.net.wifi.aware.ConfigRequest.CLUSTER_ID_MIN ) ) ) || ( ( mClusterHigh ) != ( android.net.wifi.aware.ConfigRequest.CLUSTER_ID_MAX ) ) ; }

Target:
public int hashCode ( ) { int result = 17 ; result = ( 31 * result ) + ( mSupport5gBand ? 1 : 0 ) ; result = ( 31 * result ) + ( mMasterPreference ) ; result = ( 31 * result ) + ( mClusterLow ) ; result = ( 31 * result ) + ( mClusterHigh ) ; result = ( 31 * result ) + ( java.util.Arrays.hashCode ( mDiscoveryWindowInterval ) ) ; return result ; }
Source:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject unlock = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . packageName ( "com.android.keyboard" ) . descriptionContains ( "Slide area" ) ) ; android.support.test.uiautomator.UiObject unlock2 = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( "com.android.systemui:id/lock_icon" ) ) ; if ( ( unlock.exists ( ) ) || ( unlock2.exists ( ) ) ) { mDevice.pressMenu ( ) ; return true ; } return false ; }

Target:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject unlock = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . packageName ( "com.android.keyboard" ) . descriptionContains ( "Slide area" ) ) ; android.support.test.uiautomator.UiObject unlock2 = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.LOCK_SCREEN_ICON_RES ) ) ; if ( ( unlock.exists ( ) ) || ( unlock2.exists ( ) ) ) { mDevice.pressMenu ( ) ; return true ; } return false ; }
Source:
public com.google.common.collect.ImmutableList < com.android.manifmerger.Actions.NodeRecord > getNodeRecords ( com.android.manifmerger.XmlNode.NodeKey key ) { return mRecords.containsKey ( key ) ? mRecords.get ( key ) . getNodeRecords ( ) : com.google.common.collect.ImmutableList.< com.android.manifmerger.Actions.NodeRecord > of ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.manifmerger.XmlNode.NodeName > getRecordedAttributeNames ( com.android.manifmerger.XmlNode.NodeKey nodeKey ) { com.android.manifmerger.Actions.DecisionTreeRecord decisionTreeRecord = mRecords.get ( nodeKey ) ; if ( decisionTreeRecord == null ) { return com.google.common.collect.ImmutableList.of ( ) ; } return decisionTreeRecord.getAttributesRecords ( ) . keySet ( ) . asList ( ) ; }
Source:
public void run ( ) { try { java.lang.Thread.sleep ( waitMillis ) ; } catch ( java.lang.InterruptedException ex ) { throw new java.lang.RuntimeException ( "shouldn't happen" , ex ) ; } tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( thread ) ; }

Target:
public void run ( ) { try { barrier.await ( 60 , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.lang.Exception e ) { throw new java.lang.AssertionError ( e ) ; } try { java.lang.Thread.sleep ( waitMillis ) ; } catch ( java.lang.InterruptedException ex ) { throw new java.lang.RuntimeException ( "shouldn't happen" , ex ) ; } tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( thread ) ; }
Source:
public static android.net.MacAddress.MacAddressType macAddressType ( byte [ ] addr ) { if ( ! ( android.net.MacAddress.isMacAddress ( addr ) ) ) { return null ; } if ( java.util.Arrays.equals ( addr , android.net.MacAddress.ETHER_ADDR_BROADCAST ) ) { return android.net.MacAddress.MacAddressType.BROADCAST ; } if ( ( ( addr [ 0 ] ) & 1 ) == 1 ) { return android.net.MacAddress.MacAddressType.MULTICAST ; } return android.net.MacAddress.MacAddressType.UNICAST ; }

Target:
public static android.net.MacAddress.MacAddressType macAddressType ( byte [ ] addr ) { if ( ! ( android.net.MacAddress.isMacAddress ( addr ) ) ) { return null ; } return new android.net.MacAddress ( addr ) . addressType ( ) ; }
Source:
public void testFailWaitingForRelro ( ) { android.webkit.WebViewProviderInfo [ ] packages = new android.webkit.WebViewProviderInfo [ ] { new android.webkit.WebViewProviderInfo ( "packagename" , "" , true , true , null ) } ; setupWithPackages ( packages ) ; setEnabledAndValidPackageInfos ( packages ) ; mWebViewUpdateServiceImpl.prepareWebViewInSystemServer ( ) ; org.mockito.Mockito.verify ( mTestSystemImpl ) . onWebViewProviderChanged ( org.mockito.Mockito.argThat ( new com.android.server.webkit.WebViewUpdateServiceTest.IsPackageInfoWithName ( packages [ 0 ] . packageName ) ) ) ; android.webkit.WebViewProviderResponse response = mWebViewUpdateServiceImpl.waitForAndGetProvider ( ) ; assertEquals ( WebViewFactory.LIBLOAD_FAILED_WAITING_FOR_RELRO , response.status ) ; }

Target:
public void testFailWaitingForRelro ( ) { android.webkit.WebViewProviderInfo [ ] packages = new android.webkit.WebViewProviderInfo [ ] { new android.webkit.WebViewProviderInfo ( "packagename" , "" , true , true , null ) } ; setupWithPackages ( packages ) ; setEnabledAndValidPackageInfos ( packages ) ; runWebViewBootPreparationOnMainSync ( ) ; org.mockito.Mockito.verify ( mTestSystemImpl ) . onWebViewProviderChanged ( org.mockito.Mockito.argThat ( new com.android.server.webkit.WebViewUpdateServiceTest.IsPackageInfoWithName ( packages [ 0 ] . packageName ) ) ) ; android.webkit.WebViewProviderResponse response = mWebViewUpdateServiceImpl.waitForAndGetProvider ( ) ; org.junit.Assert.assertEquals ( WebViewFactory.LIBLOAD_FAILED_WAITING_FOR_RELRO , response.status ) ; }
Source:
public void close ( ) throws com.android.sched.util.file.CannotCloseOutputException { if ( ! ( closed ) ) { try { dumpToDir ( getRootDir ( ) , finalVFS.getRootDir ( ) ) ; finalVFS.close ( ) ; workVFS.close ( ) ; closed = true ; } catch ( com.android.sched.util.file.CannotCloseInputException | com.android.sched.util.file.CannotCloseOutputException | com.android.sched.util.file.CannotReadException | com.android.sched.util.file.CannotWriteException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.sched.util.file.CannotCloseOutputException ( this , e ) ; } } }

Target:
public void close ( ) throws com.android.sched.util.file.CannotCloseException { if ( ! ( closed ) ) { try { dumpToDir ( getRootDir ( ) , finalVFS.getRootDir ( ) ) ; finalVFS.close ( ) ; workVFS.close ( ) ; closed = true ; } catch ( com.android.sched.util.file.CannotCloseException | com.android.sched.util.file.CannotReadException | com.android.sched.util.file.CannotWriteException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.sched.util.file.CannotCloseException ( this , e ) ; } } }
Source:
public void testIsEntryStored ( ) throws java.io.IOException { java.lang.String fileName = jarFile.getCanonicalPath ( ) ; libcore.io.ClassPathURLStreamHandler streamHandler = new libcore.io.ClassPathURLStreamHandler ( fileName ) ; assertFalse ( streamHandler.isEntryStored ( "this/file/does/not/exist.txt" ) ) ; assertFalse ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.ENTRY_IN_SUBDIR ) ) ; assertTrue ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.ENTRY_STORED ) ) ; }

Target:
public void testIsEntryStored ( ) throws java.io.IOException { java.lang.String fileName = jarFile.getCanonicalPath ( ) ; libcore.io.ClassPathURLStreamHandler streamHandler = new libcore.io.ClassPathURLStreamHandler ( fileName ) ; assertFalse ( streamHandler.isEntryStored ( "this/file/does/not/exist.txt" ) ) ; assertFalse ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.ENTRY_IN_SUBDIR ) ) ; assertTrue ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.ENTRY_STORED ) ) ; assertFalse ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.DIR_ENTRY_WITHOUT_SLASH ) ) ; assertTrue ( streamHandler.isEntryStored ( libcore.io.ClassPathURLStreamHandlerTest.DIR_ENTRY_WITH_SLASH ) ) ; }
Source:
protected java.util.List < B > get ( int index ) { java.lang.Object [ ] tuple = new java.lang.Object [ axes.size ( ) ] ; for ( int i = 0 ; i < ( tuple.length ) ; i ++ ) { tuple [ i ] = axes.get ( i ) . getForIndex ( index ) ; } @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < B > result = ( ( com.google.common.collect.ImmutableList < B > ) ( com.google.common.collect.ImmutableList.copyOf ( tuple ) ) ) ; return result ; }

Target:
public java.util.List < E > get ( int index ) { return axes.get ( index ) . asList ( ) ; }
Source:
public int writeBytesTo ( byte [ ] dest , int offset , int maxLength ) { byte [ ] hash = asBytes ( ) ; maxLength = com.google.common.primitives.Ints.min ( maxLength , hash.length ) ; com.google.common.base.Preconditions.checkPositionIndexes ( offset , ( offset + maxLength ) , dest.length ) ; java.lang.System.arraycopy ( hash , 0 , dest , offset , maxLength ) ; return maxLength ; }

Target:
public final int hashCode ( ) { if ( ( bits ( ) ) >= 32 ) { return asInt ( ) ; } byte [ ] bytes = asBytes ( ) ; int val = ( bytes [ 0 ] ) & 255 ; for ( int i = 1 ; i < ( bytes.length ) ; i ++ ) { val |= ( ( bytes [ i ] ) & 255 ) << ( i * 8 ) ; } return val ; }
Source:
public void onDismiss ( android.content.DialogInterface dialog ) { super . onDismiss ( dialog ) ; android.app.Fragment target = getTargetFragment ( ) ; if ( target != null ) { target.onActivityResult ( getTargetRequestCode ( ) , 0 , null ) ; } }

Target:
public void onDismiss ( android.content.DialogInterface dialog ) { super . onDismiss ( dialog ) ; android.app.Fragment target = getTargetFragment ( ) ; if ( ( target != null ) && ( ( target.getActivity ( ) ) != null ) ) { target.onActivityResult ( getTargetRequestCode ( ) , 0 , null ) ; } }
Source:
public static void computeAtanh ( android.renderscript.cts.TestAtanh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( ( java.lang.StrictMath.log ( ( ( x + 1.0 ) / ( x - 1.0 ) ) ) ) / 2.0 ) ) ; }

Target:
public static void computeTanh ( android.renderscript.cts.TestTanh.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.tanh ( args.in ) , 5 , 128 ) ; }
Source:
private static java.lang.String toUnsignedString0 ( long i , int shift ) { char [ ] buf = new char [ 64 ] ; int charPos = 64 ; int radix = 1 << shift ; long mask = radix - 1 ; do { buf [ ( -- charPos ) ] = java.lang.Integer.digits [ ( ( int ) ( i & mask ) ) ] ; i >>>= shift ; } while ( i != 0 ) ; return new java.lang.String ( buf , charPos , ( 64 - charPos ) ) ; }

Target:
static java.lang.String toUnsignedString0 ( long val , int shift ) { int mag = ( java.lang.Long.SIZE ) - ( java.lang.Long.numberOfLeadingZeros ( val ) ) ; int chars = java.lang.Math.max ( ( ( mag + ( shift - 1 ) ) / shift ) , 1 ) ; char [ ] buf = new char [ chars ] ; java.lang.Long.formatUnsignedLong ( val , shift , buf , 0 , chars ) ; return new java.lang.String ( buf ) ; }
Source:
public boolean mergeProfiles ( int uid , java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return false ; try { return mInstalld.mergeProfiles ( uid , packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public boolean dumpProfiles ( int uid , java.lang.String packageName , java.lang.String codePaths ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return false ; try { return mInstalld.dumpProfiles ( uid , packageName , codePaths ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void testSocket_NonBlock_BasicStatusAfterConnect ( ) throws java.io.IOException { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.connect ( datagramSocket1Address ) ; dc.configureBlocking ( false ) ; java.net.DatagramSocket s1 = dc.socket ( ) ; assertSocketAfterConnect ( s1 ) ; java.net.DatagramSocket s2 = dc.socket ( ) ; assertSame ( s1 , s2 ) ; }

Target:
public void testSocket_NonBlock_BasicStatusAfterConnect ( ) throws java.io.IOException { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.connect ( datagramSocket1Address ) ; dc.configureBlocking ( false ) ; java.net.DatagramSocket s1 = dc.socket ( ) ; assertSocketAfterConnect ( s1 ) ; java.net.DatagramSocket s2 = dc.socket ( ) ; assertSame ( s1 , s2 ) ; dc.close ( ) ; }
Source:
public int getState ( ) { if ( android.bluetooth.BluetoothPbap.VDBG ) android.bluetooth.BluetoothPbap.log ( "getState()" ) ; final android.bluetooth.IBluetoothPbap service = mService ; if ( service != null ) { try { return service.getState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return android.bluetooth.BluetoothPbap.STATE_ERROR ; }

Target:
public int getState ( ) { if ( android.bluetooth.BluetoothPbap.VDBG ) android.bluetooth.BluetoothPbap.log ( "getState()" ) ; final android.bluetooth.IBluetoothPbap service = mService ; if ( service != null ) { try { return service.getState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return BluetoothProfile.STATE_DISCONNECTED ; }
Source:
public android.renderscript.ScriptGroup2 create ( android.renderscript.ScriptGroup2.Future ... outputs ) { android.renderscript.ScriptGroup2 ret = new android.renderscript.ScriptGroup2 ( mRS , mClosures , mInputs , outputs ) ; return ret ; }

Target:
public android.renderscript.ScriptGroup2 create ( java.lang.String name , android.renderscript.ScriptGroup2.Future ... outputs ) { if ( ( ( ( name == null ) || ( name.isEmpty ( ) ) ) || ( ( name.length ( ) ) > 100 ) ) || ( ! ( name.equals ( name.replaceAll ( "[^a-zA-Z0-9-]" , "_" ) ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "invalid script group name" ) ; } android.renderscript.ScriptGroup2 ret = new android.renderscript.ScriptGroup2 ( mRS , name , mClosures , mInputs , outputs ) ; return ret ; }
Source:
private void registerUiccCardEvents ( ) { if ( ( mUiccApplication ) != null ) { mUiccApplication.registerForReady ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_APP_READY , null ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.registerForRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_RECORDS_LOADED , null ) ; mIccRecords.registerForLockedRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_LOCKED , null ) ; mIccRecords.registerForNetworkLockedRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_NETWORK_LOCKED , null ) ; mIccRecords.registerForRecordsEvents ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_RECORD_EVENTS , null ) ; } }

Target:
private boolean areAllRecordsLoaded ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( app != null ) && ( isSupportedApplication ( app ) ) ) { com.android.internal.telephony.uicc.IccRecords ir = app.getIccRecords ( ) ; if ( ( ir == null ) || ( ! ( ir.isLoaded ( ) ) ) ) { return false ; } } } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
public void placeDuoCall ( java.lang.String phoneNumber ) { com.android.dialer.logging.Logger.get ( activity ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_SEARCH ) ; android.content.Intent intent = com.android.dialer.lightbringer.LightbringerComponent.get ( activity ) . getLightbringer ( ) . getIntent ( activity , phoneNumber ) ; activity.startActivityForResult ( intent , ActivityRequestCodes.DIALTACTS_LIGHTBRINGER ) ; }

Target:
public void placeDuoCall ( java.lang.String phoneNumber ) { com.android.dialer.logging.Logger.get ( activity ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_SEARCH ) ; android.content.Intent intent = com.android.dialer.duo.DuoComponent.get ( activity ) . getDuo ( ) . getIntent ( activity , phoneNumber ) ; activity.startActivityForResult ( intent , ActivityRequestCodes.DIALTACTS_DUO ) ; }
Source:
public void profilerControl ( boolean start , java.lang.String path , android.os.ParcelFileDescriptor fd , int profileType ) { android.app.ActivityThread.ProfilerControlData pcd = new android.app.ActivityThread.ProfilerControlData ( ) ; pcd.path = path ; pcd.fd = fd ; queueOrSendMessage ( android.app.ActivityThread.H.PROFILER_CONTROL , pcd , ( start ? 1 : 0 ) , profileType ) ; }

Target:
public void profilerControl ( boolean start , java.lang.String path , android.os.ParcelFileDescriptor fd , int profileType ) { android.app.ActivityThread.ProfilerControlData pcd = new android.app.ActivityThread.ProfilerControlData ( ) ; pcd.path = path ; pcd.fd = fd ; sendMessage ( android.app.ActivityThread.H.PROFILER_CONTROL , pcd , ( start ? 1 : 0 ) , profileType ) ; }
Source:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; com.android.sdklib.internal.avd.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = getAvdManager ( ) ; com.android.sdklib.internal.avd.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public static void d ( java.lang.Object caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.gsm.stk.StkLog.DEBUG ) ) { return ; } java.lang.String className = caller.getClass ( ) . getName ( ) ; android.util.Log.d ( "STK" , ( ( ( className.substring ( ( ( className.lastIndexOf ( '.' ) ) + 1 ) ) ) + ": " ) + msg ) ) ; }

Target:
public static void d ( java.lang.Object caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.cat.CatLog.DEBUG ) ) { return ; } java.lang.String className = caller.getClass ( ) . getName ( ) ; android.util.Log.d ( "CAT" , ( ( ( className.substring ( ( ( className.lastIndexOf ( '.' ) ) + 1 ) ) ) + ": " ) + msg ) ) ; }