auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { com.android.server.pm.dex.DexoptUtilsTest.TestData data = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( data.info , null , data.pathsWithCode ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }
Source:
public static java.util.List < java.lang.String > toLocaterStringForms ( org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration ) { java.util.List < com.google.currysrc.api.transform.ast.BodyDeclarationLocater > locaters = com.google.currysrc.api.transform.ast.BodyDeclarationLocaters.createLocaters ( bodyDeclaration ) ; java.util.List < java.lang.String > stringForms = new java.util.ArrayList ( locaters.size ( ) ) ; for ( com.google.currysrc.api.transform.ast.BodyDeclarationLocater locater : locaters ) { stringForms.add ( ( ( ( locater.getStringFormType ( ) ) + ":" ) + ( locater.getStringFormTarget ( ) ) ) ) ; } return stringForms ; }

Target:
public static java.util.List < java.lang.String > toLocatorStringForms ( org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration ) { java.util.List < com.google.currysrc.api.process.ast.BodyDeclarationLocator > locators = com.google.currysrc.api.process.ast.BodyDeclarationLocators.createLocators ( bodyDeclaration ) ; java.util.List < java.lang.String > stringForms = new java.util.ArrayList ( locators.size ( ) ) ; for ( com.google.currysrc.api.process.ast.BodyDeclarationLocator locator : locators ) { stringForms.add ( ( ( ( locator.getStringFormType ( ) ) + ":" ) + ( locator.getStringFormTarget ( ) ) ) ) ; } return stringForms ; }
Source:
public void nvWriteCdmaPrl ( byte [ ] preferredRoamingList , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_WRITE_CDMA_PRL , response ) ; rr.mParcel.writeByteArray ( preferredRoamingList ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " (" ) + ( preferredRoamingList.length ) ) + " bytes)" ) ) ; send ( rr ) ; }

Target:
public void nvWriteCdmaPrl ( byte [ ] preferredRoamingList , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_WRITE_CDMA_PRL , response , mRILDefaultWorkSource ) ; rr.mParcel.writeByteArray ( preferredRoamingList ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " (" ) + ( preferredRoamingList.length ) ) + " bytes)" ) ) ; send ( rr ) ; }
Source:
void write ( @ com.android.annotations.NonNull java.io.OutputStream outStream ) throws java.io.IOException { com.android.builder.png.ByteUtils utils = ByteUtils.Cache.get ( ) ; outStream.write ( utils.getIntAsArray ( getLength ( ) ) ) ; outStream.write ( mType ) ; if ( ( mData ) != null ) { outStream.write ( mData ) ; } outStream.write ( utils.getLongAsIntArray ( mCrc32 ) , 4 , 4 ) ; }

