auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.android.ide.eclipse.gltrace.state.IGLProperty getTextureImageProperty ( com.android.ide.eclipse.gltrace.state.IGLProperty state ) { if ( ( state.getType ( ) ) == ( com.android.ide.eclipse.gltrace.state.GLStateType.TEXTURE_IMAGE ) ) { return state ; } if ( ( state.getType ( ) ) != ( com.android.ide.eclipse.gltrace.state.GLStateType.PER_TEXTURE_STATE ) ) { state = state.getParent ( ) ; } if ( ( state != null ) && ( ( state.getType ( ) ) == ( com.android.ide.eclipse.gltrace.state.GLStateType.PER_TEXTURE_STATE ) ) ) { return ( ( com.android.ide.eclipse.gltrace.state.GLCompositeProperty ) ( state ) ) . getProperty ( GLStateType.TEXTURE_IMAGE ) ; } return null ; }

Target:
private com.android.ide.eclipse.gltrace.state.IGLProperty getTextureImageProperty ( com.android.ide.eclipse.gltrace.state.IGLProperty state ) { if ( ( state.getType ( ) ) == ( com.android.ide.eclipse.gltrace.state.GLStateType.TEXTURE_IMAGE ) ) { return state ; } if ( ( state.getType ( ) ) != ( com.android.ide.eclipse.gltrace.state.GLStateType.PER_TEXTURE_LEVEL_STATE ) ) { state = state.getParent ( ) ; } if ( ( state != null ) && ( ( state.getType ( ) ) == ( com.android.ide.eclipse.gltrace.state.GLStateType.PER_TEXTURE_LEVEL_STATE ) ) ) { return ( ( com.android.ide.eclipse.gltrace.state.GLCompositeProperty ) ( state ) ) . getProperty ( GLStateType.TEXTURE_IMAGE ) ; } return null ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) ;
Source:
public void testArrayInit ( ) { android.renderscript.cts.ScriptC_array_init t = new android.renderscript.cts.ScriptC_array_init ( mRS ) ; checkInit ( t ) ; t.invoke_array_init_test ( ) ; android.renderscript.Element [ ] e = new android.renderscript.Element [ 2 ] ; e [ 0 ] = android.renderscript.Element.FONT ( mRS ) ; e [ 1 ] = android.renderscript.Element.ELEMENT ( mRS ) ; t.set_elemArr ( e ) ; mRS.finish ( ) ; waitForMessage ( ) ; checkForErrors ( ) ; }

Target:
public void testArrayInit ( ) { android.renderscript.cts.ScriptC_array_init t = new android.renderscript.cts.ScriptC_array_init ( mRS ) ; checkInit ( t ) ; t.invoke_array_init_test ( ) ; android.renderscript.Element [ ] e = new android.renderscript.Element [ 2 ] ; e [ 0 ] = android.renderscript.Element.FONT ( mRS ) ; e [ 1 ] = android.renderscript.Element.ELEMENT ( mRS ) ; t.set_elemArr ( e ) ; mRS.finish ( ) ; waitForMessage ( ) ; checkForErrors ( ) ; t.destroy ( ) ; }
Source:
public void run ( ) { mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.requestFocus ( ) ; android.text.Selection.setSelection ( ( ( android.text.Editable ) ( mTextView.getText ( ) ) ) , 0 , 0 ) ; mTextView.setKeyListener ( qwertyKeyListener ) ; }

Target:
private void prepareEmptyTextView ( ) { mActivity.runOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { mTextView.setText ( "" , BufferType.EDITABLE ) ; android.text.Selection.setSelection ( mTextView.getEditableText ( ) , 0 , 0 ) ; } } ) ; mInstrumentation.waitForIdleSync ( ) ; assertEquals ( "" , mTextView.getText ( ) . toString ( ) ) ; }
Source:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) { return ( ( com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) ( pkg ) ) . getAndroidVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformToolPackage ) ) { return PkgCategoryApi.KEY_TOOLS ; } else { return PkgCategoryApi.KEY_EXTRA ; } }

Target:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) { return ( ( com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) ( pkg ) ) . getAndroidVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformToolPackage ) ) { if ( pkg.getRevision ( ) . isPreview ( ) ) { return PkgCategoryApi.KEY_TOOLS_PREVIEW ; } else { return PkgCategoryApi.KEY_TOOLS ; } } else { return PkgCategoryApi.KEY_EXTRA ; } }
Source:
public void remove ( com.android.sdklib.internal.repository.SdkSource source ) { mSources.remove ( source ) ; }

