auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testCreate ( ) { java.util.Properties props = createProps ( ) ; com.android.sdklib.internal.repository.packages.MockExtraPackage p = new com.android.sdklib.internal.repository.packages.MockExtraPackage ( null , props , "vendor" , "the_path" , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }

Target:
public void testCreate ( ) { java.util.Properties props = createExpectedProps ( ) ; com.android.sdklib.internal.repository.packages.MockExtraPackage p = new com.android.sdklib.internal.repository.packages.MockExtraPackage ( null , props , "vendor" , "the_path" , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , LOCAL_ARCHIVE_PATH ) ; testCreatedPackage ( p ) ; }
Source:
public void ropRegManager004 ( ) { com.android.jack.backend.dex.rop.RopRegisterManager rrm = new com.android.jack.backend.dex.rop.RopRegisterManager ( true , false ) ; com.android.jack.ir.sourceinfo.SourceInfo srcPos = com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ; com.android.jack.ir.ast.JParameter parameter = new com.android.jack.ir.ast.JParameter ( srcPos , "" , JPrimitiveTypeEnum.INT.getType ( ) , com.android.jack.ir.ast.JModifier.DEFAULT , null ) ; com.android.jack.ir.ast.JParameterRef ref = new com.android.jack.ir.ast.JParameterRef ( srcPos , parameter ) ; try { rrm.getRegisterSpec ( ref ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.AssertionError e ) { } }

Target:
public void ropRegManager004 ( ) { com.android.jack.backend.dex.rop.RopRegisterManager rrm = new com.android.jack.backend.dex.rop.RopRegisterManager ( true , false ) ; com.android.jack.ir.sourceinfo.SourceInfo srcPos = com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ; com.android.jack.ir.ast.JParameter parameter = new com.android.jack.ir.ast.JParameter ( srcPos , "" , JPrimitiveTypeEnum.INT.getType ( ) , com.android.jack.ir.ast.JModifier.DEFAULT , null ) ; com.android.jack.ir.ast.JParameterRef ref = parameter.makeRef ( srcPos ) ; try { rrm.getRegisterSpec ( ref ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.AssertionError e ) { } }
Source:
public java.lang.String getInstrumentationRunner ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( ( mType ) == ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { config = getTestedConfig ( ) ; } java.lang.String runner = config.mMergedFlavor.getTestInstrumentationRunner ( ) ; return runner != null ? runner : com.android.builder.core.VariantConfiguration.DEFAULT_TEST_RUNNER ; }

Target:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute sa = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ) ( obj ) ) ; return ( ( mName.equals ( sa.mName ) ) && ( mUri.equals ( sa.mUri ) ) ) && ( mValue.equals ( mValue ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute sa = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ) ( obj ) ) ; return ( ( mName.equals ( sa.mName ) ) && ( mUri.equals ( sa.mUri ) ) ) && ( mValue.equals ( sa.mValue ) ) ; } return false ; }
Source:
private void changeCallsState ( int old_state , int new_state ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "changeStateFromCalls old:" + old_state ) + " new: " ) + new_state ) ) ; for ( android.bluetooth.BluetoothHeadsetClientCall c : mCalls.values ( ) ) { if ( ( c.getState ( ) ) == old_state ) { setCallState ( c , new_state ) ; } } }

Target:
private void updateCallSetupIndicator ( int callSetup ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "updateCallSetupIndicator " + callSetup ) + " " ) + ( mPendingAction.first ) ) ) ; } mIndicatorCallSetup = callSetup ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.QUERY_CURRENT_CALLS ) ; }
Source:
public void testInvalidMajorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; libcore.tzdata.shared2.DistroVersion oldMajorDistroVersion = new libcore.tzdata.shared2.DistroVersion ( ( ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION ) - 1 ) , 1 , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; libcore.tzdata.shared2.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMajorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }

Target:
public void testInvalidMajorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.DistroVersion oldMajorDistroVersion = new com.android.timezone.distro.DistroVersion ( ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION ) - 1 ) , 1 , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; com.android.timezone.distro.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMajorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }
Source:
private static java.util.List < java.lang.String > getDebugJvmArguments ( ) { java.util.List < java.lang.String > jvmArguments = new java.util.ArrayList < java.lang.String > ( ) ; java.lang.String debugIntegrationTest = java.lang.System.getenv ( "DEBUG_INNER_TEST" ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( debugIntegrationTest ) ) ) { jvmArguments.add ( "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" ) ; } return jvmArguments ; }