Target:
void write ( @ com.android.annotations.NonNull java.io.OutputStream outStream ) throws java.io.IOException { com.android.builder.png.ByteUtils utils = ByteUtils.Cache.get ( ) ; outStream.write ( utils.getIntAsArray ( getDataLength ( ) ) ) ; outStream.write ( mType ) ; if ( ( mData ) != null ) { outStream.write ( mData ) ; } outStream.write ( utils.getLongAsIntArray ( mCrc32 ) , 4 , 4 ) ; }
Source:
public void disableKeyguard ( android.os.IBinder token , java.lang.String tag ) { if ( ( mContext.checkCallingOrSelfPermission ( android.Manifest.permission.DISABLE_KEYGUARD ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires DISABLE_KEYGUARD permission" ) ; } synchronized ( mKeyguardDisabled ) { mKeyguardDisabled.acquire ( token , tag ) ; } }

Target:
public void disableKeyguard ( android.os.IBinder token , java.lang.String tag ) { if ( ( mContext.checkCallingOrSelfPermission ( android.Manifest.permission.DISABLE_KEYGUARD ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires DISABLE_KEYGUARD permission" ) ; } synchronized ( mKeyguardTokenWatcher ) { mKeyguardTokenWatcher.acquire ( token , tag ) ; } }
Source:
private java.util.List < org.eclipse.jdt.core.search.SearchMatch > searchForMethod ( java.lang.String fqmn ) { return searchForPattern ( fqmn , org.eclipse.jdt.core.search.IJavaSearchConstants.METHOD , com.android.ide.eclipse.adt.SourceRevealer.MATCH_IS_METHOD_PREDICATE ) ; }

Target:
private java.util.List < org.eclipse.jdt.core.search.SearchMatch > searchForMethod ( java.lang.String fqmn ) { if ( fqmn.endsWith ( com.android.tools.lint.detector.api.LintConstants.CONSTRUCTOR_NAME ) ) { fqmn = fqmn.substring ( 0 , ( ( ( fqmn.length ( ) ) - ( com.android.tools.lint.detector.api.LintConstants.CONSTRUCTOR_NAME.length ( ) ) ) - 1 ) ) ; return searchForPattern ( fqmn , org.eclipse.jdt.core.search.IJavaSearchConstants.CONSTRUCTOR , com.android.ide.eclipse.adt.SourceRevealer.MATCH_IS_METHOD_PREDICATE ) ; } return searchForPattern ( fqmn , org.eclipse.jdt.core.search.IJavaSearchConstants.METHOD , com.android.ide.eclipse.adt.SourceRevealer.MATCH_IS_METHOD_PREDICATE ) ; }
Source:
private boolean doesCallSessionExistsInMerge ( com.android.ims.internal.ImsCallSession cs ) { java.lang.String callId = cs.getCallId ( ) ; return ( ( ( isMergeHost ( ) ) && ( java.util.Objects.equals ( mMergePeer.mSession.getCallId ( ) , callId ) ) ) || ( ( isMergePeer ( ) ) && ( java.util.Objects.equals ( mMergeHost.mSession.getCallId ( ) , callId ) ) ) ) || ( java.util.Objects.equals ( mSession.getCallId ( ) , callId ) ) ; }

Target:
private boolean doesCallSessionExistsInMerge ( android.telephony.ims.ImsCallSession cs ) { java.lang.String callId = cs.getCallId ( ) ; return ( ( ( isMergeHost ( ) ) && ( java.util.Objects.equals ( mMergePeer.mSession.getCallId ( ) , callId ) ) ) || ( ( isMergePeer ( ) ) && ( java.util.Objects.equals ( mMergeHost.mSession.getCallId ( ) , callId ) ) ) ) || ( java.util.Objects.equals ( mSession.getCallId ( ) , callId ) ) ; }
Source:
public void performUnhold ( ) { com.android.services.telephony.Log.v ( this , "performUnhold" ) ; if ( ( Call.State.HOLDING ) == ( mOriginalConnectionState ) ) { try { if ( ! ( hasMultipleTopLevelCalls ( ) ) ) { mOriginalConnection.getCall ( ) . getPhone ( ) . switchHoldingAndActive ( ) ; } else { com.android.services.telephony.Log.i ( this , "Skipping unhold command for %s" , this ) ; } } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.Log.e ( this , e , "Exception occurred while trying to release call from hold." ) ; } } else { com.android.services.telephony.Log.w ( this , "Cannot release a call that is not already on hold from hold." ) ; } }

Target:
public void performUnhold ( ) { com.android.services.telephony.Log.v ( this , "performUnhold" ) ; if ( ( Call.State.HOLDING ) == ( mConnectionState ) ) { try { if ( ! ( hasMultipleTopLevelCalls ( ) ) ) { mOriginalConnection.getCall ( ) . getPhone ( ) . switchHoldingAndActive ( ) ; } else { com.android.services.telephony.Log.i ( this , "Skipping unhold command for %s" , this ) ; } } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.Log.e ( this , e , "Exception occurred while trying to release call from hold." ) ; } } else { com.android.services.telephony.Log.w ( this , "Cannot release a call that is not already on hold from hold." ) ; } }
Source:
private java.lang.String getArray ( ) { int len = getLength ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( len * 2 ) ) ; if ( ( mData ) != null ) { for ( int i = 0 ; i < len ; i ++ ) { sb.append ( java.lang.String.format ( "%02X" , mData [ i ] ) ) ; } } return sb.toString ( ) ; }

Target:
private java.lang.String getArray ( ) { int len = getDataLength ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( len * 2 ) ) ; if ( ( mData ) != null ) { for ( int i = 0 ; i < len ; i ++ ) { sb.append ( java.lang.String.format ( "%02X" , mData [ i ] ) ) ; } } return sb.toString ( ) ; }
Source:
public void testHasPackageDoesNotMatch ( ) { android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "com.foo.bar" ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.baz.qux" ) . matches ( intent ) ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.baz.qux" ) ) . matches ( intent ) ) ; }

Target:
public void hasPackageDoesNotMatch ( ) { android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "com.foo.bar" ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.baz.qux" ) . matches ( intent ) ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.baz.qux" ) ) . matches ( intent ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { mDefault = new com.android.builder.ProductFlavor ( "default" ) ; mDefault2 = new com.android.builder.ProductFlavor ( "default2" ) ; mCustom = new com.android.builder.ProductFlavor ( "custom" ) ; mCustom.setMinSdkVersion ( 42 ) ; mCustom.setTargetSdkVersion ( 43 ) ; mCustom.setVersionCode ( 44 ) ; mCustom.setVersionName ( "42.0" ) ; mCustom.setPackageName ( "com.forty.two" ) ; mCustom.setTestPackageName ( "com.forty.two.test" ) ; mCustom.setTestInstrumentationRunner ( "com.forty.two.test.Runner" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { mDefault = new com.android.builder.ProductFlavor ( "default" ) ; mDefault2 = new com.android.builder.ProductFlavor ( "default2" ) ; mCustom = new com.android.builder.ProductFlavor ( "custom" ) ; mCustom.setMinSdkVersion ( 42 ) ; mCustom.setTargetSdkVersion ( 43 ) ; mCustom.setRenderscriptTargetApi ( 17 ) ; mCustom.setVersionCode ( 44 ) ; mCustom.setVersionName ( "42.0" ) ; mCustom.setPackageName ( "com.forty.two" ) ; mCustom.setTestPackageName ( "com.forty.two.test" ) ; mCustom.setTestInstrumentationRunner ( "com.forty.two.test.Runner" ) ; }
Source:
public void testNewActivityDuringOccluded ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedActivity" ) ; gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedWithDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedWithDialogActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_ACTIVITY_OPEN , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testNewActivityDuringOccluded ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedActivity" ) ; gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedWithDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedWithDialogActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_ACTIVITY_OPEN , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
public void testGetCommonInstances_Success ( ) throws java.lang.Exception { assertNotNull ( java.security.Signature.getInstance ( "SHA1withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA256withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA384withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA512withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "MD5withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA1withDSA" ) ) ; }

Target:
public void testGetCommonInstances_Success ( ) throws java.lang.Exception { assertNotNull ( java.security.Signature.getInstance ( "SHA1withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA256withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA384withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA512withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "NONEwithRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "MD5withRSA" ) ) ; assertNotNull ( java.security.Signature.getInstance ( "SHA1withDSA" ) ) ; }
Source:
public void testSendUuidIntent ( ) { mRemoteDevices.updateUuids ( mDevice1 ) ; if ( ( android.os.Looper.myLooper ( ) ) != null ) { android.os.Looper.myLooper ( ) . quitSafely ( ) ; } android.os.Looper.loop ( ) ; verify ( mAdapterService ) . sendBroadcast ( any ( ) , anyString ( ) ) ; verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void testSendUuidIntent ( ) { mRemoteDevices.updateUuids ( mDevice1 ) ; android.os.Message msg = mTestLooperManager.next ( ) ; org.junit.Assert.assertNotNull ( msg ) ; mTestLooperManager.execute ( msg ) ; verify ( mAdapterService ) . sendBroadcast ( any ( ) , anyString ( ) ) ; verifyNoMoreInteractions ( mAdapterService ) ; }
Source:
public android.net.ProxyInfo getProxy ( ) { try { return mService.getProxy ( ) ; } catch ( android.os.RemoteException e ) { return null ; } }

Target:
public android.net.ProxyInfo getDefaultProxy ( ) { final android.net.Network network = android.net.ConnectivityManager.getProcessDefaultNetwork ( ) ; if ( network != null ) { final android.net.ProxyInfo globalProxy = getGlobalProxy ( ) ; if ( globalProxy != null ) return globalProxy ; final android.net.LinkProperties lp = getLinkProperties ( network ) ; if ( lp != null ) return lp.getHttpProxy ( ) ; return null ; } try { return mService.getDefaultProxy ( ) ; } catch ( android.os.RemoteException e ) { return null ; } }
Source:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID serverUid , java.util.UUID characteristicUid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = null ; android.bluetooth.BluetoothGattService service = getService ( serverUid ) ; if ( service != null ) { characteristic = service.getCharacteristic ( characteristicUid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } } return characteristic ; }

Target:
private android.bluetooth.BluetoothGattService getService ( ) { if ( ( mBluetoothGatt ) == null ) return null ; android.bluetooth.BluetoothGattService service = mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ; if ( service == null ) { showMessage ( "Service not found" ) ; return null ; } return service ; }
Source:
private static java.security.cert.X509Certificate [ ] createCertChain ( byte [ ] [ ] certificatesBytes ) throws java.io.IOException { if ( certificatesBytes == null ) { return null ; } java.security.cert.X509Certificate [ ] certificates = new java.security.cert.X509Certificate [ certificatesBytes.length ] ; for ( int i = 0 ; i < ( certificatesBytes.length ) ; i ++ ) { certificates [ i ] = org.conscrypt.OpenSSLX509Certificate.fromX509Der ( certificatesBytes [ i ] ) ; } return certificates ; }

Target:
private static org.conscrypt.OpenSSLX509Certificate [ ] createCertChain ( long [ ] certificateRefs ) throws java.io.IOException { if ( certificateRefs == null ) { return null ; } org.conscrypt.OpenSSLX509Certificate [ ] certificates = new org.conscrypt.OpenSSLX509Certificate [ certificateRefs.length ] ; for ( int i = 0 ; i < ( certificateRefs.length ) ; i ++ ) { certificates [ i ] = new org.conscrypt.OpenSSLX509Certificate ( certificateRefs [ i ] ) ; } return certificates ; }
Source:
protected void initSdk ( ) { setSdkManager ( com.android.sdklib.SdkManager.createManager ( mOsSdkRoot , mSdkLog ) ) ; try { mAvdManager = null ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mSdkLog.error ( e , ( "Unable to read AVDs: " + ( e.getMessage ( ) ) ) ) ; mAvdManagerInitError = e ; } broadcastOnSdkReload ( ) ; }

Target:
protected void initSdk ( ) { setSdkManager ( com.android.sdklib.SdkManager.createManager ( mOsSdkRoot , mSdkLog ) ) ; try { mAvdManager = null ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager.getLocalSdk ( ) , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mSdkLog.error ( e , ( "Unable to read AVDs: " + ( e.getMessage ( ) ) ) ) ; mAvdManagerInitError = e ; } broadcastOnSdkReload ( ) ; }
Source:
private int getNewSpiResourceId ( int direction , java.lang.String remoteAddress , int returnSpi ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockNetd.ipSecAllocateSpi ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( returnSpi ) ; android.net.IpSecSpiResponse spi = mIpSecService.reserveSecurityParameterIndex ( direction , android.net.NetworkUtils.numericToInetAddress ( remoteAddress ) . getHostAddress ( ) , IpSecManager.INVALID_SECURITY_PARAMETER_INDEX , new android.os.Binder ( ) ) ; return spi.resourceId ; }

Target:
private int getNewSpiResourceId ( int direction , java.lang.String remoteAddress , int returnSpi ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockNetd.ipSecAllocateSpi ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( returnSpi ) ; android.net.IpSecSpiResponse spi = mIpSecService.allocateSecurityParameterIndex ( direction , android.net.NetworkUtils.numericToInetAddress ( remoteAddress ) . getHostAddress ( ) , IpSecManager.INVALID_SECURITY_PARAMETER_INDEX , new android.os.Binder ( ) ) ; return spi.resourceId ; }
Source:
public boolean performHapticFeedback ( android.view.IWindow window , int effectId , boolean always ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mPolicy.performHapticFeedbackLw ( windowForClientLocked ( this , window ) , effectId , always ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public void setWallpaperPosition ( android.os.IBinder window , float x , float y , float xStep , float yStep ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { setWindowWallpaperPositionLocked ( windowForClientLocked ( this , window , true ) , x , y , xStep , yStep ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public static synchronized boolean isEmpty ( ) { return org.apache.harmony.security.fortress.Services.services.isEmpty ( ) ; }

Target:
public static synchronized java.util.ArrayList < java.security.Provider.Service > getServices ( java.lang.String type , java.lang.String algorithm ) { java.util.ArrayList < java.security.Provider.Service > services = null ; for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { java.security.Provider.Service s = p.getService ( type , algorithm ) ; if ( s != null ) { if ( services == null ) { services = new java.util.ArrayList < > ( org.apache.harmony.security.fortress.Services.providers.size ( ) ) ; } services.add ( s ) ; } } return services ; }
Source:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType ) { com.android.jack.ir.ast.JMethod method = null ; java.lang.String searchedSignature = ( new java.lang.String ( binding.selector ) ) + ( new java.lang.String ( binding.signature ( ) ) ) ; for ( com.android.jack.ir.ast.JMethod existing : enclosingType.getMethods ( ) ) { if ( searchedSignature.equals ( com.android.jack.Jack.getLookupFormatter ( ) . getName ( existing ) ) ) { method = existing ; break ; } } return method ; }

Target:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType ) { com.android.jack.ir.ast.JMethod method = null ; java.lang.String paramsSignature = new java.lang.String ( binding.signature ( ) ) ; java.lang.String searchedSignature = ( new java.lang.String ( binding.selector ) ) + paramsSignature ; int paramsCount = com.android.jack.ir.impl.ReferenceMapper.countParams ( paramsSignature ) ; for ( com.android.jack.ir.ast.JMethod existing : enclosingType.getMethods ( ) ) { if ( equals ( paramsCount , searchedSignature , existing ) ) { method = existing ; break ; } } return method ; }
Source:
public void testConstructor_WithSkipPast ( ) { vogar.target.TestRunner runner = new vogar.target.TestRunner ( new java.util.ArrayList < > ( java.util.Arrays.asList ( "--skipPast" , "fred" ) ) ) ; java.lang.String skipPast = runner.skipPastReference.get ( ) ; org.junit.Assert.assertEquals ( "fred" , skipPast ) ; }

Target:
public void testConstructor_SkipPastJUnitRunner ( ) throws java.lang.Exception { java.lang.String failingTestName = ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) + "#testMethodName" ; vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "--skipPast" , failingTestName ) ; java.lang.String skipPast = runner.skipPastReference.get ( ) ; org.junit.Assert.assertEquals ( failingTestName , skipPast ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testOtherName\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }
Source:
private float getWeight ( org.w3c.dom.Element linearLayoutChild ) { java.lang.String weight = linearLayoutChild.getAttributeNS ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WEIGHT ) ; if ( ( weight != null ) && ( ( weight.length ( ) ) > 0 ) ) { try { return java.lang.Float.parseFloat ( weight ) ; } catch ( java.lang.NumberFormatException nfe ) { com.android.ide.eclipse.adt.AdtPlugin.log ( nfe , "Invalid weight %1$s" , weight ) ; } } return 0.0F ; }

Target:
private float getWeight ( org.w3c.dom.Element linearLayoutChild ) { java.lang.String weight = linearLayoutChild.getAttributeNS ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WEIGHT ) ; if ( ( weight != null ) && ( ( weight.length ( ) ) > 0 ) ) { try { return java.lang.Float.parseFloat ( weight ) ; } catch ( java.lang.NumberFormatException nfe ) { com.android.ide.eclipse.adt.AdtPlugin.log ( nfe , "Invalid weight %1$s" , weight ) ; } } return 0.0F ; }
Source:
public boolean contains ( java.lang.Object element ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return ( predicate.apply ( e ) ) && ( unfiltered.contains ( element ) ) ; } catch ( java.lang.NullPointerException e ) { return false ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
public boolean isEmpty ( ) { return ! ( com.google.common.collect.Iterables.any ( unfiltered , predicate ) ) ; }
Source:
private static java.util.List < com.google.currysrc.api.process.Rule > createTransformRules ( ) { java.util.List < com.google.currysrc.api.process.Rule > rules = com.google.common.collect.Lists.newArrayList ( Icu4jTransform.Icu4jRules.getRepackagingRules ( ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.google.currysrc.processors.ReplaceTextCommentScanner ( Icu4jTransform.ORIGINAL_ICU_PACKAGE , Icu4jTransform.ANDROID_ICU_PACKAGE ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler ( ) ) ) ; return rules ; }

Target:
private static java.util.List < com.google.currysrc.api.process.Rule > createTransformRules ( ) { java.util.List < com.google.currysrc.api.process.Rule > rules = com.google.common.collect.Lists.newArrayList ( Icu4jTransform.Icu4jRules.getRepackagingRules ( ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.google.currysrc.processors.ReplaceTextCommentScanner ( Icu4jTransform.ORIGINAL_ICU_PACKAGE , Icu4jTransform.ANDROID_ICU_PACKAGE ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler ( ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.ShardingAnnotator ( ) ) ) ; return rules ; }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] getEvents ( long duration , java.util.concurrent.TimeUnit timeUnit ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return null ; } mTestSensorEventListener.waitForEvents ( duration , timeUnit ) ; android.hardware.cts.helpers.TestSensorEvent [ ] events = mTestSensorEventListener.getEvents ( ) ; mTestSensorEventListener.clearEvents ( ) ; return events ; }

Target:
public void waitForFlushCompleted ( ) throws java.lang.InterruptedException { if ( ( mTestSensorEventListener ) == null ) { return ; } mTestSensorEventListener.waitForFlushComplete ( ) ; }
Source:
public void expiredCacheHit ( ) throws java.lang.Exception { com.android.volley.Cache.Entry entry = com.android.volley.utils.CacheTestUtils.makeRandomCacheEntry ( null , true , true ) ; mCache.setEntryToReturn ( entry ) ; mCacheQueue.add ( mRequest ) ; mCacheQueue.waitUntilEmpty ( com.android.volley.CacheDispatcherTest.TIMEOUT_MILLIS ) ; assertFalse ( mDelivery.wasEitherResponseCalled ( ) ) ; assertTrue ( ( ( mNetworkQueue.size ( ) ) > 0 ) ) ; com.android.volley.Request request = mNetworkQueue.take ( ) ; assertSame ( entry , request.getCacheEntry ( ) ) ; }

Target:
public void expiredCacheHit ( ) throws java.lang.Exception { com.android.volley.Cache.Entry entry = com.android.volley.utils.CacheTestUtils.makeRandomCacheEntry ( null , true , true ) ; org.mockito.Mockito.when ( mCache.get ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( entry ) ; mDispatcher.processRequest ( mRequest ) ; com.android.volley.CacheDispatcherTest.verifyNoResponse ( mDelivery ) ; org.mockito.Mockito.verify ( mNetworkQueue ) . put ( mRequest ) ; org.junit.Assert.assertSame ( entry , mRequest.getCacheEntry ( ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String toString = mSourceLocation.print ( true ) ; if ( ( mPosition ) != null ) { toString += ( ( ":" + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; } return toString ; }

Target:
public org.w3c.dom.Node toXml ( org.w3c.dom.Element location ) { location.appendChild ( mSourceLocation.toXml ( location.getOwnerDocument ( ) ) ) ; location.appendChild ( com.android.manifmerger.PositionImpl.toXml ( mPosition , location.getOwnerDocument ( ) ) ) ; return location ; }
Source:
private boolean haveAnyIdenticalMethods ( proguard.optimize.peephole.Clazz clazz , proguard.optimize.peephole.Clazz targetClass ) { proguard.optimize.peephole.MemberCounter counter = new proguard.optimize.peephole.MemberCounter ( ) ; clazz.methodsAccept ( new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_ABSTRACT , new proguard.optimize.peephole.SimilarMemberVisitor ( targetClass , true , false , false , false , new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_ABSTRACT , counter ) ) ) ) ; return ( counter.getCount ( ) ) > 0 ; }

Target:
private java.util.Set subInterfaces ( proguard.optimize.peephole.Clazz clazz , proguard.optimize.peephole.Clazz exceptClass ) { java.util.Set set = new java.util.HashSet ( ) ; clazz.hierarchyAccept ( false , false , false , true , new proguard.optimize.peephole.ClassAccessFilter ( ClassConstants.ACC_INTERFACE , 0 , new proguard.optimize.peephole.ExceptClassesFilter ( new proguard.optimize.peephole.Clazz [ ] { exceptClass } , new proguard.optimize.peephole.ClassCollector ( set ) ) ) ) ; return set ; }
Source:
void onPeriodicAdvertisingParametersUpdated ( int advertiser_id , int status ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.AdvertiseManager.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( ( ( "onPeriodicAdvertisingParametersUpdated() advertiser_id=" + advertiser_id ) + ", status=" ) + status ) ) ; } java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiser_id ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onPeriodicAdvertisingParametersUpdated() - bad advertiser_id " + advertiser_id ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onPeriodicAdvertisingParametersUpdated ( advertiser_id , status ) ; }

Target:
void onPeriodicAdvertisingParametersUpdated ( int advertiserId , int status ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.AdvertiseManager.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( ( ( "onPeriodicAdvertisingParametersUpdated() advertiserId=" + advertiserId ) + ", status=" ) + status ) ) ; } java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiserId ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onPeriodicAdvertisingParametersUpdated() - bad advertiserId " + advertiserId ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onPeriodicAdvertisingParametersUpdated ( advertiserId , status ) ; }
Source:
protected android.bluetooth.BluetoothDevice getRemoteDevice ( ) { return mRemoteDevice ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; if ( ( mRemoteDevice ) != null ) { for ( int state : states ) { if ( state == ( mState ) ) { devices.add ( mRemoteDevice ) ; break ; } } } return devices ; }
Source:
public void migrateAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.migrateAppData ( uuid , packageName , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void migrateAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.migrateAppData ( uuid , packageName , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public boolean isPossibleShortNumberForRegion ( java.lang.String shortNumber , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ; }

Target:
public boolean isPossibleShortNumberForRegion ( java.lang.String shortNumber , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return phoneMetadata.getGeneralDesc ( ) . getPossibleLengthList ( ) . contains ( shortNumber.length ( ) ) ; }
Source:
public com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder withHiddenNetworkIds ( int [ ] networkIds ) { mSettings.hiddenNetworkIds = networkIds ; return this ; }

Target:
public com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder withHiddenNetworkSSIDs ( java.lang.String [ ] networkSSIDs ) { mSettings.hiddenNetworks = new com.android.server.wifi.WifiNative.HiddenNetwork [ networkSSIDs.length ] ; for ( int i = 0 ; i < ( networkSSIDs.length ) ; i ++ ) { mSettings.hiddenNetworks [ i ] = new com.android.server.wifi.WifiNative.HiddenNetwork ( ) ; mSettings.hiddenNetworks [ i ] . ssid = networkSSIDs [ i ] ; } return this ; }
Source:
private void handleProp ( com.android.sdklib.internal.project.ProjectProperties props , java.lang.String inName , java.lang.String outName , java.lang.String defaultValue ) { java.lang.String value = props.getProperty ( inName ) ; if ( value == null ) { value = defaultValue ; } getProject ( ) . setProperty ( outName , new java.io.File ( mProjectPath , value ) . getAbsolutePath ( ) ) ; }

Target:
private void handleProp ( com.android.sdklib.internal.project.ProjectProperties props , java.lang.String inName , java.lang.String outName ) { java.lang.String value = props.getProperty ( inName ) ; if ( value == null ) { value = com.android.ant.TaskHelper.getDefault ( inName ) ; } getProject ( ) . setProperty ( outName , new java.io.File ( mProjectPath , value ) . getAbsolutePath ( ) ) ; }
Source:
public static boolean containsAttribute ( java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > attributes , java.lang.String nsUri , com.android.ide.eclipse.adt.internal.resources.AttributeInfo info ) { java.lang.String xmlLocalName = info.getName ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor desc : attributes ) { if ( desc.getXmlLocalName ( ) . equals ( xmlLocalName ) ) { if ( ( nsUri == ( desc.getNamespaceUri ( ) ) ) || ( ( nsUri != null ) && ( nsUri.equals ( desc.getNamespaceUri ( ) ) ) ) ) { return true ; } } } return false ; }

Target:
public static boolean containsAttribute ( java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > attributes , java.lang.String nsUri , com.android.ide.common.resources.platform.AttributeInfo info ) { java.lang.String xmlLocalName = info.getName ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor desc : attributes ) { if ( desc.getXmlLocalName ( ) . equals ( xmlLocalName ) ) { if ( ( nsUri == ( desc.getNamespaceUri ( ) ) ) || ( ( nsUri != null ) && ( nsUri.equals ( desc.getNamespaceUri ( ) ) ) ) ) { return true ; } } } return false ; }
Source:
public com.android.ims.internal.IImsMMTelFeature getImsEmergencyMMTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getEmergencyMMTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsEmergencyMMTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getImsMmTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMmTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMmTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public void invalidateDrawable ( @ android.annotation.NonNull android.graphics.drawable.Drawable drawable ) { if ( verifyDrawable ( drawable ) ) { final android.graphics.Rect dirty = drawable.getDirtyBounds ( ) ; final int scrollX = mScrollX ; final int scrollY = mScrollY ; invalidate ( ( ( dirty.left ) + scrollX ) , ( ( dirty.top ) + scrollY ) , ( ( dirty.right ) + scrollX ) , ( ( dirty.bottom ) + scrollY ) ) ; rebuildOutline ( ) ; } }

Target:
public void invalidateDrawable ( @ android.annotation.NonNull android.graphics.drawable.Drawable drawable ) { if ( verifyDrawable ( drawable ) ) { final android.graphics.Rect dirty = drawable.getDirtyBounds ( ) ; final int scrollX = mScrollX ; final int scrollY = mScrollY ; invalidate ( ( ( dirty.left ) + scrollX ) , ( ( dirty.top ) + scrollY ) , ( ( dirty.right ) + scrollX ) , ( ( dirty.bottom ) + scrollY ) ) ; mPrivateFlags3 |= android.view.View.PFLAG3_OUTLINE_INVALID ; } }
Source:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { java.io.InputStream is = com.android.jack.Main.class . getResourceAsStream ( "/help.txt" ) ; if ( is == null ) { throw new java.lang.AssertionError ( ) ; } com.android.jack.util.CharactersStreamSucker css = new com.android.jack.util.CharactersStreamSucker ( is , printStream ) ; try { css.suck ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } finally { try { is.close ( ) ; } catch ( java.io.IOException e ) { } } }

Target:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { java.io.InputStream is = com.android.jack.Main.class . getResourceAsStream ( "/help.txt" ) ; if ( is == null ) { throw new java.lang.AssertionError ( ) ; } com.android.sched.util.stream.CharacterStreamSucker css = new com.android.sched.util.stream.CharacterStreamSucker ( is , printStream ) ; try { css.suck ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } finally { try { is.close ( ) ; } catch ( java.io.IOException e ) { } } }
Source:
public static void getPlatformMethods ( ) throws java.lang.Exception { org.conscrypt.NativeCryptoTest.m_Platform_getFileDescriptor = org.conscrypt.Platform.class . getDeclaredMethod ( "getFileDescriptor" , java.net.Socket.class ) ; org.conscrypt.NativeCryptoTest.m_Platform_getFileDescriptor.setAccessible ( true ) ; }

Target:
public static void getPlatformMethods ( ) throws java.lang.Exception { java.lang.Class < ? > c_Platform = java.lang.Class.forName ( ( ( org.conscrypt.NativeCryptoTest.class . getPackage ( ) . getName ( ) ) + ".Platform" ) ) ; org.conscrypt.NativeCryptoTest.m_Platform_getFileDescriptor = c_Platform.getDeclaredMethod ( "getFileDescriptor" , java.net.Socket.class ) ; org.conscrypt.NativeCryptoTest.m_Platform_getFileDescriptor.setAccessible ( true ) ; }
Source:
private int getResIdForDisconnectCause ( com.android.services.telephony.common.Call.DisconnectCause cause ) { int resId = com.android.incallui.InCallActivity.INVALID_RES_ID ; if ( cause == ( Call.DisconnectCause.CALL_BARRED ) ) { resId = R.string.callFailed_cb_enabled ; } else if ( cause == ( Call.DisconnectCause.FDN_BLOCKED ) ) { resId = R.string.callFailed_fdn_only ; } else if ( cause == ( Call.DisconnectCause.CS_RESTRICTED ) ) { resId = R.string.callFailed_dsac_restricted ; } else if ( cause == ( Call.DisconnectCause.CS_RESTRICTED_EMERGENCY ) ) { resId = R.string.callFailed_dsac_restricted_emergency ; } else if ( cause == ( Call.DisconnectCause.CS_RESTRICTED_NORMAL ) ) { resId = R.string.callFailed_dsac_restricted_normal ; } return resId ; }

Target:
private int getResIdForDisconnectCause ( int cause ) { int resId = com.android.incallui.InCallActivity.INVALID_RES_ID ; if ( cause == ( android.telephony.DisconnectCause.CALL_BARRED ) ) { resId = R.string.callFailed_cb_enabled ; } else if ( cause == ( android.telephony.DisconnectCause.FDN_BLOCKED ) ) { resId = R.string.callFailed_fdn_only ; } else if ( cause == ( android.telephony.DisconnectCause.CS_RESTRICTED ) ) { resId = R.string.callFailed_dsac_restricted ; } else if ( cause == ( android.telephony.DisconnectCause.CS_RESTRICTED_EMERGENCY ) ) { resId = R.string.callFailed_dsac_restricted_emergency ; } else if ( cause == ( android.telephony.DisconnectCause.CS_RESTRICTED_NORMAL ) ) { resId = R.string.callFailed_dsac_restricted_normal ; } return resId ; }
Source:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( android.bluetooth.BluetoothDevice device , android.os.Looper looper , com.android.bluetooth.hfp.HeadsetService service , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface , com.android.bluetooth.hfp.HeadsetSystemInterface systemInterface ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "make" ) ; com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( device , looper , service , nativeInterface , systemInterface ) ; stateMachine.start ( ) ; return stateMachine ; }

Target:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( android.bluetooth.BluetoothDevice device , android.os.Looper looper , com.android.bluetooth.hfp.HeadsetService headsetService , com.android.bluetooth.btservice.AdapterService adapterService , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface , com.android.bluetooth.hfp.HeadsetSystemInterface systemInterface ) { com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( device , looper , headsetService , adapterService , nativeInterface , systemInterface ) ; stateMachine.start ( ) ; android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( ( ( "Created state machine " + stateMachine ) + " for " ) + device ) ) ; return stateMachine ; }
Source:
public void swapSimClicked ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallButtonPresenter.swapSimClicked" ) ; com.android.incallui.multisim.SwapSimWorker worker = new com.android.incallui.multisim.SwapSimWorker ( getContext ( ) , mCall , com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) , mOtherAccount , com.android.incallui.InCallPresenter.getInstance ( ) . acquireInCallUiLock ( "swapSim" ) ) ; com.android.dialer.common.concurrent.DialerExecutorComponent.get ( getContext ( ) ) . dialerExecutorFactory ( ) . createNonUiTaskBuilder ( worker ) . build ( ) . executeParallel ( null ) ; }

Target:
public void swapSimClicked ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallButtonPresenter.swapSimClicked" ) ; com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( Type.DUAL_SIM_CHANGE_SIM_PRESSED ) ; com.android.incallui.multisim.SwapSimWorker worker = new com.android.incallui.multisim.SwapSimWorker ( getContext ( ) , mCall , com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) , mOtherAccount , com.android.incallui.InCallPresenter.getInstance ( ) . acquireInCallUiLock ( "swapSim" ) ) ; com.android.dialer.common.concurrent.DialerExecutorComponent.get ( getContext ( ) ) . dialerExecutorFactory ( ) . createNonUiTaskBuilder ( worker ) . build ( ) . executeParallel ( null ) ; }
Source:
public android.content.Context createConfigurationContext ( android.content.res.Configuration overrideConfiguration ) { if ( overrideConfiguration == null ) { throw new java.lang.IllegalArgumentException ( "overrideConfiguration must not be null" ) ; } android.app.ContextImpl c = new android.app.ContextImpl ( ) ; c.init ( mPackageInfo , null , mMainThread ) ; c.mResources = mMainThread.getTopLevelResources ( mPackageInfo.getResDir ( ) , getDisplayId ( ) , overrideConfiguration , mResources.getCompatibilityInfo ( ) ) ; return c ; }

Target:
public android.content.Context createConfigurationContext ( android.content.res.Configuration overrideConfiguration ) { if ( overrideConfiguration == null ) { throw new java.lang.IllegalArgumentException ( "overrideConfiguration must not be null" ) ; } android.app.ContextImpl c = new android.app.ContextImpl ( ) ; c.init ( mPackageInfo , null , mMainThread ) ; c.mResources = mResourcesManager.getTopLevelResources ( mPackageInfo.getResDir ( ) , mPackageInfo.getOverlayDirs ( ) , getDisplayId ( ) , overrideConfiguration , mResources.getCompatibilityInfo ( ) , mActivityToken ) ; return c ; }
Source:
public void testUnknownContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:unknown />" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepository.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-complex-type.2.4.a: Invalid content was found.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testUnknownContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:unknown />" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-complex-type.2.4.a: Invalid content was found.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }