auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] getEvents ( long duration , java.util.concurrent.TimeUnit timeUnit ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return null ; } mTestSensorEventListener.waitForEvents ( duration , timeUnit ) ; android.hardware.cts.helpers.TestSensorEvent [ ] events = mTestSensorEventListener.getEvents ( ) ; mTestSensorEventListener.clearEvents ( ) ; return events ; }

Target:
public void waitForEvents ( int eventCount ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return ; } mTestSensorEventListener.waitForEvents ( eventCount ) ; }
Source:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof android.telecom.Logging.Session ) ) { java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; android.telecom.Log.continueSession ( ( ( android.telecom.Logging.Session ) ( msg.obj ) ) , ( "CARSM.pM_" + messageCodeName ) ) ; android.telecom.Log.i ( this , "Message received: %s=%d" , messageCodeName , msg.what ) ; } }

Target:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof android.telecom.Logging.Session ) ) { java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; android.telecom.Log.continueSession ( ( ( android.telecom.Logging.Session ) ( msg.obj ) ) , ( "CARSM.pM_" + messageCodeName ) ) ; android.telecom.Log.i ( this , "Message received: %s=%d, arg1=%d" , messageCodeName , msg.what , msg.arg1 ) ; } }
Source:
public java.util.List < java.io.File > getJavaSourceFolders ( ) { if ( ( mJavaSourceFolders ) == null ) { if ( com.android.tools.lint.detector.api.Project.isAospBuildEnvironment ( ) ) { java.lang.String top = com.android.tools.lint.detector.api.Project.getAospTop ( ) ; if ( mDir.getAbsolutePath ( ) . startsWith ( top ) ) { mJavaSourceFolders = getAospJavaSourcePath ( ) ; return mJavaSourceFolders ; } } mJavaSourceFolders = mClient.getJavaSourceFolders ( this ) ; } return mJavaSourceFolders ; }

Target:
public java.util.List < java.io.File > getJavaSourceFolders ( ) { if ( ( mJavaSourceFolders ) == null ) { if ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( mDir ) ) { return java.util.Collections.singletonList ( new java.io.File ( mDir , "java" ) ) ; } if ( com.android.tools.lint.detector.api.Project.isAospBuildEnvironment ( ) ) { java.lang.String top = com.android.tools.lint.detector.api.Project.getAospTop ( ) ; if ( mDir.getAbsolutePath ( ) . startsWith ( top ) ) { mJavaSourceFolders = getAospJavaSourcePath ( ) ; return mJavaSourceFolders ; } } mJavaSourceFolders = mClient.getJavaSourceFolders ( this ) ; } return mJavaSourceFolders ; }
Source:
public com.android.sdklib.internal.repository.packages.Package.UpdateInfo canBeUpdatedBy ( com.android.sdklib.internal.repository.packages.Package replacementPackage ) { if ( replacementPackage == null ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ( sameItemAs ( replacementPackage ) ) == false ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) ) > ( this . getRevision ( ) ) ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.UPDATE ; } return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ; }

Target:
public com.android.sdklib.internal.repository.packages.Package.UpdateInfo canBeUpdatedBy ( com.android.sdklib.internal.repository.packages.Package replacementPackage ) { if ( replacementPackage == null ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ! ( sameItemAs ( replacementPackage ) ) ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) . compareTo ( this . getRevision ( ) ) ) > 0 ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.UPDATE ; } return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ; }
Source:
public void onDialpadQueryChanged ( java.lang.String query ) { com.android.dialer.searchfragment.list.NewSearchFragment fragment = getSearchFragment ( ) ; if ( fragment != null ) { fragment.setQuery ( query , CallInitiationType.Type.DIALPAD ) ; } }

Target:
public void onDialpadQueryChanged ( java.lang.String query ) { query = com.android.dialer.smartdial.util.SmartDialNameMatcher.normalizeNumber ( mainActivity , query ) ; com.android.dialer.searchfragment.list.NewSearchFragment fragment = getSearchFragment ( ) ; if ( fragment != null ) { fragment.setQuery ( query , CallInitiationType.Type.DIALPAD ) ; } getDialpadFragment ( ) . process_quote_emergency_unquote ( query ) ; }
Source:
com.google.common.collect.ImmutableCollection < V > createValues ( ) { return com.google.common.collect.ImmutableList.of ( singleValue ) ; }

Target:
public com.google.common.collect.ImmutableBiMap < V , K > inverse ( ) { com.google.common.collect.ImmutableBiMap < V , K > result = inverse ; if ( result == null ) { return inverse = new com.google.common.collect.SingletonImmutableBiMap < V , K > ( singleValue , singleKey , this ) ; } else { return result ; } }
Source:
private void writeJavaMethodBody ( ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , startLine ) ; writer.writeKeyword ( Token.METHOD_BODY ) ; writer.writeOpen ( ) ; writeLocals ( ) ; writeBody ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , endLine ) ; writer.writeClose ( ) ; }

Target:
private void writeJavaMethodBody ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.isInterface ( currentClass ) ) { throw new com.android.jill.JillException ( ( ( com.android.jill.frontend.java.AsmHelper.isStatic ( currentMethod ) ? "static" : "default" ) + " method into interface is not supported" ) ) ; } sourceInfoWriter.writeDebugBegin ( currentClass , startLine ) ; writer.writeKeyword ( Token.METHOD_BODY ) ; writer.writeOpen ( ) ; writeLocals ( ) ; writeBody ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , endLine ) ; writer.writeClose ( ) ; }
Source:
public void setWallpaperPosition ( android.os.IBinder window , float x , float y , float xStep , float yStep ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { setWindowWallpaperPositionLocked ( windowForClientLocked ( this , window ) , x , y , xStep , yStep ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public boolean performHapticFeedback ( android.view.IWindow window , int effectId , boolean always ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mPolicy.performHapticFeedbackLw ( windowForClientLocked ( this , window , true ) , effectId , always ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public void put ( E e ) throws java.lang.InterruptedException { java.util.concurrent.ArrayBlockingQueue.checkNotNull ( e ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; try { while ( ( count ) == ( items.length ) ) notFull.await ( ) ; insert ( e ) ; } finally { lock.unlock ( ) ; } }

Target:
public void put ( E e ) throws java.lang.InterruptedException { java.util.concurrent.ArrayBlockingQueue.checkNotNull ( e ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; try { while ( ( count ) == ( items.length ) ) notFull.await ( ) ; enqueue ( e ) ; } finally { lock.unlock ( ) ; } }
Source:
public void testApplyingWithAbsentFileToDelete ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; new java.io.File ( myOlderDir , "bin/idea.bat" ) . delete ( ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( patch , com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient" + ( mRemoteDevice ) ) ) ; if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getClient(): not allowed for non-active user" ) ; return null ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ) ) { return null ; } return mRemoteDevice ; }

Target:
protected void disconnect ( ) { synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
public void write ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }

Target:
public void write ( ) throws java.io.IOException { if ( ( ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) && ( com.android.jill.frontend.java.AsmHelper.isAbstract ( currentMethod ) ) ) && ( currentMethod.parameters.isEmpty ( ) ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }
Source:
public com.google.common.collect.UnmodifiableIterator < java.util.Map.Entry < K , V > > iterator ( ) { return new com.google.common.collect.AbstractIndexedListIterator < java.util.Map.Entry < K , V > > ( size ( ) ) { @ java.lang.Override protected java.util.Map.Entry < K , V > get ( int index ) { return com.google.common.collect.Maps.immutableEntry ( getKey ( index ) , getValue ( index ) ) ; } } ; }

Target:
com.google.common.collect.ImmutableList < com.google.common.collect.Table.Cell < R , C , V > > createAsList ( ) { return new com.google.common.collect.ImmutableAsList < com.google.common.collect.Table.Cell < R , C , V > > ( ) { @ java.lang.Override public com.google.common.collect.Table.Cell < R , C , V > get ( int index ) { return getCell ( index ) ; } @ java.lang.Override com.google.common.collect.ImmutableCollection < com.google.common.collect.Table.Cell < R , C , V > > delegateCollection ( ) { return com.google.common.collect.RegularImmutableTable.CellSet.this ; } } ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatViewerFilter > getFiltersToApply ( ) { java.util.List < com.android.ddmuilib.logcat.LogCatViewerFilter > filters = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatViewerFilter > ( ) ; filters.add ( getSelectedSavedFilter ( ) ) ; filters.addAll ( getCurrentLiveFilters ( ) ) ; return filters ; }

Target:
private java.util.List < com.android.ddmuilib.logcat.LogCatFilter > getFiltersToApply ( ) { java.util.List < com.android.ddmuilib.logcat.LogCatFilter > filters = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatFilter > ( ) ; if ( ( mCurrentSelectedFilterIndex ) != ( com.android.ddmuilib.logcat.LogCatPanel.DEFAULT_FILTER_INDEX ) ) { filters.add ( getSelectedSavedFilter ( ) ) ; } filters.addAll ( getCurrentLiveFilters ( ) ) ; return filters ; }
Source:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject androidCling = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.ANDROID_WELCOME_CLING_RES ) ) ; try { if ( androidCling.exists ( ) ) { androidCling.click ( ) ; return true ; } else { return false ; } } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { org.junit.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; return false ; } }

Target:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject androidCling = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceIdMatches ( Res.ANDROID_WELCOME_CLING_RES ) ) ; try { if ( androidCling.exists ( ) ) { androidCling.click ( ) ; return true ; } else { return false ; } } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { org.junit.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; return false ; } }
Source:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; NativeProxy.main ( args ) ; }
Source:
private void showNotification ( ) { java.lang.CharSequence text = getText ( R.string.local_service_started ) ; android.app.Notification notification = new android.app.Notification ( R.drawable.stat_sample , text , java.lang.System.currentTimeMillis ( ) ) ; android.app.PendingIntent contentIntent = android.app.PendingIntent.getActivity ( this , 0 , new android.content.Intent ( this , com.example.android.apis.app.LocalServiceController.class ) , 0 ) ; notification.setLatestEventInfo ( this , getText ( R.string.local_service_label ) , text , contentIntent ) ; mNM.notify ( R.string.local_service_started , notification ) ; }

Target:
private void showNotification ( ) { java.lang.CharSequence text = getText ( R.string.local_service_started ) ; android.app.Notification notification = new android.app.Notification ( R.drawable.stat_sample , text , java.lang.System.currentTimeMillis ( ) ) ; android.app.PendingIntent contentIntent = android.app.PendingIntent.getActivity ( this , 0 , new android.content.Intent ( this , com.example.android.apis.app.LocalServiceController.class ) , 0 ) ; notification.setLatestEventInfo ( this , getText ( R.string.local_service_label ) , text , contentIntent ) ; mNM.notify ( NOTIFICATION , notification ) ; }
Source:
private boolean shouldVisitDir ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType pkgType , @ com.android.annotations.NonNull java.io.File directory ) { if ( ! ( mFileOp.isDirectory ( directory ) ) ) { return false ; } synchronized ( mLocalPackages ) { if ( mVisitedDirs.containsEntry ( pkgType , directory ) ) { return false ; } mVisitedDirs.put ( pkgType , new com.android.sdklib.repository.local.LocalDirInfo ( mFileOp , directory ) ) ; } return true ; }

Target:
private boolean shouldVisitDir ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType pkgType , @ com.android.annotations.NonNull java.io.File directory ) { if ( ! ( mFileOp.isDirectory ( directory ) ) ) { return false ; } synchronized ( mLocalPackages ) { if ( mVisitedDirs.containsEntry ( pkgType , new com.android.sdklib.repository.local.LocalDirInfo.MapComparator ( directory ) ) ) { return false ; } mVisitedDirs.put ( pkgType , new com.android.sdklib.repository.local.LocalDirInfo ( mFileOp , directory ) ) ; } return true ; }
Source:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( HEADER_PROJECTION , 1 ) ; headerCursor.addRow ( new java.lang.String [ ] { context.getString ( R.string.directory , name ) } ) ; return headerCursor ; }

Target:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , int id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.remote.RemoteContactsCursor.PROJECTION , 1 ) ; headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; return headerCursor ; }
Source:
boolean isAudioOn ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mStateMachine.isAudioOn ( ) ; }

Target:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getAudioState ( ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "disconnectAudio, audio is not connected" ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }
Source:
private void fetchPktcntNative ( android.net.wifi.RssiPacketCountInfo info ) { int [ ] counters = null ; try { counters = mClientInterface.getPacketCounters ( ) ; if ( ( counters == null ) || ( ( counters.length ) != 2 ) ) { return ; } } catch ( android.os.RemoteException e1 ) { } info.txgood = counters [ 0 ] ; info.txbad = counters [ 1 ] ; }

Target:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mDiagsConnectionStartMillis = mClock.getElapsedSinceBootMillis ( ) ; mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; sendMessageDelayed ( com.android.server.wifi.WifiStateMachine.CMD_DIAGS_CONNECT_TIMEOUT , mDiagsConnectionStartMillis , com.android.server.wifi.WifiStateMachine.DIAGS_CONNECT_TIMEOUT_MILLIS ) ; }
Source:
public static void installPackage ( android.content.Context context , java.io.File packageFile ) throws java.io.IOException { java.lang.String filename = packageFile.getCanonicalPath ( ) ; android.util.Log.w ( android.os.RecoverySystem.TAG , ( ( "!!! REBOOTING TO INSTALL " + filename ) + " !!!" ) ) ; final java.lang.String filenameArg = "--update_package=" + filename ; final java.lang.String localeArg = "--locale=" + ( java.util.Locale.getDefault ( ) . toString ( ) ) ; android.os.RecoverySystem.bootCommand ( context , filenameArg , localeArg ) ; }

