auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.eclipse.swt.graphics.Image getIcon ( ) { if ( ( mIconName ) != null ) { com.android.ide.eclipse.adt.internal.editors.IconFactory factory = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) ; org.eclipse.swt.graphics.Image icon = factory.getIcon ( mIconName ) ; if ( icon != null ) { return icon ; } } return super . getIcon ( ) ; }

Target:
public org.eclipse.swt.graphics.Image getGenericIcon ( ) { if ( ( mIconName ) != null ) { com.android.ide.eclipse.adt.internal.editors.IconFactory factory = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) ; org.eclipse.swt.graphics.Image icon = factory.getIcon ( mIconName ) ; if ( icon != null ) { return icon ; } } return super . getGenericIcon ( ) ; }
Source:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( ) . append ( "{mName=" ) . append ( mName ) . append ( ", mKey=" ) . append ( ( android.os.Build.IS_DEBUGGABLE ? com.android.internal.util.HexDump.toHexString ( mKey ) : "<hidden>" ) ) . append ( ", mTruncLenBits=" ) . append ( mTruncLenBits ) . append ( "}" ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( ) . append ( "{mName=" ) . append ( mName ) . append ( ", mKey=" ) . append ( ( android.net.IpSecAlgorithm.isUnsafeBuild ( ) ? com.android.internal.util.HexDump.toHexString ( mKey ) : "<hidden>" ) ) . append ( ", mTruncLenBits=" ) . append ( mTruncLenBits ) . append ( "}" ) . toString ( ) ; }
Source:
public android.view.View onCreateView ( android.view.LayoutInflater inflater , android.view.ViewGroup container , android.os.Bundle savedState ) { android.view.View view = inflater.inflate ( R.layout.call_log_fragment , container , false ) ; setupView ( view ) ; return view ; }

Target:
public android.view.View onCreateView ( android.view.LayoutInflater inflater , android.view.ViewGroup container , android.os.Bundle savedState ) { android.view.View view = inflater.inflate ( R.layout.call_log_fragment , container , false ) ; setupView ( view ) ; com.android.dialer.widget.EmptyContentView emptyContentView = view.findViewById ( R.id.empty_list_view ) ; emptyContentView.setImage ( R.drawable.quantum_ic_voicemail_vd_theme_24 ) ; emptyContentView.setImageTint ( R.color.empty_voicemail_icon_tint_color , null ) ; return view ; }
Source:
public void getRadioCapability ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_RADIO_CAPABILITY , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getRadioCapability ( android.os.Message response ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( response ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_RADIO_CAPABILITY , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } try { radioProxy.getRadioCapability ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getRadioCapability" , e ) ; } } }
Source:
public void setPrimaryItem ( android.view.ViewGroup container , int position , java.lang.Object object ) { android.support.v4.app.Fragment fragment = ( ( android.support.v4.app.Fragment ) ( object ) ) ; if ( fragment != ( mCurrentPrimaryItem ) ) { if ( ( mCurrentPrimaryItem ) != null ) { mCurrentPrimaryItem.setMenuVisibility ( false ) ; } if ( fragment != null ) { fragment.setMenuVisibility ( true ) ; } mCurrentPrimaryItem = fragment ; } }

Target:
public void setPrimaryItem ( android.view.ViewGroup container , int position , java.lang.Object object ) { android.support.v4.app.Fragment fragment = ( ( android.support.v4.app.Fragment ) ( object ) ) ; if ( fragment != ( mCurrentPrimaryItem ) ) { if ( ( mCurrentPrimaryItem ) != null ) { mCurrentPrimaryItem.setMenuVisibility ( false ) ; mCurrentPrimaryItem.setUserVisibleHint ( false ) ; } if ( fragment != null ) { fragment.setMenuVisibility ( true ) ; fragment.setUserVisibleHint ( true ) ; } mCurrentPrimaryItem = fragment ; } }
Source:
public static com.android.dialer.searchfragment.cp2.SearchContactsCursor newInstnace ( android.content.Context context , com.android.dialer.searchfragment.cp2.ContactFilterCursor contactFilterCursor ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( HEADER_PROJECTION ) ; headerCursor.addRow ( new java.lang.String [ ] { context.getString ( R.string.all_contacts ) } ) ; return new com.android.dialer.searchfragment.cp2.SearchContactsCursor ( new android.database.Cursor [ ] { headerCursor , contactFilterCursor } ) ; }

Target:
static com.android.dialer.searchfragment.cp2.SearchContactsCursor newInstance ( android.content.Context context , com.android.dialer.searchfragment.cp2.ContactFilterCursor contactFilterCursor ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( HEADER_PROJECTION ) ; headerCursor.addRow ( new java.lang.String [ ] { context.getString ( R.string.all_contacts ) } ) ; return new com.android.dialer.searchfragment.cp2.SearchContactsCursor ( new android.database.Cursor [ ] { headerCursor , contactFilterCursor } ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo findViewInfoKey ( java.lang.Object viewKey , com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo canvasViewInfo ) { if ( canvasViewInfo == null ) { return null ; } if ( ( canvasViewInfo.getUiViewKey ( ) ) == viewKey ) { return canvasViewInfo ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : canvasViewInfo.getChildren ( ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo v = findViewInfoKey ( viewKey , child ) ; if ( v != null ) { return v ; } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo findViewInfoKey ( java.lang.Object viewKey , com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo canvasViewInfo ) { if ( canvasViewInfo == null ) { return null ; } if ( ( canvasViewInfo.getUiViewNode ( ) ) == viewKey ) { return canvasViewInfo ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : canvasViewInfo.getChildren ( ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo v = findViewInfoKey ( viewKey , child ) ; if ( v != null ) { return v ; } } return null ; }
Source:
private java.util.List < java.lang.String > getEnabledTypes ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.util.List < java.lang.String > enabledTypes = new java.util.LinkedList < java.lang.String > ( ) ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { enabledTypes.add ( type.getId ( ) ) ; } return enabledTypes ; }

Target:
private java.util.List < java.lang.String > getEnabledTypes ( com.google.gct.testing.CloudConfigurationDimension dimension ) { java.util.List < java.lang.String > enabledTypes = new java.util.LinkedList < java.lang.String > ( ) ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { enabledTypes.add ( type.getId ( ) ) ; } return enabledTypes ; }
Source:
void timeoutUserSwitch ( com.android.server.am.UserState uss , int oldUserId , int newUserId ) { synchronized ( this ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "User switch timeout: from " + oldUserId ) + " to " ) + newUserId ) ) ; sendContinueUserSwitchLocked ( uss , oldUserId , newUserId ) ; } }

Target:
public java.util.List < android.app.ActivityManager.StackInfo > getAllStackInfos ( ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "getAllStackInfos()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { return mStackSupervisor.getAllStackInfosLocked ( ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public void testE2 ( ) { dot.junit.opcodes.aget_object.d.T_aget_object_1 t = new dot.junit.opcodes.aget_object.d.T_aget_object_1 ( ) ; java.lang.String [ ] arr = new java.lang.String [ ] { "a" , "b" } ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aioobe ) { } }

Target:
public void testVFE2 ( ) { load ( "dot.junit.opcodes.aget_object.d.T_aget_object_3" , java.lang.VerifyError.class ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_8 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
private boolean hasBlankLineAbove ( ) { if ( ( mOut.length ( ) ) < ( 2 * ( mLineSeparator.length ( ) ) ) ) { return false ; } return ( com.android.ide.eclipse.adt.AdtUtils.endsWith ( mOut , mLineSeparator ) ) && ( com.android.ide.eclipse.adt.AdtUtils.endsWith ( mOut , ( ( mOut.length ( ) ) - ( mLineSeparator.length ( ) ) ) , mLineSeparator ) ) ; }

Target:
private boolean hasBlankLineAbove ( ) { if ( ( mOut.length ( ) ) < ( 2 * ( mLineSeparator.length ( ) ) ) ) { return false ; } return ( com.android.utils.SdkUtils.endsWith ( mOut , mLineSeparator ) ) && ( com.android.utils.SdkUtils.endsWith ( mOut , ( ( mOut.length ( ) ) - ( mLineSeparator.length ( ) ) ) , mLineSeparator ) ) ; }
Source:
void setContent ( com.android.ide.eclipse.adt.internal.project.ProjectState state ) { mState = state ; mTable.removeAll ( ) ; mItemDataList.clear ( ) ; java.util.List < com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState > libs = state.getLibraries ( ) ; for ( com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState lib : libs ) { com.android.ide.eclipse.adt.internal.project.ProjectState libState = lib.getProjectState ( ) ; addItem ( lib.getRelativePath ( ) , ( libState != null ? libState.getProject ( ) : null ) , ( - 1 ) ) ; } mMustSave = false ; resetEnabled ( ) ; }

Target:
void setContent ( com.android.ide.eclipse.adt.internal.project.ProjectState state , com.android.sdklib.internal.project.ProjectPropertiesWorkingCopy propertiesWorkingCopy ) { mState = state ; mPropertiesWorkingCopy = propertiesWorkingCopy ; mTable.removeAll ( ) ; mItemDataList.clear ( ) ; java.util.List < com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState > libs = state.getLibraries ( ) ; for ( com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState lib : libs ) { com.android.ide.eclipse.adt.internal.project.ProjectState libState = lib.getProjectState ( ) ; addItem ( lib.getRelativePath ( ) , ( libState != null ? libState.getProject ( ) : null ) , ( - 1 ) ) ; } mMustSave = false ; resetEnabled ( ) ; }
Source:
public void TestCursorOffset ( ) { java.lang.String [ ] DATA = new java.lang.String [ ] { "pre {alpha} post > | @ ALPHA ;" + ( ( "eALPHA > beta ;" + "pre {beta} post > BETA @@ | ;" ) + "post > xyz" ) , "prealphapost prebetapost" , "prbetaxyz preBETApost" } ; for ( int i = 0 ; i < ( DATA.length ) ; i += 3 ) { logln ( ( "Pattern: " + ( com.ibm.icu.impl.Utility.escape ( DATA [ i ] ) ) ) ) ; com.ibm.icu.text.Transliterator t = com.ibm.icu.text.Transliterator.createFromRules ( "<ID>" , DATA [ i ] , Transliterator.FORWARD ) ; expect ( t , DATA [ ( i + 1 ) ] , DATA [ ( i + 2 ) ] ) ; } }

Target:
public void TestSegments ( ) { java.lang.String [ ] DATA = new java.lang.String [ ] { "([a-z]) '.' ([0-9]) > $2 '-' $1" , "abc.123.xyz.456" , "ab1-c23.xy4-z56" } ; for ( int i = 0 ; i < ( DATA.length ) ; i += 3 ) { logln ( ( "Pattern: " + ( com.ibm.icu.impl.Utility.escape ( DATA [ i ] ) ) ) ) ; com.ibm.icu.text.Transliterator t = com.ibm.icu.text.Transliterator.createFromRules ( "<ID>" , DATA [ i ] , Transliterator.FORWARD ) ; com.ibm.icu.dev.test.translit.TransliteratorTest.expect ( t , DATA [ ( i + 1 ) ] , DATA [ ( i + 2 ) ] ) ; } }
Source:
public java.util.Map.Entry < K , V > next ( ) { final java.util.Map.Entry < K , V > entry = iterator.next ( ) ; return new com.google.common.collect.ForwardingMapEntry < K , V > ( ) { @ java.lang.Override protected java.util.Map.Entry < K , V > delegate ( ) { return entry ; } @ java.lang.Override public V setValue ( V value ) { com.google.common.base.Preconditions.checkArgument ( apply ( entry.getKey ( ) , value ) ) ; return super . setValue ( value ) ; } } ; }

Target:
java.util.Map.Entry < K , V > transform ( final java.util.Map.Entry < K , V > entry ) { return new com.google.common.collect.ForwardingMapEntry < K , V > ( ) { @ java.lang.Override protected java.util.Map.Entry < K , V > delegate ( ) { return entry ; } @ java.lang.Override public V setValue ( V newValue ) { com.google.common.base.Preconditions.checkArgument ( apply ( getKey ( ) , newValue ) ) ; return super . setValue ( newValue ) ; } } ; }
Source:
private void writeDupX2 ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; writeAssign ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; writeAssign ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 2 ) , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 2 ) ) ; writeAssign ( nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 3 ) ) ; }

Target:
private void removeStackVariableConstant ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { varWithCstValue.remove ( getStackVariable ( frame , stackIdx ) ) ; }
Source:
public void addProblemElement ( @ org.jetbrains.annotations.Nullable com.intellij.codeInspection.reference.RefEntity refEntity , @ org.jetbrains.annotations.NotNull com.intellij.codeInspection.ex.CommonProblemDescriptor ... commonProblemDescriptors ) { for ( com.intellij.codeInspection.ex.CommonProblemDescriptor problemDescriptor : commonProblemDescriptors ) { if ( ! ( problemDescriptor instanceof com.intellij.codeInspection.ex.ProblemDescriptor ) ) { continue ; } com.intellij.lang.annotation.ProblemGroup problemGroup = ( ( com.intellij.codeInspection.ex.ProblemDescriptor ) ( problemDescriptor ) ) . getProblemGroup ( ) ; com.intellij.codeInspection.ex.InspectionToolWrapper targetWrapper = ( problemGroup == null ) ? toolWrapper : wrappersMap.get ( problemGroup.getProblemName ( ) ) ; if ( targetWrapper != null ) { com.intellij.codeInspection.ui.InspectionToolPresentation toolPresentation = getPresentation ( targetWrapper ) ; toolPresentation.addProblemElement ( refEntity , problemDescriptor ) ; } } }

Target:
public boolean process ( com.intellij.codeInspection.ex.GlobalInspectionToolWrapper toolWrapper ) { com.intellij.codeInspection.ex.GlobalSimpleInspectionTool tool = ( ( com.intellij.codeInspection.ex.GlobalSimpleInspectionTool ) ( toolWrapper.getTool ( ) ) ) ; com.intellij.codeInspection.ex.ProblemsHolder problemsHolder = new com.intellij.codeInspection.ex.ProblemsHolder ( inspectionManager , file , false ) ; com.intellij.codeInspection.ex.ProblemDescriptionsProcessor problemDescriptionProcessor = getProblemDescriptionProcessor ( toolWrapper , wrappersMap ) ; tool.checkFile ( file , inspectionManager , problemsHolder , this , problemDescriptionProcessor ) ; com.intellij.codeInspection.ui.InspectionToolPresentation toolPresentation = getPresentation ( toolWrapper ) ; com.intellij.codeInspection.ex.LocalDescriptorsUtil.addProblemDescriptors ( problemsHolder.getResults ( ) , false , this , null , com.intellij.codeInspection.ex.GlobalInspectionContextImpl.CONVERT , toolPresentation ) ; return true ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.out.println ( "thread test starting" ) ; Main.testThreadCapacity ( ) ; Main.testThreadDaemons ( ) ; Main.testSleepZero ( ) ; Main.testSetName ( ) ; java.lang.System.out.println ( "thread test done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.out.println ( "thread test starting" ) ; Main.testThreadCapacity ( ) ; Main.testThreadDaemons ( ) ; Main.testSleepZero ( ) ; Main.testSetName ( ) ; Main.testThreadPriorities ( ) ; java.lang.System.out.println ( "thread test done" ) ; }
Source:
public static void createParentDirs ( java.io.File file ) throws java.io.IOException { java.io.File parent = file.getCanonicalFile ( ) . getParentFile ( ) ; if ( parent == null ) { return ; } parent.mkdirs ( ) ; if ( ! ( parent.isDirectory ( ) ) ) { throw new java.io.IOException ( ( "Unable to create parent directories of " + file ) ) ; } }

Target:
public static void createParentDirs ( java.io.File file ) throws java.io.IOException { com.google.common.base.Preconditions.checkNotNull ( file ) ; java.io.File parent = file.getCanonicalFile ( ) . getParentFile ( ) ; if ( parent == null ) { return ; } parent.mkdirs ( ) ; if ( ! ( parent.isDirectory ( ) ) ) { throw new java.io.IOException ( ( "Unable to create parent directories of " + file ) ) ; } }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int timeoutMillis , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , timeoutMillis , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback , android.os.Handler handler ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , 0 , callback , handler ) ; }
Source:
private void broadcastReport ( android.bluetooth.BluetoothDevice device , byte [ ] report , int rpt_size ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothInputDevice.ACTION_REPORT ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothInputDevice.EXTRA_REPORT , report ) ; intent.putExtra ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rpt_size ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; }

