auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void run ( @ javax.annotation.Nonnull java.lang.String mainClass , @ javax.annotation.Nonnull java.io.File [ ] dexFiles ) throws java.lang.Exception { java.util.List < com.android.jack.test.runner.RuntimeRunner > runnerList = com.android.jack.test.toolchain.AbstractTestTools.listRuntimeTestRunners ( null ) ; for ( com.android.jack.test.runner.RuntimeRunner runner : runnerList ) { junit.framework.Assert.assertEquals ( 0 , runner.runJUnit ( new java.lang.String [ 0 ] , AbstractTestTools.JUNIT_RUNNER_NAME , new java.lang.String [ ] { mainClass } , dexFiles ) ) ; } }

Target:
private void run ( @ javax.annotation.Nonnull java.lang.String mainClass , @ javax.annotation.Nonnull java.io.File [ ] dexFiles ) throws java.lang.Exception { java.util.List < com.android.jack.test.runner.RuntimeRunner > runnerList = com.android.jack.test.toolchain.AbstractTestTools.listRuntimeTestRunners ( ) ; for ( com.android.jack.test.runner.RuntimeRunner runner : runnerList ) { junit.framework.Assert.assertEquals ( 0 , runner.runJUnit ( new java.lang.String [ 0 ] , AbstractTestTools.JUNIT_RUNNER_NAME , new java.lang.String [ ] { mainClass } , dexFiles ) ) ; } }
Source:
public void testCreate ( ) { java.util.Properties props = createExpectedProps ( ) ; com.android.sdklib.internal.repository.packages.MockExtraPackage p = new com.android.sdklib.internal.repository.packages.MockExtraPackage ( null , props , "vendor" , "the_path" , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }

Target:
public void testCreate ( ) { java.util.Properties props = createExpectedProps ( ) ; com.android.sdklib.internal.repository.packages.MockExtraPackage p = new com.android.sdklib.internal.repository.packages.MockExtraPackage ( null , props , "vendor" , "the_path" , ( - 1 ) , null , null , null , LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }
Source:
private com.ibm.icu.impl.SimplePatternFormatter getPerFormatter ( com.ibm.icu.text.MeasureFormat.FormatWidth width ) { width = com.ibm.icu.text.MeasureFormat.getRegularWidth ( width ) ; com.ibm.icu.impl.SimplePatternFormatter perPattern = cache.styleToPerPattern.get ( width ) ; if ( perPattern != null ) { return perPattern ; } com.ibm.icu.text.MeasureFormat.FormatWidth fallbackWidth = cache.widthFallback [ width.ordinal ( ) ] ; if ( fallbackWidth != null ) { perPattern = cache.styleToPerPattern.get ( fallbackWidth ) ; if ( perPattern != null ) { return perPattern ; } } throw new java.util.MissingResourceException ( ( "no x-per-y pattern for width " + width ) , null , null ) ; }

Target:
private java.lang.String getPerFormatter ( com.ibm.icu.text.MeasureFormat.FormatWidth width ) { width = com.ibm.icu.text.MeasureFormat.getRegularWidth ( width ) ; java.lang.String perPattern = cache.styleToPerPattern.get ( width ) ; if ( perPattern != null ) { return perPattern ; } com.ibm.icu.text.MeasureFormat.FormatWidth fallbackWidth = cache.widthFallback [ width.ordinal ( ) ] ; if ( fallbackWidth != null ) { perPattern = cache.styleToPerPattern.get ( fallbackWidth ) ; if ( perPattern != null ) { return perPattern ; } } throw new java.util.MissingResourceException ( ( "no x-per-y pattern for width " + width ) , null , null ) ; }
Source:
private void onConnectionStateChanged ( android.bluetooth.BluetoothDevice device , int prevState , int state ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothA2dpSink.ACTION_CONNECTION_STATE_CHANGED ) ; intent.putExtra ( BluetoothProfile.EXTRA_PREVIOUS_STATE , prevState ) ; intent.putExtra ( BluetoothProfile.EXTRA_STATE , state ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; mContext.sendBroadcast ( intent , ProfileService.BLUETOOTH_PERM ) ; log ( ( ( ( ( ( "Connection state " + device ) + ": " ) + prevState ) + "->" ) + state ) ) ; mService.notifyProfileConnectionStateChanged ( device , BluetoothProfile.A2DP_SINK , state , prevState ) ; }

Target:
private void onConnectionStateChanged ( android.bluetooth.BluetoothDevice device , int prevState , int state ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothA2dpSink.ACTION_CONNECTION_STATE_CHANGED ) ; intent.putExtra ( BluetoothProfile.EXTRA_PREVIOUS_STATE , prevState ) ; intent.putExtra ( BluetoothProfile.EXTRA_STATE , state ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; mContext.sendBroadcast ( intent , ProfileService.BLUETOOTH_PERM ) ; log ( ( ( ( ( ( "Connection state " + device ) + ": " ) + prevState ) + "->" ) + state ) ) ; }
Source:
static void native_addRect ( int nPath , float left , float top , float right , float bottom , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.addRect ( left , top , right , bottom , dir ) ; }

Target:
static void native_addRect ( long nPath , float left , float top , float right , float bottom , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.addRect ( left , top , right , bottom , dir ) ; }
Source:
public com.android.sdklib.IAndroidTarget [ ] getTargets ( ) { if ( ( mTargets ) == null ) { java.io.File sdkHome = getSdkHome ( ) ; if ( sdkHome != null ) { com.android.utils.StdLogger log = new com.android.utils.StdLogger ( com.android.utils.StdLogger.Level.WARNING ) ; com.android.sdklib.SdkManager manager = com.android.sdklib.SdkManager.createManager ( sdkHome.getPath ( ) , log ) ; mTargets = manager.getTargets ( ) ; } else { mTargets = new com.android.sdklib.IAndroidTarget [ 0 ] ; } } return mTargets ; }

Target:
public com.android.sdklib.IAndroidTarget [ ] getTargets ( ) { if ( ( mTargets ) == null ) { java.io.File sdkHome = getSdkHome ( ) ; if ( sdkHome != null ) { com.android.utils.StdLogger log = new com.android.utils.StdLogger ( com.android.utils.StdLogger.Level.WARNING ) ; com.android.sdklib.SdkManager manager = com.android.sdklib.SdkManager.createManager ( sdkHome.getPath ( ) , log ) ; if ( manager != null ) { mTargets = manager.getTargets ( ) ; } else { mTargets = new com.android.sdklib.IAndroidTarget [ 0 ] ; } } else { mTargets = new com.android.sdklib.IAndroidTarget [ 0 ] ; } } return mTargets ; }
Source:
public static android.renderscript.AllocationAdapter create2D ( android.renderscript.RenderScript rs , android.renderscript.Allocation a ) { android.util.Log.e ( "rs" , ( "create2d " + a ) ) ; rs.validate ( ) ; android.renderscript.AllocationAdapter aa = new android.renderscript.AllocationAdapter ( 0 , rs , a ) ; aa.mConstrainedLOD = true ; aa.mConstrainedFace = true ; aa.mConstrainedY = false ; aa.mConstrainedZ = true ; aa.initLOD ( 0 ) ; return aa ; }

Target:
public static android.renderscript.AllocationAdapter create2D ( android.renderscript.RenderScript rs , android.renderscript.Allocation a ) { rs.validate ( ) ; android.renderscript.AllocationAdapter aa = new android.renderscript.AllocationAdapter ( 0 , rs , a ) ; aa.mConstrainedLOD = true ; aa.mConstrainedFace = true ; aa.mConstrainedY = false ; aa.mConstrainedZ = true ; aa.initLOD ( 0 ) ; return aa ; }
Source:
public static synchronized com.android.builder.sdk.SdkLoader getLoader ( @ com.android.annotations.NonNull java.io.File sdkLocation ) { if ( ( ( com.android.builder.sdk.DefaultSdkLoader.sLoader ) != null ) && ( ! ( sdkLocation.equals ( com.android.builder.sdk.DefaultSdkLoader.sLoader.mSdkLocation ) ) ) ) { throw new java.lang.IllegalStateException ( "Already created an SDK Loader with different SDK Path" ) ; } return com.android.builder.sdk.DefaultSdkLoader.sLoader = new com.android.builder.sdk.DefaultSdkLoader ( sdkLocation ) ; }

Target:
public static synchronized com.android.builder.sdk.SdkLoader getLoader ( @ com.android.annotations.NonNull java.io.File sdkLocation ) { if ( ( com.android.builder.sdk.DefaultSdkLoader.sLoader ) == null ) { com.android.builder.sdk.DefaultSdkLoader.sLoader = new com.android.builder.sdk.DefaultSdkLoader ( sdkLocation ) ; } else if ( ! ( sdkLocation.equals ( com.android.builder.sdk.DefaultSdkLoader.sLoader.mSdkLocation ) ) ) { throw new java.lang.IllegalStateException ( "Already created an SDK Loader with different SDK Path" ) ; } return com.android.builder.sdk.DefaultSdkLoader.sLoader ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String actionName , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainRunner ( monitor , klass ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainRunner ( monitor , klass ) ; } else { return null ; } }
Source:
private void multiLaunch ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo launchInfo , java.util.Collection < com.android.ddmlib.IDevice > devices ) { for ( com.android.ddmlib.IDevice d : devices ) { boolean success = doPreLaunchActions ( launchInfo , d ) ; if ( ! success ) { java.lang.String deviceName = ( d.isEmulator ( ) ) ? d.getAvdName ( ) : d.getSerialNumber ( ) ; com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( launchInfo.getProject ( ) , ( "Launch failed on device: " + deviceName ) ) ; continue ; } doLaunchAction ( launchInfo , d ) ; } stopLaunch ( launchInfo ) ; }

Target:
private void multiLaunch ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo launchInfo , java.util.Collection < com.android.ddmlib.IDevice > devices ) { for ( com.android.ddmlib.IDevice d : devices ) { boolean success = doPreLaunchActions ( launchInfo , d ) ; if ( ! success ) { java.lang.String deviceName = ( d.isEmulator ( ) ) ? d.getAvdName ( ) : d.getSerialNumber ( ) ; com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( launchInfo.getProject ( ) , ( "Launch failed on device: " + deviceName ) ) ; continue ; } } doLaunchAction ( launchInfo , devices ) ; stopLaunch ( launchInfo ) ; }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }
Source:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; org.junit.Assert.assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public void visitLibraryMethod ( proguard.classfile.editor.LibraryClass libraryClass , proguard.classfile.editor.LibraryMethod libraryMethod ) { java.lang.String descriptor = libraryMethod.getDescriptor ( libraryClass ) ; java.lang.String newDescriptor = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( descriptor , libraryMethod.referencedClasses ) ; libraryMethod.descriptor = newDescriptor ; }

