auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSessionCreation ( ) throws java.lang.Exception { android.telephony.MbmsStreamingSession session = android.telephony.MbmsStreamingSession.create ( mContext , mCallback , mCallbackHandler ) ; assertNotNull ( session ) ; assertTrue ( mCallback.waitOnMiddlewareReady ( ) ) ; assertEquals ( 0 , mCallback.getNumErrorCalls ( ) ) ; java.util.List initializeCall = ( ( java.util.List ) ( mMiddlewareControl.getStreamingSessionCalls ( ) . get ( 0 ) ) ) ; assertEquals ( "initialize" , initializeCall.get ( 0 ) ) ; }

Target:
public void testDuplicateSession ( ) throws java.lang.Exception { try { android.telephony.MbmsStreamingSession failure = android.telephony.MbmsStreamingSession.create ( mContext , mCallback , mCallbackHandler ) ; fail ( "Duplicate create should've thrown an exception" ) ; } catch ( java.lang.IllegalStateException e ) { } }
Source:
private void checkBug28698301 ( java.lang.String name ) throws java.io.IOException , org.xml.sax.SAXException { java.io.InputStream is = getClass ( ) . getResourceAsStream ( name ) ; try { libcore.xml.ExpatSaxParserTest.parse ( is , libcore.xml.ExpatSaxParserTest.Encoding.UTF_16 , new libcore.xml.ExpatSaxParserTest.TestHandler ( ) ) ; } catch ( org.xml.sax.SAXParseException exception ) { java.lang.String message = exception.getMessage ( ) ; if ( ! ( message.contains ( "no element found" ) ) ) { fail ( ( "Expected 'no element found' exception, found: " + message ) ) ; } } }

Target:
private void checkBug28698301 ( java.lang.String name , java.lang.String expectedMessage ) throws java.io.IOException , org.xml.sax.SAXException { java.io.InputStream is = getClass ( ) . getResourceAsStream ( name ) ; try { libcore.xml.ExpatSaxParserTest.parse ( is , libcore.xml.ExpatSaxParserTest.Encoding.UTF_16 , new libcore.xml.ExpatSaxParserTest.TestHandler ( ) ) ; } catch ( org.xml.sax.SAXParseException exception ) { java.lang.String message = exception.getMessage ( ) ; if ( ! ( message.equals ( expectedMessage ) ) ) { fail ( ( ( ( ( "Expected '" + expectedMessage ) + "' exception, found: '" ) + message ) + "'" ) ) ; } } }
Source:
void foo1 ( int [ ] array , int start , int end ) { for ( int i = start ; i < end ; i ++ ) { array [ i ] = 1 ; sum += array [ i ] ; } }

Target:
void foo3 ( int [ ] array , int end , boolean expectInterpreter ) { for ( int i = 3 ; i <= end ; i ++ ) { if ( expectInterpreter ) { Main.assertIsInterpreted ( ) ; } else { Main.assertIsManaged ( ) ; } array [ i ] = 1 ; sum += array [ i ] ; } }
Source:
public void testCreateAllocations ( ) { int usage = android.renderscript.Allocation.USAGE_SCRIPT ; int numAlloc = ( MAX_NUM_IO_ALLOC ) + 1 ; android.renderscript.Allocation [ ] allocArray ; allocArray = createAllocationsHelper ( usage , numAlloc ) ; assertTrue ( "failed to create AllocationQueue" , ( allocArray != null ) ) ; }

Target:
public void testCreateAllocations ( ) { int usage = android.renderscript.Allocation.USAGE_SCRIPT ; int numAlloc = ( MAX_NUM_IO_ALLOC ) + 1 ; android.renderscript.Allocation [ ] allocArray ; allocArray = createAllocationsHelper ( usage , numAlloc ) ; assertTrue ( "failed to create AllocationQueue" , ( allocArray != null ) ) ; for ( android.renderscript.Allocation a : allocArray ) { a.destroy ( ) ; } }
Source:
public void onClick ( android.view.View v ) { if ( ( mDelayBeforeSending ) && ( v != null ) ) { android.os.Message msg = mDelayHandler.obtainMessage ( 0 , this ) ; mDelayHandler.sendMessageDelayed ( msg , com.android.cellbroadcastreceiver.tests.SendTestBroadcastActivity.DELAY_BEFORE_SENDING_MSEC ) ; } else { com.android.cellbroadcastreceiver.tests.SendTestMessages.testSendMessage7bitNoPaddingUmts ( this , getMessageId ( ) , getCategory ( ) ) ; } }

Target:
public void onClick ( android.view.View v ) { if ( ( mDelayBeforeSending ) && ( v != null ) ) { android.os.Message msg = mDelayHandler.obtainMessage ( 0 , this ) ; mDelayHandler.sendMessageDelayed ( msg , com.android.cellbroadcastreceiver.tests.SendTestBroadcastActivity.DELAY_BEFORE_SENDING_MSEC ) ; } else { com.android.cellbroadcastreceiver.tests.SendGsmCmasMessages.testSendCmasAmberAlert ( this , getSerialNumber ( ) ) ; } }
Source:
public int lastIndexOf ( E e , int index ) { java.lang.Object [ ] elements = getArray ( ) ; return java.util.concurrent.CopyOnWriteArrayList.lastIndexOf ( e , elements , index ) ; }

Target:
public java.util.ListIterator < E > listIterator ( int index ) { java.util.concurrent.CopyOnWriteArrayList.Slice slice = this . slice ; java.lang.Object [ ] snapshot = elements ; slice.checkPositionIndex ( index ) ; slice.checkConcurrentModification ( snapshot ) ; java.util.concurrent.CopyOnWriteArrayList.CowIterator < E > result = new java.util.concurrent.CopyOnWriteArrayList.CowIterator < E > ( snapshot , slice.from , slice.to ) ; result.index = ( slice.from ) + index ; return result ; }
Source:
public void testSyncFlushEnabled ( ) throws java.lang.Exception { java.util.zip.InflaterInputStream in = createInflaterStream ( true ) ; assertEquals ( 1 , in.read ( ) ) ; assertEquals ( 2 , in.read ( ) ) ; assertEquals ( 3 , in.read ( ) ) ; in.close ( ) ; }

Target:
public void testSyncFlushEnabled ( ) throws java.lang.Exception { java.io.InputStream in = libcore.java.util.zip.DeflaterOutputStreamTest.createInflaterStream ( java.util.zip.DeflaterOutputStream.class , true ) ; assertEquals ( 1 , in.read ( ) ) ; assertEquals ( 2 , in.read ( ) ) ; assertEquals ( 3 , in.read ( ) ) ; in.close ( ) ; }
Source:
public void testDescendingAddAll3 ( ) { try { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( ( i + ( SIZE ) ) ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testDescendingAddAll2 ( ) { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void transform ( dalvik.system.EmulatedStackFrame emulatedStackFrame ) throws java.lang.Throwable { reader.attach ( emulatedStackFrame ) ; writer.attach ( emulatedStackFrame ) ; final java.lang.Object [ ] array = ( ( java.lang.Object [ ] ) ( reader.nextReference ( arrayClass ) ) ) ; final int index = reader.nextInt ( ) ; writer.asReturnValueWriter ( ) ; writer.putNextReference ( array [ index ] , arrayClass.getComponentType ( ) ) ; }

Target:
public void transform ( dalvik.system.EmulatedStackFrame emulatedStackFrame ) throws java.lang.Throwable { reader.attach ( emulatedStackFrame ) ; writer.attach ( emulatedStackFrame ) ; final java.lang.Object [ ] array = ( ( java.lang.Object [ ] ) ( reader.nextReference ( arrayClass ) ) ) ; final int index = reader.nextInt ( ) ; writer.makeReturnValueAccessor ( ) ; writer.putNextReference ( array [ index ] , arrayClass.getComponentType ( ) ) ; }
Source:
private void onApiLevelChange ( ) { if ( ( mDisableUpdates ) > 0 ) { return ; } boolean computeOk = computeCurrentConfig ( false ) ; updateThemes ( ) ; if ( computeOk && ( ( mListener ) != null ) ) { mListener.onConfigurationChange ( ) ; } }

Target:
private void onDayChange ( ) { if ( ( computeCurrentConfig ( ) ) && ( ( mListener ) != null ) ) { mListener.onConfigurationChange ( ) ; } }
Source:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mConnectionId ) , org.mockito.Matchers.any ( ) ) ; }

Target:
public void testPullNonExternalCall ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mCallId ) , org.mockito.Matchers.any ( ) ) ; }
Source:
public final double getDouble ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }

Target:
public final int getInt ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } int result = this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public static java.io.FileDescriptor socket ( boolean stream ) throws java.net.SocketException { java.io.FileDescriptor fd ; try { fd = Libcore.os.socket ( libcore.io.AF_INET6 , ( stream ? SOCK_STREAM : SOCK_DGRAM ) , 0 ) ; return fd ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static java.io.FileDescriptor socket ( int domain , int type , int protocol ) throws java.net.SocketException { java.io.FileDescriptor fd ; try { fd = Libcore.os.socket ( domain , type , protocol ) ; return fd ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public com.android.jack.dx.io.FieldId get ( int index ) { com.android.jack.dx.io.DexBuffer.checkBounds ( index , tableOfContents.fieldIds.size ) ; return open ( ( ( tableOfContents.fieldIds.off ) + ( ( com.android.jack.dx.dex.SizeOf.MEMBER_ID_ITEM ) * index ) ) ) . readFieldId ( ) ; }

Target:
private java.util.List < com.android.jack.dx.io.FieldId > readFieldIds ( ) { com.android.jack.dx.io.DexBuffer.Section fieldIds = open ( tableOfContents.fieldIds.off ) ; com.android.jack.dx.io.FieldId [ ] result = new com.android.jack.dx.io.FieldId [ tableOfContents.fieldIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.fieldIds.size ) ; ++ i ) { result [ i ] = fieldIds.readFieldId ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
private static void reportWrongTag ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.ClassDeclaration node , @ com.android.annotations.NonNull java.lang.String rightTag , @ com.android.annotations.NonNull java.lang.String className , @ com.android.annotations.NonNull java.lang.String framework ) { java.lang.String wrongTag = com.android.tools.lint.checks.RegistrationDetector.classToTag ( framework ) ; if ( wrongTag == null ) { return ; } com.android.tools.lint.detector.api.Location location = context.getNameLocation ( node ) ; java.lang.String message = java.lang.String.format ( ( "`%1$s` is %2$s but is registered " + "in the manifest as %3$s" ) , className , com.android.tools.lint.checks.RegistrationDetector.describeTag ( rightTag ) , com.android.tools.lint.checks.RegistrationDetector.describeTag ( wrongTag ) ) ; context.report ( com.android.tools.lint.checks.RegistrationDetector.ISSUE , location , message ) ; }

Target:
private static void reportWrongTag ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiClass node , @ com.android.annotations.NonNull java.lang.String rightTag , @ com.android.annotations.NonNull java.lang.String className , @ com.android.annotations.NonNull java.lang.String framework ) { java.lang.String wrongTag = com.android.tools.lint.checks.RegistrationDetector.classToTag ( framework ) ; if ( wrongTag == null ) { return ; } com.android.tools.lint.detector.api.Location location = context.getNameLocation ( node ) ; java.lang.String message = java.lang.String.format ( ( "`%1$s` is %2$s but is registered " + "in the manifest as %3$s" ) , className , com.android.tools.lint.checks.RegistrationDetector.describeTag ( rightTag ) , com.android.tools.lint.checks.RegistrationDetector.describeTag ( wrongTag ) ) ; context.report ( com.android.tools.lint.checks.RegistrationDetector.ISSUE , node , location , message ) ; }
Source:
public java.math.BigInteger get ( java.lang.String name ) throws java.io.IOException { if ( name.equalsIgnoreCase ( sun.security.x509.CRLNumberExtension.NUMBER ) ) { if ( ( crlNumber ) == null ) return null ; else return crlNumber ; } else { throw new java.io.IOException ( ( ( ( "Attribute name not recognized by" + " CertAttrSet:" ) + ( extensionName ) ) + "." ) ) ; } }

Target:
public java.math.BigInteger get ( java.lang.String name ) throws java.io.IOException { if ( name.equalsIgnoreCase ( sun.security.x509.CRLNumberExtension.NUMBER ) ) { return crlNumber ; } else { throw new java.io.IOException ( ( ( ( "Attribute name not recognized by" + " CertAttrSet:" ) + ( extensionName ) ) + '.' ) ) ; } }
Source:
public void TestThai ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { new android.icu.dev.test.translit.RoundTripTest.Test ( "Latin-Thai" ) . test ( "[a-zA-Złọæıɨˌ]" , "[ก-ฺเ-๛]" , "[a-zA-Złọæıɨʹˌ]" , null , this , new android.icu.dev.test.translit.RoundTripTest.LegalThai ( ) ) ; } else { new android.icu.dev.test.translit.RoundTripTest.Test ( "Latin-Thai" ) . test ( "[a-zA-Złọæıɨˌ]" , "[ก-ฺเ-๛]" , "[a-zA-Złọæıɨʹˌ]" , "[๏]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalThai ( ) ) ; } showElapsed ( start , "TestThai" ) ; }

Target:
public void TestThai ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-Thai" ) . test ( "[a-zA-Złọæıɨˌ]" , "[ก-ฺเ-๛]" , "[a-zA-Złọæıɨʹˌ]" , null , this , new android.icu.dev.test.translit.RoundTripTest.LegalThai ( ) ) ; } else { new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-Thai" ) . test ( "[a-zA-Złọæıɨˌ]" , "[ก-ฺเ-๛]" , "[a-zA-Złọæıɨʹˌ]" , "[๏]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalThai ( ) ) ; } showElapsed ( start , "TestThai" ) ; }
Source:
public boolean waitFor ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( lock.isHeldByCurrentThread ( ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return waitInterruptibly ( guard , unit.toNanos ( time ) , true ) ; }

Target:
public boolean waitFor ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long timeoutNanos = unit.toNanos ( time ) ; if ( ! ( ( ( guard.monitor ) == ( this ) ) & ( lock.isHeldByCurrentThread ( ) ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return ( guard.isSatisfied ( ) ) || ( awaitNanos ( guard , timeoutNanos , true ) ) ; }
Source:
public com.android.jack.load.PackageLoader getLoaderForSubPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { for ( com.android.sched.vfs.InputVElement sub : packageVDir.list ( ) ) { if ( ( sub.isVDir ( ) ) && ( sub.getName ( ) . equals ( simpleName ) ) ) { return new com.android.jack.jayce.JaycePackageLoader ( inputJackLibrary , ( ( com.android.sched.vfs.InputVDir ) ( sub ) ) , lookup , defaultLoadLevel ) ; } } throw new com.android.jack.ir.ast.JPackageLookupException ( simpleName , loading ) ; }

Target:
public java.util.Collection < java.lang.String > getSubClassNames ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading ) { return collections.getUnmodifiableCollection ( jayceFileCache.keySet ( ) ) ; }
Source:
public void logVerbose ( java.lang.String log ) { synchronized ( mLogText ) { mLogText.append ( "=> " ) . append ( log ) ; } }

Target:
public void logVerbose ( java.lang.String log ) { if ( acceptLog ( log ) ) { if ( ( mLog ) != null ) { mLog.printf ( " %1$s" , log ) ; } else { synchronized ( mLogText ) { mLogText.append ( " " ) . append ( log ) ; } } } }
Source:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > referencedElement = attribute.getOwnerElement ( ) . getDocument ( ) . getByTypeAndKey ( referencedType , value ) ; if ( ! ( referencedElement.isPresent ( ) ) ) { mergingReport.addError ( java.lang.String.format ( ( "Referenced element %1$s=%2$s, in element %3$s declared at %4$s " + "does not exist" ) , attribute.getName ( ) , value , attribute.getOwnerElement ( ) . getId ( ) , attribute.printPosition ( ) ) ) ; return false ; } return true ; }

Target:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > referencedElement = attribute.getOwnerElement ( ) . getDocument ( ) . getByTypeAndKey ( referencedType , value ) ; if ( ! ( referencedElement.isPresent ( ) ) ) { attribute.addMessage ( mergingReport , MergingReport.Record.Severity.ERROR , java.lang.String.format ( ( "Referenced element %1$s=%2$s, in element %3$s declared at %4$s " + "does not exist" ) , attribute.getName ( ) , value , attribute.getOwnerElement ( ) . getId ( ) , attribute.printPosition ( ) ) ) ; return false ; } return true ; }
Source:
public boolean connectAudio ( ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { return mService.connectAudio ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }

Target:
public boolean isAudioOn ( ) { if ( android.bluetooth.BluetoothHeadset.VDBG ) android.bluetooth.BluetoothHeadset.log ( "isAudioOn()" ) ; final android.bluetooth.IBluetoothHeadset service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.isAudioOn ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } if ( service == null ) android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; return false ; }
Source:
private java.util.Set initializedSuperClasses ( proguard.optimize.info.Clazz clazz ) { java.util.Set set = new java.util.HashSet ( ) ; clazz.hierarchyAccept ( true , true , true , false , new proguard.optimize.info.StaticInitializerContainingClassFilter ( new proguard.optimize.info.NamedMethodVisitor ( ClassConstants.INTERNAL_METHOD_NAME_CLINIT , ClassConstants.INTERNAL_METHOD_TYPE_CLINIT , new proguard.optimize.info.SideEffectMethodFilter ( new proguard.optimize.info.MemberToClassVisitor ( new proguard.optimize.info.ClassCollector ( set ) ) ) ) ) ) ; return set ; }

Target:
private java.util.Set initializedSuperClasses ( proguard.optimize.info.Clazz clazz ) { java.util.Set set = new java.util.HashSet ( ) ; clazz.hierarchyAccept ( true , true , true , false , new proguard.optimize.info.StaticInitializerContainingClassFilter ( new proguard.optimize.info.NamedMethodVisitor ( ClassConstants.METHOD_NAME_CLINIT , ClassConstants.METHOD_TYPE_CLINIT , new proguard.optimize.info.SideEffectMethodFilter ( new proguard.optimize.info.MemberToClassVisitor ( new proguard.optimize.info.ClassCollector ( set ) ) ) ) ) ) ; return set ; }
Source:
public java.util.Collection < com.android.tools.perflib.heap.Heap > getHeaps ( ) { return mHeaps.values ( ) ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( int id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( ( mHeaps.get ( i ) . getId ( ) ) == id ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
public boolean clearNetworkConnectChoice ( int networkId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Clear network connect choice for " + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( null ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( NetworkSelectionStatus.INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP ) ; return true ; }

Target:
public boolean clearNetworkConnectChoice ( int networkId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Clear network connect choice for " + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( null ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( NetworkSelectionStatus.INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP ) ; return true ; }
Source:
private boolean matchesPossibleNumberAndNationalNumber ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { return ( matcherApi.matchesPossibleNumber ( number , numberDesc ) ) && ( matcherApi.matchesNationalNumber ( number , numberDesc , false ) ) ; }

Target:
private boolean matchesPossibleNumberAndNationalNumber ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { if ( ( ( numberDesc.getPossibleLengthCount ( ) ) > 0 ) && ( ! ( numberDesc.getPossibleLengthList ( ) . contains ( number.length ( ) ) ) ) ) { return false ; } return matcherApi.matchesNationalNumber ( number , numberDesc , false ) ; }
Source:
protected void hyperlinkActivated ( javax.swing.event.HyperlinkEvent e ) { if ( ( e.getURL ( ) ) == null ) { myProperties.setValue ( ignoreKey , "true" ) ; } else { super . hyperlinkActivated ( e ) ; } }

Target:
protected void hyperlinkActivated ( @ org.jetbrains.annotations.NotNull com.intellij.ide.Notification notification , @ org.jetbrains.annotations.NotNull javax.swing.event.HyperlinkEvent event ) { if ( ( event.getURL ( ) ) == null ) { myProperties.setValue ( ignoreKey , "true" ) ; notification.expire ( ) ; } else { super . hyperlinkActivated ( notification , event ) ; } }
Source:
public void testEfRecord ( ) throws java.lang.Exception { com.android.internal.telephony.gsm.SmsMessage sms ; java.lang.String s = "03029111000c9194981492631000f269206190022000a053e4534a05358bd3" + ( ( ( ( "69f05804259da0219418a40641536a110a0aea408080604028180e888462c1" + "50341c0f484432a1542c174c46b3e1743c9f9068442a994ea8946ac56ab95e" ) + "b0986c46abd96eb89c6ec7ebf97ec0a070482c1a8fc8a472c96c3a9fd0a874" ) + "4aad5aafd8ac76cbed7abfe0b0784c2e9bcfe8b47acd6ebbdff0b87c4eafdb" ) + "eff8bc7ecfeffbffffffffffffffffffffffffffff" ) ; byte [ ] data = com.android.internal.telephony.IccUtils.hexStringToBytes ( s ) ; sms = com.android.internal.telephony.gsm.SmsMessage.createFromEfRecord ( 1 , data ) ; assertNotNull ( sms.getMessageBody ( ) ) ; }

Target:
public void testEfRecord ( ) throws java.lang.Exception { com.android.internal.telephony.gsm.SmsMessage sms ; java.lang.String s = "03029111000c9194981492631000f269206190022000a053e4534a05358bd3" + ( ( ( ( "69f05804259da0219418a40641536a110a0aea408080604028180e888462c1" + "50341c0f484432a1542c174c46b3e1743c9f9068442a994ea8946ac56ab95e" ) + "b0986c46abd96eb89c6ec7ebf97ec0a070482c1a8fc8a472c96c3a9fd0a874" ) + "4aad5aafd8ac76cbed7abfe0b0784c2e9bcfe8b47acd6ebbdff0b87c4eafdb" ) + "eff8bc7ecfeffbffffffffffffffffffffffffffff" ) ; byte [ ] data = com.android.internal.telephony.uicc.IccUtils.hexStringToBytes ( s ) ; sms = com.android.internal.telephony.gsm.SmsMessage.createFromEfRecord ( 1 , data ) ; assertNotNull ( sms.getMessageBody ( ) ) ; }
Source:
public void testNullValue ( ) throws org.json.JSONException { org.json.JSONObject object = new org.json.JSONObject ( ) ; object.put ( "foo" , JSONObject.NULL ) ; object.put ( "bar" , null ) ; assertTrue ( object.has ( "foo" ) ) ; assertFalse ( object.has ( "bar" ) ) ; assertTrue ( object.isNull ( "foo" ) ) ; assertTrue ( object.isNull ( "bar" ) ) ; }

Target:
public void testNullValue ( ) throws org.json.JSONException { org.json.JSONObject object = new org.json.JSONObject ( ) ; object.put ( "foo" , JSONObject.NULL ) ; object.put ( "bar" , ( ( java.util.Collection ) ( null ) ) ) ; assertTrue ( object.has ( "foo" ) ) ; assertFalse ( object.has ( "bar" ) ) ; assertTrue ( object.isNull ( "foo" ) ) ; assertTrue ( object.isNull ( "bar" ) ) ; }
Source:
public void testIsFixedLine ( ) { assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.BS_NUMBER ) ) ; assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.IT_NUMBER ) ) ; assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.GB_NUMBER ) ) ; assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER ) ) ; }

Target:
public void testIsFixedLine ( ) { assertEquals ( PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.BS_NUMBER ) ) ; assertEquals ( PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.IT_NUMBER ) ) ; assertEquals ( PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.GB_NUMBER ) ) ; assertEquals ( PhoneNumberType.FIXED_LINE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER ) ) ; }
Source:
public java.lang.String insnArgString ( com.android.jack.dx.dex.code.DalvInsn insn ) { com.android.jack.dx.rop.code.RegisterSpecList regs = com.android.jack.dx.dex.code.form.Form45cc.explicitize ( insn.getRegisters ( ) ) ; return ( ( ( ( regListString ( regs ) ) + ", " ) + ( ( ( com.android.jack.dx.dex.code.DualCstInsn ) ( insn ) ) . getFirstConstant ( ) . toHuman ( ) ) ) + ", " ) + ( ( ( com.android.jack.dx.dex.code.DualCstInsn ) ( insn ) ) . getSecondConstant ( ) . toHuman ( ) ) ; }

