auphong2707/dl4se-code-review-dataset huggingface dataset:
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 ) { if ( issue == ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ) { assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getOldValue ( issue , message ) ) ; assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( issue , message ) ) ; } }

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 , @ com.android.annotations.Nullable java.lang.Object data ) { if ( issue == ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ) { assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getOldValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; } }
Source:
private boolean isScanClient ( int clientIf ) { for ( com.android.bluetooth.gatt.ScanClient client : mScanManager.getRegularScanQueue ( ) ) { if ( ( client.clientIf ) == clientIf ) { return true ; } } for ( com.android.bluetooth.gatt.ScanClient client : mScanManager.getBatchScanQueue ( ) ) { if ( ( client.clientIf ) == clientIf ) { return true ; } } return false ; }

Target:
private boolean isScanClient ( int clientIf ) { for ( com.android.bluetooth.gatt.ScanClient client : mScanManager.getRegularScanQueue ( ) ) { if ( ( client.scannerId ) == clientIf ) { return true ; } } for ( com.android.bluetooth.gatt.ScanClient client : mScanManager.getBatchScanQueue ( ) ) { if ( ( client.scannerId ) == clientIf ) { return true ; } } return false ; }
Source:
public com.android.sched.vfs.InputOutputVDir getInputVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } if ( file.isFile ( ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.DirectDir ( file , vfs ) ; }

Target:
public com.android.sched.vfs.InputOutputVDir getInputVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.DirectoryLocation ( file ) ) ; } if ( file.isFile ( ) ) { throw new com.android.sched.util.file.NotDirectoryException ( new com.android.sched.util.location.DirectoryLocation ( file ) ) ; } return new com.android.sched.vfs.DirectDir ( file , vfs ) ; }
Source:
private void writeInt ( java.io.OutputStream os , int x ) throws java.io.IOException { os.write ( ( ( x > > 24 ) & 255 ) ) ; os.write ( ( ( x > > 16 ) & 255 ) ) ; os.write ( ( ( x > > 8 ) & 255 ) ) ; os.write ( ( x & 255 ) ) ; }

Target:
private static byte [ ] toAscii ( byte [ ] dst , java.lang.String src ) { for ( int i = 0 ; i < ( src.length ( ) ) ; ++ i ) { if ( ( src.charAt ( i ) ) > '~' ) { throw new java.lang.RuntimeException ( ( "non-ASCII string: " + src ) ) ; } dst [ i ] = ( ( byte ) ( src.charAt ( i ) ) ) ; } return dst ; }
Source:
public void notifyChange ( android.net.Uri uri , android.database.ContentObserver observer , boolean syncToNetwork ) { notifyChange ( uri , observer , syncToNetwork , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
public void notifyChange ( @ android.annotation.NonNull android.net.Uri uri , @ android.annotation.Nullable android.database.ContentObserver observer , boolean syncToNetwork ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; notifyChange ( android.content.ContentProvider.getUriWithoutUserId ( uri ) , observer , syncToNetwork , android.content.ContentProvider.getUserIdFromUri ( uri , android.os.UserHandle.myUserId ( ) ) ) ; }
Source:
private boolean retryAfterDisconnected ( java.lang.String reason ) { boolean retry = true ; if ( Phone.REASON_RADIO_TURNED_OFF.equals ( reason ) ) { retry = false ; } return retry ; }

Target:
private boolean retryAfterDisconnected ( com.android.internal.telephony.dataconnection.ApnContext apnContext ) { boolean retry = true ; java.lang.String reason = apnContext.getReason ( ) ; if ( ( Phone.REASON_RADIO_TURNED_OFF.equals ( reason ) ) || ( ( isOnlySingleDcAllowed ( mPhone.getServiceState ( ) . getRilDataRadioTechnology ( ) ) ) && ( isHigherPriorityApnContextActive ( apnContext ) ) ) ) { retry = false ; } return retry ; }
Source:
public void start ( ) { android.util.Log.i ( com.android.server.ethernet.EthernetServiceImpl.TAG , "Starting Ethernet service" ) ; android.os.HandlerThread handlerThread = new android.os.HandlerThread ( "EthernetServiceThread" ) ; handlerThread.start ( ) ; mHandler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; mTracker.start ( mContext , mHandler ) ; mStarted.set ( true ) ; }

Target:
public java.lang.String [ ] getAvailableInterfaces ( ) throws android.os.RemoteException { return mTracker.getInterfaces ( checkUseRestrictedNetworksPermission ( ) ) ; }
Source:
public void testApplyWhenCommonFileChangesStrict ( ) throws java.lang.Exception { myPatchSpec.setStrict ( true ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.openapi.util.io.FileUtil.copy ( new java.io.File ( myOlderDir , "/lib/bootstrap.jar" ) , new java.io.File ( myOlderDir , "/lib/boot.jar" ) ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertEquals ( 1 , preparationResult.validationResults.size ( ) ) ; assertEquals ( new com.intellij.updater.ValidationResult ( ValidationResult.Kind.ERROR , "lib/boot.jar" , ValidationResult.Action.VALIDATE , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.NONE ) , preparationResult.validationResults.get ( 0 ) ) ; }

Target:
public void testApplyWhenCommonFileChangesStrict ( ) throws java.lang.Exception { myPatchSpec.setStrict ( true ) ; com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.openapi.util.io.FileUtil.copy ( new java.io.File ( myOlderDir , "/lib/bootstrap.jar" ) , new java.io.File ( myOlderDir , "/lib/boot.jar" ) ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertEquals ( 1 , preparationResult.validationResults.size ( ) ) ; assertEquals ( new com.intellij.updater.ValidationResult ( ValidationResult.Kind.ERROR , "lib/boot.jar" , ValidationResult.Action.VALIDATE , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.NONE ) , preparationResult.validationResults.get ( 0 ) ) ; }
Source:
public org.eclipse.swt.graphics.Color getBackground ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.NEW_AVAILABLE ) ) { return mColorNew ; } else if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.UPDATE_AVAILABLE ) ) { return mColorUpdate ; } } return null ; }

Target:
public org.eclipse.swt.graphics.Color getBackground ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.NEW_AVAILABLE ) ) { } else if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.UPDATE_AVAILABLE ) ) { return mColorUpdate ; } } return null ; }
Source:
private void launchQuickContact ( ) { if ( com.android.dialer.compat.CompatUtils.hasPrioritizedMimeType ( ) ) { android.provider.ContactsContract.QuickContact.showQuickContact ( getContext ( ) , this , getLookupUri ( ) , null , Phone.CONTENT_ITEM_TYPE ) ; } else { android.provider.ContactsContract.QuickContact.showQuickContact ( getContext ( ) , this , getLookupUri ( ) , QuickContact.MODE_LARGE , null ) ; } }

Target:
private void launchQuickContact ( ) { android.provider.ContactsContract.QuickContact.showQuickContact ( getContext ( ) , this , getLookupUri ( ) , null , Phone.CONTENT_ITEM_TYPE ) ; }
Source:
protected void addNotificationViews ( com.android.systemui.statusbar.NotificationData.Entry entry ) { int pos = mNotificationData.add ( entry ) ; if ( com.android.systemui.statusbar.BaseStatusBar.DEBUG ) { android.util.Log.d ( com.android.systemui.statusbar.BaseStatusBar.TAG , ( "addNotificationViews: added at " + pos ) ) ; } updateExpansionStates ( ) ; updateNotificationIcons ( ) ; }

Target:
protected void addNotificationViews ( com.android.systemui.statusbar.NotificationData.Entry entry ) { if ( entry == null ) { return ; } int pos = mNotificationData.add ( entry ) ; if ( com.android.systemui.statusbar.BaseStatusBar.DEBUG ) { android.util.Log.d ( com.android.systemui.statusbar.BaseStatusBar.TAG , ( "addNotificationViews: added at " + pos ) ) ; } updateExpansionStates ( ) ; updateNotificationIcons ( ) ; }
Source:
public void testCheckAccessLevel_isDeviceOwner ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( true ) ; setIsProfileOwner ( false ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( false ) ; assertEquals ( NetworkStatsAccess.Level.DEVICE , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }

Target:
public void testCheckAccessLevel_isDeviceOwner ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( true ) ; setIsProfileOwner ( false ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( false ) ; org.junit.Assert.assertEquals ( NetworkStatsAccess.Level.DEVICE , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }
Source:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }

Target:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } }
Source:
protected void update ( com.android.ide.common.resources.ScanningContext context ) { java.util.Set < java.lang.String > oldIdNames = new java.util.HashSet < java.lang.String > ( mIdResources.keySet ( ) ) ; mIdResources.clear ( ) ; if ( ! ( parseFileForIds ( context ) ) ) { context.requestFullAapt ( ) ; return ; } java.util.Set < java.lang.String > keySet = mIdResources.keySet ( ) ; assert keySet != oldIdNames ; if ( ( oldIdNames.equals ( keySet ) ) == false ) { updateResourceItems ( context ) ; } }

Target:
protected void update ( com.android.ide.common.resources.ScanningContext context ) { java.util.Set < java.lang.String > oldIdNames = new java.util.HashSet < java.lang.String > ( mIdResources.keySet ( ) ) ; mIdResources.clear ( ) ; if ( ! ( parseFileForIds ( context ) ) ) { context.requestFullAapt ( ) ; } java.util.Set < java.lang.String > keySet = mIdResources.keySet ( ) ; assert keySet != oldIdNames ; if ( ( oldIdNames.equals ( keySet ) ) == false ) { updateResourceItems ( context ) ; } }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( mConnection.isBound ( ) ) { getInstrumentation ( ) . getContext ( ) . unbindService ( mConnection ) ; } if ( ( ( mDevice.hasObject ( Constants.SIDE_PANEL ) ) || ( mDevice.hasObject ( Constants.MENU ) ) ) || ( mDevice.hasObject ( Constants.PROGRAM_GUIDE ) ) ) { mDevice.pressBack ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( mConnection.isBound ( ) ) { getInstrumentation ( ) . getContext ( ) . unbindService ( mConnection ) ; } if ( ( ( mDevice.hasObject ( Constants.SIDE_PANEL ) ) || ( mDevice.hasObject ( Constants.MENU ) ) ) || ( mDevice.hasObject ( Constants.PROGRAM_GUIDE ) ) ) { mDevice.pressBack ( ) ; } mDevice.pressBack ( ) ; super . tearDown ( ) ; }
Source:
public java.lang.StringBuffer format ( com.ibm.icu.util.CurrencyAmount currAmt , java.lang.StringBuffer toAppendTo , java.text.FieldPosition pos ) { com.ibm.icu.util.Currency save = getCurrency ( ) ; com.ibm.icu.util.Currency curr = currAmt.getCurrency ( ) ; boolean same = curr.equals ( save ) ; if ( ! same ) setCurrency ( curr ) ; format ( currAmt.getNumber ( ) , toAppendTo , pos ) ; if ( ! same ) setCurrency ( save ) ; return toAppendTo ; }

Target:
public java.lang.StringBuffer format ( com.ibm.icu.util.CurrencyAmount currAmt , java.lang.StringBuffer toAppendTo , java.text.FieldPosition pos ) { synchronized ( this ) { com.ibm.icu.util.Currency save = getCurrency ( ) ; com.ibm.icu.util.Currency curr = currAmt.getCurrency ( ) ; boolean same = curr.equals ( save ) ; if ( ! same ) setCurrency ( curr ) ; format ( currAmt.getNumber ( ) , toAppendTo , pos ) ; if ( ! same ) setCurrency ( save ) ; } return toAppendTo ; }
Source:
private void assertEqualRoutes ( java.util.Collection < android.net.RouteInfo > expected , java.util.Collection < android.net.RouteInfo > actual ) { java.util.Set < android.net.RouteInfo > expectedSet = new android.util.ArraySet ( expected ) ; java.util.Set < android.net.RouteInfo > actualSet = new android.util.ArraySet ( actual ) ; assertEquals ( actual.size ( ) , actualSet.size ( ) ) ; assertEquals ( expectedSet , actualSet ) ; }

Target:
private void assertEqualRoutes ( java.util.Collection < android.net.RouteInfo > expected , java.util.Collection < android.net.RouteInfo > actual ) { java.util.Set < android.net.RouteInfo > expectedSet = new android.util.ArraySet ( expected ) ; java.util.Set < android.net.RouteInfo > actualSet = new android.util.ArraySet ( actual ) ; org.junit.Assert.assertEquals ( actual.size ( ) , actualSet.size ( ) ) ; org.junit.Assert.assertEquals ( expectedSet , actualSet ) ; }
Source:
public void testGetByEnabledState ( ) throws java.lang.Exception { mComponentContextFixture.addConnectionService ( com.android.server.telecom.tests.PhoneAccountRegistrarTest.makeQuickConnectionServiceComponentName ( ) , org.mockito.Mockito.mock ( com.android.internal.telecom.IConnectionService.class ) ) ; mRegistrar.registerPhoneAccount ( makeQuickAccountBuilder ( "id1" , 1 ) . setCapabilities ( PhoneAccount.CAPABILITY_CALL_PROVIDER ) . build ( ) ) ; assertEquals ( 0 , mRegistrar.getCallCapablePhoneAccounts ( PhoneAccount.SCHEME_TEL , false , java.lang.Process.myUserHandle ( ) ) . size ( ) ) ; assertEquals ( 1 , mRegistrar.getCallCapablePhoneAccounts ( PhoneAccount.SCHEME_TEL , true , java.lang.Process.myUserHandle ( ) ) . size ( ) ) ; }

Target:
public void testGetByEnabledState ( ) throws java.lang.Exception { mComponentContextFixture.addConnectionService ( com.android.server.telecom.tests.PhoneAccountRegistrarTest.makeQuickConnectionServiceComponentName ( ) , org.mockito.Mockito.mock ( com.android.internal.telecom.IConnectionService.class ) ) ; mRegistrar.registerPhoneAccount ( makeQuickAccountBuilder ( "id1" , 1 ) . setCapabilities ( PhoneAccount.CAPABILITY_CALL_PROVIDER ) . build ( ) ) ; org.junit.Assert.assertEquals ( 0 , mRegistrar.getCallCapablePhoneAccounts ( PhoneAccount.SCHEME_TEL , false , java.lang.Process.myUserHandle ( ) ) . size ( ) ) ; org.junit.Assert.assertEquals ( 1 , mRegistrar.getCallCapablePhoneAccounts ( PhoneAccount.SCHEME_TEL , true , java.lang.Process.myUserHandle ( ) ) . size ( ) ) ; }
Source:
private static java.lang.CharSequence toTitleCase ( java.lang.CharSequence value ) { if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return value ; } return android.icu.lang.UCharacter.toTitleCase ( java.util.Locale.getDefault ( ) , value.toString ( ) , android.icu.text.BreakIterator.getSentenceInstance ( ) , UCharacter.TITLECASE_NO_LOWERCASE ) ; }

Target:
private static java.lang.CharSequence toTitleCase ( java.lang.CharSequence value ) { return android.icu.lang.UCharacter.toTitleCase ( java.util.Locale.getDefault ( ) , value.toString ( ) , android.icu.text.BreakIterator.getSentenceInstance ( ) , UCharacter.TITLECASE_NO_LOWERCASE ) ; }
Source:
public static android.renderscript.Sampler CLAMP_LINEAR_MIP_LINEAR ( android.renderscript.RenderScript rs ) { if ( ( rs.mSampler_CLAMP_LINEAR_MIP_LINEAR ) == null ) { android.renderscript.Sampler.Builder b = new android.renderscript.Sampler.Builder ( rs ) ; b.setMinification ( android.renderscript.Sampler.Value.LINEAR_MIP_LINEAR ) ; b.setMagnification ( android.renderscript.Sampler.Value.LINEAR ) ; b.setWrapS ( android.renderscript.Sampler.Value.CLAMP ) ; b.setWrapT ( android.renderscript.Sampler.Value.CLAMP ) ; rs.mSampler_CLAMP_LINEAR_MIP_LINEAR = b.create ( ) ; } return rs.mSampler_CLAMP_LINEAR_MIP_LINEAR ; }

Target:
public static android.renderscript.Sampler CLAMP_LINEAR_MIP_LINEAR ( android.renderscript.RenderScript rs ) { if ( ( rs.mSampler_CLAMP_LINEAR_MIP_LINEAR ) == null ) { synchronized ( rs ) { if ( ( rs.mSampler_CLAMP_LINEAR_MIP_LINEAR ) == null ) { android.renderscript.Sampler.Builder b = new android.renderscript.Sampler.Builder ( rs ) ; b.setMinification ( android.renderscript.Sampler.Value.LINEAR_MIP_LINEAR ) ; b.setMagnification ( android.renderscript.Sampler.Value.LINEAR ) ; b.setWrapS ( android.renderscript.Sampler.Value.CLAMP ) ; b.setWrapT ( android.renderscript.Sampler.Value.CLAMP ) ; rs.mSampler_CLAMP_LINEAR_MIP_LINEAR = b.create ( ) ; } } } return rs.mSampler_CLAMP_LINEAR_MIP_LINEAR ; }
Source:
public boolean onDisconnect ( int cause ) { boolean changed = false ; mCause = cause ; if ( ! ( mDisconnected ) ) { doDisconnect ( ) ; if ( com.android.internal.telephony.GsmCdmaConnection.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.GsmCdmaConnection.LOG_TAG , ( "onDisconnect: cause=" + cause ) ) ; mOwner.getPhone ( ) . notifyDisconnect ( this ) ; if ( ( mParent ) != null ) { changed = mParent.connectionDisconnected ( this ) ; } mOrigConnection = null ; } clearPostDialListeners ( ) ; releaseWakeLock ( ) ; return changed ; }

Target:
public boolean onDisconnect ( int cause ) { boolean changed = false ; mCause = cause ; if ( ! ( mDisconnected ) ) { doDisconnect ( ) ; if ( com.android.internal.telephony.GsmCdmaConnection.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.GsmCdmaConnection.LOG_TAG , ( "onDisconnect: cause=" + cause ) ) ; mOwner.getPhone ( ) . notifyDisconnect ( this ) ; notifyDisconnect ( cause ) ; if ( ( mParent ) != null ) { changed = mParent.connectionDisconnected ( this ) ; } mOrigConnection = null ; } clearPostDialListeners ( ) ; releaseWakeLock ( ) ; return changed ; }
Source:
public void run ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { com.android.jack.ir.ast.JMethod method = cfg.getMethod ( ) ; tracer.getStatistic ( com.android.jack.ir.ast.cfg.ControlFlowGraphSizeTracker.STATISTICS ) . add ( cfg.getBlocksDepthFirst ( true ) . size ( ) , ( ( ( ( formatter.getName ( method ) ) + " [" ) + ( formatter.getName ( method.getEnclosingType ( ) ) ) ) + "]" ) ) ; }

Target:
public void run ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { com.android.jack.ir.ast.JMethod method = cfg.getMethod ( ) ; tracer.getStatistic ( com.android.jack.ir.ast.cfg.ControlFlowGraphSizeTracker.STATISTICS ) . add ( cfg.getBlocksDepthFirst ( false ) . size ( ) , ( ( ( ( formatter.getName ( method ) ) + " [" ) + ( formatter.getName ( method.getEnclosingType ( ) ) ) ) + "]" ) ) ; }
Source:
public void testFocusGain ( ) { testSnkPlay ( ) ; streamHandler.handleMessage ( streamHandler.obtainMessage ( A2dpSinkStreamHandler.AUDIO_FOCUS_CHANGE , AudioManager.AUDIOFOCUS_GAIN ) ) ; org.mockito.Mockito.verify ( mockAudioManager , org.mockito.Mockito.times ( 1 ) ) . requestAudioFocus ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 2 ) ) . informAudioFocusStateNative ( 1 ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 2 ) ) . informAudioTrackGainNative ( 1.0F ) ; }

Target:
public void testFocusGain ( ) { testSnkPlay ( ) ; streamHandler.handleMessage ( streamHandler.obtainMessage ( A2dpSinkStreamHandler.AUDIO_FOCUS_CHANGE , AudioManager.AUDIOFOCUS_GAIN ) ) ; org.mockito.Mockito.verify ( mockAudioManager , org.mockito.Mockito.times ( 1 ) ) . requestAudioFocus ( org.mockito.Mockito.any ( ) ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 2 ) ) . informAudioFocusStateNative ( 1 ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 2 ) ) . informAudioTrackGainNative ( 1.0F ) ; }
Source:
public void doubleClick ( org.eclipse.jface.viewers.DoubleClickEvent event ) { com.android.ddmlib.ThreadInfo selectedThread = getThreadSelection ( event.getSelection ( ) ) ; if ( selectedThread != null ) { com.android.ddmlib.Client client = ( ( com.android.ddmlib.Client ) ( mThreadViewer.getInput ( ) ) ) ; if ( client != null ) { client.requestThreadStackTrace ( selectedThread.getThreadId ( ) ) ; } } }

Target:
public void doubleClick ( org.eclipse.jface.viewers.DoubleClickEvent event ) { requestThreadStackTrace ( getThreadSelection ( event.getSelection ( ) ) ) ; }
Source:
protected com.android.tools.lint.detector.api.Severity getDefaultSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { com.android.tools.lint.detector.api.Severity severity = super . getDefaultSeverity ( issue ) ; if ( severity == ( com.android.tools.lint.detector.api.Severity.IGNORE ) ) { return com.android.tools.lint.detector.api.Severity.WARNING ; } return severity ; }

Target:
protected com.android.tools.lint.detector.api.Severity getDefaultSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { com.android.tools.lint.detector.api.Severity severity = super . getDefaultSeverity ( issue ) ; if ( severity == ( com.android.tools.lint.detector.api.Severity.IGNORE ) ) { if ( ( issue.getDefaultSeverity ( ) ) != ( com.android.tools.lint.detector.api.Severity.IGNORE ) ) { return issue.getDefaultSeverity ( ) ; } return com.android.tools.lint.detector.api.Severity.WARNING ; } return severity ; }
Source:
public void subscribe ( @ android.annotation.Nullable android.os.Handler handler , @ android.annotation.NonNull android.net.wifi.aware.SubscribeConfig subscribeConfig , @ android.annotation.NonNull android.net.wifi.aware.WifiAwareDiscoverySessionCallback callback ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "publish: called post GC on WifiAwareManager" ) ; return ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "publish: called after termination" ) ; return ; } mgr.subscribe ( mClientId , ( handler == null ? android.os.Looper.getMainLooper ( ) : handler.getLooper ( ) ) , subscribeConfig , callback ) ; }