Target:
private static java.util.List < java.lang.String > getDebugJvmArguments ( ) { java.util.List < java.lang.String > jvmArguments = new java.util.ArrayList < java.lang.String > ( ) ; jvmArguments.add ( "-XX:MaxPermSize=1024m" ) ; java.lang.String debugIntegrationTest = java.lang.System.getenv ( "DEBUG_INNER_TEST" ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( debugIntegrationTest ) ) ) { jvmArguments.add ( "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" ) ; } return jvmArguments ; }
Source:
default < T extends java.lang.annotation.Annotation > T [ ] getDeclaredAnnotationsByType ( java.lang.Class < T > annotationClass ) { return libcore.reflect.AnnotatedElements.getDeclaredAnnotationsByType ( this , annotationClass ) ; }

Target:
default < T extends java.lang.annotation.Annotation > java.lang.annotation.Annotation getDeclaredAnnotation ( java.lang.Class < T > annotationClass ) { java.util.Objects.requireNonNull ( annotationClass ) ; for ( java.lang.annotation.Annotation annotation : getDeclaredAnnotations ( ) ) { if ( annotationClass.equals ( annotation.annotationType ( ) ) ) { return annotationClass.cast ( annotation ) ; } } return null ; }
Source:
public void testModemSuggestNoRetry ( ) throws java.lang.Exception { com.android.internal.telephony.dataconnection.DataCallResponse response = new com.android.internal.telephony.dataconnection.DataCallResponse ( 0 , java.lang.Integer.MAX_VALUE , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS , 1440 ) ; android.os.AsyncResult ar = new android.os.AsyncResult ( null , response , null ) ; org.junit.Assert.assertEquals ( RetryManager.NO_RETRY , getSuggestedRetryDelay ( ar ) ) ; }