Target:
public static void installPackage ( android.content.Context context , java.io.File packageFile ) throws java.io.IOException { java.lang.String filename = packageFile.getCanonicalPath ( ) ; java.io.FileWriter uncryptFile = new java.io.FileWriter ( android.os.RecoverySystem.UNCRYPT_FILE ) ; try { uncryptFile.write ( ( filename + "\n" ) ) ; } finally { uncryptFile.close ( ) ; } android.util.Log.w ( android.os.RecoverySystem.TAG , ( ( "!!! REBOOTING TO INSTALL " + filename ) + " !!!" ) ) ; if ( filename.startsWith ( "/data/" ) ) { filename = "@/cache/recovery/block.map" ; } final java.lang.String filenameArg = "--update_package=" + filename ; final java.lang.String localeArg = "--locale=" + ( java.util.Locale.getDefault ( ) . toString ( ) ) ; android.os.RecoverySystem.bootCommand ( context , filenameArg , localeArg ) ; }
Source:
public boolean addLinkAddress ( android.net.LinkAddress address ) { if ( ( address != null ) && ( ! ( mLinkAddresses.contains ( address ) ) ) ) { mLinkAddresses.add ( address ) ; return true ; } return false ; }

Target:
public boolean addLinkAddress ( android.net.LinkAddress address ) { if ( address == null ) { return false ; } int i = findLinkAddressIndex ( address ) ; if ( i < 0 ) { mLinkAddresses.add ( address ) ; return true ; } else if ( mLinkAddresses.get ( i ) . equals ( address ) ) { return false ; } else { mLinkAddresses.set ( i , address ) ; return true ; } }
Source:
public void rmPackageDir ( java.lang.String packageDir ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "rmpackagedir" , packageDir ) ; }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void testListIterator2_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "adasd" ) ; c.add ( "asdasdas" ) ; c.listIterator ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testListIterator2_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.listIterator ( ( ( list.size ( ) ) + 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }

Target:
public boolean onTouchEvent ( final android.view.MotionEvent ev ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onTouchEvent ( ev ) ; } } ) ; return ret ; } return mAwContents.onTouchEvent ( ev ) ; }
Source:
public void respondToDataPathRequest ( boolean accept , int ndpId , java.lang.String interfaceName , java.lang.String token ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.COMMAND_TYPE_RESPOND_TO_DATA_PATH_SETUP_REQUEST ; msg.arg2 = ndpId ; msg.obj = accept ; msg.getData ( ) . putString ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_INTERFACE_NAME , interfaceName ) ; msg.getData ( ) . putString ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_MESSAGE , token ) ; mSm.sendMessage ( msg ) ; }

Target:
public void respondToDataPathRequest ( boolean accept , int ndpId , java.lang.String interfaceName , java.lang.String token ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.COMMAND_TYPE_RESPOND_TO_DATA_PATH_SETUP_REQUEST ; msg.arg2 = ndpId ; msg.obj = accept ; msg.getData ( ) . putString ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_INTERFACE_NAME , interfaceName ) ; msg.getData ( ) . putString ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MESSAGE , token ) ; mSm.sendMessage ( msg ) ; }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ( ( linkedOutputJackLib ) == null ) && ( ! ( originalVFS.isClosed ( ) ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ! ( closed ) ) { if ( ( linkedOutputJackLib ) != null ) { linkedOutputJackLib.notifyToClose ( ) ; } else if ( ! ( originalVFS.isClosed ( ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } closed = true ; } }
Source:
public final void testRemapIds1 ( ) { java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; com.android.ide.common.layout.BaseLayout baseLayout = new com.android.ide.common.layout.BaseLayout ( ) ; com.android.ide.common.api.IDragElement [ ] elements = createSampleElements ( ) ; baseLayout.collectIds ( idMap , elements ) ; com.android.ide.common.api.INode node = com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button012" ) . add ( com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button2" ) ) ; assertEquals ( 5 , idMap.size ( ) ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > remapped = baseLayout.remapIds ( node , idMap ) ; assertEquals ( 6 , remapped.size ( ) ) ; }

Target:
public final void testRemapIds1 ( ) { java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; com.android.ide.common.layout.BaseLayoutRule baseLayout = new com.android.ide.common.layout.BaseLayoutRule ( ) ; com.android.ide.common.api.IDragElement [ ] elements = createSampleElements ( ) ; baseLayout.collectIds ( idMap , elements ) ; com.android.ide.common.api.INode node = com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button012" ) . add ( com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button2" ) ) ; assertEquals ( 5 , idMap.size ( ) ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > remapped = baseLayout.remapIds ( node , idMap ) ; assertEquals ( 6 , remapped.size ( ) ) ; }
Source:
private void doClean ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { com.android.ide.eclipse.adt.AdtPlugin.printBuildToConsole ( BuildVerbosity.VERBOSE , project , Messages.Removing_Generated_Classes ) ; if ( ( mGenFolder ) != null ) { removeDerivedResources ( mGenFolder , monitor ) ; } removeMarkersFromProject ( project , AndroidConstants.MARKER_AAPT_COMPILE ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_XML ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_AIDL ) ; }