Target:
public void visitLibraryMethod ( proguard.classfile.editor.LibraryClass libraryClass , proguard.classfile.editor.LibraryMethod libraryMethod ) { java.lang.String descriptor = libraryMethod.getDescriptor ( libraryClass ) ; java.lang.String newDescriptor = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( descriptor , libraryMethod.referencedClasses ) ; if ( ! ( descriptor.equals ( newDescriptor ) ) ) { libraryMethod.descriptor = newDescriptor ; } }
Source:
public void finalize ( ) { debugLog ( ( "finalize() - clean up object " + ( this ) ) ) ; cleanup ( ) ; if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }

Target:
public void finalize ( ) { if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public void push ( final double value ) { long bits = java.lang.Double.doubleToLongBits ( value ) ; if ( ( bits == 0L ) || ( bits == 4607182418800017408L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.DCONST_0 ) + ( ( int ) ( value ) ) ) ) ; } else { mv.visitLdcInsn ( new java.lang.Double ( value ) ) ; } }

Target:
public void push ( final double value ) { long bits = java.lang.Double.doubleToLongBits ( value ) ; if ( ( bits == 0L ) || ( bits == 4607182418800017408L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.DCONST_0 ) + ( ( int ) ( value ) ) ) ) ; } else { mv.visitLdcInsn ( value ) ; } }
Source:
private static java.lang.String getYearString ( java.util.Calendar inDate , int count ) { int year = inDate.get ( java.util.Calendar.YEAR ) ; return count <= 2 ? android.text.format.DateFormat.zeroPad ( ( year % 100 ) , 2 ) : java.lang.String.format ( java.util.Locale.getDefault ( ) , "%d" , year ) ; }