Target:
public void remove ( com.android.sdklib.internal.repository.SdkSource source ) { java.util.Iterator < java.util.Map.Entry < com.android.sdklib.internal.repository.SdkSourceCategory , java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > > > it = mSources.entrySet ( ) . iterator ( ) ; while ( it.hasNext ( ) ) { java.util.Map.Entry < com.android.sdklib.internal.repository.SdkSourceCategory , java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > > entry = it.next ( ) ; java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list = entry.getValue ( ) ; if ( list.remove ( source ) ) { if ( list.isEmpty ( ) ) { it.remove ( ) ; } } } }
Source:
public int getNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getDataNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }

Target:
public int getVoiceNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getDataNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getVoiceNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }
Source:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }

Target:
public void explicitCallTransfer ( com.android.internal.telephony.Call heldCall ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( " explicitCallTransfer(" + heldCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } if ( canTransfer ( heldCall ) ) { heldCall.getPhone ( ) . explicitCallTransfer ( ) ; } if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "End explicitCallTransfer(" + heldCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } }
Source:
private int getListenerKey ( java.lang.Object listener ) { android.net.nsd.NsdManager.checkListener ( listener ) ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex != ( - 1 ) ) , "listener not registered" ) ; return mListenerMap.keyAt ( valueIndex ) ; } }

Target:
private int getListenerKey ( java.lang.Object listener ) { synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; if ( valueIndex != ( - 1 ) ) { return mListenerMap.keyAt ( valueIndex ) ; } } return android.net.nsd.NsdManager.INVALID_LISTENER_KEY ; }
Source:
public void copyFrom ( int [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } }

Target:
private void copyFromUnchecked ( java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , array , dt , arrayLen ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , array , dt , arrayLen ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , array , dt , arrayLen ) ; } }
Source:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { removeMediaPlayerInfo ( packageName ) ; if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { new com.android.bluetooth.avrcp.Avrcp.BrowsablePlayerListBuilder ( ) . start ( ) ; } } }

Target:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { removeMediaPlayerInfo ( packageName ) ; if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { mBrowsableListBuilder.start ( ) ; } } }
Source:
protected void updateSync ( ) { boolean isSync = mySynchronizeWithBuildGradleCheckBox.isSelected ( ) ; if ( isSync ) { syncWithBuildFile ( ) ; } myWarPathField.setEditable ( ( ! isSync ) ) ; myServerAddressField.setEditable ( ( ! isSync ) ) ; myServerPortField.setEditable ( ( ! isSync ) ) ; myAppEngineSdkField.setEditable ( ( ! isSync ) ) ; }

Target:
protected void updateSync ( ) { boolean isSync = mySynchronizeWithBuildGradleCheckBox.isSelected ( ) ; if ( isSync ) { syncWithBuildFile ( ) ; } myWarPathField.setEditable ( ( ! isSync ) ) ; myServerAddressField.setEditable ( ( ! isSync ) ) ; myServerPortField.setEditable ( ( ! isSync ) ) ; myAppEngineSdkField.setEditable ( ( ! isSync ) ) ; myVmArgsField.setEditable ( ( ! isSync ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 1 ] ) ; java.lang.System.out.println ( "Hello, world!" ) ; Main.set ( 0 ) ; Main.set ( 1 ) ; Main.set ( 2 ) ; Main.set ( 4 ) ; Main.set ( 8 ) ; }
Source:
public final void testGetTopRight ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 3 , 4 , 20 , 30 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = r.getTopRight ( ) ; assertEquals ( ( 3 + 20 ) , p.x ) ; assertEquals ( 4 , p.y ) ; }

Target:
public final void testGetTopRight ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 3 , 4 , 20 , 30 ) ; com.android.ide.common.api.Point p = r.getTopRight ( ) ; assertEquals ( ( 3 + 20 ) , p.x ) ; assertEquals ( 4 , p.y ) ; }
Source:
public static void initialize ( ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; org.chromium.base.metrics.RecordHistogram.nativeInitialize ( ) ; }