Target:
public void subscribe ( @ android.annotation.NonNull android.net.wifi.aware.SubscribeConfig subscribeConfig , @ android.annotation.NonNull android.net.wifi.aware.WifiAwareDiscoverySessionCallback callback , @ android.annotation.Nullable android.os.Handler handler ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "publish: called post GC on WifiAwareManager" ) ; return ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "publish: called after termination" ) ; return ; } mgr.subscribe ( mClientId , ( handler == null ? android.os.Looper.getMainLooper ( ) : handler.getLooper ( ) ) , subscribeConfig , callback ) ; }
Source:
public void setCarrierInfoForImsiEncryption ( int subId , java.lang.String callingPackage , android.telephony.ImsiEncryptionInfo imsiEncryptionInfo ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "setCarrierInfoForImsiEncryption" ) ) ) { return ; } phone.setCarrierInfoForImsiEncryption ( imsiEncryptionInfo ) ; } else { loge ( ( "setCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return ; } }

Target:
public void setCarrierInfoForImsiEncryption ( int subId , java.lang.String callingPackage , android.telephony.ImsiEncryptionInfo imsiEncryptionInfo ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , subId , callingPackage , "setCarrierInfoForImsiEncryption" ) ) ) { return ; } phone.setCarrierInfoForImsiEncryption ( imsiEncryptionInfo ) ; } else { loge ( ( "setCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return ; } }
Source:
private static boolean shouldWarnForOutgoingWps ( android.content.Context context , java.lang.String number ) { if ( ( number != null ) && ( number.startsWith ( com.android.dialer.util.DialerUtils.WPS_PREFIX ) ) ) { android.telephony.TelephonyManager telephonyManager = context.getSystemService ( android.telephony.TelephonyManager.class ) ; boolean isOnVolte = ( ( android.os.Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.N ) ) && ( ( telephonyManager.getVoiceNetworkType ( ) ) == ( android.telephony.TelephonyManager.NETWORK_TYPE_LTE ) ) ; boolean hasCurrentActiveCall = ( telephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_OFFHOOK ) ; return isOnVolte && hasCurrentActiveCall ; } return false ; }

Target:
private static boolean shouldWarnForOutgoingWps ( android.content.Context context , java.lang.String number ) { if ( ( number != null ) && ( number.startsWith ( com.android.dialer.util.DialerUtils.WPS_PREFIX ) ) ) { android.telephony.TelephonyManager telephonyManager = context.getSystemService ( android.telephony.TelephonyManager.class ) ; boolean isOnVolte = ( telephonyManager.getVoiceNetworkType ( ) ) == ( android.telephony.TelephonyManager.NETWORK_TYPE_LTE ) ; boolean hasCurrentActiveCall = ( telephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_OFFHOOK ) ; return isOnVolte && hasCurrentActiveCall ; } return false ; }
Source:
public final T call ( ) { try { T result = realCall ( ) ; threadShouldThrow ( "InterruptedException" ) ; return result ; } catch ( java.lang.InterruptedException success ) { threadAssertFalse ( java.lang.Thread.interrupted ( ) ) ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; } return null ; }

Target:
public final T call ( ) { try { T result = realCall ( ) ; threadShouldThrow ( "InterruptedException" ) ; return result ; } catch ( java.lang.InterruptedException success ) { threadAssertFalse ( java.lang.Thread.interrupted ( ) ) ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; } return null ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ReturnStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JReturnStatement ( info , expression ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ReturnStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JReturnStatement ( info , expression ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private void recordNewWindow ( int pid , int window ) { synchronized ( android.database.CursorWindow.sWindowToPidMap ) { android.database.CursorWindow.sWindowToPidMap.put ( window , pid ) ; if ( android.util.Log.isLoggable ( android.database.CursorWindow.STATS_TAG , Log.VERBOSE ) ) { android.util.Log.i ( android.database.CursorWindow.STATS_TAG , ( "Created a new Cursor. " + ( printStats ( ) ) ) ) ; } } }

Target:
private void recordNewWindow ( int pid , long window ) { synchronized ( android.database.CursorWindow.sWindowToPidMap ) { android.database.CursorWindow.sWindowToPidMap.put ( window , pid ) ; if ( android.util.Log.isLoggable ( android.database.CursorWindow.STATS_TAG , Log.VERBOSE ) ) { android.util.Log.i ( android.database.CursorWindow.STATS_TAG , ( "Created a new Cursor. " + ( printStats ( ) ) ) ) ; } } }
Source:
public void test_getReuseAddress ( ) throws java.lang.Exception { java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( ) ; theSocket.setReuseAddress ( true ) ; assertTrue ( "getReuseAddress false when it should be true" , theSocket.getReuseAddress ( ) ) ; theSocket.setReuseAddress ( false ) ; assertFalse ( "getReuseAddress true when it should be False" , theSocket.getReuseAddress ( ) ) ; theSocket.close ( ) ; try { theSocket.getReuseAddress ( ) ; fail ( "SocketException was not thrown." ) ; } catch ( java.net.SocketException se ) { } }

Target:
public void test_getReuseAddress ( ) throws java.lang.Exception { java.net.DatagramSocket theSocket = new java.net.DatagramSocket ( null ) ; theSocket.setReuseAddress ( true ) ; assertTrue ( "getReuseAddress false when it should be true" , theSocket.getReuseAddress ( ) ) ; theSocket.setReuseAddress ( false ) ; assertFalse ( "getReuseAddress true when it should be False" , theSocket.getReuseAddress ( ) ) ; theSocket.close ( ) ; try { theSocket.getReuseAddress ( ) ; fail ( "SocketException was not thrown." ) ; } catch ( java.net.SocketException se ) { } }
Source:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { try { mService.unregisterReceiver ( receiver ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister " + ex ) ) ; } } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }

Target:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { mService.unregisterReceiver ( receiver ) ; } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }
Source:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public void exit ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "exiting Waiting state" ) ; setWakeLockTimeout ( com.android.internal.telephony.InboundSmsHandler.WAKELOCK_TIMEOUT ) ; if ( com.android.internal.telephony.InboundSmsHandler.VDBG ) { if ( hasMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_STATE_TIMEOUT ) ) { log ( "exiting Waiting state: removing EVENT_STATE_TIMEOUT from message queue" ) ; } if ( hasMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_UPDATE_TRACKER ) ) { log ( "exiting Waiting state: removing EVENT_UPDATE_TRACKER from message queue" ) ; } } removeMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_STATE_TIMEOUT ) ; removeMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_UPDATE_TRACKER ) ; }

Target:
public void exit ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "exiting Waiting state" ) ; setWakeLockTimeout ( com.android.internal.telephony.InboundSmsHandler.WAKELOCK_TIMEOUT ) ; }
Source:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.IndexedItem result = methodIds.get ( cst ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { assert cst != null ; throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.IndexedItem result = methodIds.get ( cst ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return result ; }
Source:
public long toEpochMilli ( ) { if ( ( ( seconds ) < 0 ) && ( ( nanos ) > 0 ) ) { long millis = java.lang.Math.multiplyExact ( ( ( seconds ) + 1 ) , 1000 ) ; long adjustment = ( ( nanos ) / 1000000 ) - 1000 ; return java.lang.Math.addExact ( millis , adjustment ) ; } else { long millis = java.lang.Math.multiplyExact ( seconds , 1000 ) ; return java.lang.Math.addExact ( millis , ( ( nanos ) / 1000000 ) ) ; } }

Target:
public long toEpochMilli ( ) { long millis = java.lang.Math.multiplyExact ( seconds , 1000 ) ; return millis + ( ( nanos ) / 1000000 ) ; }
Source:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( ( interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit ) == null ) && ( opcode == ( org.objectweb.asm.Opcodes.PUTSTATIC ) ) ) { com.google.common.base.Preconditions.checkState ( owner.equals ( internalName ) , "Expect only the fields in this interface to be initialized. owner=%s, expected=%s" , owner , internalName ) ; interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit = com.google.devtools.build.android.desugar.FieldInfo.create ( owner , name , desc ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( ( ( interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit ) == null ) && ( opcode == ( org.objectweb.asm.Opcodes.PUTSTATIC ) ) ) && ( owner.equals ( internalName ) ) ) { interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit = com.google.devtools.build.android.desugar.FieldInfo.create ( owner , name , desc ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }
Source:
public void onConnectionServiceFocusReleased ( android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.startSession ( sessionInfo , "CSW.oCSFR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mConnSvrFocusListener.onConnectionServiceReleased ( this ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void onConnectionServiceFocusReleased ( android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { }
Source:
public void testStageInstallWithErrorCode_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; com.android.timezone.distro.TimeZoneDistro distro = createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } checker.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } checker.accept ( method ) ; }
Source:
public void eventDataPathRequest ( android.hardware.wifi.V1_0.NanDataPathRequestInd event ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( "eventDataPathRequest: discoverySessionId=" + ( event.discoverySessionId ) ) + ", peerDiscMacAddr=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( event.peerDiscMacAddr ) ) ) ) + ", ndpInstanceId=" ) + ( event.ndpInstanceId ) ) ) ; } mWifiAwareStateManager.onDataPathRequestNotification ( event.discoverySessionId , event.peerDiscMacAddr , event.ndpInstanceId , convertUcByteToLcByteArray ( event.appInfo ) ) ; }

Target:
public void eventDataPathRequest ( android.hardware.wifi.V1_0.NanDataPathRequestInd event ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( "eventDataPathRequest: discoverySessionId=" + ( event.discoverySessionId ) ) + ", peerDiscMacAddr=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( event.peerDiscMacAddr ) ) ) ) + ", ndpInstanceId=" ) + ( event.ndpInstanceId ) ) ) ; } mWifiAwareStateManager.onDataPathRequestNotification ( event.discoverySessionId , event.peerDiscMacAddr , event.ndpInstanceId ) ; }
Source:
public android.hardware.usb.UsbDeviceConnection openDevice ( android.hardware.usb.UsbDevice device ) { try { java.lang.String deviceName = device.getDeviceName ( ) ; android.os.ParcelFileDescriptor pfd = mService.openDevice ( deviceName ) ; if ( pfd != null ) { android.hardware.usb.UsbDeviceConnection connection = new android.hardware.usb.UsbDeviceConnection ( device ) ; boolean result = connection.open ( deviceName , pfd ) ; pfd.close ( ) ; if ( result ) { return connection ; } } } catch ( java.lang.Exception e ) { android.util.Log.e ( android.hardware.usb.UsbManager.TAG , "exception in UsbManager.openDevice" , e ) ; } return null ; }

Target:
public android.hardware.usb.UsbDeviceConnection openDevice ( android.hardware.usb.UsbDevice device ) { try { java.lang.String deviceName = device.getDeviceName ( ) ; android.os.ParcelFileDescriptor pfd = mService.openDevice ( deviceName ) ; if ( pfd != null ) { android.hardware.usb.UsbDeviceConnection connection = new android.hardware.usb.UsbDeviceConnection ( device ) ; boolean result = connection.open ( deviceName , pfd , mContext ) ; pfd.close ( ) ; if ( result ) { return connection ; } } } catch ( java.lang.Exception e ) { android.util.Log.e ( android.hardware.usb.UsbManager.TAG , "exception in UsbManager.openDevice" , e ) ; } return null ; }
Source:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node = ( ( mUiRootNode.getUiParent ( ) ) != null ) ? mUiRootNode.getUiParent ( ) : mUiRootNode ; node.removeUpdateListener ( mUiRefreshListener ) ; mUiRootNode.removeUpdateListener ( mUiEnableListener ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . removeTargetListener ( targetListener ) ; if ( ( mClipboard ) != null ) { mClipboard.dispose ( ) ; mClipboard = null ; } }

Target:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { if ( ( mUiRootNode ) != null ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode node = ( ( mUiRootNode.getUiParent ( ) ) != null ) ? mUiRootNode.getUiParent ( ) : mUiRootNode ; if ( node != null ) { node.removeUpdateListener ( mUiRefreshListener ) ; } mUiRootNode.removeUpdateListener ( mUiEnableListener ) ; } com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . removeTargetListener ( targetListener ) ; if ( ( mClipboard ) != null ) { mClipboard.dispose ( ) ; mClipboard = null ; } }
Source:
protected void finalize ( ) throws java.io.IOException { if ( ( fd ) != null ) { if ( ( ( fd ) == ( java.io.FileDescriptor.out ) ) || ( ( fd ) == ( java.io.FileDescriptor.err ) ) ) { flush ( ) ; } else { java.io.FileOutputStream.runningFinalize.set ( java.lang.Boolean.TRUE ) ; try { close ( ) ; } finally { java.io.FileOutputStream.runningFinalize.set ( java.lang.Boolean.FALSE ) ; } } } }

Target:
protected void finalize ( ) throws java.io.IOException { if ( ( fd ) != null ) { if ( ( ( fd ) == ( java.io.FileDescriptor.out ) ) || ( ( fd ) == ( java.io.FileDescriptor.err ) ) ) { flush ( ) ; } else { close ( ) ; } } }
Source:
public boolean canRunOn ( com.android.sdklib.IAndroidTarget target ) { if ( target == ( this ) ) { return true ; } if ( ( ( mLibraries ) == null ) || ( mLibraries.isEmpty ( ) ) ) { return mBasePlatform.canRunOn ( target ) ; } else { if ( ( ! ( mVendor.equals ( target.getVendor ( ) ) ) ) || ( ! ( mName.equals ( target.getName ( ) ) ) ) ) { return false ; } return mBasePlatform.canRunOn ( target ) ; } }

Target:
public boolean canRunOn ( com.android.sdklib.IAndroidTarget target ) { if ( target == ( this ) ) { return true ; } if ( mLibraries.isEmpty ( ) ) { return mBasePlatform.canRunOn ( target ) ; } else { if ( ( ! ( mVendor.equals ( target.getVendor ( ) ) ) ) || ( ! ( mName.equals ( target.getName ( ) ) ) ) ) { return false ; } return mBasePlatform.canRunOn ( target ) ; } }
Source:
void mute ( boolean shouldMute ) { android.telecom.Log.v ( this , "mute, shouldMute: %b" , shouldMute ) ; if ( mCallsManager.hasEmergencyCall ( ) ) { shouldMute = false ; android.telecom.Log.v ( this , "ignoring mute for emergency call" ) ; } mCallAudioRouteStateMachine.sendMessageWithSessionInfo ( ( shouldMute ? CallAudioRouteStateMachine.MUTE_ON : CallAudioRouteStateMachine.MUTE_OFF ) ) ; }

Target:
public void mute ( boolean shouldMute ) { android.telecom.Log.v ( this , "mute, shouldMute: %b" , shouldMute ) ; if ( mCallsManager.hasEmergencyCall ( ) ) { shouldMute = false ; android.telecom.Log.v ( this , "ignoring mute for emergency call" ) ; } mCallAudioRouteStateMachine.sendMessageWithSessionInfo ( ( shouldMute ? CallAudioRouteStateMachine.MUTE_ON : CallAudioRouteStateMachine.MUTE_OFF ) ) ; }
Source:
private static int [ ] addToIntArray ( int [ ] destination , int offset , int destinationlength , int value , int increments ) { int newlength = destinationlength ; if ( ( offset + 1 ) == newlength ) { newlength += increments ; int [ ] temp = new int [ newlength ] ; java.lang.System.arraycopy ( destination , 0 , temp , 0 , offset ) ; destination = temp ; } destination [ offset ] = value ; return destination ; }

Target:
private static int [ ] addToIntArray ( int [ ] destination , int offset , int value , int increments ) { int newlength = destination.length ; if ( ( offset + 1 ) == newlength ) { newlength += increments ; int [ ] temp = new int [ newlength ] ; java.lang.System.arraycopy ( destination , 0 , temp , 0 , offset ) ; destination = temp ; } destination [ offset ] = value ; return destination ; }
Source:
private void printArrayMap ( ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.printArrayMap" , "hashMapSize: %d, currentlyExpandedViewHolderId:%d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; if ( ! ( newVoicemailViewHolderArrayMap.isEmpty ( ) ) ) { java.lang.String ids = "" ; for ( int id : newVoicemailViewHolderArrayMap.keySet ( ) ) { ids = ( ids + id ) + " " ; } com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.printArrayMap" , ( "ids are " + ids ) ) ; } }

Target:
private void printArrayMap ( ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.printArrayMap" , "hashMapSize: %d, currentlyExpandedViewHolderId:%d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; if ( ! ( newVoicemailViewHolderArrayMap.isEmpty ( ) ) ) { java.lang.String ids = "" ; for ( long id : newVoicemailViewHolderArrayMap.keySet ( ) ) { ids = ( ids + id ) + " " ; } com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.printArrayMap" , ( "ids are " + ids ) ) ; } }