Target:
private static java.lang.String getYearString ( int year , int count ) { return count <= 2 ? android.text.format.DateFormat.zeroPad ( ( year % 100 ) , 2 ) : java.lang.String.format ( java.util.Locale.getDefault ( ) , "%d" , year ) ; }
Source:
public boolean isSubViewOf ( @ com.android.annotations.NonNull java.lang.String parentViewFqcn , @ com.android.annotations.NonNull java.lang.String childViewFqcn ) { while ( ! ( childViewFqcn.equals ( "android.view.View" ) ) ) { if ( parentViewFqcn.equals ( childViewFqcn ) ) { return true ; } childViewFqcn = getParentViewClass ( childViewFqcn ) ; if ( childViewFqcn == null ) { return true ; } } return false ; }

Target:
public boolean isSubViewOf ( @ com.android.annotations.NonNull java.lang.String parentViewFqcn , @ com.android.annotations.NonNull java.lang.String childViewFqcn ) { while ( ! ( childViewFqcn.equals ( "android.view.View" ) ) ) { if ( parentViewFqcn.equals ( childViewFqcn ) ) { return true ; } java.lang.String parent = getParentViewClass ( childViewFqcn ) ; if ( parent == null ) { return true ; } childViewFqcn = parent ; } return false ; }
Source:
public void run ( com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( ! ( getFilter ( ) . accept ( this . getClass ( ) , type ) ) ) { return ; } com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.merge ( type ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } }

Target:
public void run ( com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.merge ( type ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } }
Source:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; actions.add ( com.android.ide.common.api.MenuAction.createSeparator ( 25 ) ) ; actions.add ( createMarginAction ( parentNode , children ) ) ; if ( ( children.size ( ) ) > 0 ) { actions.add ( createGravityAction ( children , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_GRAVITY ) ) ; } }

Target:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; actions.add ( com.android.ide.common.api.MenuAction.createSeparator ( 25 ) ) ; actions.add ( createMarginAction ( parentNode , children ) ) ; if ( ( children != null ) && ( ( children.size ( ) ) > 0 ) ) { actions.add ( createGravityAction ( children , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_GRAVITY ) ) ; } }
Source:
private static java.lang.String secureHash ( byte [ ] input ) { synchronized ( android.telecom.Log.sMessageDigestLock ) { if ( ( android.telecom.Log.sMessageDigest ) != null ) { android.telecom.Log.sMessageDigest.reset ( ) ; android.telecom.Log.sMessageDigest.update ( input ) ; byte [ ] result = android.telecom.Log.sMessageDigest.digest ( ) ; return android.telecom.Log.encodeHex ( result ) ; } else { return "Uninitialized SHA1" ; } } }

Target:
private static java.lang.String secureHash ( byte [ ] input ) { if ( ( android.telecom.Log.sMessageDigest ) != null ) { android.telecom.Log.sMessageDigest.reset ( ) ; android.telecom.Log.sMessageDigest.update ( input ) ; byte [ ] result = android.telecom.Log.sMessageDigest.digest ( ) ; return android.telecom.Log.encodeHex ( result ) ; } else { return "Uninitialized SHA1" ; } }
Source:
public int addNewDelegate ( T newDelegate ) { int native_object = ++ ( mDelegateCounter ) ; mDelegates.put ( native_object , newDelegate ) ; assert ! ( mJavaReferences.contains ( newDelegate ) ) ; mJavaReferences.add ( newDelegate ) ; if ( com.android.layoutlib.bridge.util.Debug.DEBUG ) { java.lang.System.out.println ( ( ( ( "New " + ( mClass.getSimpleName ( ) ) ) + " with int " ) + native_object ) ) ; } return native_object ; }

Target:
public long addNewDelegate ( T newDelegate ) { long native_object = ++ ( mDelegateCounter ) ; mDelegates.put ( native_object , newDelegate ) ; assert ! ( mJavaReferences.contains ( newDelegate ) ) ; mJavaReferences.add ( newDelegate ) ; if ( com.android.layoutlib.bridge.util.Debug.DEBUG ) { java.lang.System.out.println ( ( ( ( "New " + ( mClass.getSimpleName ( ) ) ) + " with int " ) + native_object ) ) ; } return native_object ; }
Source:
private static void runConfigMatchTest ( java.lang.String refConfig , int resultIndex , java.lang.String ... configs ) { com.android.ide.common.resources.configuration.FolderConfiguration reference = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( com.android.ide.common.resources.configuration.FolderConfigurationTest.getFolderSegments ( refConfig ) ) ; assertNotNull ( reference ) ; java.util.List < ? extends com.android.ide.common.resources.configuration.Configurable > list = com.android.ide.common.resources.configuration.FolderConfigurationTest.getConfigurable ( configs ) ; com.android.ide.common.resources.configuration.Configurable match = reference.findMatchingConfigurable ( list ) ; assertEquals ( resultIndex , list.indexOf ( match ) ) ; }

Target:
private static void runConfigMatchTest ( java.lang.String refConfig , int resultIndex , java.lang.String ... configs ) { com.android.ide.common.resources.configuration.FolderConfiguration reference = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( com.android.ide.common.resources.configuration.FolderConfigurationTest.getFolderSegments ( refConfig ) ) ; assertNotNull ( reference ) ; java.util.List < com.android.ide.common.resources.configuration.Configurable > list = com.android.ide.common.resources.configuration.FolderConfigurationTest.getConfigurable ( configs ) ; com.android.ide.common.resources.configuration.Configurable match = reference.findMatchingConfigurable ( list ) ; assertEquals ( resultIndex , list.indexOf ( match ) ) ; }
Source:
public void exit ( ) { if ( ( mPhone ) != null ) { mPhone.mCi.unregisterForRilConnected ( getHandler ( ) ) ; mPhone.mCi.unregisterForDataCallListChanged ( getHandler ( ) ) ; } if ( ( mDcTesterDeactivateAll ) != null ) { mDcTesterDeactivateAll.dispose ( ) ; } }