Target:
private static void recordCustomTimesHistogramMilliseconds ( java.lang.String name , long duration , long min , long max , int numBuckets ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordCustomTimesHistogramMilliseconds ( name , key , org.chromium.base.metrics.RecordHistogram.clampToInt ( duration ) , org.chromium.base.metrics.RecordHistogram.clampToInt ( min ) , org.chromium.base.metrics.RecordHistogram.clampToInt ( max ) , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
protected void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onRestoreInstanceState: " + ( mSlotId ) ) ) ; mAcceptUsersInput = savedInstanceState.getBoolean ( "ACCEPT_USERS_INPUT" ) ; if ( ( ( mAcceptUsersInput ) == false ) && ( ( mMoreOptions ) != null ) ) { mMoreOptions.setVisibility ( View.INVISIBLE ) ; } }

Target:
protected void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onRestoreInstanceState: " + ( mSlotId ) ) ) ; mAcceptUsersInput = savedInstanceState.getBoolean ( com.android.stk.StkInputActivity.ACCEPT_USERS_INPUT_KEY ) ; if ( ( ( mAcceptUsersInput ) == false ) && ( ( mMoreOptions ) != null ) ) { mMoreOptions.setVisibility ( View.INVISIBLE ) ; } mIsResponseSent = savedInstanceState.getBoolean ( com.android.stk.StkInputActivity.RESPONSE_SENT_KEY ) ; java.lang.String savedString = savedInstanceState.getString ( com.android.stk.StkInputActivity.INPUT_STRING_KEY ) ; if ( ! ( android.text.TextUtils.isEmpty ( savedString ) ) ) { mTextIn.setText ( savedString ) ; } }
Source:
public final void update ( final java.lang.String id , final org.jetbrains.asm4.ClassReader inputData ) { for ( final java.util.Map.Entry < K , V > e : myIndexer.map ( inputData , myMappings ) . entrySet ( ) ) { myIndex.putData ( e.getKey ( ) , e.getValue ( ) , id ) ; } }

Target:
public final void update ( final java.lang.String id , final org.jetbrains.org.objectweb.asm.ClassReader inputData ) { for ( final java.util.Map.Entry < K , V > e : myIndexer.map ( inputData , myMappings ) . entrySet ( ) ) { myIndex.putData ( e.getKey ( ) , e.getValue ( ) , id ) ; } }
Source:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.REJECTED , new com.android.manifmerger.Actions.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , attribute.getId ( ) , null , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.REJECTED , new com.android.manifmerger.Actions.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , attribute.getOriginalId ( ) , null , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
public void sdpSearch ( android.bluetooth.BluetoothDevice device , android.os.ParcelUuid uuid ) { if ( ! ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) ) { android.util.Log.e ( com.android.bluetooth.sdp.SdpManager.TAG , "Native not initialized!" ) ; return ; } synchronized ( com.android.bluetooth.sdp.SdpManager.mTrackerLock ) { if ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.isSearching ( device , uuid ) ) { return ; } com.android.bluetooth.sdp.SdpManager.SdpSearchInstance inst = new com.android.bluetooth.sdp.SdpManager.SdpSearchInstance ( 0 , device , uuid ) ; com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.add ( inst ) ; startSearch ( ) ; } }

Target:
public void sdpSearch ( android.bluetooth.BluetoothDevice device , android.os.ParcelUuid uuid ) { if ( ! ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) ) { android.util.Log.e ( com.android.bluetooth.sdp.SdpManager.TAG , "Native not initialized!" ) ; return ; } synchronized ( com.android.bluetooth.sdp.SdpManager.TRACKER_LOCK ) { if ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.isSearching ( device , uuid ) ) { return ; } com.android.bluetooth.sdp.SdpManager.SdpSearchInstance inst = new com.android.bluetooth.sdp.SdpManager.SdpSearchInstance ( 0 , device , uuid ) ; com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.add ( inst ) ; startSearch ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.io.File siX86 = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "x86" ) ; makeFakeSkin ( siX86 , "Tag1X86Skin" ) ; java.io.File siArm = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "armeabi" ) ; makeFakeSkin ( siArm , "Tag1ArmSkin" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mFolderSiX86 = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "x86" ) ; makeFakeSkin ( mFolderSiX86 , "Tag1X86Skin" ) ; mFolderSiArm = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "armeabi" ) ; makeFakeSkin ( mFolderSiArm , "Tag1ArmSkin" ) ; }
Source:
public int compare ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile rf1 , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile rf2 ) { if ( rf1 == fBest ) { return - 1 ; } else if ( rf2 == fBest ) { return 1 ; } else { return com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getFileName ( rf1 ) . compareTo ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getFileName ( rf2 ) ) ; } }

