auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mSourcePackageName ) ) ) ; mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mTargetPackageName ) ) ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; if ( ( ! ( supportsDragAndDrop ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { return ; } mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mSourcePackageName ) ) ) ; mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mTargetPackageName ) ) ) ; }
Source:
public void setPackageStoppedState ( java.lang.String packageName , boolean stopped ) { final int uid = android.os.Binder.getCallingUid ( ) ; final int permission = mContext.checkCallingOrSelfPermission ( android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE ) ; final boolean allowedByPermission = permission == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; synchronized ( mPackages ) { if ( mSettings.setPackageStoppedStateLPw ( packageName , stopped , allowedByPermission , uid ) ) { scheduleWriteStoppedPackagesLocked ( ) ; } } }

Target:
public int getApplicationEnabledSetting ( java.lang.String packageName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; checkValidCaller ( uid , userId ) ; synchronized ( mPackages ) { return mSettings.getApplicationEnabledSettingLPr ( packageName , userId ) ; } }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , java.lang.String vendorPath ) { assert ( ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_EXTRAS ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_ADDONS ) ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( ( pkg.hasPath ( ) ) && ( vendorPath.equals ( pkg.getPath ( ) ) ) ) { return pkg ; } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String vendorPath ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_EXTRAS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDONS ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( ( pkg.getDesc ( ) . hasPath ( ) ) && ( vendorPath.equals ( pkg.getDesc ( ) . getPath ( ) ) ) ) { return pkg ; } } return null ; }
Source:
public static void setEndpointIdentificationAlgorithm ( javax.net.ssl.SSLParameters params , java.lang.String endpointIdentificationAlgorithm ) { params.setEndpointIdentificationAlgorithm ( endpointIdentificationAlgorithm ) ; }

Target:
public static void getSSLParameters ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.OpenSSLSocketImpl socket ) { params.setEndpointIdentificationAlgorithm ( impl.getEndpointIdentificationAlgorithm ( ) ) ; if ( ( impl.getUseSni ( ) ) && ( org.conscrypt.AddressUtils.isValidSniHostname ( socket.getHostname ( ) ) ) ) { params.setServerNames ( java.util.Collections.< javax.net.ssl.SNIServerName > singletonList ( new javax.net.ssl.SNIHostName ( socket.getHostname ( ) ) ) ) ; } }
Source:
public java.lang.String guessZoneIdByNitzCountry ( com.android.internal.telephony.NitzData nitzData , java.lang.String isoCountryCode ) { return guessZoneIdByInstantOffsetDstCountry ( nitzData.getCurrentTimeInMillis ( ) , nitzData.getLocalOffsetMillis ( ) , nitzData.isDst ( ) , isoCountryCode ) ; }

Target:
public com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult lookupByNitzCountry ( com.android.internal.telephony.NitzData nitzData , java.lang.String isoCountryCode ) { libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return null ; } java.util.TimeZone bias = android.icu.util.TimeZone.getDefault ( ) ; libcore.util.CountryTimeZones.OffsetResult offsetResult = countryTimeZones.lookupByOffsetWithBias ( nitzData.getLocalOffsetMillis ( ) , nitzData.isDst ( ) , nitzData.getCurrentTimeInMillis ( ) , bias ) ; if ( offsetResult == null ) { return null ; } return new com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult ( offsetResult.mTimeZone.getID ( ) , offsetResult.mOneMatch ) ; }
Source:
public boolean setPnoList ( com.android.server.wifi.WifiNative.PnoSettings settings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "setPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = eventHandler ; if ( com.android.server.wifi.WifiNative.setPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId , settings ) ) { return true ; } } com.android.server.wifi.WifiNative.sPnoEventHandler = null ; return false ; } }

Target:
public boolean setPnoList ( com.android.server.wifi.WifiNative.PnoSettings settings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "setPnoList not supported" ) ; return false ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "setPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = eventHandler ; if ( com.android.server.wifi.WifiNative.setPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId , settings ) ) { return true ; } } com.android.server.wifi.WifiNative.sPnoEventHandler = null ; return false ; } } }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > getConfiguredNetworks ( ) { enforceAccessPermission ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncGetConfiguredNetworks ( android.os.Binder.getCallingUid ( ) , mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return null ; } }

Target:
public java.util.List < android.net.wifi.WifiConfiguration > getConfiguredNetworks ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncGetConfiguredNetworks ( android.os.Binder.getCallingUid ( ) , mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return null ; } }
Source:
public static void recordLastEmergencyCallTime ( android.content.Context context ) { if ( context == null ) { return ; } com.android.dialer.util.DialerUtils.getDefaultSharedPreferenceForDeviceProtectedStorageContext ( context ) . edit ( ) . putLong ( com.android.dialer.blocking.FilteredNumbersUtil.LAST_EMERGENCY_CALL_MS_PREF_KEY , java.lang.System.currentTimeMillis ( ) ) . putBoolean ( com.android.dialer.blocking.FilteredNumbersUtil.NOTIFIED_CALL_BLOCKING_DISABLED_BY_EMERGENCY_CALL_PREF_KEY , false ) . apply ( ) ; if ( android.support.v4.os.UserManagerCompat.isUserUnlocked ( context ) ) { com.android.dialer.blocking.FilteredNumbersUtil.maybeNotifyCallBlockingDisabled ( context ) ; } }

Target:
public static void recordLastEmergencyCallTime ( android.content.Context context ) { if ( context == null ) { return ; } com.android.dialer.storage.StorageComponent.get ( context ) . unencryptedSharedPrefs ( ) . edit ( ) . putLong ( com.android.dialer.blocking.FilteredNumbersUtil.LAST_EMERGENCY_CALL_MS_PREF_KEY , java.lang.System.currentTimeMillis ( ) ) . putBoolean ( com.android.dialer.blocking.FilteredNumbersUtil.NOTIFIED_CALL_BLOCKING_DISABLED_BY_EMERGENCY_CALL_PREF_KEY , false ) . apply ( ) ; if ( android.support.v4.os.UserManagerCompat.isUserUnlocked ( context ) ) { com.android.dialer.blocking.FilteredNumbersUtil.maybeNotifyCallBlockingDisabled ( context ) ; } }
Source:
public void test_init_and_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public void testSetSsidPostfix_success ( ) throws java.lang.Exception { java.lang.String ssid = "\"SSID POSTFIX\"" ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ssid ) ) ) ) . thenReturn ( mStatusSuccess ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; executeAndValidateInitializationSequence ( false , false , false ) ; assertTrue ( mDut.setSsidPostfix ( ssid ) ) ; assertFalse ( mDut.setSsidPostfix ( null ) ) ; }

Target:
public void testSetSsidPostfix_success ( ) throws java.lang.Exception { java.lang.String ssid = "SSID POSTFIX" ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ( ( "\"" + ssid ) + "\"" ) ) ) ) ) . thenReturn ( mStatusSuccess ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; executeAndValidateInitializationSequence ( false , false , false ) ; assertTrue ( mDut.setSsidPostfix ( ssid ) ) ; assertFalse ( mDut.setSsidPostfix ( null ) ) ; }
Source:
public void rilConnected ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RIL_CONNECTED ) ; mRil.setRadioPower ( false , null ) ; mRil.setCdmaSubscriptionSource ( mRil.mCdmaSubscription , null ) ; mRil.setCellInfoListRate ( ) ; mRil.notifyRegistrantsRilConnected ( ) ; }

Target:
public void rilConnected ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RIL_CONNECTED ) ; mRil.setRadioPower ( false , null ) ; mRil.setCdmaSubscriptionSource ( mRil.mCdmaSubscription , null ) ; mRil.setCellInfoListRate ( ) ; mRil.notifyRegistrantsRilConnectionChanged ( 15 ) ; }
Source:
public void testMatchesIntentAndMatcherWithMultipleCategory ( ) { org.hamcrest.Matcher < android.content.Intent > matcher = android.support.test.espresso.intent.matcher.IntentMatchers.hasCategories ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.hasItem ( org.hamcrest.Matchers.equalTo ( "category" ) ) , org.hamcrest.Matchers.hasItem ( org.hamcrest.Matchers.equalTo ( "category1" ) ) ) ) ; assertTrue ( matcher.matches ( new android.content.Intent ( android.content.Intent.ACTION_VIEW , uri ) . addCategory ( "category" ) . addCategory ( "category1" ) ) ) ; }

Target:
public void matchesIntentAndMatcherWithMultipleCategory ( ) { org.hamcrest.Matcher < android.content.Intent > matcher = android.support.test.espresso.intent.matcher.IntentMatchers.hasCategories ( org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.hasItem ( org.hamcrest.Matchers.equalTo ( "category" ) ) , org.hamcrest.Matchers.hasItem ( org.hamcrest.Matchers.equalTo ( "category1" ) ) ) ) ; org.junit.Assert.assertTrue ( matcher.matches ( new android.content.Intent ( android.content.Intent.ACTION_VIEW , uri ) . addCategory ( "category" ) . addCategory ( "category1" ) ) ) ; }
Source:
public final int startActivitiesInPackage ( int uid , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options ) { final int callingUid = android.os.Binder.getCallingUid ( ) ; if ( ( callingUid != 0 ) && ( callingUid != ( java.lang.Process.myUid ( ) ) ) ) { throw new java.lang.SecurityException ( "startActivityInPackage only available to the system" ) ; } int ret = mMainStack.startActivities ( null , uid , intents , resolvedTypes , resultTo , options , android.os.UserId.getUserId ( uid ) ) ; return ret ; }

Target:
public final int startActivity ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , java.lang.String profileFile , android.os.ParcelFileDescriptor profileFd , android.os.Bundle options ) { return startActivityAsUser ( caller , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , profileFile , profileFd , options , android.os.UserHandle.getCallingUserId ( ) ) ; }
Source:
public void update ( com.intellij.ide.actions.AnActionEvent e ) { e.getPresentation ( ) . setEnabled ( ( ( CommonDataKeys.PSI_FILE.getData ( e.getDataContext ( ) ) ) != null ) ) ; }

Target:
public static java.util.List < com.intellij.navigation.GotoRelatedItem > getItems ( @ org.jetbrains.annotations.NotNull com.intellij.psi.PsiElement contextElement , @ org.jetbrains.annotations.Nullable com.intellij.openapi.actionSystem.DataContext dataContext ) { java.util.Set < com.intellij.navigation.GotoRelatedItem > items = com.intellij.util.containers.ContainerUtil.newLinkedHashSet ( ) ; for ( com.intellij.navigation.GotoRelatedProvider provider : com.intellij.openapi.extensions.Extensions.getExtensions ( GotoRelatedProvider.EP_NAME ) ) { items.addAll ( provider.getItems ( contextElement ) ) ; if ( dataContext != null ) { items.addAll ( provider.getItems ( dataContext ) ) ; } } com.intellij.ide.actions.GotoRelatedFileAction.sortByGroupNames ( items ) ; return new java.util.ArrayList < com.intellij.navigation.GotoRelatedItem > ( items ) ; }
Source:
public void testStageInstallWithErrorCode_missingIcuFile ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro stagedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( stagedDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; com.android.timezone.distro.TimeZoneDistro incompleteDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . clearIcuDataForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( incompleteDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_missingIcuFile ( ) throws java.lang.Exception { byte [ ] stagedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( stagedDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; byte [ ] incompleteDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . clearIcuDataForTests ( ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( incompleteDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; assertNoInstalledDistro ( ) ; }
Source:
public static < T > java.lang.Iterable < T > concat ( java.lang.Iterable < ? extends T > a , java.lang.Iterable < ? extends T > b ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; return com.google.common.collect.Iterables.concat ( java.util.Arrays.asList ( a , b ) ) ; }

Target:
public static < T > java.lang.Iterable < T > concat ( java.lang.Iterable < ? extends T > a , java.lang.Iterable < ? extends T > b ) { return com.google.common.collect.Iterables.concat ( com.google.common.collect.ImmutableList.of ( a , b ) ) ; }
Source:
private static void addModuleForAccessingCallDetails ( android.content.Context context , com.android.dialer.dialercontact.DialerContact dialerContact , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules ) { com.android.dialer.calldetails.CallDetailsEntries callDetailsEntries = com.android.dialer.calldetails.CallDetailsEntries.getDefaultInstance ( ) ; boolean canReportInaccurateNumber = false ; boolean canSupportAssistedDialing = false ; modules.add ( new com.android.dialer.contactactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , callDetailsEntries , dialerContact , canReportInaccurateNumber , canSupportAssistedDialing ) , R.string.call_details , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ) ; }

Target:
private static void addModuleForAccessingCallDetails ( android.content.Context context , com.android.dialer.dialercontact.DialerContact dialerContact , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules ) { com.android.dialer.calldetails.CallDetailsEntries callDetailsEntries = com.android.dialer.calldetails.CallDetailsEntries.getDefaultInstance ( ) ; boolean canReportInaccurateNumber = false ; boolean canSupportAssistedDialing = false ; modules.add ( new com.android.dialer.contactactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , callDetailsEntries , dialerContact , canReportInaccurateNumber , canSupportAssistedDialing ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ) ; }
Source:
public java.lang.String httpRequestString ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "url" ) java.lang.String url ) throws java.io.IOException { java.net.HttpURLConnection urlConnection = httpRequest ( url ) ; java.io.InputStream in = new java.io.BufferedInputStream ( urlConnection.getInputStream ( ) ) ; java.lang.String result = inputStreamToString ( in ) ; com.googlecode.android_scripting.Log.d ( ( "Fetched: " + result ) ) ; return result ; }

Target:
public java.lang.String httpRequestString ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "url" ) java.lang.String url ) throws java.io.IOException { java.net.HttpURLConnection urlConnection = httpRequest ( url ) ; java.io.InputStream in = new java.io.BufferedInputStream ( urlConnection.getInputStream ( ) ) ; java.lang.String result = inputStreamToString ( in ) ; com.googlecode.android_scripting.Log.d ( ( "Fetched: " + result ) ) ; urlConnection.disconnect ( ) ; return result ; }
Source:
public void testGetProperty_volatile ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [0]\r\n" ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [1]\r\n" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertEquals ( "0" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; assertEquals ( "1" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }

Target:
public void testGetProperty_volatile ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = com.android.ddmlib.DeviceTest.createMockDevice ( ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [0]\r\n" ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [1]\r\n" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertEquals ( "0" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; assertEquals ( "1" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }
Source:
public void onPostDialWait ( java.lang.String callId , java.lang.String remaining ) throws android.os.RemoteException { android.telecom.Log.startSession ( "CSW.oPDW" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialWait %s %s" , callId , remaining ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialWait ( remaining ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void onPostDialWait ( java.lang.String callId , java.lang.String remaining , android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.startSession ( sessionInfo , "CSW.oPDW" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialWait %s %s" , callId , remaining ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialWait ( remaining ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
private void addItem ( @ com.android.annotations.NonNull com.android.ide.common.res2.ResourceItem item ) { synchronized ( mItems ) { com.google.common.collect.ListMultimap < java.lang.String , com.android.ide.common.res2.ResourceItem > map = mItems.get ( item.getType ( ) ) ; if ( map == null ) { map = com.google.common.collect.ArrayListMultimap.create ( ) ; mItems.put ( item.getType ( ) , map ) ; } if ( ! ( map.containsValue ( item ) ) ) { map.put ( item.getName ( ) , item ) ; } } }

Target:
protected com.google.common.collect.ListMultimap < java.lang.String , com.android.ide.common.res2.ResourceItem > getMap ( com.android.resources.ResourceType type , boolean create ) { com.google.common.collect.ListMultimap < java.lang.String , com.android.ide.common.res2.ResourceItem > multimap = mItems.get ( type ) ; if ( ( multimap == null ) && create ) { multimap = com.google.common.collect.ArrayListMultimap.create ( ) ; mItems.put ( type , multimap ) ; } return multimap ; }
Source:
private java.lang.String getReportBaseName ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy.MM.dd-HH.mm.ss" , java.util.Locale.ENGLISH ) ; }

Target:
private java.lang.String getReportBaseName ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy.MM.dd-HH.mm.ss" , java.util.Locale.ENGLISH ) ; java.lang.String date = dateFormat.format ( new java.util.Date ( ) ) ; return ( ( ( ( ( ( ( ( ( "ctsVerifierReport" + "-" ) + date ) + "-" ) + ( android.os.Build.MANUFACTURER ) ) + "-" ) + ( android.os.Build.PRODUCT ) ) + "-" ) + ( android.os.Build.DEVICE ) ) + "-" ) + ( android.os.Build.ID ) ; }
Source:
public void resetSapProxy ( ) { synchronized ( mSapProxyLock ) { mSapProxy = null ; } }

Target:
public void resetSapProxy ( ) { synchronized ( mSapProxyLock ) { if ( com.android.bluetooth.sap.SapRilReceiver.DEBUG ) android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "resetSapProxy :" + ( mSapProxy ) ) ) ; try { if ( ( mSapProxy ) != null ) { mSapProxy.unlinkToDeath ( mSapProxyDeathRecipient ) ; } } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { android.util.Log.e ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "resetSapProxy: exception: " + e ) ) ; } mSapProxy = null ; } }
Source:
void setGlobal ( android.support.v8.renderscript.Script.FieldID fieldID , java.lang.Object obj ) { android.support.v8.renderscript.ScriptGroup2.Closure.ValueAndSize vs = new android.support.v8.renderscript.ScriptGroup2.Closure.ValueAndSize ( mRS , obj ) ; mRS.nClosureSetGlobal ( getID ( mRS ) , fieldID.getID ( mRS ) , vs.value , vs.size ) ; }

Target:
void setGlobal ( android.support.v8.renderscript.Script.FieldID fieldID , java.lang.Object obj ) { mBindings.put ( fieldID , obj ) ; android.support.v8.renderscript.ScriptGroup2.Closure.ValueAndSize vs = new android.support.v8.renderscript.ScriptGroup2.Closure.ValueAndSize ( mRS , obj ) ; mRS.nClosureSetGlobal ( getID ( mRS ) , fieldID.getID ( mRS ) , vs.value , vs.size ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperation binOp ) { super . visit ( binOp ) ; if ( ( ( binOp.getOp ( ) ) == ( com.android.jack.ir.ast.JBinaryOperator.AND ) ) || ( ( binOp.getOp ( ) ) == ( com.android.jack.ir.ast.JBinaryOperator.OR ) ) ) { throw new java.lang.AssertionError ( ( "Conditonal operator found : " + ( binOp.toSource ( ) ) ) ) ; } return true ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperation binOp ) { super . visit ( binOp ) ; if ( ( ( binOp.getOp ( ) ) == ( com.android.jack.ir.ast.JBinaryOperator.AND ) ) || ( ( binOp.getOp ( ) ) == ( com.android.jack.ir.ast.JBinaryOperator.OR ) ) ) { throw new java.lang.AssertionError ( ( "Conditional operator found : " + ( binOp.toSource ( ) ) ) ) ; } return true ; }
Source:
private void assertShortsEqual ( short [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekShort ( ( ptr + ( 2 * i ) ) , swap ) ) ; } }

Target:
private void assertShortsEqual ( short [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekShort ( ( ptr + ( ( SizeOf.SHORT ) * i ) ) , swap ) ) ; } }
Source:
private void updateAudioTtyMode ( ) { java.lang.String audioTtyMode ; switch ( mCurrentTtyMode ) { case android.telecom.TelecomManager.TTY_MODE_FULL : audioTtyMode = "tty_full" ; break ; case android.telecom.TelecomManager.TTY_MODE_VCO : audioTtyMode = "tty_vco" ; break ; case android.telecom.TelecomManager.TTY_MODE_HCO : audioTtyMode = "tty_hco" ; break ; case android.telecom.TelecomManager.TTY_MODE_OFF : default : audioTtyMode = "tty_off" ; break ; } com.android.server.telecom.Log.v ( this , "updateAudioTtyMode, %s" , audioTtyMode ) ; android.media.AudioManager audioManager = ( ( android.media.AudioManager ) ( mContext.getSystemService ( Context.AUDIO_SERVICE ) ) ) ; audioManager.setParameters ( ( "tty_mode=" + audioTtyMode ) ) ; }

Target:
private void updateAudioTtyMode ( ) { java.lang.String audioTtyMode ; switch ( mCurrentTtyMode ) { case android.telecom.TelecomManager.TTY_MODE_FULL : audioTtyMode = "tty_full" ; break ; case android.telecom.TelecomManager.TTY_MODE_VCO : audioTtyMode = "tty_vco" ; break ; case android.telecom.TelecomManager.TTY_MODE_HCO : audioTtyMode = "tty_hco" ; break ; case android.telecom.TelecomManager.TTY_MODE_OFF : default : audioTtyMode = "tty_off" ; break ; } android.telecom.Log.v ( this , "updateAudioTtyMode, %s" , audioTtyMode ) ; android.media.AudioManager audioManager = ( ( android.media.AudioManager ) ( mContext.getSystemService ( Context.AUDIO_SERVICE ) ) ) ; audioManager.setParameters ( ( "tty_mode=" + audioTtyMode ) ) ; }
Source:
public android.bluetooth.le.AdvertisingSetParameters.Builder setSecondaryPhy ( int secondaryPhy ) { if ( ( ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_1M ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_2M ) ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad secondaryPhy " + secondaryPhy ) ) ; } this . secondaryPhy = secondaryPhy ; return this ; }

Target:
public android.bluetooth.le.AdvertisingSetParameters.Builder setSecondaryPhy ( int secondaryPhy ) { if ( ( ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_1M ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_2M ) ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad secondaryPhy " + secondaryPhy ) ) ; } mSecondaryPhy = secondaryPhy ; return this ; }
Source:
public synchronized void onAcceptFailed ( ) { mServerSockets = null ; if ( ( ( ! ( mInterrupted ) ) && ( ( mAdapter ) != null ) ) && ( mAdapter.isEnabled ( ) ) ) { startSocketListeners ( ) ; } }

Target:
private void loadAllContacts ( ) { if ( ( mThreadLoadContacts ) == null ) { java.lang.Runnable r = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.bluetooth.pbap.BluetoothPbapUtils.loadAllContacts ( mContext , mSessionStatusHandler ) ; mThreadLoadContacts = null ; } } ; mThreadLoadContacts = new java.lang.Thread ( r ) ; mThreadLoadContacts.start ( ) ; } }
Source:
public void onDismissDialog ( ) { com.android.dialer.common.LogUtil.i ( "InCallPresenter.onDismissDialog" , "Dialog dismissed" ) ; if ( ( mInCallState ) == ( com.android.incallui.InCallPresenter.InCallState.NO_CALLS ) ) { attemptFinishActivity ( ) ; attemptCleanup ( ) ; } }

Target:
private void releaseInCallUiLock ( com.android.incallui.incalluilock.InCallUiLock lock ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.i ( "InCallPresenter.releaseInCallUiLock" , "releasing %s" , lock ) ; mInCallUiLocks.remove ( lock ) ; if ( mInCallUiLocks.isEmpty ( ) ) { com.android.dialer.common.LogUtil.i ( "InCallPresenter.releaseInCallUiLock" , "all locks released" ) ; if ( ( mInCallState ) == ( com.android.incallui.InCallPresenter.InCallState.NO_CALLS ) ) { com.android.dialer.common.LogUtil.i ( "InCallPresenter.releaseInCallUiLock" , "no more calls, finishing UI" ) ; attemptFinishActivity ( ) ; attemptCleanup ( ) ; } } }
Source:
private static java.lang.String secureHash ( byte [ ] input ) { if ( ( android.telecom.Log.sMessageDigest ) != null ) { android.telecom.Log.sMessageDigest.reset ( ) ; android.telecom.Log.sMessageDigest.update ( input ) ; byte [ ] result = android.telecom.Log.sMessageDigest.digest ( ) ; return android.telecom.Log.encodeHex ( result ) ; } else { return "Uninitialized SHA1" ; } }

Target:
private static java.lang.String secureHash ( byte [ ] input ) { if ( android.telecom.Log.USER_BUILD ) { return "****" ; } if ( ( android.telecom.Log.sMessageDigest ) != null ) { android.telecom.Log.sMessageDigest.reset ( ) ; android.telecom.Log.sMessageDigest.update ( input ) ; byte [ ] result = android.telecom.Log.sMessageDigest.digest ( ) ; return android.telecom.Log.encodeHex ( result ) ; } else { return "Uninitialized SHA1" ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copyFromUnchecked ( int [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void testIteratorRemove ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Iterator it = full.iterator ( ) ; it.next ( ) ; try { it.remove ( ) ; shouldThrow ( ) ; } catch ( java.lang.UnsupportedOperationException success ) { } }

Target:
public void testSize ( ) { java.util.Collection empty = new java.util.concurrent.CopyOnWriteArraySet ( ) ; java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertEquals ( 3 , full.size ( ) ) ; assertEquals ( 0 , empty.size ( ) ) ; }
Source:
void setTable ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] newTable ) { threshold = ( ( int ) ( ( newTable.length ) * ( loadFactor ) ) ) ; table = newTable ; }

Target:
static final < K , V > void setEntryAt ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] tab , int i , java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > e ) { java.util.concurrent.ConcurrentHashMap.UNSAFE.putOrderedObject ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.TSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.TBASE ) ) , e ) ; }
Source:
public void run ( ) { boolean loggedIn = state.logInWithLocalServer ( message ) ; if ( loggedIn ) { com.google.gct.login.IGoogleLoginCompletedCallback localCallback = new com.google.gct.login.IGoogleLoginCompletedCallback ( ) { @ java.lang.Override public void onLoginCompleted ( ) { uiFacade.notifyStatusIndicator ( ) ; if ( callback != null ) { callback.onLoginCompleted ( ) ; } } } ; users.addUser ( new com.google.gct.login.CredentialedUser ( state , localCallback ) ) ; } }