Target:
public void testModemSuggestNoRetry ( ) throws java.lang.Exception { android.telephony.data.DataCallResponse response = new android.telephony.data.DataCallResponse ( 0 , java.lang.Integer.MAX_VALUE , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , java.util.Arrays.asList ( new android.telephony.data.InterfaceAddress ( 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 ) ; android.os.AsyncResult ar = new android.os.AsyncResult ( null , response , null ) ; org.junit.Assert.assertEquals ( RetryManager.NO_RETRY , getSuggestedRetryDelay ( ar ) ) ; }
Source:
public byte [ ] convertToBytes ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String format = ap.getString ( 0 , "png" ) ; java.awt.image.BufferedImage argb = convertSnapshot ( ) ; java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; try { javax.imageio.ImageIO.write ( argb , format , os ) ; } catch ( java.io.IOException e ) { return new byte [ 0 ] ; } return os.toByteArray ( ) ; }

Target:
public boolean writeToFile ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String path = ap.getString ( 0 ) ; java.lang.String format = ap.getString ( 1 , null ) ; return impl.writeToFile ( path , format ) ; }
Source:
public void test_Constructor ( ) { java.util.Timer t = null ; try { t = new java.util.Timer ( ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; synchronized ( sync ) { try { sync.wait ( 1000 ) ; } catch ( java.lang.InterruptedException e ) { } } assertEquals ( "TimerTask.run() method not called after 200ms" , 1 , testTask.wasRun ( ) ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } }

Target:
public void test_Constructor ( ) { java.util.Timer t = null ; try { t = new java.util.Timer ( ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; awaitRun ( testTask ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } }
Source:
public static android.bluetooth.client.map.BluetoothMapBmessage createBmessage ( java.lang.String str ) { android.bluetooth.client.map.BluetoothMapBmessageParser p = new android.bluetooth.client.map.BluetoothMapBmessageParser ( ) ; try { p.parse ( str ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "I/O exception when parsing bMessage" , e ) ; return null ; } catch ( java.text.ParseException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "Cannot parse bMessage" , e ) ; return null ; } return p.mBmsg ; }

Target:
public static android.bluetooth.client.map.BluetoothMapBmessage createBmessage ( java.lang.String str ) { android.bluetooth.client.map.BluetoothMapBmessageParser p = new android.bluetooth.client.map.BluetoothMapBmessageParser ( ) ; if ( DBG ) { android.util.Log.d ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , ( "actual wired contents: " + str ) ) ; } try { p.parse ( str ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "I/O exception when parsing bMessage" , e ) ; return null ; } catch ( java.text.ParseException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "Cannot parse bMessage" , e ) ; return null ; } return p.mBmsg ; }
Source:
public java.util.Collection < java.io.File > doCall ( java.lang.Object it ) { java.util.List < java.io.File > proguardFiles = variantConfig.getProguardFiles ( true , java.util.Collections.singletonList ( scope.getGlobalScope ( ) . getExtension ( ) . getDefaultProguardFile ( TaskManager.DEFAULT_PROGUARD_CONFIG_FILE ) ) ) ; proguardFiles.add ( variantOutputData.processResourcesTask.getProguardOutputFile ( ) ) ; return proguardFiles ; }

Target:
private java.io.File getDefaultProguardFile ( java.lang.String name ) { java.io.File sdkDir = scope.getGlobalScope ( ) . getSdkHandler ( ) . getAndCheckSdkFolder ( ) ; return new java.io.File ( sdkDir , ( ( ( ( ( com.android.SdkConstants.FD_TOOLS ) + ( java.io.File.separatorChar ) ) + ( com.android.SdkConstants.FD_PROGUARD ) ) + ( java.io.File.separatorChar ) ) + name ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new com.ibm.icu.dev.test.rbbi.BreakIteratorTest ( ) . run ( args ) ; }

Target:
private void assertFrenchBreakBehavior ( com.ibm.icu.text.BreakIterator filteredBI , java.lang.String text ) { logln ( "Testing French behavior:" ) ; filteredBI.setText ( text ) ; assertEquals ( "6th next" , 20 , filteredBI.next ( ) ) ; assertEquals ( "6th next" , 84 , filteredBI.next ( ) ) ; filteredBI.first ( ) ; }
Source:
public long getExclusiveTime ( com.android.tools.perflib.vmtrace.ClockType clockType ) { long inclusiveTimeInCallees = ( clockType == ( ClockType.THREAD ) ) ? mInclusiveThreadTimeInCallees : mInclusiveGlobalTimeInCallees ; return ( getInclusiveTime ( clockType ) ) - inclusiveTimeInCallees ; }

Target:
public long getExclusiveTime ( com.android.tools.perflib.vmtrace.ClockType clockType , java.util.concurrent.TimeUnit units ) { long inclusiveTimeInCallees = ( clockType == ( ClockType.THREAD ) ) ? mInclusiveThreadTimeInCallees : mInclusiveGlobalTimeInCallees ; long exclusiveTime = ( getInclusiveTime ( clockType , com.android.tools.perflib.vmtrace.VmTraceData.getDefaultTimeUnits ( ) ) ) - inclusiveTimeInCallees ; return units.convert ( exclusiveTime , com.android.tools.perflib.vmtrace.VmTraceData.getDefaultTimeUnits ( ) ) ; }
Source:
public void setCarrierInfoForImsiEncryption ( int subId , java.lang.String callingPackage , android.telephony.ImsiEncryptionInfo imsiEncryptionInfo ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( checkReadPhoneState ( callingPackage , "setCarrierInfoForImsiEncryption" ) ) ) { return ; } phone.setCarrierInfoForImsiEncryption ( imsiEncryptionInfo ) ; } else { loge ( ( "setCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return ; } }

Target:
public void setCarrierInfoForImsiEncryption ( int subId , java.lang.String callingPackage , android.telephony.ImsiEncryptionInfo imsiEncryptionInfo ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "setCarrierInfoForImsiEncryption" ) ) ) { return ; } phone.setCarrierInfoForImsiEncryption ( imsiEncryptionInfo ) ; } else { loge ( ( "setCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return ; } }
Source:
public com.android.tools.lint.detector.api.Location getLocation ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Node node ) { org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model = ( ( org.eclipse.wst.sse.core.internal.provisional.IStructuredModel ) ( context.getProperty ( com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.MODEL_PROPERTY ) ) ) ; return new com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.LazyLocation ( context.file , model.getStructuredDocument ( ) , ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( node ) ) ) ; }

Target:
public com.android.tools.lint.detector.api.Location.Handle createLocationHandle ( @ com.android.annotations.NonNull final com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull final org.w3c.dom.Node node ) { org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model = ( ( org.eclipse.wst.sse.core.internal.provisional.IStructuredModel ) ( context.getProperty ( com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.MODEL_PROPERTY ) ) ) ; return new com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.LazyLocation ( context.file , model.getStructuredDocument ( ) , ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( node ) ) ) ; }
Source:
void test ( ) { com.android.cts.verifier.notifications.MockListener.MockListener.probeListenerPosted ( mContext , new com.android.cts.verifier.notifications.MockListener.MockListener.StringListResultCatcher ( ) { @ java.lang.Override public void accept ( java.util.List < java.lang.String > result ) { if ( ( result == null ) || ( ( result.size ( ) ) == 0 ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; } } ) ; delay ( ) ; }

Target:
void test ( ) { java.util.List < java.lang.String > result = new java.util.ArrayList ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . mPosted ) ; if ( ( result.size ( ) ) == 0 ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }
Source:
public void testGetCollationElementIteratorString ( ) throws java.lang.Exception { assertGetCollationElementIteratorString ( new java.util.Locale ( "es" , "" , "TRADITIONAL" ) , "cha" , 0 , 2 , 3 ) ; assertGetCollationElementIteratorString ( new java.util.Locale ( "es" , "" , "" ) , "cha" , 0 , 1 , 2 , 3 ) ; assertGetCollationElementIteratorString ( new java.util.Locale ( "de" , "DE" , "" ) , "æb" , 0 , 1 , 1 , 1 , 1 , 2 ) ; }

Target:
public void testGetCollationElementIteratorString_de_DE ( ) throws java.lang.Exception { assertGetCollationElementIteratorString ( new java.util.Locale ( "de" , "DE" , "" ) , "æb" , 0 , 1 , 1 , 1 , 1 , 2 ) ; }
Source:
public void paintControl ( org.eclipse.swt.events.PaintEvent e ) { synchronized ( this ) { e.gc.setBackground ( org.eclipse.swt.widgets.Display.getDefault ( ) . getSystemColor ( SWT.COLOR_WHITE ) ) ; e.gc.fillRectangle ( 0 , 0 , getBounds ( ) . width , getBounds ( ) . height ) ; if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { e.gc.setTransform ( transform ) ; com.android.hierarchyvieweruilib.TreeView.paintRecursive ( e.gc , tree ) ; } } }

Target:
public void mouseScrolled ( org.eclipse.swt.events.MouseEvent e ) { com.android.hierarchyviewerlib.scene.DrawableViewNode.Point zoomPoint = null ; synchronized ( this ) { if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { zoom += ( java.lang.Math.ceil ( ( ( e.count ) / 3.0 ) ) ) * 0.1 ; zoomPoint = transformPoint ( e.x , e.y ) ; } } if ( zoomPoint != null ) { model.zoomOnPoint ( zoom , zoomPoint ) ; } }
Source:
protected void onDetachedFromWindow ( ) { super . onDetachedFromWindow ( ) ; if ( ( mLayer ) != null ) { boolean success = executeHardwareAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { destroySurface ( ) ; } } ) ; if ( ! success ) { android.util.Log.w ( android.view.TextureView.LOG_TAG , ( "TextureView was not able to destroy its surface: " + ( this ) ) ) ; } } }

Target:
protected void onDetachedFromWindowInternal ( ) { destroySurface ( ) ; super . onDetachedFromWindowInternal ( ) ; }
Source:
private static java.util.Set < java.lang.String > getAddedFiles ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.util.Set < java.lang.String > > fileDependencies , @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames ) { java.util.Set < java.lang.String > addedFiles = new java.util.HashSet < java.lang.String > ( ) ; java.util.Set < java.lang.String > previousFiles = fileDependencies.keySet ( ) ; for ( java.lang.String javaFileName : javaFileNames ) { if ( ! ( previousFiles.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.FINE , "{0} was added" , javaFileName ) ; addedFiles.add ( javaFileName ) ; } } return addedFiles ; }

Target:
private static java.util.Set < java.lang.String > getAddedFiles ( @ javax.annotation.Nonnull com.android.jack.analysis.dependency.file.FileDependencies fileDependencies , @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames ) { java.util.Set < java.lang.String > addedFiles = new java.util.HashSet < java.lang.String > ( ) ; java.util.Set < java.lang.String > previousFiles = fileDependencies.getCompiledJavaFiles ( ) ; for ( java.lang.String javaFileName : javaFileNames ) { if ( ! ( previousFiles.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.FINE , "{0} was added" , javaFileName ) ; addedFiles.add ( javaFileName ) ; } } return addedFiles ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , boolean compareInstructionNumber , float instructionNumberTolerance ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , compareInstructionNumber , instructionNumberTolerance , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
public static boolean match ( com.android.ide.eclipse.adt.internal.resources.ResourceType resType , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folderType ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType [ ] array = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.mTypeToFolderMap.get ( resType ) ; if ( ( array != null ) && ( ( array.length ) > 0 ) ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType fType : array ) { if ( fType == folderType ) { return true ; } } } return false ; }

Target:
public static boolean match ( com.android.resources.ResourceType resType , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folderType ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType [ ] array = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.mTypeToFolderMap.get ( resType ) ; if ( ( array != null ) && ( ( array.length ) > 0 ) ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType fType : array ) { if ( fType == folderType ) { return true ; } } } return false ; }
Source:
public void onError ( int error ) { android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , ( "onError: " + ( java.lang.String.valueOf ( error ) ) ) ) ; mNetworkScanStatus = android.carrierapi.cts.NetworkScanApiTest.EVENT_NETWORK_SCAN_ERROR ; mErrorCode = error ; setReady ( true ) ; }