Target:
private void doClean ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { com.android.ide.eclipse.adt.AdtPlugin.printBuildToConsole ( BuildVerbosity.VERBOSE , project , Messages.Removing_Generated_Classes ) ; if ( ( mGenFolder ) != null ) { removeDerivedResources ( mGenFolder , monitor ) ; } removeMarkersFromProject ( project , AndroidConstants.MARKER_AAPT_COMPILE ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_XML ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_AIDL ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_ANDROID ) ; }
Source:
private static java.lang.String [ ] filterFomProtocols ( java.lang.String [ ] protocols , java.lang.String obsoleteProtocol ) { if ( ( ( protocols.length ) == 1 ) && ( obsoleteProtocol.equals ( protocols [ 0 ] ) ) ) { return org.conscrypt.SSLParametersImpl.EMPTY_STRING_ARRAY ; } java.util.ArrayList < java.lang.String > newProtocols = new java.util.ArrayList < > ( ) ; for ( java.lang.String protocol : protocols ) { if ( ! ( obsoleteProtocol.equals ( protocol ) ) ) { newProtocols.add ( protocol ) ; } } return newProtocols.toArray ( org.conscrypt.SSLParametersImpl.EMPTY_STRING_ARRAY ) ; }

Target:
private static java.lang.String [ ] filterFromProtocols ( java.lang.String [ ] protocols , java.lang.String obsoleteProtocol ) { if ( ( ( protocols.length ) == 1 ) && ( obsoleteProtocol.equals ( protocols [ 0 ] ) ) ) { return org.conscrypt.SSLParametersImpl.EMPTY_STRING_ARRAY ; } java.util.ArrayList < java.lang.String > newProtocols = new java.util.ArrayList < > ( ) ; for ( java.lang.String protocol : protocols ) { if ( ! ( obsoleteProtocol.equals ( protocol ) ) ) { newProtocols.add ( protocol ) ; } } return newProtocols.toArray ( org.conscrypt.SSLParametersImpl.EMPTY_STRING_ARRAY ) ; }
Source:
private int findPublicSuffix ( ) { final int partsSize = parts.size ( ) ; for ( int i = 0 ; i < partsSize ; i ++ ) { java.lang.String ancestorName = com.google.common.net.InternetDomainName.DOT_JOINER.join ( parts.subList ( i , partsSize ) ) ; if ( TldPatterns.EXACT.contains ( ancestorName ) ) { return i ; } if ( TldPatterns.EXCLUDED.contains ( ancestorName ) ) { return i + 1 ; } if ( com.google.common.net.InternetDomainName.matchesWildcardPublicSuffix ( ancestorName ) ) { return i ; } } return com.google.common.net.InternetDomainName.NO_PUBLIC_SUFFIX_FOUND ; }