Target:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setIndeterminate ( true ) ; if ( ! ( indicator instanceof com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ) { return ; } ( ( com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ( indicator ) ) . addStateDelegate ( new com.intellij.openapi.progress.util.ProgressIndicatorBase ( ) { @ java.lang.Override public void cancel ( ) { assert ( uiFacade ) != null ; uiFacade.stop ( ) ; super . cancel ( ) ; } } ) ; loggedIn = state.logInWithLocalServer ( message ) ; }
Source:
public void mouseDragged ( java.awt.event.MouseEvent event ) { if ( ! ( checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ) ) { moveLine ( event.getX ( ) , event.getY ( ) ) ; } }

Target:
public void mouseMoved ( java.awt.event.MouseEvent event ) { int x = imageXCoordinate ( event.getX ( ) ) ; int y = imageYCoordinate ( event.getY ( ) ) ; checkLockedRegion ( x , y ) ; updateHoverRegion ( x , y ) ; repaint ( ) ; }
Source:
public boolean post ( java.lang.Runnable action ) { android.os.Handler handler ; if ( ( mAttachInfo ) != null ) { handler = mAttachInfo.mHandler ; } else { android.view.ViewRoot.getRunQueue ( ) . post ( action ) ; return true ; } return handler.post ( action ) ; }

Target:
public boolean callOnClick ( ) { android.view.View.ListenerInfo li = mListenerInfo ; if ( ( li != null ) && ( ( li.mOnClickListener ) != null ) ) { li.mOnClickListener.onClick ( this ) ; return true ; } return false ; }
Source:
private void sendNsdStateChangeBroadcast ( boolean isEnabled ) { final android.content.Intent intent = new android.content.Intent ( android.net.nsd.NsdManager.ACTION_NSD_STATE_CHANGED ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; int nsdState = ( isEnabled ) ? android.net.nsd.NsdManager.NSD_STATE_ENABLED : android.net.nsd.NsdManager.NSD_STATE_DISABLED ; intent.putExtra ( NsdManager.EXTRA_NSD_STATE , nsdState ) ; mContext.sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; }

Target:
private void sendNsdStateChangeBroadcast ( boolean enabled ) { final android.content.Intent intent = new android.content.Intent ( android.net.nsd.NsdManager.ACTION_NSD_STATE_CHANGED ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; if ( enabled ) { intent.putExtra ( NsdManager.EXTRA_NSD_STATE , NsdManager.NSD_STATE_ENABLED ) ; } else { intent.putExtra ( NsdManager.EXTRA_NSD_STATE , NsdManager.NSD_STATE_DISABLED ) ; } mContext.sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
public java.lang.String [ ] getStreamTypes ( android.net.Uri url , java.lang.String mimeTypeFilter ) { android.content.IContentProvider provider = acquireProvider ( url ) ; if ( provider == null ) { return null ; } try { return provider.getStreamTypes ( url , mimeTypeFilter ) ; } catch ( android.os.RemoteException e ) { return null ; } finally { releaseProvider ( provider ) ; } }

Target:
public java.lang.String [ ] getStreamTypes ( @ android.annotation.NonNull android.net.Uri url , @ android.annotation.NonNull java.lang.String mimeTypeFilter ) { com.android.internal.util.Preconditions.checkNotNull ( url , "url" ) ; com.android.internal.util.Preconditions.checkNotNull ( mimeTypeFilter , "mimeTypeFilter" ) ; android.content.IContentProvider provider = acquireProvider ( url ) ; if ( provider == null ) { return null ; } try { return provider.getStreamTypes ( url , mimeTypeFilter ) ; } catch ( android.os.RemoteException e ) { return null ; } finally { releaseProvider ( provider ) ; } }
Source:
public java.io.InputStream open ( java.lang.String path ) throws java.io.IOException { java.util.zip.ZipEntry entry = archive.getEntry ( path ) ; if ( entry == null ) { throw new java.io.FileNotFoundException ( path ) ; } else { return archive.getInputStream ( entry ) ; } }

Target:
public java.io.InputStream open ( java.lang.String path ) throws java.io.IOException { java.util.zip.ZipEntry entry = archive.getEntry ( path ) ; if ( entry == null ) { throw new java.io.FileNotFoundException ( ( ( "File \"" + path ) + "\" not found" ) ) ; } else if ( entry.isDirectory ( ) ) { throw new com.android.multidex.ArchivePathElement.DirectoryEntryException ( ) ; } else { return archive.getInputStream ( entry ) ; } }
Source:
public java.lang.String getDisplayCountry ( java.util.Locale locale ) { if ( countryCode.isEmpty ( ) ) { return "" ; } java.lang.String result = libcore.icu.ICU.getDisplayCountryNative ( toString ( ) , locale.toString ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayCountryNative ( toString ( ) , java.util.Locale.getDefault ( ) . toString ( ) ) ; } return result ; }

Target:
public java.lang.String getDisplayCountry ( java.util.Locale locale ) { if ( countryCode.isEmpty ( ) ) { return "" ; } java.lang.String result = libcore.icu.ICU.getDisplayCountryNative ( getIcuLocaleId ( ) , locale.getIcuLocaleId ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayCountryNative ( getIcuLocaleId ( ) , java.util.Locale.getDefault ( ) . getIcuLocaleId ( ) ) ; } return result ; }
Source:
private void buildSetupMethod ( final org.jetbrains.asm4.commons.GeneratorAdapter generator ) { try { final com.intellij.uiDesigner.compiler.LwComponent topComponent = ( ( com.intellij.uiDesigner.compiler.LwComponent ) ( myRootContainer.getComponent ( 0 ) ) ) ; generateSetupCodeForComponent ( topComponent , generator , ( - 1 ) ) ; generateComponentReferenceProperties ( topComponent , generator ) ; generateButtonGroups ( myRootContainer , generator ) ; } catch ( com.intellij.uiDesigner.compiler.CodeGenerationException e ) { myErrors.add ( new com.intellij.uiDesigner.compiler.FormErrorInfo ( e.getComponentId ( ) , e.getMessage ( ) ) ) ; } generator.returnValue ( ) ; generator.endMethod ( ) ; }

Target:
private void buildSetupMethod ( final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator ) { try { final com.intellij.uiDesigner.compiler.LwComponent topComponent = ( ( com.intellij.uiDesigner.compiler.LwComponent ) ( myRootContainer.getComponent ( 0 ) ) ) ; generateSetupCodeForComponent ( topComponent , generator , ( - 1 ) ) ; generateComponentReferenceProperties ( topComponent , generator ) ; generateButtonGroups ( myRootContainer , generator ) ; } catch ( com.intellij.uiDesigner.compiler.CodeGenerationException e ) { myErrors.add ( new com.intellij.uiDesigner.compiler.FormErrorInfo ( e.getComponentId ( ) , e.getMessage ( ) ) ) ; } generator.returnValue ( ) ; generator.endMethod ( ) ; }
Source:
private void expectNetworkStatsSummary ( android.net.NetworkStats summary ) throws java.lang.Exception { org.mockito.Mockito.when ( mConnManager.getAllVpnInfo ( ) ) . thenReturn ( new com.android.internal.net.VpnInfo [ 0 ] ) ; expectNetworkStatsSummaryDev ( summary ) ; expectNetworkStatsSummaryXt ( summary ) ; }

Target:
private void expectNetworkStatsSummary ( android.net.NetworkStats summary , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.mockito.Mockito.when ( mConnManager.getAllVpnInfo ( ) ) . thenReturn ( new com.android.internal.net.VpnInfo [ 0 ] ) ; expectNetworkStatsTethering ( android.net.NetworkStats.STATS_PER_IFACE , tetherStats ) ; expectNetworkStatsSummaryDev ( summary.clone ( ) ) ; expectNetworkStatsSummaryXt ( summary.clone ( ) ) ; }
Source:
boolean isEmpty ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir dir ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
private java.lang.StringBuffer getPathFromDirInternal ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir baseDir , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentDir ) { if ( baseDir == currentDir ) { return new java.lang.StringBuffer ( ) ; } com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentParent = ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( currentDir.getParent ( ) ) ) ; assert currentParent != null ; return getPathFromDirInternal ( baseDir , currentParent ) . append ( currentDir.getName ( ) ) . append ( '/' ) ; }
Source:
private android.net.ConnectivityManager.NetworkCallback removeRequestForFeature ( android.net.NetworkCapabilities netCap ) { synchronized ( android.net.ConnectivityManager.sLegacyRequests ) { android.net.ConnectivityManager.LegacyRequest l = android.net.ConnectivityManager.sLegacyRequests.remove ( netCap ) ; if ( l == null ) return null ; return l.networkCallback ; } }

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:
public void run ( ) { updateExternalMediaStatusInner ( mediaStatus , reportStatus , true ) ; }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final boolean succeded ; synchronized ( mInstallLock ) { succeded = deleteApplicationCacheFilesLI ( packageName , userId ) ; } clearExternalStorageDataSync ( packageName , userId , false ) ; if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , succeded ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
public void checkValidity ( ) { if ( ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) ) && ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JLambda ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }

Target:
public void checkValidity ( ) { if ( ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) ) && ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JLambda ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } if ( ( params.size ( ) ) != ( methodId.getMethodIdWide ( ) . getParamTypes ( ) . size ( ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Parameter size does not match type size of MethodID." ) ; } }
Source:
public static boolean tryWaitForIdleSync ( long timeoutMillis ) { io.appium.droiddriver.util.InstrumentationUtils.validateNotAppThread ( ) ; java.util.concurrent.FutureTask < java.lang.Void > emptyTask = new java.util.concurrent.FutureTask < java.lang.Void > ( io.appium.droiddriver.util.InstrumentationUtils.EMPTY_RUNNABLE , null ) ; io.appium.droiddriver.util.InstrumentationUtils.instrumentation.waitForIdle ( emptyTask ) ; try { emptyTask.get ( timeoutMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.util.concurrent.TimeoutException e ) { io.appium.droiddriver.util.Logs.log ( Log.INFO , ( ( "Timed out after " + timeoutMillis ) + " milliseconds waiting for idle on main looper" ) ) ; return false ; } catch ( java.lang.Throwable e ) { throw new io.appium.droiddriver.exceptions.DroidDriverException ( e ) ; } return true ; }

Target:
public static boolean tryWaitForIdleSync ( long timeoutMillis ) { io.appium.droiddriver.util.InstrumentationUtils.validateNotAppThread ( ) ; java.util.concurrent.FutureTask < java.lang.Void > emptyTask = new java.util.concurrent.FutureTask < java.lang.Void > ( io.appium.droiddriver.util.InstrumentationUtils.EMPTY_RUNNABLE , null ) ; io.appium.droiddriver.util.InstrumentationUtils.instrumentation.waitForIdle ( emptyTask ) ; try { emptyTask.get ( timeoutMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.util.concurrent.TimeoutException e ) { io.appium.droiddriver.util.Logs.log ( Log.INFO , ( ( "Timed out after " + timeoutMillis ) + " milliseconds waiting for idle on main looper" ) ) ; return false ; } catch ( java.lang.Throwable t ) { throw io.appium.droiddriver.exceptions.DroidDriverException.propagate ( t ) ; } return true ; }
Source:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { if ( ! ( isLoudnessEnhancerAvailable ( ) ) ) { return ; } getLoudnessEnhancer ( getSessionId ( ) ) ; mLE.release ( ) ; try { mLE.setEnabled ( true ) ; fail ( "setEnabled() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseLoudnessEnhancer ( ) ; } }

Target:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { if ( ! ( hasAudioOutput ( ) ) ) { return ; } getLoudnessEnhancer ( getSessionId ( ) ) ; mLE.release ( ) ; try { mLE.setEnabled ( true ) ; fail ( "setEnabled() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseLoudnessEnhancer ( ) ; } }
Source:
public void testStageUninstall_existingStagedDataDistro ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro installedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistro ) ; java.io.File stagedDataDir = installer.getStagedTzDataDir ( ) ; assertTrue ( stagedDataDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertInstalledDistro ( installedDistro ) ; }

Target:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { byte [ ] installedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistroBytes ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistroBytes ) ; }