Target:
public void exit ( ) { if ( ( mPhone ) != null ) { mPhone.mCi.unregisterForDataCallListChanged ( getHandler ( ) ) ; } if ( ( mDcTesterDeactivateAll ) != null ) { mDcTesterDeactivateAll.dispose ( ) ; } }
Source:
private void acceptUpgradeRequest ( android.content.Context context ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( context ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.acceptUpgradeRequest" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getVideoUpgradeRequestCall ( ) ; if ( call != null ) { call.getVideoTech ( ) . acceptVideoRequest ( ) ; } } }

Target:
private void acceptUpgradeRequest ( android.content.Context context ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( context ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.acceptUpgradeRequest" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getVideoUpgradeRequestCall ( ) ; if ( call != null ) { call.getVideoTech ( ) . acceptVideoRequest ( context ) ; } } }
Source:
public int drainTo ( java.util.Collection < ? super E > c ) { if ( c == null ) throw new java.lang.NullPointerException ( ) ; if ( c == ( this ) ) throw new java.lang.IllegalArgumentException ( ) ; int n = 0 ; E e ; while ( ( e = poll ( ) ) != null ) { c.add ( e ) ; ++ n ; } return n ; }

Target:
public int drainTo ( java.util.Collection < ? super E > c ) { if ( c == null ) throw new java.lang.NullPointerException ( ) ; if ( c == ( this ) ) throw new java.lang.IllegalArgumentException ( ) ; int n = 0 ; for ( E e ; ( e = poll ( ) ) != null ; ) { c.add ( e ) ; ++ n ; } return n ; }
Source:
public static long getLong ( java.lang.String key , long def ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get_long ( key , def ) ; }

Target:
public static long getLong ( java.lang.String key , long def ) { if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get_long ( key , def ) ; }
Source:
private static void checkReceiver ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( ( com.android.tools.lint.checks.SecurityDetector.getExported ( element ) ) && ( com.android.tools.lint.checks.SecurityDetector.isUnprotectedByPermission ( element ) ) ) && ( ! ( com.android.tools.lint.checks.SecurityDetector.isStandardReceiver ( element ) ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_RECEIVER , element , context.getLocation ( element ) , "Exported receiver does not require permission" , null ) ; } }

Target:
private static void checkReceiver ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( ( com.android.tools.lint.checks.SecurityDetector.getExported ( element ) ) && ( com.android.tools.lint.checks.SecurityDetector.isUnprotectedByPermission ( element ) ) ) && ( ! ( com.android.tools.lint.checks.SecurityDetector.isStandardReceiver ( element ) ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_RECEIVER , element , context.getLocation ( element ) , "Exported receiver does not require permission" ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "<" + ( descriptor ) ) + "," ) + ( algo ) ) + "," ) + ( new java.lang.String ( com.android.jack.digest.OriginDigestMarker.encode ( digest ) ) ) ) + ">" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( "<" + ( descriptor.toString ( ) ) ) + "," ) + ( algo ) ) + "," ) + ( new java.lang.String ( com.android.jack.digest.OriginDigestMarker.encode ( digest ) ) ) ) + ">" ; }
Source:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotIndex ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotIndex ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }

Target:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotIndex ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotIndex ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }
Source:
public static void logStats ( java.lang.String tag , android.hardware.cts.helpers.SensorStats stats ) { final java.util.Map < java.lang.String , java.lang.Object > flattened = stats.flatten ( ) ; for ( java.lang.String key : android.hardware.cts.helpers.SensorStats.getSortedKeys ( flattened ) ) { java.lang.Object value = flattened.get ( key ) ; android.util.Log.v ( tag , java.lang.String.format ( "%s: %s" , key , android.hardware.cts.helpers.SensorStats.getValueString ( value ) ) ) ; } }