Target:
public int compare ( com.android.ide.common.resources.ResourceFile rf1 , com.android.ide.common.resources.ResourceFile rf2 ) { if ( rf1 == fBest ) { return - 1 ; } else if ( rf2 == fBest ) { return 1 ; } else { return com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getFileName ( rf1 ) . compareTo ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getFileName ( rf2 ) ) ; } }
Source:
public java.util.List < java.lang.String > getProviders ( android.location.Criteria criteria , boolean enabledOnly ) { try { synchronized ( mLock ) { return _getProvidersLocked ( criteria , enabledOnly ) ; } } catch ( java.lang.SecurityException se ) { throw se ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "getProviders got exception:" , e ) ; return null ; } }

Target:
public java.util.List < java.lang.String > getAllProviders ( ) { java.util.ArrayList < java.lang.String > out ; synchronized ( mLock ) { out = new java.util.ArrayList < java.lang.String > ( mProviders.size ( ) ) ; for ( com.android.server.location.LocationProviderInterface provider : mProviders ) { java.lang.String name = provider.getName ( ) ; if ( LocationManager.FUSED_PROVIDER.equals ( name ) ) { continue ; } out.add ( name ) ; } } if ( com.android.server.LocationManagerService.D ) android.util.Log.d ( com.android.server.LocationManagerService.TAG , ( "getAllProviders()=" + out ) ) ; return out ; }
Source:
public java.lang.String getIsimIst ( ) throws android.os.RemoteException { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimIst ( ) ; } else { return null ; } }

Target:
public java.lang.String [ ] getIsimImpu ( int subId ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpu ( ) ; } else { return null ; } } else { loge ( ( "getIsimImpu phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public void test_da ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex da = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "da" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Ænes" , "Æ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Øfer" , "Ø" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Œster" , "Ø" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Ågård" , "Å" ) ; }

Target:
public void test_da ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex da = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "da" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Ænes" , "Æ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Øfer" , "Ø" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Œster" , "Ø" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( da , "Ågård" , "Å" ) ; }
Source:
public com.android.layoutlib.api.LayoutBridge getBridge ( ) { return mBridge ; }

Target:
public boolean supports ( com.android.layoutlib.api.Capability capability ) { if ( ( mBridge ) != null ) { return mBridge.getCapabilities ( ) . contains ( capability ) ; } if ( ( mLegacyBridge ) != null ) { switch ( capability ) { case UNBOUND_RENDERING : return ( getLegacyApiLevel ( ) ) == 4 ; } } return false ; }
Source:
private com.example.android.rs.balls.Allocation loadTexture ( int id ) { final com.example.android.rs.balls.Allocation allocation = com.example.android.rs.balls.Allocation.createFromBitmapResource ( mRS , mRes , id , Allocation.MipmapControl.MIPMAP_NONE , Allocation.USAGE_GRAPHICS_TEXTURE ) ; return allocation ; }

Target:
private com.example.android.rs.balls.Allocation loadTexture ( int id ) { android.graphics.BitmapFactory.Options options = new android.graphics.BitmapFactory.Options ( ) ; options.inScaled = false ; android.graphics.Bitmap bp = android.graphics.BitmapFactory.decodeResource ( mRes , id , options ) ; final com.example.android.rs.balls.Allocation allocation = com.example.android.rs.balls.Allocation.createFromBitmap ( mRS , bp , Allocation.MipmapControl.MIPMAP_NONE , Allocation.USAGE_GRAPHICS_TEXTURE ) ; return allocation ; }
Source:
public void resumeResponses ( ) { ( pausedResponseCount ) -- ; if ( ( pausedResponseCount ) == 0 ) { for ( int i = 0 , s = pausedResponses.size ( ) ; i < s ; i ++ ) { pausedResponses.get ( i ) . sendToTarget ( ) ; } pausedResponses.clear ( ) ; } else { android.util.Log.e ( "GSM" , "SimulatedCommands.resumeResponses < 0" ) ; } }