Target:
public void onError ( int error ) { android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , ( "onError: " + ( java.lang.String.valueOf ( error ) ) ) ) ; mNetworkScanStatus = android.carrierapi.cts.NetworkScanApiTest.EVENT_NETWORK_SCAN_ERROR ; mErrorCode = error ; android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , "Stop the network scan" ) ; mNetworkScan.stopScan ( ) ; setReady ( true ) ; }
Source:
private java.lang.String readEmailRecord ( int recNum ) { byte [ ] emailRec = null ; try { emailRec = mEmailFileRecord.get ( recNum ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { return null ; } java.lang.String email = com.android.internal.telephony.IccUtils.adnStringFieldToString ( emailRec , 0 , ( ( emailRec.length ) - 2 ) ) ; return email ; }

Target:
private java.lang.String readEmailRecord ( int recNum ) { byte [ ] emailRec = null ; try { emailRec = mEmailFileRecord.get ( recNum ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { return null ; } java.lang.String email = com.android.internal.telephony.uicc.IccUtils.adnStringFieldToString ( emailRec , 0 , ( ( emailRec.length ) - 2 ) ) ; return email ; }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , org.eclipse.core.resources.IProject project , com.android.ide.eclipse.adt.internal.resources.ResourceType type ) { java.util.Set < java.lang.String > existing = new java.util.HashSet < java.lang.String > ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager manager = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources = manager.getProjectResources ( project ) ; com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem [ ] resources = projectResources.getResources ( type ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem resource : resources ) { existing.add ( resource.getName ( ) ) ; } return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , org.eclipse.core.resources.IProject project , com.android.resources.ResourceType type ) { java.util.Set < java.lang.String > existing = new java.util.HashSet < java.lang.String > ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager manager = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources = manager.getProjectResources ( project ) ; com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem [ ] resources = projectResources.getResources ( type ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem resource : resources ) { existing.add ( resource.getName ( ) ) ; } return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing ) ; }
Source:
private void waitForRunningActivity ( ) { long timeoutMillis = getPoller ( ) . getTimeoutMillis ( ) ; long end = ( android.os.SystemClock.uptimeMillis ( ) ) + timeoutMillis ; while ( true ) { if ( ( com.google.android.droiddriver.util.ActivityUtils.getRunningActivity ( ) ) != null ) { return ; } long remainingMillis = end - ( android.os.SystemClock.uptimeMillis ( ) ) ; if ( remainingMillis < 0 ) { throw new com.google.android.droiddriver.exceptions.TimeoutException ( java.lang.String.format ( "Timed out after %d milliseconds waiting for foreground activity" , timeoutMillis ) ) ; } android.os.SystemClock.sleep ( java.lang.Math.min ( 250 , remainingMillis ) ) ; } }

Target:
private void waitForRunningActivity ( ) { long timeoutMillis = getPoller ( ) . getTimeoutMillis ( ) ; long end = ( android.os.SystemClock.uptimeMillis ( ) ) + timeoutMillis ; while ( true ) { if ( ( com.google.android.droiddriver.util.ActivityUtils.getRunningActivity ( ) ) != null ) { return ; } long remainingMillis = end - ( android.os.SystemClock.uptimeMillis ( ) ) ; if ( remainingMillis < 0 ) { throw new com.google.android.droiddriver.exceptions.NoRunningActivityException ( java.lang.String.format ( "Cannot find the running activity after %d milliseconds" , timeoutMillis ) ) ; } android.os.SystemClock.sleep ( java.lang.Math.min ( 250 , remainingMillis ) ) ; } }
Source:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( java.util.UUID cuid , java.util.UUID duid ) { android.bluetooth.BluetoothGattDescriptor descriptor = null ; android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( cuid ) ; if ( characteristic != null ) { descriptor = characteristic.getDescriptor ( duid ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; } } return descriptor ; }

Target:
private void writeDescriptor ( java.lang.String writeValue ) { android.bluetooth.BluetoothGattDescriptor descriptor = getDescriptor ( ) ; if ( descriptor == null ) return ; descriptor.setValue ( writeValue.getBytes ( ) ) ; mBluetoothGatt.writeDescriptor ( descriptor ) ; }
Source:
com.google.common.collect.ImmutableList < V > createAsList ( ) { final com.google.common.collect.ImmutableList < java.util.Map.Entry < K , V > > entryList = map ( ) . entrySet ( ) . asList ( ) ; return new com.google.common.collect.ImmutableAsList < V > ( ) { @ java.lang.Override public V get ( int index ) { return entryList.get ( index ) . getValue ( ) ; } @ java.lang.Override com.google.common.collect.ImmutableCollection < V > delegateCollection ( ) { return com.google.common.collect.ImmutableMapValues.this ; } } ; }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object object ) { return ( object != null ) && ( com.google.common.collect.Iterators.contains ( iterator ( ) , object ) ) ; }
Source:
public void testSaveProperties ( ) { java.util.Properties props = createProps ( ) ; com.android.sdklib.internal.repository.packages.PlatformPackage p = createPlatformPackage ( props ) ; java.util.Properties props2 = new java.util.Properties ( ) ; p.saveProperties ( props2 ) ; assertEquals ( props2.toString ( ) , props.toString ( ) ) ; assertEquals ( props2 , props ) ; }

Target:
public void testInstallId ( ) { java.util.Properties props = createExpectedProps ( ) ; com.android.sdklib.internal.repository.packages.PlatformPackage p = createPlatformPackage ( props ) ; assertEquals ( "android-5" , p.installId ( ) ) ; }
Source:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > successfulAsList ( java.lang.Iterable < ? extends com.google.common.util.concurrent.ListenableFuture < ? extends V > > futures ) { return new com.google.common.util.concurrent.Futures.ListFuture < V > ( com.google.common.collect.ImmutableList.copyOf ( futures ) , false , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > allAsList ( com.google.common.util.concurrent.ListenableFuture < ? extends V > ... futures ) { return com.google.common.util.concurrent.Futures.listFuture ( com.google.common.collect.ImmutableList.copyOf ( futures ) , true , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; }
Source:
public void onSpeakEasyCall ( ) { com.android.dialer.common.LogUtil.enterBlock ( "AnswerScreenPresenter.onSpeakEasyCall" ) ; com.android.incallui.call.DialerCall incomingCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( incomingCall == null ) { com.android.dialer.common.LogUtil.i ( "AnswerScreenPresenter.onSpeakEasyCall" , "incomingCall == null" ) ; return ; } incomingCall.setIsSpeakEasyCall ( true ) ; incomingCall.answer ( ) ; }

Target:
public void onSpeakEasyCall ( ) { com.android.dialer.common.LogUtil.enterBlock ( "AnswerScreenPresenter.onSpeakEasyCall" ) ; com.android.incallui.call.DialerCall incomingCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( incomingCall == null ) { com.android.dialer.common.LogUtil.i ( "AnswerScreenPresenter.onSpeakEasyCall" , "incomingCall == null" ) ; return ; } incomingCall.setIsSpeakEasyCall ( true ) ; com.android.incallui.InCallActivity inCallActivity = ( ( com.android.incallui.InCallActivity ) ( answerScreen.getAnswerScreenFragment ( ) . getActivity ( ) ) ) ; inCallActivity.onPrimaryCallStateChanged ( ) ; }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "delete voicemailUri %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "speaker request for voicemailUri: %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }
Source:
public int getVoiceActivationState ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.getVoiceActivationState ( subId , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; }

Target:
public java.lang.String getNai ( ) { return getNaiBySubscriberId ( getSubId ( ) ) ; }
Source:
public void onImpressionLoggingNeeded ( com.android.dialer.logging.DialerImpression.Type impressionType ) { com.android.dialer.logging.Logger.get ( mContext ) . logCallImpression ( impressionType , getUniqueCallId ( ) , getTimeAddedMs ( ) ) ; }

Target:
public void onImpressionLoggingNeeded ( com.android.dialer.logging.DialerImpression.Type impressionType ) { com.android.dialer.logging.Logger.get ( mContext ) . logCallImpression ( impressionType , getUniqueCallId ( ) , getTimeAddedMs ( ) ) ; if ( impressionType == ( com.android.dialer.logging.ContactLookupResult.Type.LIGHTBRINGER_UPGRADE_REQUESTED ) ) { if ( ( getLogState ( ) . contactLookupResult ) == ( com.android.dialer.logging.ContactLookupResult.Type.NOT_FOUND ) ) { com.android.dialer.logging.Logger.get ( mContext ) . logCallImpression ( DialerImpression.Type.LIGHTBRINGER_NON_CONTACT_UPGRADE_REQUESTED , getUniqueCallId ( ) , getTimeAddedMs ( ) ) ; } } }
Source:
protected java.util.Properties createProps ( ) { java.util.Properties props = super . createProps ( ) ; props.setProperty ( PkgProps.VERSION_API_LEVEL , "5" ) ; props.setProperty ( PkgProps.SYS_IMG_ABI , "armeabi-v7a" ) ; return props ; }

Target:
protected java.util.Properties createExpectedProps ( ) { java.util.Properties props = super . createExpectedProps ( ) ; props.setProperty ( PkgProps.VERSION_API_LEVEL , "5" ) ; props.setProperty ( PkgProps.SYS_IMG_ABI , "armeabi-v7a" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_ID , "default" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_DISPLAY , "Default" ) ; return props ; }
Source:
private com.android.server.am.ActivityRecord getWaitingHistoryRecordLocked ( ) { com.android.server.am.ActivityRecord r = this ; if ( r.waitingVisible ) { final com.android.server.am.ActivityStack stack = mStackSupervisor.getFocusedStack ( ) ; r = stack.mResumedActivity ; if ( r == null ) { r = stack.mPausingActivity ; } if ( r == null ) { r = this ; } } return r ; }

Target:
private com.android.server.am.ActivityRecord getWaitingHistoryRecordLocked ( ) { if ( ( waitingVisible ) || ( stopped ) ) { final com.android.server.am.ActivityStack stack = mStackSupervisor.getFocusedStack ( ) ; com.android.server.am.ActivityRecord r = stack.mResumedActivity ; if ( r == null ) { r = stack.mPausingActivity ; } if ( r != null ) { return r ; } } return this ; }
Source:
public java.lang.String ipSecOpenUdpEncapsulationSocket ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "port" ) java.lang.Integer port ) { android.net.IpSecManager.UdpEncapsulationSocket udpEncapSocket = null ; if ( port == null ) { udpEncapSocket = ipSecOpenUdpEncapSocket ( ) ; } else { udpEncapSocket = ipSecOpenUdpEncapSocket ( port.intValue ( ) ) ; } if ( udpEncapSocket == null ) return null ; java.lang.String id = getUdpEncapSockId ( udpEncapSocket ) ; com.googlecode.android_scripting.facade.IpSecManagerFacade.sUdpEncapHashMap.put ( id , udpEncapSocket ) ; return id ; }

Target:
public java.lang.String ipSecOpenUdpEncapsulationSocket ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "port" ) java.lang.Integer port ) { android.net.IpSecManager.UdpEncapsulationSocket udpEncapSocket = null ; if ( port == null ) { udpEncapSocket = openUdpEncapSocket ( ) ; } else { udpEncapSocket = openUdpEncapSocket ( port.intValue ( ) ) ; } if ( udpEncapSocket == null ) return null ; java.lang.String id = getUdpEncapSockId ( udpEncapSocket ) ; com.googlecode.android_scripting.facade.IpSecManagerFacade.sUdpEncapHashMap.put ( id , udpEncapSocket ) ; return id ; }
Source:
public void cleanupAndRelease ( ) throws android.os.RemoteException { if ( ( mBinder ) == null ) { return ; } mBinder.unlinkToDeath ( this , 0 ) ; mBinder = null ; mResource.cleanupResourceArrays ( ) ; ( mRefCount ) -- ; releaseIfUnreferencedRecursively ( ) ; }