Target:
public void log ( java.lang.String tag ) { final java.util.Map < java.lang.String , java.lang.Object > flattened = flatten ( ) ; for ( java.lang.String key : android.hardware.cts.helpers.SensorStats.getSortedKeys ( flattened ) ) { java.lang.Object value = flattened.get ( key ) ; android.util.Log.v ( tag , java.lang.String.format ( "%s: %s" , key , android.hardware.cts.helpers.SensorStats.getValueString ( value ) ) ) ; } }
Source:
private java.lang.String findCommonMimeType ( java.util.ArrayList < java.lang.String > mimeTypes ) { java.lang.String str = findCommonString ( mimeTypes ) ; if ( str != null ) { return str ; } java.util.ArrayList < java.lang.String > mimeTypePrefixes = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : mimeTypes ) { mimeTypePrefixes.add ( s.substring ( 0 , s.indexOf ( '/' ) ) ) ; } str = findCommonString ( mimeTypePrefixes ) ; if ( str != null ) { return str + "/*" ; } return "*/*" ; }

Target:
private java.lang.String findCommonMimeType ( java.util.ArrayList < java.lang.String > mimeTypes ) { java.lang.String str = findCommonString ( mimeTypes ) ; if ( str != null ) { return str ; } java.util.ArrayList < java.lang.String > mimeTypePrefixes = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : mimeTypes ) { if ( s != null ) { mimeTypePrefixes.add ( s.substring ( 0 , s.indexOf ( '/' ) ) ) ; } } str = findCommonString ( mimeTypePrefixes ) ; if ( str != null ) { return str + "/*" ; } return "*/*" ; }
Source:
protected void checkReportedError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { assertNotNull ( message , com.android.tools.lint.checks.WrongCaseDetector.getOldValue ( message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertNotNull ( message , com.android.tools.lint.checks.WrongCaseDetector.getNewValue ( message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }

Target:
protected void checkReportedError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { assertNotNull ( message , com.android.tools.lint.checks.WrongCaseDetector.getOldValue ( message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertNotNull ( message , com.android.tools.lint.checks.WrongCaseDetector.getNewValue ( message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) { return false ; } android.renderscript.BaseObj b = ( ( android.renderscript.BaseObj ) ( obj ) ) ; return ( mID ) == ( b.mID ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) { return false ; } android.renderscript.BaseObj b = ( ( android.renderscript.BaseObj ) ( obj ) ) ; return ( mID ) == ( b.mID ) ; }
Source:
public libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate addSubjectAlternativeName ( int type , java.lang.String name ) { if ( ( subjectAlternativeNames ) == null ) { subjectAlternativeNames = new java.util.ArrayList < java.util.List < ? > > ( ) ; } java.util.LinkedList < java.lang.Object > entry = new java.util.LinkedList < java.lang.Object > ( ) ; entry.add ( type ) ; entry.add ( name ) ; subjectAlternativeNames.add ( entry ) ; return this ; }

Target:
public final libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate addSubjectAlternativeName ( int type , java.lang.String name ) { if ( ( subjectAlternativeNames ) == null ) { subjectAlternativeNames = new java.util.ArrayList < java.util.List < ? > > ( ) ; } java.util.LinkedList < java.lang.Object > entry = new java.util.LinkedList < java.lang.Object > ( ) ; entry.add ( type ) ; entry.add ( name ) ; subjectAlternativeNames.add ( entry ) ; return this ; }
Source:
protected java.lang.String argString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; int sz = values.size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( "\n " ) ; sb.append ( i ) ; sb.append ( ": " ) ; sb.append ( values.get ( i ) . toHuman ( ) ) ; } return sb.toString ( ) ; }

Target:
protected java.lang.String argString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; int sz = values.size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( "\n " ) ; sb.append ( i ) ; sb.append ( ": " ) ; sb.append ( values.get ( i ) . toHuman ( ) ) ; } return sb.toString ( ) ; }
Source:
private java.lang.String getFile ( java.lang.String filename ) throws java.io.IOException { java.io.BufferedReader in = null ; try { in = new java.io.BufferedReader ( new java.io.FileReader ( filename ) ) ; return in.readLine ( ) . trim ( ) ; } finally { if ( in != null ) { in.close ( ) ; } } }

Target:
static java.lang.String getFile ( java.lang.String filename ) throws java.io.IOException { java.io.BufferedReader in = null ; try { in = new java.io.BufferedReader ( new java.io.FileReader ( filename ) ) ; return in.readLine ( ) . trim ( ) ; } finally { if ( in != null ) { in.close ( ) ; } } }
Source:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; if ( type == ( AvrcpConstants.NOTIFICATION_TYPE_CHANGED ) ) sendNowPlayingListChanged ( ) ; mMediaInterface.trackChangedRsp ( type , track ) ; mLastTrackIdSent = qid ; }

Target:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; mMediaInterface.trackChangedRsp ( type , track ) ; mLastTrackIdSent = qid ; }
Source:
public void getDefaultDownloadableSubscriptionList ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getDefaultDownloadableSubscriptionList ( mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getDefaultDownloadableSubscriptionList ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . getDefaultDownloadableSubscriptionList ( mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.lang.String getColumnText ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.tools.lint.detector.api.Category ) { if ( columnIndex == 0 ) { return ( ( com.android.tools.lint.detector.api.Category ) ( element ) ) . getFullName ( ) ; } else { return ( ( com.android.tools.lint.detector.api.Category ) ( element ) ) . getExplanation ( ) ; } } com.android.tools.lint.detector.api.Issue issue = ( ( com.android.tools.lint.detector.api.Issue ) ( element ) ) ; switch ( columnIndex ) { case 0 : return issue.getId ( ) ; case 1 : return issue.getDescription ( ) ; } return null ; }

Target:
public java.lang.String getColumnText ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.tools.lint.detector.api.Category ) { if ( columnIndex == 0 ) { return ( ( com.android.tools.lint.detector.api.Category ) ( element ) ) . getFullName ( ) ; } else { return null ; } } com.android.tools.lint.detector.api.Issue issue = ( ( com.android.tools.lint.detector.api.Issue ) ( element ) ) ; switch ( columnIndex ) { case 0 : return issue.getId ( ) ; case 1 : return issue.getDescription ( ) ; } return null ; }
Source:
public void testUserMaskingSystem ( ) throws java.lang.Exception { org.conscrypt.TrustedCertificateStoreTest.install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; org.conscrypt.TrustedCertificateStoreTest.install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; assertMasked ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; }