Target:
public void resumeResponses ( ) { ( pausedResponseCount ) -- ; if ( ( pausedResponseCount ) == 0 ) { for ( int i = 0 , s = pausedResponses.size ( ) ; i < s ; i ++ ) { pausedResponses.get ( i ) . sendToTarget ( ) ; } pausedResponses.clear ( ) ; } else { android.telephony.Rlog.e ( "GSM" , "SimulatedCommands.resumeResponses < 0" ) ; } }
Source:
public boolean visitMethodDeclaration ( lombok.ast.MethodDeclaration node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.checks.CallSuperDetector.checkCallSuper ( context , node , method ) ; } return false ; }

Target:
public void visitMethod ( com.intellij.psi.PsiMethod method ) { com.android.tools.lint.checks.CallSuperDetector.checkCallSuper ( context , method ) ; }
Source:
private void setOutputDex ( @ javax.annotation.Nonnull java.io.File outDex ) throws java.lang.Exception { if ( outDex.isDirectory ( ) ) { apiV02Config.setOutputDexDir ( outDex ) ; } else { apiV02Config.setProperty ( Options.DEX_OUTPUT_CONTAINER_TYPE.getName ( ) , Container.ZIP.name ( ) ) ; apiV02Config.setProperty ( Options.GENERATE_DEX_FILE.getName ( ) , "true" ) ; apiV02Config.setProperty ( Options.DEX_OUTPUT_ZIP.getName ( ) , outDex.getAbsolutePath ( ) ) ; } }