Target:
private int findPublicSuffix ( ) { final int partsSize = parts.size ( ) ; for ( int i = 0 ; i < partsSize ; i ++ ) { java.lang.String ancestorName = com.google.common.net.InternetDomainName.DOT_JOINER.join ( parts.subList ( i , partsSize ) ) ; if ( com.google.thirdparty.publicsuffix.PublicSuffixPatterns.EXACT.containsKey ( ancestorName ) ) { return i ; } if ( com.google.thirdparty.publicsuffix.PublicSuffixPatterns.EXCLUDED.containsKey ( ancestorName ) ) { return i + 1 ; } if ( com.google.common.net.InternetDomainName.matchesWildcardPublicSuffix ( ancestorName ) ) { return i ; } } return com.google.common.net.InternetDomainName.NO_PUBLIC_SUFFIX_FOUND ; }
Source:
public void testGetHeadersThrows ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.getInputStream ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } try { connection.getInputStream ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void testGetHeadersThrows ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.getInputStream ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.io.IOException expected ) { } try { connection.getInputStream ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.io.IOException expected ) { } }
Source:
void updateMenuActionState ( boolean hasSelection ) { mCutAction.setEnabled ( hasSelection ) ; mCopyAction.setEnabled ( hasSelection ) ; mDeleteAction.setEnabled ( hasSelection ) ; mSelectAllAction.setEnabled ( hasSelection ) ; boolean hasSxt = mClipboardSupport.hasSxtOnClipboard ( ) ; mPasteAction.setEnabled ( hasSxt ) ; }

Target:
void updateMenuActionState ( boolean hasSelection ) { org.eclipse.swt.custom.StyledText errorLabel = mLayoutEditor.getGraphicalEditor ( ) . getErrorLabel ( ) ; mCutAction.setEnabled ( hasSelection ) ; mCopyAction.setEnabled ( ( hasSelection || ( ( errorLabel.getSelectionCount ( ) ) > 0 ) ) ) ; mDeleteAction.setEnabled ( hasSelection ) ; mSelectAllAction.setEnabled ( ( hasSelection || ( errorLabel.isFocusControl ( ) ) ) ) ; boolean hasSxt = mClipboardSupport.hasSxtOnClipboard ( ) ; mPasteAction.setEnabled ( hasSxt ) ; }
Source:
public void computeFormattedPhoneNumber ( java.lang.String defaultCountryIso ) { final java.lang.String phoneNumber = getNumber ( ) ; if ( phoneNumber != null ) { final java.lang.String formattedPhoneNumber = com.android.contacts.common.compat.PhoneNumberUtilsCompat.formatNumber ( phoneNumber , getNormalizedNumber ( ) , defaultCountryIso ) ; getContentValues ( ) . put ( com.android.contacts.common.model.dataitem.PhoneDataItem.KEY_FORMATTED_PHONE_NUMBER , formattedPhoneNumber ) ; } }

Target:
public void computeFormattedPhoneNumber ( android.content.Context context , java.lang.String defaultCountryIso ) { final java.lang.String phoneNumber = getNumber ( ) ; if ( phoneNumber != null ) { final java.lang.String formattedPhoneNumber = com.android.dialer.phonenumberutil.PhoneNumberHelper.formatNumber ( context , phoneNumber , getNormalizedNumber ( ) , defaultCountryIso ) ; getContentValues ( ) . put ( com.android.contacts.common.model.dataitem.PhoneDataItem.KEY_FORMATTED_PHONE_NUMBER , formattedPhoneNumber ) ; } }
Source:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.TimeoutException , java.io.IOException { try { executeShellCommand ( ( "rm " + remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.Device.LOG_TAG , java.lang.String.format ( "Failed to delete temporary package: %1$s" , e.getMessage ( ) ) ) ; throw e ; } }

Target:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { try { executeShellCommand ( ( "rm " + remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.Device.LOG_TAG , java.lang.String.format ( "Failed to delete temporary package: %1$s" , e.getMessage ( ) ) ) ; throw e ; } }
Source:
public void sendDtmf ( char c ) { if ( ! ( android.telephony.PhoneNumberUtils.is12Key ( c ) ) ) { android.util.Log.e ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , ( ( "sendDtmf called with invalid character '" + c ) + "'" ) ) ; } else if ( foregroundCall.getState ( ) . isAlive ( ) ) { synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { foregroundCall.sendDtmf ( c ) ; } } }

Target:
public void sendDtmf ( char c ) { if ( ! ( android.telephony.PhoneNumberUtils.is12Key ( c ) ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , ( ( "sendDtmf called with invalid character '" + c ) + "'" ) ) ; } else if ( foregroundCall.getState ( ) . isAlive ( ) ) { synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { foregroundCall.sendDtmf ( c ) ; } } }
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 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyToolchain.class ) . addProperty ( ParameterMetadataAnnotationsAdder.PARAMETER_ANNOTATION.getName ( ) , "true" ) . setWithDebugInfos ( true ) . 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.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyBasedToolchain.class ) . addProperty ( ParameterMetadataAnnotationsAdder.PARAMETER_ANNOTATION.getName ( ) , "true" ) . setWithDebugInfos ( true ) . compileAndRunTest ( ) ; }
Source:
public org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; return parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true ) ; }