Target:
private void broadcastReport ( android.bluetooth.BluetoothDevice device , byte [ ] report , int rptSize ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothInputDevice.ACTION_REPORT ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothInputDevice.EXTRA_REPORT , report ) ; intent.putExtra ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rptSize ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; sendBroadcast ( intent , com.android.bluetooth.hid.BLUETOOTH_PERM ) ; }
Source:
public static java.util.Date getDate ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { java.util.Date result = keyCharacteristics.hwEnforced.getDate ( tag , null ) ; if ( result == null ) { result = keyCharacteristics.swEnforced.getDate ( tag , null ) ; } return result ; }

Target:
public static int getDigestOutputSizeBytes ( int keymasterDigest ) { switch ( keymasterDigest ) { case android.security.keymaster.KeymasterDefs.KM_DIGEST_NONE : return - 1 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_MD5 : return 128 / 8 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA1 : return 160 / 8 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_224 : return 224 / 8 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_256 : return 256 / 8 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_384 : return 384 / 8 ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_512 : return 512 / 8 ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + keymasterDigest ) ) ; } }
Source:
public void start ( com.android.ims.internal.ImsCallSession session , java.lang.String callee ) throws com.android.ims.ImsException { logi ( ( "start(1) :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { session.setListener ( createCallSessionListener ( ) ) ; session.start ( callee , mCallProfile ) ; } catch ( java.lang.Throwable t ) { loge ( "start(1) :: " , t ) ; throw new com.android.ims.ImsException ( "start(1)" , t , 0 ) ; } } }

Target:
public void start ( android.telephony.ims.ImsCallSession session , java.lang.String callee ) throws com.android.ims.ImsException { logi ( ( "start(1) :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { session.setListener ( createCallSessionListener ( ) ) ; session.start ( callee , mCallProfile ) ; } catch ( java.lang.Throwable t ) { loge ( "start(1) :: " , t ) ; throw new com.android.ims.ImsException ( "start(1)" , t , 0 ) ; } } }
Source:
public final java.lang.StringBuffer format ( java.lang.Object object , java.lang.StringBuffer buffer , java.text.FieldPosition field ) { if ( object instanceof java.util.Date ) { return format ( ( ( java.util.Date ) ( object ) ) , buffer , field ) ; } if ( object instanceof java.lang.Number ) { return format ( new java.util.Date ( ( ( java.lang.Number ) ( object ) ) . longValue ( ) ) , buffer , field ) ; } throw new java.lang.IllegalArgumentException ( ) ; }

Target:
public final java.lang.StringBuffer format ( java.lang.Object object , java.lang.StringBuffer buffer , java.text.FieldPosition field ) { if ( object instanceof java.util.Date ) { return format ( ( ( java.util.Date ) ( object ) ) , buffer , field ) ; } if ( object instanceof java.lang.Number ) { return format ( new java.util.Date ( ( ( java.lang.Number ) ( object ) ) . longValue ( ) ) , buffer , field ) ; } throw new java.lang.IllegalArgumentException ( ( "Bad class: " + ( object.getClass ( ) ) ) ) ; }
Source:
public void onPageFinished ( android.webkit.WebView view , java.lang.String url ) { ( mPagesLoaded ) ++ ; if ( ( mPagesLoaded ) == 1 ) { setWebViewProxy ( ) ; view.loadUrl ( mUrl.toString ( ) ) ; return ; } else if ( ( mPagesLoaded ) == 2 ) { view.clearHistory ( ) ; } testForCaptivePortal ( ) ; }

Target:
public void onPageFinished ( android.webkit.WebView view , java.lang.String url ) { ( mPagesLoaded ) ++ ; getProgressBar ( ) . setVisibility ( View.INVISIBLE ) ; if ( ( mPagesLoaded ) == 1 ) { setWebViewProxy ( ) ; view.loadUrl ( mUrl.toString ( ) ) ; return ; } else if ( ( mPagesLoaded ) == 2 ) { view.clearHistory ( ) ; } testForCaptivePortal ( ) ; }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceSet ( "main" ) , mBuildType , new com.android.builder.MockSourceSet ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceSet ( "custom" ) ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }
Source:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; }

Target:
public void testSoftApFailureWhenActive ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mSoftApListener.onStateChanged ( WifiManager.WIFI_AP_STATE_FAILED , 0 ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; verify ( mSoftApManager ) . stop ( ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.content.Intent intent = getIntent ( ) ; java.lang.String mErrorTitle = intent.getStringExtra ( "title" ) ; mErrorContent = intent.getStringExtra ( "content" ) ; final com.android.internal.app.AlertController.AlertParams p = mAlertParams ; p.mIconId = android.R.drawable.ic_dialog_alert ; p.mTitle = mErrorTitle ; p.mView = createView ( ) ; p.mPositiveButtonText = getString ( R.string.bt_error_btn_ok ) ; p.mPositiveButtonListener = this ; setupAlert ( ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.content.Intent intent = getIntent ( ) ; java.lang.String mErrorTitle = intent.getStringExtra ( "title" ) ; mErrorContent = intent.getStringExtra ( "content" ) ; final com.android.internal.app.AlertController.AlertParams p = mAlertParams ; p.mIconAttrId = android.R.attr.alertDialogIcon ; p.mTitle = mErrorTitle ; p.mView = createView ( ) ; p.mPositiveButtonText = getString ( R.string.bt_error_btn_ok ) ; p.mPositiveButtonListener = this ; setupAlert ( ) ; }
Source:
private void shrink ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Shrinking..." ) ; if ( ( configuration.whyAreYouKeeping ) != null ) { java.lang.System.out.println ( "Explaining why classes and class members are being kept..." ) ; } if ( ( configuration.printUsage ) != null ) { java.lang.System.out.println ( ( ( "Printing usage to [" + ( fileName ( configuration.printUsage ) ) ) + "]..." ) ) ; } } programClassPool = new proguard.shrink.Shrinker ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }

Target:
private void target ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Setting target versions..." ) ; } new proguard.Targeter ( configuration ) . execute ( programClassPool ) ; }
Source:
public void setBrowsed ( java.lang.String packageName , java.lang.String cls ) { mPackageName = packageName ; mClassName = cls ; mFolderItems = null ; mMediaId = null ; mRootFolderUid = null ; mPathStack = new java.util.Stack < java.lang.String > ( ) ; mMediaBrowser = new android.media.browse.MediaBrowser ( mContext , new android.content.ComponentName ( mPackageName , mClassName ) , browseMediaConnectionCallback , null ) ; connectToPlayer ( ) ; }

Target:
public void setBrowsed ( java.lang.String packageName , java.lang.String cls ) { mPackageName = packageName ; mClassName = cls ; mFolderItems = null ; mMediaId = null ; mRootFolderUid = null ; mPathStack = new java.util.Stack < java.lang.String > ( ) ; mMediaBrowser = new android.media.browse.MediaBrowser ( mContext , new android.content.ComponentName ( mPackageName , mClassName ) , browseMediaConnectionCallback , null ) ; mMediaBrowser.connect ( ) ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , final com.google.common.base.Function < ? super I , ? extends O > function ) { return com.google.common.util.concurrent.Futures.transform ( input , function , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , final com.google.common.base.Function < ? super I , ? extends O > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( com.google.common.util.concurrent.Futures.asAsyncFunction ( function ) , input ) ; input.addListener ( output , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
private void updateEnclosingMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass type ) { com.android.jack.ir.ast.JMethod enclosingMethod = type.getEnclosingMethod ( ) ; if ( ( enclosingMethod != null ) && ( ! ( enclosingMethod.containsMarker ( com.android.jack.shrob.shrink.KeepMarker.class ) ) ) ) { assert ! ( enclosingMethod.isExternal ( ) ) ; type.setEnclosingMethod ( null ) ; } }

Target:
protected boolean isPlannedForRemoval ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { return ( ! ( method.isExternal ( ) ) ) && ( ! ( ( ( com.android.jack.ir.ast.JNode ) ( method ) ) . containsMarker ( com.android.jack.shrob.shrink.KeepMarker.class ) ) ) ; }
Source:
synchronized boolean isHearingAidPlaying ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hearingaid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "isHearingAidPlaying(" + device ) + ")" ) ) ; } synchronized ( mStateMachines ) { com.android.bluetooth.hearingaid.HearingAidStateMachine sm = mStateMachines.get ( device ) ; if ( sm == null ) { return false ; } return sm.isPlaying ( ) ; } }

Target:
void setActiveDevice ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { for ( android.bluetooth.BluetoothDevice smDevice : mStateMachines.keySet ( ) ) { mStateMachines.get ( smDevice ) . sendMessage ( HearingAidStateMachine.DISCONNECT ) ; } } }
Source:
public int getApplicationEnabledSetting ( java.lang.String packageName ) { synchronized ( mPackages ) { return mSettings.getApplicationEnabledSettingLPr ( packageName ) ; } }

Target:
public void setPackageStoppedState ( java.lang.String packageName , boolean stopped , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; final int uid = android.os.Binder.getCallingUid ( ) ; final int permission = mContext.checkCallingOrSelfPermission ( android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE ) ; final boolean allowedByPermission = permission == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; checkValidCaller ( uid , userId ) ; synchronized ( mPackages ) { if ( mSettings.setPackageStoppedStateLPw ( packageName , stopped , allowedByPermission , uid , userId ) ) { scheduleWritePackageRestrictionsLocked ( userId ) ; } } }
Source:
public final double double_literal ( ) throws org.jf.smali.RecognitionException { double value = 0.0 ; org.antlr.runtime.tree.CommonTree DOUBLE_LITERAL196 = null ; try { { DOUBLE_LITERAL196 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.DOUBLE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_DOUBLE_LITERAL_in_double_literal3324 ) ) ) ; value = org.jf.smali.LiteralTools.parseDouble ( ( DOUBLE_LITERAL196 != null ? DOUBLE_LITERAL196.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final double double_literal ( ) throws org.jf.smali.RecognitionException { double value = 0.0 ; org.antlr.runtime.tree.CommonTree DOUBLE_LITERAL209 = null ; try { { DOUBLE_LITERAL209 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.DOUBLE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_DOUBLE_LITERAL_in_double_literal3513 ) ) ) ; value = org.jf.smali.LiteralTools.parseDouble ( ( DOUBLE_LITERAL209 != null ? DOUBLE_LITERAL209.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private static int sadShort2IntAlt2 ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; int sad = 0 ; for ( int i = 0 ; i < min_length ; i ++ ) { char s = s1 [ i ] ; char p = s2 [ i ] ; int x = s - p ; if ( x < 0 ) x = - x ; sad += x ; } return sad ; }

Target:
private static int sadChar2IntAlt2 ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; int sad = 0 ; for ( int i = 0 ; i < min_length ; i ++ ) { char s = s1 [ i ] ; char p = s2 [ i ] ; int x = s - p ; if ( x < 0 ) x = - x ; sad += x ; } return sad ; }
Source:
public void encode ( com.android.dx.io.instructions.DecodedInstruction insn , com.android.dx.io.instructions.CodeOutput out ) { com.android.dx.io.instructions.InstructionCodec.encodeRegisterList ( insn , out ) ; }

Target:
public void encode ( com.android.dx.io.instructions.DecodedInstruction insn , com.android.dx.io.instructions.CodeOutput out ) { com.android.dx.io.instructions.InvokePolymorphicDecodedInstruction polyInsn = ( ( com.android.dx.io.instructions.InvokePolymorphicDecodedInstruction ) ( insn ) ) ; out.write ( com.android.dx.io.instructions.InstructionCodec.codeUnit ( polyInsn.getOpcode ( ) , com.android.dx.io.instructions.InstructionCodec.makeByte ( polyInsn.getG ( ) , polyInsn.getRegisterCount ( ) ) ) , polyInsn.getIndexUnit ( ) , com.android.dx.io.instructions.InstructionCodec.codeUnit ( polyInsn.getC ( ) , polyInsn.getD ( ) , polyInsn.getE ( ) , polyInsn.getF ( ) ) , polyInsn.getProtoIndex ( ) ) ; }
Source:
public void setPictureListener ( final android.webkit.WebView.PictureListener listener ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setPictureListener ( listener ) ; } } ) ; return ; } mContentsClientAdapter.setPictureListener ( listener ) ; mAwContents.enableOnNewPicture ( ( listener != null ) , ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ) ; }