Target:
private void setOutputDex ( @ javax.annotation.Nonnull java.io.File outDex , boolean zipFiles ) throws java.lang.Exception { if ( ! zipFiles ) { apiV02Config.setOutputDexDir ( outDex ) ; } else { apiV02Config.setProperty ( Options.DEX_OUTPUT_CONTAINER_TYPE.getName ( ) , Container.ZIP.name ( ) ) ; apiV02Config.setProperty ( Options.GENERATE_DEX_FILE.getName ( ) , "true" ) ; apiV02Config.setProperty ( Options.DEX_OUTPUT_ZIP.getName ( ) , outDex.getAbsolutePath ( ) ) ; } }
Source:
private static boolean isBlockedAllocationMethod ( lombok.ast.MethodDeclaration node ) { return ( ( ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnDrawMethod ( node ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnMeasureMethod ( node ) ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnLayoutMethod ( node ) ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isLayoutMethod ( node ) ) ; }

Target:
private boolean isBlockedAllocationMethod ( @ com.android.annotations.NonNull com.intellij.psi.PsiMethod node ) { com.android.tools.lint.client.api.JavaEvaluator evaluator = mContext.getEvaluator ( ) ; return ( ( ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnDrawMethod ( evaluator , node ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnMeasureMethod ( evaluator , node ) ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isOnLayoutMethod ( evaluator , node ) ) ) || ( com.android.tools.lint.checks.JavaPerformanceDetector.PerformanceVisitor.isLayoutMethod ( evaluator , node ) ) ; }
Source:
public void testGetTestCaseNamesForTestCaseWithSuiteMethod ( ) throws java.lang.Exception { junit.framework.TestCase testCase = new android.test.TestCaseUtilTest.OneTestTestCaseWithSuite ( ) ; java.util.List < java.lang.String > testCaseNames = android.test.TestCaseUtil.getTestCaseNames ( testCase , false ) ; assertEquals ( 1 , testCaseNames.size ( ) ) ; assertTrue ( testCaseNames.get ( 0 ) . endsWith ( "testOne" ) ) ; }

Target:
public void testGetTests_ForTestCaseWithSuiteMethod ( ) throws java.lang.Exception { junit.framework.TestCase testCase = new android.test.TestCaseUtilTest.OneTestTestCaseWithSuite ( ) ; java.util.List < java.lang.String > testCaseNames = android.test.TestCaseUtilTest.getTestCaseNames ( testCase ) ; assertEquals ( 1 , testCaseNames.size ( ) ) ; assertTrue ( testCaseNames.get ( 0 ) . endsWith ( "testOne" ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telecom.Log.startSession ( "CARSM.mCR" ) ; if ( AudioManager.ACTION_MICROPHONE_MUTE_CHANGED.equals ( intent.getAction ( ) ) ) { sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.MUTE_EXTERNALLY_CHANGED ) ; } else { android.telecom.Log.w ( this , "Received non-mute-change intent" ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telecom.Log.startSession ( "CARSM.mCR" ) ; if ( AudioManager.ACTION_MICROPHONE_MUTE_CHANGED.equals ( intent.getAction ( ) ) ) { if ( mCallsManager.hasEmergencyCall ( ) ) { android.telecom.Log.i ( this , ( "Mute was externally changed when there's an emergency call. " + "Forcing mute back off." ) ) ; sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.MUTE_OFF ) ; } else { sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.MUTE_EXTERNALLY_CHANGED ) ; } } else { android.telecom.Log.w ( this , "Received non-mute-change intent" ) ; } }
Source:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { resetProxyAndRequestList ( ) ; riljLoge ( "sendAck" , e ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }

Target:
public void getPreferredVoicePrivacy ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getPreferredVoicePrivacy ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getPreferredVoicePrivacy" , e ) ; } } }
Source:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; com.google.common.base.Preconditions.checkNotNull ( c ) ; return com.google.common.collect.Iterators.concat ( java.util.Arrays.asList ( a , b , c ) . iterator ( ) ) ; }

Target:
public static < T > T get ( java.util.Iterator < ? extends T > iterator , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.collect.Iterators.checkNonnegative ( position ) ; com.google.common.collect.Iterators.advance ( iterator , position ) ; return com.google.common.collect.Iterators.getNext ( iterator , defaultValue ) ; }
Source:
public void testCarrierPriviledgeLoadedListener ( ) { mUicccard.registerForCarrierPrivilegeRulesLoaded ( mMockedHandler , com.android.internal.telephony.uicc.UiccCardTest.UICCCARD_CARRIER_PRIVILEDGE_LOADED_EVENT , null ) ; org.mockito.ArgumentCaptor < android.os.Message > mCaptorMessage = org.mockito.ArgumentCaptor.forClass ( android.os.Message.class ) ; org.mockito.ArgumentCaptor < java.lang.Long > mCaptorLong = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.class ) ; testUpdateUiccCardState ( ) ; verify ( mMockedHandler , atLeast ( 1 ) ) . sendMessageDelayed ( mCaptorMessage.capture ( ) , mCaptorLong.capture ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.uicc.UiccCardTest.UICCCARD_CARRIER_PRIVILEDGE_LOADED_EVENT , mCaptorMessage.getValue ( ) . what ) ; }

Target:
public void testCarrierPriviledgeLoadedListener ( ) { mUicccard.registerForCarrierPrivilegeRulesLoaded ( mMockedHandler , com.android.internal.telephony.uicc.UiccCardTest.UICCCARD_CARRIER_PRIVILEDGE_LOADED_EVENT , null ) ; org.mockito.ArgumentCaptor < android.os.Message > mCaptorMessage = org.mockito.ArgumentCaptor.forClass ( android.os.Message.class ) ; org.mockito.ArgumentCaptor < java.lang.Long > mCaptorLong = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.class ) ; testUpdateUiccCardState ( ) ; org.mockito.Mockito.verify ( mMockedHandler , org.mockito.Mockito.atLeast ( 1 ) ) . sendMessageDelayed ( mCaptorMessage.capture ( ) , mCaptorLong.capture ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.uicc.UiccCardTest.UICCCARD_CARRIER_PRIVILEDGE_LOADED_EVENT , mCaptorMessage.getValue ( ) . what ) ; }
Source:
public void testNonExternalCallChangedToExternalCall ( ) { requestFocus ( mActiveCall , null ) ; assertTrue ( mFocusManagerUT.getAllCall ( ) . contains ( mActiveCall ) ) ; mCallsManagerListener.onExternalCallChanged ( ( ( com.android.server.telecom.Call ) ( mActiveCall ) ) , true ) ; waitForHandlerAction ( mFocusManagerUT.getHandler ( ) , com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.CHECK_HANDLER_INTERVAL_MS ) ; assertFalse ( mFocusManagerUT.getAllCall ( ) . contains ( mActiveCall ) ) ; }

Target:
public void testNonExternalCallChangedToExternalCall ( ) { requestFocus ( mActiveCall , null ) ; org.junit.Assert.assertTrue ( mFocusManagerUT.getAllCall ( ) . contains ( mActiveCall ) ) ; mCallsManagerListener.onExternalCallChanged ( ( ( com.android.server.telecom.Call ) ( mActiveCall ) ) , true ) ; waitForHandlerAction ( mFocusManagerUT.getHandler ( ) , com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.CHECK_HANDLER_INTERVAL_MS ) ; org.junit.Assert.assertFalse ( mFocusManagerUT.getAllCall ( ) . contains ( mActiveCall ) ) ; }
Source:
public void testInvalidMinorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.DistroVersion oldMinorDistroVersion = new com.android.timezone.distro.DistroVersion ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; com.android.timezone.distro.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMinorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }

Target:
public void testInvalidMinorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.DistroVersion oldMinorDistroVersion = new com.android.timezone.distro.DistroVersion ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; byte [ ] distroBytes = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMinorDistroVersion ) . buildBytes ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distroBytes ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }
Source:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , messageId , bytes , retryCount ) ; }