Target:
public void releaseReference ( ) throws android.os.RemoteException { ( mRefCount ) -- ; if ( ( mRefCount ) > 0 ) { return ; } else if ( ( mRefCount ) < 0 ) { throw new java.lang.IllegalStateException ( "Invalid operation - resource has already been released." ) ; } mResource.freeUnderlyingResources ( ) ; for ( com.android.server.IpSecService.RefcountedResource < ? extends com.android.server.IpSecService.IResource > child : mChildren ) { child.releaseReference ( ) ; } ( mRefCount ) -- ; }
Source:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
private android.net.NetworkStats getNetworkStatsUidDetail ( ) throws android.os.RemoteException { final android.net.NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ; final android.net.NetworkStats tetherSnapshot = getNetworkStatsTethering ( ) ; uidSnapshot.combineAllValues ( tetherSnapshot ) ; final android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; final android.net.NetworkStats vtStats = telephonyManager.getVtDataUsage ( true ) ; if ( vtStats != null ) { uidSnapshot.combineAllValues ( vtStats ) ; } uidSnapshot.combineAllValues ( mUidOperations ) ; return uidSnapshot ; }

Target:
private android.net.NetworkStats getNetworkStatsUidDetail ( ) throws android.os.RemoteException { final android.net.NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ; final android.net.NetworkStats tetherSnapshot = getNetworkStatsTethering ( android.net.NetworkStats.STATS_PER_UID ) ; uidSnapshot.combineAllValues ( tetherSnapshot ) ; final android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; final android.net.NetworkStats vtStats = telephonyManager.getVtDataUsage ( android.net.NetworkStats.STATS_PER_UID ) ; if ( vtStats != null ) { uidSnapshot.combineAllValues ( vtStats ) ; } uidSnapshot.combineAllValues ( mUidOperations ) ; return uidSnapshot ; }
Source:
public void dispose ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "dispose" ) ; mRingingCall.dispose ( ) ; mBackgroundCall.dispose ( ) ; mForegroundCall.dispose ( ) ; mHandoverCall.dispose ( ) ; clearDisconnected ( ) ; if ( ( mUtInterface ) != null ) { mUtInterface.unregisterForSuppServiceIndication ( this ) ; } mPhone.getContext ( ) . unregisterReceiver ( mReceiver ) ; mPhone.getDefaultPhone ( ) . unregisterForDataEnabledChanged ( this ) ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_GET_IMS_SERVICE ) ; }