Target:
public void documentHasImages ( final android.os.Message response ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { documentHasImages ( response ) ; } } ) ; return ; } mAwContents.documentHasImages ( response ) ; }
Source:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) || ( ( parent ) instanceof com.android.jack.ir.ast.JMethod ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JField ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JVariable ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JArrayLiteral ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) ) { throw new com.android.jack.ir.InternalCompilerException ( this , "Invalid parent" ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) || ( ( parent ) instanceof com.android.jack.ir.ast.JMethod ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JField ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JVariable ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JArrayLiteral ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }
Source:
private byte [ ] getParserInput ( com.google.gct.testing.ConfigurationResult result ) { java.lang.String configurationName = ( "\r\nINSTRUMENTATION_STATUS: configuration=" + ( result.getConfigurationInstance ( ) . getDisplayString ( ) ) ) + "\r\n" ; java.lang.String classNamePrefix = "INSTRUMENTATION_STATUS: class=" ; return result.getResult ( ) . replaceAll ( ( "\\n" + classNamePrefix ) , ( configurationName + classNamePrefix ) ) . getBytes ( ) ; }

Target:
private byte [ ] getParserInput ( com.google.gct.testing.ConfigurationResult result ) { java.lang.String configurationName = ( "\r\nINSTRUMENTATION_STATUS: configuration=" + ( result.getConfigurationInstance ( ) . getResultsViewerDisplayString ( ) ) ) + "\r\n" ; java.lang.String classNamePrefix = "INSTRUMENTATION_STATUS: class=" ; return result.getResult ( ) . replaceAll ( ( "\\n" + classNamePrefix ) , ( configurationName + classNamePrefix ) ) . getBytes ( ) ; }
Source:
private float [ ] createInputArrayFloat ( int len , int seed ) { java.util.Random rand = new java.util.Random ( seed ) ; float [ ] array = new float [ len ] ; for ( int i = 0 ; i < len ; ++ i ) array [ i ] = rand.nextFloat ( ) ; return array ; }

Target:
private float [ ] createInputArrayFloatWithInfs ( int len , int infs , int seed ) { java.util.Random rand = new java.util.Random ( seed ) ; float [ ] array = createInputArrayFloat ( len , rand ) ; for ( int i = 0 ; i < infs ; ++ i ) array [ rand.nextInt ( len ) ] = ( rand.nextBoolean ( ) ) ? java.lang.Float.POSITIVE_INFINITY : java.lang.Float.NEGATIVE_INFINITY ; return array ; }
Source:
protected org.eclipse.wst.sse.core.internal.provisional.IStructuredModel getModel ( org.eclipse.jface.text.IDocument document ) throws java.io.IOException , org.eclipse.core.runtime.CoreException { if ( ( mModel ) != null ) { return mModel ; } org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model ; model = org.eclipse.wst.sse.core.StructuredModelManager.getModelManager ( ) . getExistingModelForRead ( document ) ; if ( model == null ) { if ( document instanceof org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument ) { org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument structuredDocument = ( ( org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument ) ( document ) ) ; model = org.eclipse.wst.sse.core.StructuredModelManager.getModelManager ( ) . getModelForRead ( structuredDocument ) ; } } return model ; }

Target:
private org.eclipse.wst.sse.core.internal.provisional.IStructuredModel getModel ( org.eclipse.jface.text.IDocument document ) { org.eclipse.wst.sse.core.internal.provisional.IModelManager manager = org.eclipse.wst.sse.core.StructuredModelManager.getModelManager ( ) ; org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model = manager.getExistingModelForRead ( document ) ; if ( ( model == null ) && ( document instanceof org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument ) ) { model = manager.getModelForRead ( ( ( org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument ) ( document ) ) ) ; } return model ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; return false ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getConnectionState: " + device ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothAdapter.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
public static java.awt.image.BufferedImage cropColor ( java.awt.image.BufferedImage image , final int blankArgb , com.android.ide.common.api.Rect initialCrop ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.CropFilter filter = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.CropFilter ( ) { @ java.lang.Override public boolean crop ( java.awt.image.BufferedImage bufferedImage , int x , int y ) { return blankArgb == ( bufferedImage.getRGB ( x , y ) ) ; } } ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.crop ( image , filter , initialCrop ) ; }

Target:
public static java.awt.image.BufferedImage cropColor ( java.awt.image.BufferedImage image , final int blankArgb , com.android.ide.common.api.Rect initialCrop , int imageType ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.CropFilter filter = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.CropFilter ( ) { @ java.lang.Override public boolean crop ( java.awt.image.BufferedImage bufferedImage , int x , int y ) { return blankArgb == ( bufferedImage.getRGB ( x , y ) ) ; } } ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.crop ( image , filter , initialCrop , imageType ) ; }
Source:
private void callDropLeave ( ) { if ( ( ( mTargetNode ) != null ) && ( ( mFeedback ) != null ) ) { mCanvas.getRulesEngine ( ) . callOnDropLeave ( mTargetNode , mCurrentDragElements , mFeedback ) ; } mTargetNode = null ; mFeedback = null ; }

Target:
private void callDropLeave ( ) { if ( ( ( mTargetNode ) != null ) && ( ( mFeedback ) != null ) ) { updateDropFeedback ( mFeedback , null ) ; mCanvas.getRulesEngine ( ) . callOnDropLeave ( mTargetNode , mCurrentDragElements , mFeedback ) ; } mTargetNode = null ; mFeedback = null ; }
Source:
private void maybePlayHoldTone ( ) { if ( shouldPlayHoldTone ( ) ) { if ( ( mHoldTonePlayer ) == null ) { mHoldTonePlayer = mPlayerFactory.createPlayer ( InCallTonePlayer.TONE_CALL_WAITING ) ; mHoldTonePlayer.start ( ) ; } } else { if ( ( mHoldTonePlayer ) != null ) { mHoldTonePlayer.stopTone ( ) ; mHoldTonePlayer = null ; } } }

Target:
private void maybePlayHoldTone ( ) { if ( shouldPlayHoldTone ( ) ) { if ( ( mHoldTonePlayer ) == null ) { mHoldTonePlayer = mPlayerFactory.createPlayer ( InCallTonePlayer.TONE_CALL_WAITING ) ; mHoldTonePlayer.startTone ( ) ; } } else { if ( ( mHoldTonePlayer ) != null ) { mHoldTonePlayer.stopTone ( ) ; mHoldTonePlayer = null ; } } }
Source:
protected void onPause ( ) { super . onPause ( ) ; android.widget.ImageView imageView = ( ( android.widget.ImageView ) ( findViewById ( R.id.imageview ) ) ) ; mDrawable.destroy ( ) ; if ( ! ( mProvider.isEmpty ( ) ) ) throw new java.lang.IllegalStateException ( "All bitmaps not recycled" ) ; mDrawable = null ; imageView.setImageDrawable ( null ) ; }

Target:
protected void onPause ( ) { super . onPause ( ) ; android.view.View drawableView = findViewById ( R.id.drawableview ) ; mDrawable.destroy ( ) ; if ( ! ( mProvider.isEmpty ( ) ) ) throw new java.lang.IllegalStateException ( "All bitmaps not recycled" ) ; mDrawable = null ; drawableView.setBackgroundDrawable ( null ) ; }
Source:
public void getCallForwardingOption ( int commandInterfaceCFReason , android.os.Message onComplete ) { if ( isValidCommandInterfaceCFReason ( commandInterfaceCFReason ) ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "requesting call forwarding query." ) ; android.os.Message resp ; if ( commandInterfaceCFReason == ( com.android.internal.telephony.CommandsInterface.CF_REASON_UNCONDITIONAL ) ) { resp = obtainMessage ( com.android.internal.telephony.gsm.EVENT_GET_CALL_FORWARD_DONE , onComplete ) ; } else { resp = onComplete ; } mCM.queryCallForwardStatus ( commandInterfaceCFReason , 0 , null , resp ) ; } }

Target:
public void getCallForwardingOption ( int commandInterfaceCFReason , android.os.Message onComplete ) { if ( isValidCommandInterfaceCFReason ( commandInterfaceCFReason ) ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "requesting call forwarding query." ) ; android.os.Message resp ; if ( commandInterfaceCFReason == ( com.android.internal.telephony.CommandsInterface.CF_REASON_UNCONDITIONAL ) ) { resp = obtainMessage ( com.android.internal.telephony.gsm.EVENT_GET_CALL_FORWARD_DONE , onComplete ) ; } else { resp = onComplete ; } mCM.queryCallForwardStatus ( commandInterfaceCFReason , 0 , null , resp ) ; } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JCatchBlock block ) { if ( ! ( currentStmts.isEmpty ( ) ) ) { com.android.jack.cfg.NormalBasicBlock endOfBlock = new com.android.jack.cfg.NormalBasicBlock ( ( ( basicBlockId ) ++ ) , currentStmts ) ; setBlockOfStatement ( endOfBlock ) ; com.android.jack.ir.ast.JStatement nextStatement = com.android.jack.util.ControlFlowHelper.getNextStatement ( block ) ; if ( nextStatement != null ) { forwardBranchResolver.addNormalBasicBlock ( endOfBlock , nextStatement ) ; } } }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBody methodBody ) { assert currentStmts.isEmpty ( ) ; if ( ! ( virtualStmts.isEmpty ( ) ) ) { com.android.jack.cfg.BasicBlockMarker marker = new com.android.jack.cfg.BasicBlockMarker ( exitBlock ) ; for ( com.android.jack.ir.ast.JStatement statement : virtualStmts ) { statement.addMarker ( marker ) ; } } forwardBranchResolver.resolve ( ) ; }
Source:
private android.graphics.drawable.Drawable getCachedDrawable ( long key ) { synchronized ( mTmpValue ) { java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > wr = mDrawableCache.get ( key ) ; if ( wr != null ) { android.graphics.drawable.Drawable.ConstantState entry = wr.get ( ) ; if ( entry != null ) { return entry.newDrawable ( this ) ; } else { mDrawableCache.delete ( key ) ; } } } return null ; }

Target:
private android.graphics.drawable.Drawable getCachedDrawable ( android.util.LongSparseArray < java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > > drawableCache , long key ) { synchronized ( mTmpValue ) { java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > wr = drawableCache.get ( key ) ; if ( wr != null ) { android.graphics.drawable.Drawable.ConstantState entry = wr.get ( ) ; if ( entry != null ) { return entry.newDrawable ( ) ; } else { drawableCache.delete ( key ) ; } } } return null ; }