Target:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( java.lang.Integer.valueOf ( peerId ) , messageId , bytes , retryCount ) ; }
Source:
private boolean updateDisplayModeAction ( ) { com.android.tv.ui.TvViewUiManager uiManager = getMainActivity ( ) . getTvViewUiManager ( ) ; boolean oldEnabled = MenuAction.SELECT_DISPLAY_MODE_ACTION.isEnabled ( ) ; boolean newEnabled = ( uiManager.isDisplayModeAvailable ( DisplayMode.MODE_FULL ) ) || ( uiManager.isDisplayModeAvailable ( DisplayMode.MODE_ZOOM ) ) ; if ( oldEnabled != newEnabled ) { MenuAction.SELECT_DISPLAY_MODE_ACTION.setEnabled ( newEnabled ) ; return true ; } return false ; }

Target:
private boolean updateActionDescription ( com.android.tv.menu.MenuAction action ) { return com.android.tv.menu.MenuAction.setActionDescription ( action , getMainActivity ( ) . getTvOptionsManager ( ) . getOptionString ( action.getType ( ) ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 1 ] ) ; NewName.doTest ( new Transform ( ) ) ; DifferentAccess.doTest ( new Transform ( ) ) ; NewInterface.doTest ( new Transform2 ( ) ) ; MissingInterface.doTest ( new Transform2 ( ) ) ; ReorderInterface.doTest ( new Transform2 ( ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 1 ] ) ; NewName.doTest ( new Transform ( ) ) ; DifferentAccess.doTest ( new Transform ( ) ) ; NewInterface.doTest ( new Transform2 ( ) ) ; MissingInterface.doTest ( new Transform2 ( ) ) ; ReorderInterface.doTest ( new Transform2 ( ) ) ; MultiRedef.doTest ( new Transform ( ) , new Transform2 ( ) ) ; }
Source:
public boolean isOffhookForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "isOffhookForSubscriber" ) ) ) { return false ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return ( phone.getState ( ) ) == ( PhoneConstants.State.OFFHOOK ) ; } else { return false ; } }

Target:
public boolean isOffhookForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "isOffhookForSubscriber" ) ) ) { return false ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return ( phone.getState ( ) ) == ( PhoneConstants.State.OFFHOOK ) ; } else { return false ; } }
Source:
private static void tagClasses ( ) { Main.setTag ( Main.A.class , 1000 ) ; Main.setTag ( Main.B.class , 1001 ) ; Main.setTag ( Main.C.class , 1002 ) ; Main.setTag ( Main.I1.class , 2000 ) ; Main.setTag ( Main.I2.class , 2001 ) ; }

Target:
private static void tagClasses ( Main.Verifier v ) { Main.setTag ( Main.A.class , 1000 ) ; Main.setTag ( Main.B.class , 1001 ) ; v.add ( "1001@0" , "1000@0" ) ; Main.setTag ( Main.C.class , 1002 ) ; v.add ( "1002@0" , "1001@0" ) ; v.add ( "1002@0" , "2001@0" ) ; Main.setTag ( Main.I1.class , 2000 ) ; Main.setTag ( Main.I2.class , 2001 ) ; v.add ( "2001@0" , "2000@0" ) ; }
Source:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite top = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createMessageArea ( top ) ; createFilteredTree ( top ) ; if ( ( mCurrentResource ) != null ) { setupInitialSelection ( ) ; } createNewResButtons ( top ) ; return top ; }