Target:
public void testUserMaskingSystem ( ) throws java.lang.Exception { install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; assertMasked ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa1 ( ) ) ; }
Source:
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 } ) ; }

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 } , context ) ; }
Source:
public void onZoomChange ( int value , boolean stopped , android.hardware.Camera camera ) { mValues.add ( value ) ; assertEquals ( value , camera.getParameters ( ) . getZoom ( ) ) ; assertFalse ( mStopped ) ; mStopped = stopped ; if ( stopped ) { mZoomDone.open ( ) ; } }

Target:
public void onZoomChange ( int value , boolean stopped , android.hardware.Camera camera ) { mValues.add ( value ) ; assertFalse ( mStopped ) ; mStopped = stopped ; if ( stopped ) { mZoomDone.open ( ) ; } }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( type.isExternal ( ) ) { return ; } visitor.accept ( type ) ; if ( ! ( type.getAnnotations ( mainDexAnnotationType ) . isEmpty ( ) ) ) { type.addMarker ( ForceInMainDexMarker.INSTANCE ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { visitor.accept ( type ) ; if ( ! ( type.getAnnotations ( mainDexAnnotationType ) . isEmpty ( ) ) ) { type.addMarker ( ForceInMainDexMarker.INSTANCE ) ; } }
Source:
private void expectHwDisconnectedPnoScanStart ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.PnoSettings pnoSettings ) { for ( int i = 0 ; i < ( pnoSettings.networkList.length ) ; i ++ ) { com.android.server.wifi.WifiNative.PnoNetwork network = pnoSettings.networkList [ i ] ; order.verify ( mWifiNative ) . setNetworkVariable ( network.networkId , WifiConfiguration.priorityVarName , java.lang.Integer.toString ( network.priority ) ) ; order.verify ( mWifiNative ) . enableNetworkWithoutConnect ( network.networkId ) ; } order.verify ( mWifiNative ) . setPnoScan ( true ) ; }

Target:
private void expectHwDisconnectedPnoScanStart ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.PnoSettings pnoSettings ) { order.verify ( mWifiNative ) . setPnoScan ( true ) ; }
Source:
public static java.util.Set < java.lang.Integer > allFromKeymaster ( int userAuthenticators ) { int userAuthenticator = 1 ; java.util.Set < java.lang.Integer > result = null ; while ( userAuthenticators != 0 ) { if ( ( userAuthenticators & 1 ) != 0 ) { if ( result == null ) { result = new java.util.HashSet < java.lang.Integer > ( ) ; } result.add ( android.security.KeyStoreKeyConstraints.UserAuthenticator.fromKeymaster ( userAuthenticator ) ) ; } userAuthenticators >>>= 1 ; userAuthenticator <<= 1 ; } return result != null ? result : java.util.Collections.< java.lang.Integer > emptySet ( ) ; }

