auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
boolean checkAudioSettingsPermission ( java.lang.String method ) { if ( ( mContext.checkCallingOrSelfPermission ( "android.permission.MODIFY_AUDIO_SETTINGS" ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return true ; } java.lang.String msg = ( ( ( ( "Audio Settings Permission Denial: " + method ) + " from pid=" ) + ( android.os.Binder.getCallingPid ( ) ) ) + ", uid=" ) + ( android.os.Binder.getCallingUid ( ) ) ; android.util.Log.w ( android.media.AudioService.TAG , msg ) ; return false ; }

Target:
private boolean isInCommunication ( ) { boolean IsInCall = false ; android.telecom.TelecomManager telecomManager = ( ( android.telecom.TelecomManager ) ( mContext.getSystemService ( Context.TELECOM_SERVICE ) ) ) ; IsInCall = telecomManager.isInCall ( ) ; return IsInCall || ( ( getMode ( ) ) == ( AudioManager.MODE_IN_COMMUNICATION ) ) ; }
Source:
private void resetAll ( ) { android.os.IBinder operationToken = mOperationToken ; if ( operationToken != null ) { mOperationToken = null ; mKeyStore.abort ( operationToken ) ; } mEncrypting = false ; mKey = null ; mRng = null ; mFirstOperationInitiated = false ; mIv = null ; mIvHasBeenUsed = false ; mAdditionalEntropyForBegin = null ; mOperationToken = null ; mOperationHandle = null ; mMainDataStreamer = null ; }

Target:
private void resetAll ( ) { android.os.IBinder operationToken = mOperationToken ; if ( operationToken != null ) { mOperationToken = null ; mKeyStore.abort ( operationToken ) ; } mEncrypting = false ; mKey = null ; mRng = null ; mFirstOperationInitiated = false ; mIv = null ; mIvHasBeenUsed = false ; mAdditionalEntropyForBegin = null ; mOperationToken = null ; mOperationHandle = null ; mMainDataStreamer = null ; mCachedException = null ; }
Source:
public void testBufferedWrite ( ) throws java.lang.Exception { mWifiConfigStore.write ( false , getEmptyStoreData ( ) ) ; assertTrue ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertFalse ( mSharedStore.isStoreWritten ( ) ) ; assertFalse ( mUserStore.isStoreWritten ( ) ) ; mAlarmManager.dispatch ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ; mLooper.dispatchAll ( ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }

Target:
public void testBufferedWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( false , getEmptyStoreData ( ) ) ; assertTrue ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertFalse ( mSharedStore.isStoreWritten ( ) ) ; assertFalse ( mUserStore.isStoreWritten ( ) ) ; mAlarmManager.dispatch ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ; mLooper.dispatchAll ( ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }
Source:
public static android.icu.util.VersionInfo getCLDRVersion ( ) { if ( ( android.icu.util.LocaleData.gCLDRVersion ) == null ) { android.icu.util.UResourceBundle supplementalDataBundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , "supplementalData" , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; android.icu.util.UResourceBundle cldrVersionBundle = supplementalDataBundle.get ( "cldrVersion" ) ; android.icu.util.LocaleData.gCLDRVersion = android.icu.util.VersionInfo.getInstance ( cldrVersionBundle.getString ( ) ) ; } return android.icu.util.LocaleData.gCLDRVersion ; }

Target:
public static android.icu.util.VersionInfo getCLDRVersion ( ) { if ( ( android.icu.util.LocaleData.gCLDRVersion ) == null ) { android.icu.util.UResourceBundle supplementalDataBundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , "supplementalData" , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; android.icu.util.UResourceBundle cldrVersionBundle = supplementalDataBundle.get ( "cldrVersion" ) ; android.icu.util.LocaleData.gCLDRVersion = android.icu.util.VersionInfo.getInstance ( cldrVersionBundle.getString ( ) ) ; } return android.icu.util.LocaleData.gCLDRVersion ; }
Source:
public void testLoadTzData_invalidOffsets ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.setIndexOffsetOverride ( 10 ) ; builder.setDataOffsetOverride ( 30 ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 30 < ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }

Target:
public void testLoadTzData_invalidOffsets ( ) throws java.lang.Exception { libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.setIndexOffsetOverride ( 10 ) ; builder.setDataOffsetOverride ( 30 ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 30 < ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }
Source:
public void validateHomeSpWithoutFriendlyName ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; homeSp.fqdn = "fqdn" ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }

Target:
public void validateHomeSpWithInvalidHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithoutHomeNetworkIds ( ) ; java.util.Map < java.lang.String , java.lang.Long > homeNetworkIds = new java.util.HashMap < > ( ) ; byte [ ] rawSsidBytes = new byte [ 33 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; homeNetworkIds.put ( android.net.wifi.hotspot2.pps.StringFactory.newStringFromBytes ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) , 4660L ) ; homeSp.setHomeNetworkIds ( homeNetworkIds ) ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }
Source:
public void migrateFrom ( com.android.internal.telephony.Connection c ) { if ( c == null ) return ; mListeners = c.mListeners ; mDialString = c.getOrigDialString ( ) ; mCreateTime = c.getCreateTime ( ) ; mConnectTime = c.getConnectTime ( ) ; mConnectTimeReal = c.getConnectTimeReal ( ) ; mHoldingStartTime = c.getHoldingStartTime ( ) ; mOrigConnection = c.getOrigConnection ( ) ; mPostDialString = c.mPostDialString ; mNextPostDialChar = c.mNextPostDialChar ; }

Target:
public void migrateFrom ( com.android.internal.telephony.Connection c ) { if ( c == null ) return ; mListeners = c.mListeners ; mDialString = c.getOrigDialString ( ) ; mCreateTime = c.getCreateTime ( ) ; mConnectTime = c.getConnectTime ( ) ; mConnectTimeReal = c.getConnectTimeReal ( ) ; mHoldingStartTime = c.getHoldingStartTime ( ) ; mOrigConnection = c.getOrigConnection ( ) ; mPostDialString = c.mPostDialString ; mNextPostDialChar = c.mNextPostDialChar ; mPostDialState = c.mPostDialState ; }
Source:
public java.lang.String getAlias ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get Remote Device Alias" ) ; return null ; } try { return android.bluetooth.BluetoothDevice.sService.getRemoteAlias ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }

Target:
public java.lang.String getAlias ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get Remote Device Alias" ) ; return null ; } try { return service.getRemoteAlias ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }
Source:
public void referencedClassesAccept ( proguard.classfile.constant.ClassVisitor classVisitor ) { if ( ( referencedClasses ) != null ) { for ( int index = 0 ; index < ( referencedClasses.length ) ; index ++ ) { if ( ( referencedClasses [ index ] ) != null ) { referencedClasses [ index ] . accept ( classVisitor ) ; } } } }

Target:
public void referencedClassesAccept ( proguard.classfile.visitor.ClassVisitor classVisitor ) { if ( ( referencedClasses ) != null ) { for ( int index = 0 ; index < ( referencedClasses.length ) ; index ++ ) { if ( ( referencedClasses [ index ] ) != null ) { referencedClasses [ index ] . accept ( classVisitor ) ; } } } }
Source:
public void testAllocSpiSpiUnavaiableExeption ( ) throws java.lang.Exception { android.net.IpSecSpiResponse spiResp = new android.net.IpSecSpiResponse ( IpSecManager.Status.SPI_UNAVAILABLE , 0 , 0 ) ; org.mockito.Mockito.when ( mMockIpSecService.allocateSecurityParameterIndex ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyObject ( ) ) ) . thenReturn ( spiResp ) ; try { mIpSecManager.allocateSecurityParameterIndex ( IpSecTransform.DIRECTION_OUT , android.net.IpSecManagerTest.GOOGLE_DNS_4 ) ; org.junit.Assert.fail ( "ResourceUnavailableException was not thrown" ) ; } catch ( android.net.IpSecManager e ) { } }

Target:
public void testRequestAllocInvalidSpi ( ) throws java.lang.Exception { try { mIpSecManager.allocateSecurityParameterIndex ( android.net.IpSecManagerTest.GOOGLE_DNS_4 , 0 ) ; org.junit.Assert.fail ( "Able to allocate invalid spi" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
Source:
public void testBaseLayoutAliasValue ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceRepository repo = getResourceRepository ( ) ; java.util.List < com.android.ide.common.res2.ResourceItem > itemList = repo.getResourceItem ( ResourceType.LAYOUT , "layout_ref" ) ; assertNotNull ( itemList ) ; assertEquals ( 1 , itemList.size ( ) ) ; com.android.ide.common.rendering.api.ResourceValue value = itemList.get ( 0 ) . getResourceValue ( false ) ; assertNotNull ( value ) ; assertEquals ( "@layout/ref" , value.getValue ( ) ) ; }

Target:
public void testBaseLayoutAliasValue ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceRepository repo = com.android.ide.common.res2.ResourceRepositoryTest.getResourceRepository ( ) ; java.util.List < com.android.ide.common.res2.ResourceItem > itemList = repo.getResourceItem ( ResourceType.LAYOUT , "layout_ref" ) ; assertNotNull ( itemList ) ; assertEquals ( 1 , itemList.size ( ) ) ; com.android.ide.common.rendering.api.ResourceValue value = itemList.get ( 0 ) . getResourceValue ( false ) ; assertNotNull ( value ) ; assertEquals ( "@layout/ref" , value.getValue ( ) ) ; }
Source:
public void run ( ) { selectDropped ( nodes ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage outlinePage = mCanvas.getOutlinePage ( ) ; org.eclipse.ui.IWorkbenchPartSite site = outlinePage.getEditor ( ) . getSite ( ) ; org.eclipse.jface.viewers.ISelectionProvider selectionProvider = site.getSelectionProvider ( ) ; org.eclipse.jface.viewers.ISelection selection = selectionProvider.getSelection ( ) ; if ( selection != null ) { outlinePage.setSelection ( selection ) ; } }

Target:
public void syncOutlineSelection ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage outlinePage = mCanvas.getOutlinePage ( ) ; org.eclipse.ui.IWorkbenchPartSite site = outlinePage.getEditor ( ) . getSite ( ) ; org.eclipse.jface.viewers.ISelectionProvider selectionProvider = site.getSelectionProvider ( ) ; org.eclipse.jface.viewers.ISelection selection = selectionProvider.getSelection ( ) ; if ( selection != null ) { outlinePage.setSelection ( selection ) ; } }
Source:
public java.io.File getOutputFile ( ) { return variantData.packageLibTask.getArchivePath ( ) ; }

Target:
public org.gradle.api.tasks.bundling.Zip getPackageLibrary ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getPackageLibrary() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getPackageLibrary() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.api.LibraryVariantOutput ) ( outputs.get ( 0 ) ) ) . getPackageLibrary ( ) ; }
Source:
private boolean getExported ( org.w3c.dom.Element element ) { java.lang.String exportValue = element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_EXPORTED ) ; if ( ( exportValue != null ) && ( ( exportValue.length ( ) ) > 0 ) ) { return java.lang.Boolean.valueOf ( exportValue ) ; } else { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.SdkConstants.TAG_INTENT_FILTER ) ) { return true ; } } } return false ; }