Target:
public java.lang.String insnArgString ( @ javax.annotation.Nonnull com.android.jack.dx.dex.code.DalvInsn insn ) { com.android.jack.dx.rop.code.RegisterSpecList regs = com.android.jack.dx.dex.code.form.Form45cc.explicitize ( insn.getRegisters ( ) ) ; return ( ( regListString ( regs ) ) + ", " ) + ( cstString ( ( ( com.android.jack.dx.dex.code.DualCstInsn ) ( insn ) ) ) ) ; }
Source:
public static com.android.dialer.historyitemactions.IntentModule newCarrierVideoCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . setIsVideoCall ( true ) ) , R.string.video_call , R.drawable.quantum_ic_videocam_vd_white_24 ) ; }

Target:
public static com.android.dialer.historyitemactions.IntentModule newCallModule ( android.content.Context context , com.android.dialer.callintent.CallIntentBuilder callIntentBuilder ) { @ android.support.annotation.StringRes int text ; @ android.support.annotation.DrawableRes int image ; if ( callIntentBuilder.isVideoCall ( ) ) { text = R.string.video_call ; image = R.drawable.quantum_ic_videocam_vd_white_24 ; } else { text = R.string.voice_call ; image = R.drawable.quantum_ic_call_white_24 ; } return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , callIntentBuilder ) , text , image ) ; }
Source:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > metrics ) { int notExecuted = ( mTotalTestsInModule ) - ( mCurrentTestNum ) ; java.lang.String status = ( notExecuted > 0 ) ? "failed" : "completed" ; logMessage ( "%s %s in %s. %d passed, %d failed, %d not executed" , mModuleId , status , com.android.tradefed.util.TimeUtil.formatElapsedTime ( elapsedTime ) , mPassedTests , mFailedTests , notExecuted ) ; }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > metrics ) { mNotExecutedTests = java.lang.Math.max ( ( ( mTotalTestsInModule ) - ( mCurrentTestNum ) ) , 0 ) ; java.lang.String status = ( ( mNotExecutedTests ) > 0 ) ? "failed" : "completed" ; logMessage ( "%s %s in %s. %d passed, %d failed, %d not executed" , mModuleId , status , com.android.tradefed.util.TimeUtil.formatElapsedTime ( elapsedTime ) , mPassedTests , mFailedTests , mNotExecutedTests ) ; }
Source:
private java.lang.String getRealCompilerFilter ( android.content.pm.ApplicationInfo info , java.lang.String targetCompilerFilter , boolean isUsedByOtherApps ) { int flags = info.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return dalvik.system.DexFile.getSafeModeCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && isUsedByOtherApps ) { return dalvik.system.DexFile.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } return targetCompilerFilter ; }