Target:
public org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true ) ; }
Source:
private boolean differentLocalAddressTypes ( java.net.Inet6Address other ) { if ( ( isLinkLocalAddress ( ) ) && ( ! ( other.isLinkLocalAddress ( ) ) ) ) { return false ; } if ( ( isSiteLocalAddress ( ) ) && ( ! ( other.isSiteLocalAddress ( ) ) ) ) { return false ; } return true ; }

Target:
private static boolean isDifferentLocalAddressType ( byte [ ] thisAddr , byte [ ] otherAddr ) { if ( ( java.net.Inet6Address.isLinkLocalAddress ( thisAddr ) ) && ( ! ( java.net.Inet6Address.isLinkLocalAddress ( otherAddr ) ) ) ) { return false ; } if ( ( java.net.Inet6Address.isSiteLocalAddress ( thisAddr ) ) && ( ! ( java.net.Inet6Address.isSiteLocalAddress ( otherAddr ) ) ) ) { return false ; } return true ; }
Source:
void setClientDescription ( java.lang.String description ) { if ( ( ( mClientDescription ) == null ) && ( ( description.length ( ) ) > 0 ) ) { if ( ( com.android.ddmlib.ClientData.PRE_INITIALIZED.equals ( description ) ) == false ) { mClientDescription = description ; } } }