Target:
private static boolean getExported ( org.w3c.dom.Element element ) { java.lang.String exportValue = element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_EXPORTED ) ; if ( ( exportValue != null ) && ( ! ( exportValue.isEmpty ( ) ) ) ) { return java.lang.Boolean.valueOf ( exportValue ) ; } else { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.SdkConstants.TAG_INTENT_FILTER ) ) { return true ; } } } return false ; }
Source:
public void onDestroy ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; mProgramLoadTask = null ; } getContext ( ) . getContentResolver ( ) . unregisterContentObserver ( mContentObserver ) ; mChannelDataManager.removeListener ( mChannelListener ) ; com.android.tv.TvApplication.getSingletons ( getContext ( ) ) . getDvrDataManager ( ) . removeSeriesRecordingListener ( mSeriesRecordingListener ) ; super . onDestroy ( ) ; }

Target:
private void executeProgramLoadingTask ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; } mProgramLoadTask = new com.android.tv.dvr.provider.EpisodicProgramLoadTask ( getContext ( ) , mSeriesRecording ) { @ java.lang.Override protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = ( programs == null ) ? java.util.Collections.EMPTY_LIST : programs ; onProgramsUpdated ( ) ; } } ; mProgramLoadTask.setLoadCurrentProgram ( true ) . setLoadDisallowedProgram ( true ) . setLoadScheduledEpisode ( true ) . setIgnoreChannelOption ( true ) . execute ( ) ; }
Source:
private int calculateContainerSize ( java.io.File apkFile , boolean forwardLocked , java.lang.String abiOverride ) throws java.io.IOException { com.android.internal.content.NativeLibraryHelper.ApkHandle handle = new com.android.internal.content.NativeLibraryHelper.ApkHandle ( apkFile ) ; final int abi = com.android.internal.content.NativeLibraryHelper.findSupportedAbi ( handle , ( abiOverride != null ? new java.lang.String [ ] { abiOverride } : android.os.Build.SUPPORTED_ABIS ) ) ; try { return calculateContainerSize ( handle , apkFile , abi , forwardLocked ) ; } finally { handle.close ( ) ; } }