Target:
private java.lang.String getRealCompilerFilter ( android.content.pm.ApplicationInfo info , java.lang.String targetCompilerFilter , boolean isUsedByOtherApps ) { int flags = info.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return dalvik.system.DexFile.getSafeModeCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && isUsedByOtherApps ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getCompilerFilterForReason ( PackageManagerService.REASON_SHARED ) ; } return targetCompilerFilter ; }
Source:
public void installPackage ( java.lang.String originPath , android.content.pm.IPackageInstallObserver2 observer , int installFlags , java.lang.String installerPackageName , android.content.pm.VerificationParams verificationParams , java.lang.String packageAbiOverride ) { installPackageAsUser ( originPath , observer , installFlags , installerPackageName , verificationParams , packageAbiOverride , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
private void updatePermissionsLPw ( android.content.pm.PackageParser.Package pkg , int flags ) { updatePermissionsLPw ( pkg.packageName , pkg , flags ) ; final int childCount = ( ( pkg.childPackages ) != null ) ? pkg.childPackages.size ( ) : 0 ; for ( int i = 0 ; i < childCount ; i ++ ) { android.content.pm.PackageParser.Package childPkg = pkg.childPackages.get ( i ) ; updatePermissionsLPw ( childPkg.packageName , childPkg , flags ) ; } }
Source:
public void testSendUuidIntent ( ) { com.android.bluetooth.btservice.RemoteDevices remoteDevices = new com.android.bluetooth.btservice.RemoteDevices ( mAdapterService ) ; remoteDevices.updateUuids ( mDevice1 ) ; android.os.Looper.myLooper ( ) . quitSafely ( ) ; android.os.Looper.loop ( ) ; org.mockito.Mockito.verify ( mAdapterService ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void testSendUuidIntent ( ) { mRemoteDevices.updateUuids ( mDevice1 ) ; android.os.Looper.myLooper ( ) . quitSafely ( ) ; android.os.Looper.loop ( ) ; org.mockito.Mockito.verify ( mAdapterService ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }
Source:
protected com.android.sdkuilib.internal.repository.core.PackageLoader getPackageLoader ( boolean useLocalCache ) { com.android.sdklib.internal.repository.DownloadCache dc = mSwtUpdaterData.getDownloadCache ( ) ; assert dc instanceof com.android.sdkuilib.internal.repository.MockDownloadCache ; if ( dc instanceof com.android.sdkuilib.internal.repository.MockDownloadCache ) { ( ( com.android.sdkuilib.internal.repository.MockDownloadCache ) ( dc ) ) . overrideStrategy ( ( useLocalCache ? com.android.sdklib.internal.repository.DownloadCache.Strategy.ONLY_CACHE : null ) ) ; } return mSwtUpdaterData.getPackageLoader ( ) ; }

Target:
protected com.android.sdklib.internal.repository.updater.PackageLoader getPackageLoader ( boolean useLocalCache ) { com.android.sdklib.internal.repository.DownloadCache dc = mSwtUpdaterData.getDownloadCache ( ) ; assert dc instanceof com.android.sdklib.internal.repository.MockDownloadCache ; if ( dc instanceof com.android.sdklib.internal.repository.MockDownloadCache ) { ( ( com.android.sdklib.internal.repository.MockDownloadCache ) ( dc ) ) . overrideStrategy ( ( useLocalCache ? com.android.sdklib.internal.repository.DownloadCache.Strategy.ONLY_CACHE : null ) ) ; } return mSwtUpdaterData.getPackageLoader ( ) ; }
Source:
public static void maybeAddModuleForCopyingNumber ( android.content.Context context , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules , java.lang.String originalNumber ) { if ( android.text.TextUtils.isEmpty ( originalNumber ) ) { return ; } modules.add ( new com.android.dialer.contactactions.ContactActionModule ( ) { @ java.lang.Override public int getStringId ( ) { return R.string.copy_number ; } @ java.lang.Override public int getDrawableId ( ) { return R.drawable.quantum_ic_content_copy_vd_theme_24 ; } @ java.lang.Override public boolean onClick ( ) { com.android.dialer.clipboard.ClipboardUtils.copyText ( context , null , originalNumber , true ) ; return false ; } } ) ; }

Target:
public static void maybeAddModuleForCopyingNumber ( android.content.Context context , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules , java.lang.String normalizedNumber ) { if ( android.text.TextUtils.isEmpty ( normalizedNumber ) ) { return ; } modules.add ( new com.android.dialer.contactactions.ContactActionModule ( ) { @ java.lang.Override public int getStringId ( ) { return R.string.copy_number ; } @ java.lang.Override public int getDrawableId ( ) { return R.drawable.quantum_ic_content_copy_vd_theme_24 ; } @ java.lang.Override public boolean onClick ( ) { com.android.dialer.clipboard.ClipboardUtils.copyText ( context , null , normalizedNumber , true ) ; return false ; } } ) ; }
Source:
public void testGetExampleShortNumberForCost ( ) { assertEquals ( "3010" , shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.TOLL_FREE ) ) ; assertEquals ( "1023" , shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.STANDARD_RATE ) ) ; assertEquals ( "42000" , shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.PREMIUM_RATE ) ) ; assertEquals ( "" , shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.UNKNOWN_COST ) ) ; }

Target:
public void testGetExampleShortNumberForCost ( ) { assertEquals ( "3010" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.TOLL_FREE ) ) ; assertEquals ( "1023" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.STANDARD_RATE ) ) ; assertEquals ( "42000" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.PREMIUM_RATE ) ) ; assertEquals ( "" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.UNKNOWN_COST ) ) ; }
Source:
public void onViewDetachedFromWindow ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( ( ( "onViewDetachedFromWindow: " + view ) + " mServedView=" ) + ( mServedView ) ) + " hasWindowFocus=" ) + ( view.hasWindowFocus ( ) ) ) ) ; if ( ( ( mServedView ) == view ) && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } }

Target:
public void onViewDetachedFromWindow ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( "onViewDetachedFromWindow: view=" + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( view ) ) ) + " mServedView=" ) + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( mServedView ) ) ) ) ; if ( ( mServedView ) == view ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } }
Source:
public void testVFE4 ( ) { try { new dot.junit.opcodes.invoke_direct.d.T_invoke_direct_6 ( ) ; fail ( "expected NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodError t ) { } }

Target:
public void testVFE15 ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "dot.junit.opcodes.invoke_direct.d.T_invoke_direct_11" ) ; java.lang.Object o = c.newInstance ( ) ; java.lang.reflect.Method m = c.getDeclaredMethod ( "run" ) ; m.invoke ( o ) ; fail ( "expected an invocation target exception with an incompatible class change error" ) ; } catch ( java.lang.reflect.InvocationTargetException ite ) { if ( ! ( ( ite.getCause ( ) ) instanceof java.lang.IncompatibleClassChangeError ) ) { fail ( "expected an incompatible class change error" ) ; } } catch ( java.lang.Throwable t ) { throw new java.lang.RuntimeException ( t ) ; } }
Source:
protected void onSelected ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_APP_ERROR ) ; android.app.ApplicationErrorReport report = new android.app.ApplicationErrorReport ( ) ; report.packageName = report.processName = getContext ( ) . getPackageName ( ) ; report.time = java.lang.System.currentTimeMillis ( ) ; report.type = android.app.ApplicationErrorReport.TYPE_NONE ; intent.putExtra ( Intent.EXTRA_BUG_REPORT , report ) ; startActivityForResult ( intent , 0 ) ; }