Target:
void setClientDescription ( java.lang.String description ) { if ( ( ( mClientDescription ) == null ) && ( ! ( description.isEmpty ( ) ) ) ) { if ( ! ( com.android.ddmlib.ClientData.PRE_INITIALIZED.equals ( description ) ) ) { mClientDescription = description ; } } }
Source:
private android.content.Intent waitForNoIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
private void verifyNoConnectionStateIntent ( int timeoutMs ) { android.content.Intent intent = com.android.bluetooth.TestUtils.waitForNoIntent ( timeoutMs , mConnectionStateChangedQueue ) ; org.junit.Assert.assertNull ( intent ) ; }
Source:
public void testSetWifiDisabledSuccess ( ) throws java.lang.Exception { when ( mSettingsStore.handleWifiToggled ( org.mockito.Matchers.eq ( false ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , false ) ) ; verify ( mWifiController ) . obtainMessageAndSend ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }

Target:
public void testSetWifiEnabledSuccess ( ) throws java.lang.Exception { when ( mWifiStateMachine.syncGetWifiApState ( ) ) . thenReturn ( WifiManager.WIFI_AP_STATE_DISABLED ) ; when ( mSettingsStore.handleWifiToggled ( org.mockito.Matchers.eq ( true ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , true ) ) ; verify ( mWifiController ) . sendMessage ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }
Source:
private java.io.File dumpKernelStackTraces ( ) { java.lang.String tracesPath = android.os.SystemProperties.get ( "dalvik.vm.stack-trace-file" , null ) ; if ( ( tracesPath == null ) || ( ( tracesPath.length ( ) ) == 0 ) ) { return null ; } native_dumpKernelStacks ( tracesPath ) ; return new java.io.File ( tracesPath ) ; }

Target:
private java.io.File dumpKernelStackTraces ( ) { native_dumpKernelStacks ( "/data/anr" ) ; return new java.io.File ( "/data/anr" ) ; }
Source:
public void close ( ) { mCloseGuard.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { try { mService.closeUdpEncapsulationSocket ( mResourceId ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } try { mPfd.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.net.IpSecManager.TAG , ( "Failed to close UDP Encapsulation Socket with Port= " + ( mPort ) ) ) ; throw e ; } mCloseGuard.close ( ) ; }
Source:
public static com.android.newbubble.NewBubbleInfo.Action.Builder from ( @ android.support.annotation.NonNull com.android.newbubble.NewBubbleInfo.Action action ) { return com.android.newbubble.NewBubbleInfo.Action.builder ( ) . setIntent ( action.getIntent ( ) ) . setChecked ( action.isChecked ( ) ) . setCheckable ( action.isCheckable ( ) ) . setName ( action.getName ( ) ) . setIconDrawable ( action.getIconDrawable ( ) ) . setSecondaryIconDrawable ( action.getSecondaryIconDrawable ( ) ) ; }

Target:
public static com.android.bubble.BubbleInfo.Action.Builder from ( @ android.support.annotation.NonNull com.android.bubble.BubbleInfo.Action action ) { return com.android.bubble.BubbleInfo.Action.builder ( ) . setIntent ( action.getIntent ( ) ) . setChecked ( action.isChecked ( ) ) . setCheckable ( action.isCheckable ( ) ) . setName ( action.getName ( ) ) . setIconDrawable ( action.getIconDrawable ( ) ) . setSecondaryIconDrawable ( action.getSecondaryIconDrawable ( ) ) ; }
Source:
public void test_joinSourceSpecific_nullNetworkInterface ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , null , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }

Target:
public void test_joinSourceSpecific_nullNetworkInterface ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , null , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }
Source:
public void bind ( java.lang.String headerText , java.lang.String displayName , android.net.Uri contactUri , boolean showHeader ) { com.android.dialer.common.Assert.checkArgument ( ( ! ( android.text.TextUtils.isEmpty ( displayName ) ) ) ) ; this . contactUri = contactUri ; this . headerText = headerText ; name.setText ( displayName ) ; header.setText ( headerText ) ; header.setVisibility ( ( showHeader ? android.view.View.VISIBLE : android.view.View.INVISIBLE ) ) ; com.android.dialer.logging.Logger.get ( context ) . logQuickContactOnTouch ( photo , InteractionEvent.Type.OPEN_QUICK_CONTACT_FROM_CONTACTS_FRAGMENT_BADGE , true ) ; }

Target:
public void bind ( java.lang.String headerText , java.lang.String displayName , android.net.Uri contactUri , long contactId , boolean showHeader ) { com.android.dialer.common.Assert.checkArgument ( ( ! ( android.text.TextUtils.isEmpty ( displayName ) ) ) ) ; this . contactUri = contactUri ; this . contactId = contactId ; this . headerText = headerText ; name.setText ( displayName ) ; header.setText ( headerText ) ; header.setVisibility ( ( showHeader ? android.view.View.VISIBLE : android.view.View.INVISIBLE ) ) ; com.android.dialer.logging.Logger.get ( context ) . logQuickContactOnTouch ( photo , InteractionEvent.Type.OPEN_QUICK_CONTACT_FROM_CONTACTS_FRAGMENT_BADGE , true ) ; }
Source:
public void testClearFormData ( ) throws java.lang.Throwable { if ( ! ( android.cts.util.NullWebViewUtils.isWebViewAvailable ( ) ) ) { return ; } startWebServer ( false ) ; android.webkit.WebSettings settings = mOnUiThread.getSettings ( ) ; settings.setDatabaseEnabled ( true ) ; settings.setJavaScriptEnabled ( true ) ; android.webkit.WebViewDatabase webViewDatabase = android.webkit.WebViewDatabase.getInstance ( getActivity ( ) ) ; webViewDatabase.clearFormData ( ) ; final java.lang.String url = mWebServer.getAssetUrl ( TestHtmlConstants.LOGIN_FORM_URL ) ; mOnUiThread.loadUrlAndWaitForCompletion ( url ) ; $missing$ = $missing$.run ( ) ; android.webkit.cts.d0e457 Merge ; }

Target:
public boolean check ( ) { return android.webkit.WebViewDatabase.getInstance ( getActivity ( ) ) . hasFormData ( ) ; }
Source:
private static android.app.PendingIntent newVoicemailIntent ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall voicemail ) { android.content.Intent intent = com.android.dialer.app.DialtactsActivity.getShowTabIntent ( context , DialtactsPagerAdapter.TAB_INDEX_VOICEMAIL ) ; if ( voicemail != null ) { intent.setData ( voicemail.voicemailUri ) ; } intent.putExtra ( DialtactsActivity.EXTRA_CLEAR_NEW_VOICEMAILS , true ) ; return android.app.PendingIntent.getActivity ( context , 0 , intent , PendingIntent.FLAG_UPDATE_CURRENT ) ; }

Target:
private static android.app.PendingIntent newVoicemailIntent ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall voicemail ) { android.content.Intent intent ; if ( com.android.dialer.app.MainComponent.isNuiComponentEnabled ( context ) ) { intent = com.android.dialer.app.MainComponent.getShowVoicemailIntent ( context ) ; } else { intent = com.android.dialer.app.DialtactsActivity.getShowTabIntent ( context , DialtactsPagerAdapter.TAB_INDEX_VOICEMAIL ) ; } if ( voicemail != null ) { intent.setData ( voicemail.voicemailUri ) ; } intent.putExtra ( DialtactsActivity.EXTRA_CLEAR_NEW_VOICEMAILS , true ) ; return android.app.PendingIntent.getActivity ( context , 0 , intent , PendingIntent.FLAG_UPDATE_CURRENT ) ; }