Target:
private int calculateContainerSize ( java.io.File apkFile , boolean forwardLocked , java.lang.String abiOverride ) throws java.io.IOException { com.android.internal.content.NativeLibraryHelper.ApkHandle handle = null ; try { handle = com.android.internal.content.NativeLibraryHelper.ApkHandle.create ( apkFile ) ; final int abi = com.android.internal.content.NativeLibraryHelper.findSupportedAbi ( handle , ( abiOverride != null ? new java.lang.String [ ] { abiOverride } : android.os.Build.SUPPORTED_ABIS ) ) ; return calculateContainerSize ( handle , apkFile , abi , forwardLocked ) ; } finally { libcore.io.IoUtils.closeQuietly ( handle ) ; } }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { menuAction.getCallback ( ) . action ( menuAction , getSelectedNodes ( ) , menuAction.getId ( ) , false ) ; updateSelection ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.ide.common.api.RuleAction menuAction = ( ( com.android.ide.common.api.RuleAction ) ( button.getData ( ) ) ) ; menuAction.getCallback ( ) . action ( menuAction , getSelectedNodes ( ) , menuAction.getId ( ) , false ) ; updateSelection ( ) ; }
Source:
private int getCurrentScore ( boolean pretendValidated ) { if ( ( networkMisc.explicitlySelected ) && ( ( networkMisc.acceptUnvalidated ) || pretendValidated ) ) { return com.android.server.connectivity.NetworkAgentInfo.MAXIMUM_NETWORK_SCORE ; } int score = currentScore ; if ( ( ( ! ( lastValidated ) ) && ( ! pretendValidated ) ) && ( ! ( ignoreWifiUnvalidationPenalty ( ) ) ) ) { score -= com.android.server.connectivity.NetworkAgentInfo.UNVALIDATED_SCORE_PENALTY ; } if ( score < 0 ) score = 0 ; return score ; }