Target:
protected void onSelected ( ) { getMainActivity ( ) . getOverlayManager ( ) . showRecentlyWatchedDialog ( ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { stopUpdateLocationThread ( ) ; if ( ( mProviders ) != null ) { for ( java.lang.String provider : mProviders ) { try { mLocationManager.clearTestProviderEnabled ( provider ) ; mLocationManager.removeTestProvider ( provider ) ; } catch ( java.lang.IllegalArgumentException e ) { } } } if ( ( mOnUiThread ) != null ) { mOnUiThread.cleanUp ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { stopUpdateLocationThread ( ) ; if ( ( mProviders ) != null ) { for ( java.lang.String provider : mProviders ) { try { mLocationManager.clearTestProviderEnabled ( provider ) ; mLocationManager.removeTestProvider ( provider ) ; } catch ( java.lang.IllegalArgumentException e ) { } } if ( mAddedTestLocationProvider ) { removeTestLocationProvider ( ) ; } } if ( ( mOnUiThread ) != null ) { mOnUiThread.cleanUp ( ) ; } super . tearDown ( ) ; }
Source:
private void enforceDefaultDialer ( java.lang.String callingPackage ) { android.telecom.TelecomManager telecomManager = mPhone.getContext ( ) . getSystemService ( android.telecom.TelecomManager.class ) ; if ( ! ( callingPackage.equals ( telecomManager.getDefaultDialerPackage ( ) ) ) ) { throw new java.lang.SecurityException ( "Caller not default dialer." ) ; } }

Target:
private void enforceVisualVoicemailPackage ( java.lang.String callingPackage , int subId ) { java.lang.String vvmPackage = com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; if ( ! ( callingPackage.equals ( vvmPackage ) ) ) { throw new java.lang.SecurityException ( ( ( "Caller not current active visual voicemail package[" + vvmPackage ) + "]" ) ) ; } }
Source:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { com.android.ims.internal.IImsMMTelFeature f = mTestImsServiceBinder.createMMTelFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , mTestCallback ) ; f.isConnected ( 0 , 0 ) ; junit.framework.Assert.assertTrue ( mTestImsService.mTestMMTelFeature.isConnectedCalled ) ; }

Target:
public void testRemoveMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createMmTelFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , mTestCallback ) ; mTestImsServiceBinder.removeImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.FEATURE_MMTEL , mTestCallback ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMmTelFeature ) . onFeatureRemoved ( ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMmTelFeature ) . removeImsFeatureStatusCallback ( mTestCallback ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getFeatures ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertNull ( features.get ( ImsFeature.FEATURE_MMTEL ) ) ; }
Source:
public void test_EmptyList_replaceAll ( ) { java.util.Collections.emptyList ( ) . replaceAll ( ( k ) -> 1 ) ; try { java.util.Collections.emptyList ( ) . replaceAll ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_unmodifiableList_replaceAll ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public void testConfigurationProgress ( java.lang.String configurationName , java.lang.String progressMessage ) { myConfiguration = configurationName ; com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.GoogleCloudTestingUtils.TEST_CONFIGURATION_PROGRESS ) ; builder.addAttribute ( "name" , configurationName ) ; builder.addAttribute ( "text" , prepareProgressString ( progressMessage ) ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }

Target:
public void testConfigurationProgress ( java.lang.String configurationName , java.lang.String progressMessage ) { myConfiguration = configurationName ; com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.CloudTestingUtils.TEST_CONFIGURATION_PROGRESS ) ; builder.addAttribute ( "name" , configurationName ) ; builder.addAttribute ( "text" , prepareProgressString ( progressMessage ) ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }
Source:
private static android.telephony.data.DataCallResponse createDataCallResponse ( ) throws java.lang.Exception { return new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , java.util.Arrays.asList ( new android.net.LinkAddress ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS ) , 0 ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; }

Target:
private static android.hardware.radio.V1_0.SetupDataCallResult createSetupDataCallResult ( ) throws java.lang.Exception { android.hardware.radio.V1_0.SetupDataCallResult result = new android.hardware.radio.V1_0.SetupDataCallResult ( ) ; result.status = 0 ; result.suggestedRetryTime = - 1 ; result.cid = 1 ; result.active = 2 ; result.type = "IP" ; result.ifname = com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME ; result.addresses = com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS ; result.dnses = com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ; result.gateways = com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ; result.pcscf = com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ; result.mtu = 1440 ; return result ; }
Source:
public void setActiveUser ( @ org.jetbrains.annotations.NotNull java.lang.String userEmail ) throws java.lang.IllegalArgumentException { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { throw new java.lang.IllegalArgumentException ( ( userEmail + " is not a logged in user." ) ) ; } if ( ( activeUser ) != null ) { activeUser.setActive ( false ) ; } activeUser = allUsers.get ( userEmail ) ; activeUser.setActive ( true ) ; com.google.gct.login.GoogleLoginPrefs.saveActiveUser ( userEmail ) ; } }

Target:
public void setActiveUser ( @ org.jetbrains.annotations.NotNull java.lang.String userEmail ) throws java.lang.IllegalArgumentException { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { throw new java.lang.IllegalArgumentException ( ( userEmail + " is not a logged in user." ) ) ; } if ( ( activeUser ) != null ) { activeUser.setActive ( false ) ; } activeUser = allUsers.get ( userEmail ) ; activeUser.setActive ( true ) ; com.google.gct.login.GoogleLoginPrefs.saveActiveUser ( userEmail ) ; notifyLoginStatusChange ( ) ; } }