Target:
public static int allFromKeymaster ( int userAuthenticators ) { @ android.security.KeyStoreKeyConstraints.UserAuthenticatorEnum int result = 0 ; int userAuthenticator = 1 ; while ( userAuthenticators != 0 ) { if ( ( userAuthenticators & 1 ) != 0 ) { result |= android.security.KeyStoreKeyConstraints.UserAuthenticator.fromKeymaster ( userAuthenticator ) ; } userAuthenticators >>>= 1 ; userAuthenticator <<= 1 ; } return result ; }
Source:
public android.support.v8.renderscript.Sampler create ( ) { mRS.validate ( ) ; int id = mRS.nSamplerCreate ( mMag.mID , mMin.mID , mWrapS.mID , mWrapT.mID , mWrapR.mID , mAniso ) ; android.support.v8.renderscript.Sampler sampler = new android.support.v8.renderscript.Sampler ( id , mRS ) ; sampler.mMin = mMin ; sampler.mMag = mMag ; sampler.mWrapS = mWrapS ; sampler.mWrapT = mWrapT ; sampler.mWrapR = mWrapR ; sampler.mAniso = mAniso ; return sampler ; }

Target:
public android.support.v8.renderscript.Sampler create ( ) { mRS.validate ( ) ; long id = mRS.nSamplerCreate ( mMag.mID , mMin.mID , mWrapS.mID , mWrapT.mID , mWrapR.mID , mAniso ) ; android.support.v8.renderscript.Sampler sampler = new android.support.v8.renderscript.Sampler ( id , mRS ) ; sampler.mMin = mMin ; sampler.mMag = mMag ; sampler.mWrapS = mWrapS ; sampler.mWrapT = mWrapT ; sampler.mWrapR = mWrapR ; sampler.mAniso = mAniso ; return sampler ; }
Source:
public void test_Constructor$Ljava_net_URL ( ) throws java.net.MalformedURLException { java.net.URL [ ] u = new java.net.URL [ 0 ] ; ucl = new java.net.URLClassLoader ( u ) ; assertTrue ( "Failed to set parent" , ( ( ( ucl ) != null ) && ( ( ucl.getParent ( ) ) == ( java.net.URLClassLoader.getSystemClassLoader ( ) ) ) ) ) ; java.net.URL [ ] urls = new java.net.URL [ ] { new java.net.URL ( "http://foo.com/foo" ) , new java.net.URL ( "jar:file://foo.jar!/foo.c" ) , new java.net.URL ( "ftp://foo1/foo2/foo.c" ) } ; java.net.URLClassLoader ucl1 = new java.net.URLClassLoader ( urls ) ; assertTrue ( ( ( urls.length ) == ( ucl1.getURLs ( ) . length ) ) ) ; try { java.lang.Class.forName ( "test" , false , ucl ) ; fail ( "Should throw ClassNotFoundException" ) ; } catch ( java.lang.ClassNotFoundException e ) { } try { new java.net.URLClassLoader ( new java.net.URL [ ] { null } ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception was thrown: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void test_Constructor$Ljava_net_URL ( ) throws java.net.MalformedURLException { java.net.URL [ ] u = new java.net.URL [ 0 ] ; ucl = new java.net.URLClassLoader ( u ) ; assertTrue ( "Failed to set parent" , ( ( ucl.getParent ( ) ) == ( java.net.URLClassLoader.getSystemClassLoader ( ) ) ) ) ; java.net.URL [ ] urls = new java.net.URL [ ] { new java.net.URL ( "http://foo.com/foo" ) , new java.net.URL ( "jar:file://foo.jar!/foo.c" ) , new java.net.URL ( "ftp://foo1/foo2/foo.c" ) } ; java.net.URLClassLoader ucl1 = new java.net.URLClassLoader ( urls ) ; assertTrue ( ( ( urls.length ) == ( ucl1.getURLs ( ) . length ) ) ) ; try { java.lang.Class.forName ( "test" , false , ucl ) ; fail ( "Should throw ClassNotFoundException" ) ; } catch ( java.lang.ClassNotFoundException e ) { } try { new java.net.URLClassLoader ( new java.net.URL [ ] { null } ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception was thrown: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
private void broadcastActiveDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "broadcastActiveDevice(" + device ) + ")" ) ) ; } android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHearingAid.ACTION_ACTIVE_DEVICE_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.addFlags ( ( ( android.content.Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) | ( android.content.Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND ) ) ) ; sendBroadcast ( intent , ProfileService.BLUETOOTH_PERM ) ; }

Target:
private void broadcastActiveDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "broadcastActiveDevice(" + device ) + ")" ) ) ; } }