Target:
private int getCurrentScore ( boolean pretendValidated ) { if ( ( networkMisc.explicitlySelected ) && ( ( networkMisc.acceptUnvalidated ) || pretendValidated ) ) { return ConnectivityConstants.MAXIMUM_NETWORK_SCORE ; } int score = currentScore ; if ( ( ( ! ( lastValidated ) ) && ( ! pretendValidated ) ) && ( ! ( ignoreWifiUnvalidationPenalty ( ) ) ) ) { score -= ConnectivityConstants.UNVALIDATED_SCORE_PENALTY ; } if ( score < 0 ) score = 0 ; return score ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( "CellIdentityCdma:{" ) ; sb.append ( " mNetworkId=" ) ; sb.append ( mNetworkId ) ; sb.append ( " mSystemId=" ) ; sb.append ( mSystemId ) ; sb.append ( " mBasestationId=" ) ; sb.append ( mBasestationId ) ; sb.append ( " mLongitude=" ) ; sb.append ( mLongitude ) ; sb.append ( " mLatitude=" ) ; sb.append ( mLatitude ) ; sb.append ( " mAlphaLong=" ) ; sb.append ( mAlphaLong ) ; sb.append ( " mAlphaShort=" ) ; sb.append ( mAlphaShort ) ; sb.append ( "}" ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( android.telephony.CellIdentityCdma.TAG ) . append ( ":{ mNetworkId=" ) . append ( mNetworkId ) . append ( " mSystemId=" ) . append ( mSystemId ) . append ( " mBasestationId=" ) . append ( mBasestationId ) . append ( " mLongitude=" ) . append ( mLongitude ) . append ( " mLatitude=" ) . append ( mLatitude ) . append ( " mAlphaLong=" ) . append ( mAlphaLong ) . append ( " mAlphaShort=" ) . append ( mAlphaShort ) . append ( "}" ) . toString ( ) ; }
Source:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , str ) ; } mRil.processResponseDone ( rr , responseInfo , str ) ; } }
Source:
private static com.android.builder.resources.ResourceSet getMergedSet ( ) throws com.android.builder.resources.DuplicateResourceException { if ( ( com.android.builder.resources.ResourceMergerTest.sMergedSet ) == null ) { java.io.File root = getRoot ( "baseMerge" ) ; com.android.builder.resources.ResourceSet res = com.android.builder.resources.ResourceSetTest.getBaseResourceSet ( ) ; com.android.builder.resources.ResourceSet overlay = new com.android.builder.resources.ResourceSet ( ) ; overlay.addSource ( new java.io.File ( root , "overlay" ) ) ; com.android.builder.resources.ResourceMerger merger = new com.android.builder.resources.ResourceMerger ( ) ; merger.addResourceSet ( res ) ; merger.addResourceSet ( overlay ) ; com.android.builder.resources.ResourceMergerTest.sMergedSet = merger.getMergedSet ( ) ; } return com.android.builder.resources.ResourceMergerTest.sMergedSet ; }

Target:
private static com.android.builder.resources.ResourceMerger createMerger ( java.lang.String [ ] [ ] data ) { com.android.builder.resources.ResourceMerger merger = new com.android.builder.resources.ResourceMerger ( ) ; for ( java.lang.String [ ] setData : data ) { com.android.builder.resources.ResourceSet set = new com.android.builder.resources.ResourceSet ( setData [ 0 ] ) ; merger.addResourceSet ( set ) ; for ( int i = 1 , n = setData.length ; i < n ; i ++ ) { set.addSource ( new java.io.File ( setData [ i ] ) ) ; } } return merger ; }
Source:
private void disableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "disableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( ! ( mUsageEnabled ) ) { return ; } onAwareDownLocal ( ) ; deleteAllDataPathInterfaces ( ) ; mUsageEnabled = false ; com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . disable ( ( ( short ) ( 0 ) ) ) ; com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . deInitAware ( ) ; sendAwareStateChangedBroadcast ( false ) ; }

Target:
private void disableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "disableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( ! ( mUsageEnabled ) ) { return ; } onAwareDownLocal ( ) ; deleteAllDataPathInterfaces ( ) ; mUsageEnabled = false ; mWifiAwareNative.disable ( ( ( short ) ( 0 ) ) ) ; mWifiAwareNative.deInitAware ( ) ; sendAwareStateChangedBroadcast ( false ) ; }
Source:
private int findAttribute ( int attributesCount , proguard.classfile.editor.Attribute [ ] attributes , java.lang.String attributeName ) { for ( int index = 0 ; index < attributesCount ; index ++ ) { if ( attributes [ index ] . getAttributeName ( targetClass ) . equals ( attributeName ) ) { return index ; } } return - 1 ; }