Target:
public void dispose ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "dispose" ) ; mRingingCall.dispose ( ) ; mBackgroundCall.dispose ( ) ; mForegroundCall.dispose ( ) ; mHandoverCall.dispose ( ) ; clearDisconnected ( ) ; if ( ( mUtInterface ) != null ) { mUtInterface.unregisterForSuppServiceIndication ( this ) ; } mPhone.getContext ( ) . unregisterReceiver ( mReceiver ) ; mPhone.getDefaultPhone ( ) . unregisterForDataEnabledChanged ( this ) ; mImsManagerConnector.disconnect ( ) ; }
Source:
private boolean checkRegionForParsing ( java.lang.String numberToParse , java.lang.String defaultRegion ) { if ( ! ( isValidRegionCode ( defaultRegion ) ) ) { if ( ( ( numberToParse == null ) || ( ( numberToParse.length ( ) ) == 0 ) ) || ( ! ( com.google.i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher ( numberToParse ) . lookingAt ( ) ) ) ) { return false ; } } return true ; }

Target:
private boolean checkRegionForParsing ( java.lang.CharSequence numberToParse , java.lang.String defaultRegion ) { if ( ! ( isValidRegionCode ( defaultRegion ) ) ) { if ( ( ( numberToParse == null ) || ( ( numberToParse.length ( ) ) == 0 ) ) || ( ! ( com.google.i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher ( numberToParse ) . lookingAt ( ) ) ) ) { return false ; } } return true ; }
Source:
public java.lang.String getImeiForSlot ( int slotIndex , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getImeiForSlot" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? null : phone.getImei ( ) ; }

Target:
public java.lang.String getMeidForSlot ( int slotIndex , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getMeidForSlot" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? null : phone.getMeid ( ) ; }
Source:
public void connectAndDisconnectClientAfterStartingWifi ( ) throws java.lang.Exception { startServiceAndLoadDriver ( ) ; mWifiScanningServiceImpl.setWifiHandlerLogForTest ( mLog ) ; com.android.internal.util.test.BidirectionalAsyncChannel controlChannel = connectChannel ( mock ( android.os.Handler.class ) ) ; mLooper.dispatchAll ( ) ; controlChannel.disconnect ( ) ; mLooper.dispatchAll ( ) ; }

Target:
public void connectAndDisconnectClientAfterStartingWifi ( ) throws java.lang.Exception { startServiceAndLoadDriver ( ) ; mWifiScanningServiceImpl.setWifiHandlerLogForTest ( mLog ) ; com.android.internal.util.test.BidirectionalAsyncChannel controlChannel = connectChannel ( org.mockito.Mockito.mock ( android.os.Handler.class ) ) ; mLooper.dispatchAll ( ) ; controlChannel.disconnect ( ) ; mLooper.dispatchAll ( ) ; }
Source:
public static com.google.common.io.OutputSupplier < java.io.OutputStreamWriter > newWriterSupplier ( final com.google.common.io.OutputSupplier < ? extends java.io.OutputStream > out , final java.nio.charset.Charset charset ) { com.google.common.base.Preconditions.checkNotNull ( out ) ; com.google.common.base.Preconditions.checkNotNull ( charset ) ; return new com.google.common.io.OutputSupplier < java.io.OutputStreamWriter > ( ) { @ java.lang.Override public java.io.OutputStreamWriter getOutput ( ) throws java.io.IOException { return new java.io.OutputStreamWriter ( out.getOutput ( ) , charset ) ; } } ; }

Target:
public void write ( char [ ] cbuf , int off , int len ) { com.google.common.base.Preconditions.checkPositionIndexes ( off , ( off + len ) , cbuf.length ) ; }
Source:
void assertConferenceState ( final android.telecom.Conference conference , final int state ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return state ; } @ java.lang.Override public java.lang.Object actual ( ) { return conference.getState ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Conference should be in state " + state ) ) ; }

Target:
void assertConferenceState ( final android.telecom.Conference conference , final int state ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return state ; } @ java.lang.Override public java.lang.Object actual ( ) { return conference.getState ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Conference should be in state " + state ) ) ; }
Source:
public com.android.builder.VariantConfiguration setAndroidDependencies ( @ com.android.annotations.NonNull java.util.List < com.android.builder.AndroidDependency > directLibraries ) { if ( directLibraries != null ) { mDirectLibraries.addAll ( directLibraries ) ; } resolveIndirectLibraryDependencies ( mDirectLibraries , mFlatLibraries ) ; return this ; }

Target:
public com.android.builder.VariantConfiguration setDependencies ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.DependencyContainer > containers ) { for ( com.android.builder.DependencyContainer container : containers ) { mDirectLibraries.addAll ( container.getAndroidDependencies ( ) ) ; mJars.addAll ( container.getJarDependencies ( ) ) ; mJars.addAll ( container.getLocalDependencies ( ) ) ; } resolveIndirectLibraryDependencies ( mDirectLibraries , mFlatLibraries ) ; for ( com.android.builder.AndroidDependency androidDependency : mFlatLibraries ) { mJars.addAll ( androidDependency.getLocalDependencies ( ) ) ; } return this ; }