Target:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite top = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createMessageArea ( top ) ; createFilteredTree ( top ) ; if ( ( mCurrentResource ) != null ) { setupInitialSelection ( ) ; } createNewResButtons ( top ) ; org.eclipse.swt.widgets.Composite workaround = com.android.ide.eclipse.adt.internal.editors.layout.properties.PropertyFactory.addWorkaround ( top ) ; if ( workaround != null ) { workaround.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.SWT.LEFT , org.eclipse.swt.SWT.TOP , false , false , 1 , 1 ) ) ; } return top ; }
Source:
public com.android.dx.io.ClassDef adjust ( com.android.dx.io.ClassDef classDef ) { return new com.android.dx.io.ClassDef ( target , classDef.getOffset ( ) , adjustType ( classDef.getTypeIndex ( ) ) , classDef.getAccessFlags ( ) , adjustType ( classDef.getSupertypeIndex ( ) ) , adjustTypeListOffset ( classDef.getInterfacesOffset ( ) ) , classDef.getSourceFileIndex ( ) , classDef.getAnnotationsOffset ( ) , classDef.getClassDataOffset ( ) , classDef.getStaticValuesOffset ( ) ) ; }

Target:
public com.android.dex.ClassDef adjust ( com.android.dex.ClassDef classDef ) { return new com.android.dex.ClassDef ( target , classDef.getOffset ( ) , adjustType ( classDef.getTypeIndex ( ) ) , classDef.getAccessFlags ( ) , adjustType ( classDef.getSupertypeIndex ( ) ) , adjustTypeListOffset ( classDef.getInterfacesOffset ( ) ) , classDef.getSourceFileIndex ( ) , classDef.getAnnotationsOffset ( ) , classDef.getClassDataOffset ( ) , classDef.getStaticValuesOffset ( ) ) ; }
Source:
private void checkTime ( long startTime , java.lang.String where ) { long now = android.os.SystemClock.elapsedRealtime ( ) ; if ( ( now - startTime ) > 1000 ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "Slow operation: " + ( now - startTime ) ) + "ms so far, now at " ) + where ) ) ; } }

Target:
private void checkTime ( long startTime , java.lang.String where ) { long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( now - startTime ) > 50 ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "Slow operation: " + ( now - startTime ) ) + "ms so far, now at " ) + where ) ) ; } }
Source:
private java.lang.Object getInput ( Value value ) { if ( ( myInputIdMapping ) == null ) return null ; value = ( value != null ) ? value : ( ( Value ) ( com.intellij.util.indexing.ValueContainerImpl.myNullValue ) ) ; if ( ( ( myInputIdMapping ) == value ) || ( myInputIdMapping.equals ( value ) ) ) { return myInputIdMappingValue ; } if ( ! ( ( myInputIdMapping ) instanceof com.intellij.util.indexing.THashMap ) ) return null ; return ( ( com.intellij.util.indexing.THashMap < Value , java.lang.Object > ) ( myInputIdMapping ) ) . get ( value ) ; }

Target:
private java.lang.Object getFileSetObject ( Value value ) { if ( ( myInputIdMapping ) == null ) return null ; value = ( value != null ) ? value : ( ( Value ) ( com.intellij.util.indexing.ValueContainerImpl.myNullValue ) ) ; if ( ( ( myInputIdMapping ) == value ) || ( myInputIdMapping.equals ( value ) ) ) { return myInputIdMappingValue ; } if ( ! ( ( myInputIdMapping ) instanceof com.intellij.util.indexing.THashMap ) ) return null ; return ( ( com.intellij.util.indexing.THashMap < Value , java.lang.Object > ) ( myInputIdMapping ) ) . get ( value ) ; }
Source:
private com.android.builder.core.VariantConfiguration getVariant ( com.android.builder.model.SigningConfig signingOverride ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , signingOverride ) ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.core.VariantConfiguration getVariant ( com.android.builder.model.SigningConfig signingOverride ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantType.DEFAULT , signingOverride ) ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
boolean removeNetwork ( int netId ) { boolean ret = mWifiNative.removeNetwork ( netId ) ; android.net.wifi.WifiConfiguration config = null ; if ( ret ) { config = mConfiguredNetworks.get ( netId ) ; if ( config != null ) { config = mConfiguredNetworks.remove ( netId ) ; mNetworkIds.remove ( android.net.wifi.WifiConfigStore.configKey ( config ) ) ; } } if ( config != null ) { sendConfiguredNetworksChangedBroadcast ( config , WifiManager.CHANGE_REASON_REMOVED ) ; } return ret ; }

Target:
boolean removeNetwork ( int netId ) { boolean ret = mWifiNative.removeNetwork ( netId ) ; if ( ret ) { removeConfigAndSendBroadcastIfNeeded ( netId ) ; } return ret ; }