Target:
public proguard.classfile.editor.Attribute findAttribute ( java.lang.String attributeName ) { return ( targetAttribute ) != null ? findAttribute ( targetAttribute.u2attributesCount , targetAttribute.attributes , attributeName ) : ( targetMember ) != null ? findAttribute ( targetMember.u2attributesCount , targetMember.attributes , attributeName ) : findAttribute ( targetClass.u2attributesCount , targetClass.attributes , attributeName ) ; }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( com.android.hierarchyviewerlib.device.Window.getFocusedWindow ( device ) ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . setTree ( viewNode ) ; } }

Target:
public void run ( ) { org.eclipse.swt.graphics.Image screenshotImage = getScreenshotImage ( hvDevice ) ; if ( screenshotImage != null ) { com.android.hierarchyviewerlib.models.ViewNode viewNode = hvDevice.loadWindowData ( com.android.hierarchyviewerlib.models.Window.getFocusedWindow ( hvDevice ) ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . setData ( hvDevice.getDevice ( ) , screenshotImage , viewNode ) ; } } }
Source:
private java.lang.StackTraceElement [ ] getInternalStackTrace ( ) { if ( ( stackTrace ) == null ) { stackTrace = java.lang.Throwable.nativeGetStackTrace ( stackState ) ; stackState = null ; } return stackTrace ; }

Target:
private java.lang.StackTraceElement [ ] getInternalStackTrace ( ) { if ( ( stackTrace ) == ( libcore.util.EmptyArray.STACK_TRACE_ELEMENT ) ) { stackTrace = java.lang.Throwable.nativeGetStackTrace ( stackState ) ; stackState = null ; return stackTrace ; } else if ( ( stackTrace ) == null ) { return libcore.util.EmptyArray.STACK_TRACE_ELEMENT ; } else { return stackTrace ; } }
Source:
public void removePhiRegister ( com.android.dx.ssa.RegisterSpec registerSpec ) { java.util.ArrayList < com.android.dx.ssa.PhiInsn.Operand > operandsToRemove = new java.util.ArrayList < com.android.dx.ssa.PhiInsn.Operand > ( ) ; for ( com.android.dx.ssa.PhiInsn.Operand o : operands ) { if ( ( o.regSpec.getReg ( ) ) == ( registerSpec.getReg ( ) ) ) { operandsToRemove.add ( o ) ; } } operands.removeAll ( operandsToRemove ) ; sources = null ; }

Target:
public void removePhiRegister ( com.android.dx.rop.code.RegisterSpec registerSpec ) { java.util.ArrayList < com.android.dx.ssa.PhiInsn.Operand > operandsToRemove = new java.util.ArrayList < com.android.dx.ssa.PhiInsn.Operand > ( ) ; for ( com.android.dx.ssa.PhiInsn.Operand o : operands ) { if ( ( o.regSpec.getReg ( ) ) == ( registerSpec.getReg ( ) ) ) { operandsToRemove.add ( o ) ; } } operands.removeAll ( operandsToRemove ) ; sources = null ; }
Source:
private int findCatchHandlerIndex ( com.android.dx.io.Code.CatchHandler [ ] catchHandlers , int offset ) { for ( int i = 0 ; i < ( catchHandlers.length ) ; i ++ ) { com.android.dx.io.Code.CatchHandler catchHandler = catchHandlers [ i ] ; if ( ( catchHandler.getOffset ( ) ) == offset ) { return i ; } } throw new java.lang.IllegalArgumentException ( ) ; }

Target:
private int findCatchHandlerIndex ( com.android.dex.Code.CatchHandler [ ] catchHandlers , int offset ) { for ( int i = 0 ; i < ( catchHandlers.length ) ; i ++ ) { com.android.dex.Code.CatchHandler catchHandler = catchHandlers [ i ] ; if ( ( catchHandler.getOffset ( ) ) == offset ) { return i ; } } throw new java.lang.IllegalArgumentException ( ) ; }
Source:
public void connectionForGetRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.Get request = new com.android.volley.mock.TestRequest.Get ( ) ; assertEquals ( request.getMethod ( ) , Method.GET ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; assertEquals ( "GET" , mMockConnection.getRequestMethod ( ) ) ; assertFalse ( mMockConnection.getDoOutput ( ) ) ; }

Target:
public void connectionForGetRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.Get request = new com.android.volley.mock.TestRequest.Get ( ) ; org.junit.Assert.assertEquals ( request.getMethod ( ) , Method.GET ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; org.mockito.Mockito.verify ( mMockConnection ) . setRequestMethod ( "GET" ) ; org.mockito.Mockito.verify ( mMockConnection , org.mockito.Mockito.never ( ) ) . setDoOutput ( true ) ; }
Source:
public int getContentLength ( ) { try { connect ( ) ; if ( ( jarEntry ) == null ) { return jarFileURLConnection.getContentLength ( ) ; } return ( ( int ) ( getJarEntry ( ) . getSize ( ) ) ) ; } catch ( java.io.IOException e ) { } return - 1 ; }

Target:
public long getContentLengthLong ( ) { try { connect ( ) ; if ( ( jarEntry ) == null ) { return jarFileURLConnection.getContentLengthLong ( ) ; } return getJarEntry ( ) . getSize ( ) ; } catch ( java.io.IOException e ) { } return - 1 ; }
Source:
public void onServiceConnected ( android.content.ComponentName className , android.os.IBinder service ) { if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , "Proxy object connected" ) ; mService = IBluetoothHeadset.Stub.asInterface ( service ) ; mHandler.sendMessage ( mHandler.obtainMessage ( android.bluetooth.BluetoothHeadset.MESSAGE_HEADSET_SERVICE_CONNECTED ) ) ; }

Target:
public void onServiceConnected ( android.content.ComponentName className , android.os.IBinder service ) { if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , "Proxy object connected" ) ; mService = IBluetoothHeadset.Stub.asInterface ( android.os.Binder.allowBlocking ( service ) ) ; mHandler.sendMessage ( mHandler.obtainMessage ( android.bluetooth.BluetoothHeadset.MESSAGE_HEADSET_SERVICE_CONNECTED ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { refreshTags ( ) ; }

Target:
public boolean onPreferenceChange ( android.support.v7.preference.Preference preference , java.lang.Object newValue ) { android.content.ComponentName name = new android.content.ComponentName ( getContext ( ) , com.android.traceur.QsService.class ) ; getContext ( ) . getPackageManager ( ) . setComponentEnabledSetting ( name , ( ( ( java.lang.Boolean ) ( newValue ) ) ? android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED : android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) , PackageManager.DONT_KILL_APP ) ; return true ; }
Source:
public void keyTyped ( java.awt.event.KeyEvent e ) { if ( ( ( e.getKeyCode ( ) ) == ( java.awt.event.KeyEvent.VK_SPACE ) ) || ( ( e.getKeyCode ( ) ) == ( java.awt.event.KeyEvent.VK_ENTER ) ) ) { e.consume ( ) ; doClick ( ) ; } }

Target:
public void keyPressed ( java.awt.event.KeyEvent e ) { if ( ( ( e.getKeyCode ( ) ) == ( java.awt.event.KeyEvent.VK_SPACE ) ) || ( ( e.getKeyCode ( ) ) == ( java.awt.event.KeyEvent.VK_ENTER ) ) ) { e.consume ( ) ; doClick ( ) ; } }
Source:
public void setLocation ( @ com.android.annotations.NonNull java.io.File sdkRoot ) { assert sdkRoot != null ; mSdkRoot = sdkRoot ; clearLocalPkg ( com.android.sdklib.repository.local.LocalSdk.PKG_ALL ) ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision ) { assert filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_BUILD_TOOLS ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasFullRevision ( ) ) && ( d.getFullRevision ( ) . equals ( revision ) ) ) { return pkg ; } } return null ; }
Source:
protected int getApnProfileID ( java.lang.String apnType ) { if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_IMS ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_IMS ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_FOTA ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_FOTA ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_CBS ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_CBS ; } else { return com.android.internal.telephony.RILConstants.DATA_PROFILE_DEFAULT ; } }

Target:
protected int getApnProfileID ( java.lang.String apnType ) { if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_IMS ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_IMS ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_FOTA ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_FOTA ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_CBS ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_CBS ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_IA ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_DEFAULT ; } else if ( android.text.TextUtils.equals ( apnType , PhoneConstants.APN_TYPE_DUN ) ) { return com.android.internal.telephony.RILConstants.DATA_PROFILE_TETHERED ; } else { return com.android.internal.telephony.RILConstants.DATA_PROFILE_DEFAULT ; } }
Source:
public java.lang.String getShortDescription ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( this . getClass ( ) . getSimpleName ( ) ) ; sb.append ( " '" ) . append ( mTestHandle ) . append ( '\'' ) ; if ( ( getRevision ( ) ) > 0 ) { sb.append ( " rev=" ) . append ( getRevision ( ) ) ; } return sb.toString ( ) ; }

Target:
public java.lang.String getShortDescription ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( this . getClass ( ) . getSimpleName ( ) ) ; sb.append ( " '" ) . append ( mTestHandle ) . append ( '\'' ) ; if ( ( getRevision ( ) . getMajor ( ) ) > 0 ) { sb.append ( " rev=" ) . append ( getRevision ( ) ) ; } return sb.toString ( ) ; }
Source:
public void turnScreenOnWhenWifiInConnectedStateRoamingDisabled ( ) { mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_CONNECTED ) ; when ( mWifiConfigManager.getEnableAutoJoinWhenAssociated ( ) ) . thenReturn ( false ) ; mWifiConnectivityManager.handleScreenStateChanged ( true ) ; verify ( mWifiStateMachine , times ( 0 ) ) . autoConnectToNetwork ( com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_NETWORK_ID , com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_BSSID ) ; }

Target:
public void turnScreenOnWhenWifiInConnectedStateRoamingDisabled ( ) { when ( mResource.getBoolean ( R.bool.config_wifi_framework_enable_associated_network_selection ) ) . thenReturn ( false ) ; mWifiConnectivityManager = createConnectivityManager ( ) ; mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_CONNECTED ) ; mWifiConnectivityManager.handleScreenStateChanged ( true ) ; verify ( mWifiStateMachine , times ( 0 ) ) . autoConnectToNetwork ( com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_NETWORK_ID , com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_BSSID ) ; }
Source:
public java.util.Date getDate ( ) { try { if ( ( time ) instanceof org.bouncycastle.asn1.DERUTCTime ) { return ( ( org.bouncycastle.asn1.DERUTCTime ) ( time ) ) . getAdjustedDate ( ) ; } else { return ( ( org.bouncycastle.asn1.DERGeneralizedTime ) ( time ) ) . getDate ( ) ; } } catch ( java.text.ParseException e ) { throw new java.lang.IllegalStateException ( ( "invalid date string: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public java.lang.String getTime ( ) { if ( ( time ) instanceof org.bouncycastle.asn1.ASN1UTCTime ) { return ( ( org.bouncycastle.asn1.ASN1UTCTime ) ( time ) ) . getAdjustedTime ( ) ; } else { return ( ( org.bouncycastle.asn1.ASN1GeneralizedTime ) ( time ) ) . getTime ( ) ; } }
Source:
protected int getOutputSizeForFinal ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx ) ; if ( ( getPadding ( ) ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }

Target:
protected int getOutputSizeForFinal ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx ) ; if ( ( getPadding ( ) ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { int extraBlockSize = ( isEncrypting ( ) ) ? modeBlockSize : 0 ; final int totalLen = ( inputLen + buffered ) + extraBlockSize ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
public void testLoadTzData_nonDivisibleIndex ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; int indexOffset = 10 ; builder.setIndexOffsetOverride ( indexOffset ) ; int dataOffset = ( indexOffset + ( ZoneInfoDB.TzData.SIZEOF_INDEX_ENTRY ) ) - 1 ; builder.setDataOffsetOverride ( dataOffset ) ; builder.setZoneTabOffsetOverride ( ( dataOffset + 40 ) ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 3000 > ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }

Target:
public void testLoadTzData_nonDivisibleIndex ( ) throws java.lang.Exception { libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; int indexOffset = 10 ; builder.setIndexOffsetOverride ( indexOffset ) ; int dataOffset = ( indexOffset + ( ZoneInfoDB.TzData.SIZEOF_INDEX_ENTRY ) ) - 1 ; builder.setDataOffsetOverride ( dataOffset ) ; builder.setZoneTabOffsetOverride ( ( dataOffset + 40 ) ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 3000 > ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }
Source:
private void registerForIccRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } if ( isPhoneTypeGsm ( ) ) { r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.EVENT_SIM_RECORDS_LOADED , null ) ; } else { r.registerForRecordsLoaded ( this , com.android.internal.telephony.EVENT_RUIM_RECORDS_LOADED , null ) ; } }

Target:
private void registerForIccRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } if ( isPhoneTypeGsm ( ) ) { r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.EVENT_SIM_RECORDS_LOADED , null ) ; } else { r.registerForRecordsLoaded ( this , com.android.internal.telephony.EVENT_RUIM_RECORDS_LOADED , null ) ; if ( isPhoneTypeCdmaLte ( ) ) { r.registerForRecordsLoaded ( this , com.android.internal.telephony.EVENT_SIM_RECORDS_LOADED , null ) ; } } }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; 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 com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = c.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }

Target:
public android.webkit.WebBackForwardList copyBackForwardList ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return copyBackForwardList ( ) ; } } ) ; return ret ; } return new com.android.webview.chromium.WebBackForwardListChromium ( mAwContents.getNavigationHistory ( ) ) ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { switch ( opcode ) { case org.objectweb.asm.Opcodes.INVOKESPECIAL : invokespecial ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKEVIRTUAL : invokevirtual ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKESTATIC : invokestatic ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKEINTERFACE : invokeinterface ( owner , name , desc ) ; break ; default : throw new java.lang.IllegalArgumentException ( ) ; } }

Target:
public void invokestatic ( final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { if ( ( api ) < ( org.objectweb.asm.Opcodes.ASM5 ) ) { if ( itf ) { throw new java.lang.IllegalArgumentException ( "INVOKESTATIC on interfaces require ASM 5" ) ; } invokestatic ( owner , name , desc ) ; return ; } mv.visitMethodInsn ( Opcodes.INVOKESTATIC , owner , name , desc , itf ) ; }
Source:
public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord ( java.util.UUID uuid ) throws java.io.IOException { if ( ( isBluetoothEnabled ( ) ) == false ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , true , true , this , ( - 1 ) , new android.os.ParcelUuid ( uuid ) ) ; }

Target:
public android.bluetooth.BluetoothSocket createInsecureRfcommSocket ( int port ) throws java.io.IOException { if ( ! ( isBluetoothEnabled ( ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , false , false , this , port , null ) ; }
Source:
public void onFailure ( java.lang.Throwable throwable ) { com.android.dialer.common.LogUtil.e ( outputTag , "error running command future" , throwable ) ; }

Target:
public void onFailure ( java.lang.Throwable throwable ) { if ( throwable instanceof com.android.dialer.commandline.Command.IllegalCommandLineArgumentException ) { com.android.dialer.common.LogUtil.e ( outputTag , ( ( ( throwable.getMessage ( ) ) + "\n\nusage:\n" ) + ( command.getUsage ( ) ) ) ) ; } com.android.dialer.common.LogUtil.e ( outputTag , "error running command future" , throwable ) ; }
Source:
private void msgDeviceBrowseDisconnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseDisconnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.w ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse disconnecting from different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = false ; }

Target:
private void msgDeviceBrowseDisconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.DBG ) android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseDisconnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.w ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse disconnecting from different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = false ; }
Source:
public java.lang.String getIsimChallengeResponse ( java.lang.String nonce ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIsimChallengeResponse ( nonce ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public int getVoiceActivationState ( ) { return getVoiceActivationState ( getSubId ( ) ) ; }
Source:
public void testExecute ( ) throws java.lang.Exception { com.android.ide.common.rendering.RenderSecurityManager manager = new com.android.ide.common.rendering.RenderSecurityManager ( null , null ) ; try { manager.setActive ( true ) ; manager.checkPermission ( new java.io.FilePermission ( "/foo" , "execute" ) ) ; fail ( "Should have thrown security exception" ) ; } catch ( java.lang.SecurityException exception ) { assertEquals ( "Write access not allowed during rendering (/foo)" , exception.toString ( ) ) ; } finally { manager.dispose ( ) ; } }

Target:
public void testExecute ( ) throws java.lang.Exception { com.android.ide.common.rendering.RenderSecurityManager manager = new com.android.ide.common.rendering.RenderSecurityManager ( null , null ) ; try { manager.setActive ( true , myCredential ) ; manager.checkPermission ( new java.io.FilePermission ( "/foo" , "execute" ) ) ; fail ( "Should have thrown security exception" ) ; } catch ( java.lang.SecurityException exception ) { assertEquals ( "Write access not allowed during rendering (/foo)" , exception.toString ( ) ) ; } finally { manager.dispose ( myCredential ) ; } }
Source:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , boolean defaultOnly ) { mFlags = ( defaultOnly ) ? android.content.pm.PackageManager.MATCH_DEFAULT_ONLY : 0 ; return super . queryIntent ( intent , resolvedType , defaultOnly ) ; }

Target:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , boolean defaultOnly , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; mFlags = ( defaultOnly ) ? android.content.pm.PackageManager.MATCH_DEFAULT_ONLY : 0 ; return super . queryIntent ( intent , resolvedType , defaultOnly , userId ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNewInstance x ) { print ( com.android.jack.ir.impl.BaseGenerationVisitor.CHARS_NEW ) ; com.android.jack.ir.ast.JMethodIdWide target = x.getMethodId ( ) ; printName ( target ) ; lparen ( ) ; visitCollectionWithCommas ( x.getArgs ( ) . iterator ( ) ) ; rparen ( ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNewInstance x ) { print ( com.android.jack.ir.impl.BaseGenerationVisitor.CHARS_NEW ) ; com.android.jack.ir.ast.JMethodIdWide target = x.getMethodIdWide ( ) ; printName ( target ) ; lparen ( ) ; visitCollectionWithCommas ( x.getArgs ( ) . iterator ( ) ) ; rparen ( ) ; return false ; }
Source:
public static long getUidTxPackets ( int uid ) { final int callingUid = android.net.android.os.Process.myUid ( ) ; if ( ( callingUid == android.net.android.os.Process ) || ( callingUid == uid ) ) { return android.net.TrafficStats.nativeGetUidStat ( uid , android.net.TrafficStats.TYPE_TX_PACKETS ) ; } else { return android.net.TrafficStats.UNSUPPORTED ; } }

Target:
public static long getUidRxBytes ( int uid ) { final int callingUid = android.net.android.os.Process.myUid ( ) ; if ( ( callingUid == android.net.android.os.Process ) || ( callingUid == uid ) ) { try { return android.net.TrafficStats.getStatsService ( ) . getUidStats ( uid , android.net.TrafficStats.TYPE_RX_BYTES ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } else { return android.net.TrafficStats.UNSUPPORTED ; } }
Source:
public void paintControl ( org.eclipse.swt.events.PaintEvent e ) { onPaint ( e ) ; }

Target:
public void run ( ) { if ( isDisposed ( ) ) { return ; } org.eclipse.ui.IEditorPart editor = getEditorDelegate ( ) . getEditor ( ) ; org.eclipse.ui.IWorkbenchPage page = editor.getSite ( ) . getPage ( ) ; java.lang.Boolean zoomed = page.isPageZoomed ( ) ; if ( ( mWasZoomed ) != zoomed ) { if ( ( mWasZoomed ) != null ) { setFitScale ( true ) ; } mWasZoomed = zoomed ; } }