auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void nvWriteItem ( int itemID , java.lang.String itemValue , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_WRITE_ITEM , response ) ; rr.mParcel.writeInt ( itemID ) ; rr.mParcel.writeString ( itemValue ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ' ' ) + itemID ) + ": " ) + itemValue ) ) ; send ( rr ) ; }

Target:
private com.android.internal.telephony.RadioCapability makeStaticRadioCapability ( ) { int raf = android.telephony.RadioAccessFamily.RAF_UNKNOWN ; java.lang.String rafString = mContext.getResources ( ) . getString ( com.android.internal.R.string.config_radio_access_family ) ; if ( ! ( android.text.TextUtils.isEmpty ( rafString ) ) ) { raf = android.telephony.RadioAccessFamily.rafTypeFromString ( rafString ) ; } com.android.internal.telephony.RadioCapability rc = new com.android.internal.telephony.RadioCapability ( mPhoneId.intValue ( ) , 0 , 0 , raf , "" , RadioCapability.RC_STATUS_SUCCESS ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( "Faking RIL_REQUEST_GET_RADIO_CAPABILITY response using " + raf ) ) ; return rc ; }
Source:
private static java.lang.String arrayToString ( java.lang.String [ ] array ) { java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; s.append ( '[' ) ; boolean first = true ; for ( java.lang.String a : array ) { if ( ! first ) s.append ( ',' ) ; first = false ; s.append ( a ) ; } s.append ( ']' ) ; return s.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; s.append ( "UpdateRecord[" ) ; s.append ( mProvider ) ; s.append ( ' ' ) . append ( mReceiver.mPackageName ) . append ( '(' ) ; s.append ( mReceiver.mUid ) . append ( ')' ) ; s.append ( ' ' ) . append ( mRequest ) ; s.append ( ']' ) ; return s.toString ( ) ; }
Source:
public int checkCallingOrSelfPermission ( java.lang.String permission ) { return android.content.pm.PackageManager.PERMISSION_GRANTED ; }

Target:
public int checkCallingOrSelfPermission ( java.lang.String permission ) { if ( ( mPermissionTable.contains ( permission ) ) || ( mPermissionTable.contains ( com.android.internal.telephony.ContextFixture.PERMISSION_ENABLE_ALL ) ) ) { com.android.internal.telephony.ContextFixture.logd ( ( ( "checkCallingOrSelfPermission: " + permission ) + " return GRANTED" ) ) ; return android.content.pm.PackageManager.PERMISSION_GRANTED ; } else { com.android.internal.telephony.ContextFixture.logd ( ( ( "checkCallingOrSelfPermission: " + permission ) + " return DENIED" ) ) ; return android.content.pm.PackageManager.PERMISSION_DENIED ; } }
Source:
final void put ( short [ ] src , int srcOffset , int shortCount ) { checkNotFreed ( ) ; int byteCount = checkPutBounds ( SizeOf.SHORT , src.length , srcOffset , shortCount ) ; this . block.pokeShortArray ( ( ( offset ) + ( position ) ) , src , srcOffset , shortCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( short [ ] src , int srcOffset , int shortCount ) { checkIsAccessible ( ) ; int byteCount = checkPutBounds ( SizeOf.SHORT , src.length , srcOffset , shortCount ) ; this . block.pokeShortArray ( ( ( offset ) + ( position ) ) , src , srcOffset , shortCount , order.needsSwap ) ; position += byteCount ; }
Source:
void windowAddedLocked ( ) { if ( ( mSurfaceSession ) == null ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( ( "First window added to " + ( this ) ) + ", creating SurfaceSession" ) ) ; mSurfaceSession = new android.view.SurfaceSession ( ) ; if ( com.android.server.WindowManagerService.SHOW_TRANSACTIONS ) android.util.Log.i ( com.android.server.WindowManagerService.TAG , ( " NEW SURFACE SESSION " + ( mSurfaceSession ) ) ) ; mSessions.add ( this ) ; } ( mNumWindow ) ++ ; }

Target:
void windowAddedLocked ( ) { if ( ( mSurfaceSession ) == null ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( ( "First window added to " + ( this ) ) + ", creating SurfaceSession" ) ) ; mSurfaceSession = new android.view.SurfaceSession ( ) ; if ( com.android.server.WindowManagerService.SHOW_TRANSACTIONS ) android.util.Slog.i ( com.android.server.WindowManagerService.TAG , ( " NEW SURFACE SESSION " + ( mSurfaceSession ) ) ) ; mSessions.add ( this ) ; } ( mNumWindow ) ++ ; }
Source:
public void testWrongAid ( ) { testNonSelectableAid ( android.omapi.cts.OmapiTest.NON_SELECTABLE_AID ) ; }

Target:
public void testWrongAid ( ) { try { waitForConnection ( ) ; android.se.omapi.Reader [ ] readers = seService.getReaders ( ) ; for ( android.se.omapi.Reader reader : readers ) { testNonSelectableAid ( reader , android.omapi.cts.OmapiTest.NON_SELECTABLE_AID ) ; } } catch ( java.util.concurrent.TimeoutException e ) { fail ( ( "unexpected exception " + e ) ) ; } }
Source:
public void eventTransmitFollowup ( short id , android.hardware.wifi.V1_0.WifiNanStatus status ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventTransmitFollowup: id=" + id ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; if ( ( status.status ) == ( android.hardware.wifi.V1_0.NanStatusType.SUCCESS ) ) { mWifiAwareStateManager.onMessageSendSuccessNotification ( id ) ; } else { mWifiAwareStateManager.onMessageSendFailNotification ( id , status.status ) ; } }

Target:
public void eventTransmitFollowup ( short id , android.hardware.wifi.V1_0.WifiNanStatus status ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventTransmitFollowup: id=" + id ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; } if ( ( status.status ) == ( android.hardware.wifi.V1_0.NanStatusType.SUCCESS ) ) { mWifiAwareStateManager.onMessageSendSuccessNotification ( id ) ; } else { mWifiAwareStateManager.onMessageSendFailNotification ( id , status.status ) ; } }
Source:
public void onScheduledRecordingRemoved ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.TAG , ( "onScheduledRecordingRemoved: " + schedule ) ) ; int index = findRowIndexByProgramId ( schedule.getProgramId ( ) ) ; if ( index != ( - 1 ) ) { com.android.tv.dvr.ui.list.EpisodicProgramRow row = ( ( com.android.tv.dvr.ui.list.EpisodicProgramRow ) ( get ( index ) ) ) ; row.setSchedule ( null ) ; notifyArrayItemRangeChanged ( index , 1 ) ; } }

Target:
public void onScheduledRecordingRemoved ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.TAG , ( "onScheduledRecordingRemoved: " + schedule ) ) ; int index = findRowIndexByProgramId ( schedule.getProgramId ( ) ) ; if ( index != ( - 1 ) ) { com.android.tv.dvr.ui.list.EpisodicProgramRow row = ( ( com.android.tv.dvr.ui.list.EpisodicProgramRow ) ( get ( index ) ) ) ; row.setSchedule ( null ) ; notifyArrayItemRangeChanged ( index , 1 ) ; } }
Source:
public void restoreconAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.restoreconAppData ( uuid , packageName , userId , flags , appId , seInfo ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void restoreconAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.restoreconAppData ( uuid , packageName , userId , flags , appId , seInfo ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void testOnSetUpLocalArtifectsNotExists ( ) throws java.lang.Exception { com.android.tradefed.config.OptionSetter setter = new com.android.tradefed.config.OptionSetter ( mPreparer ) ; setter.setOptionValue ( "use-local-artifects" , "true" ) ; setter.setOptionValue ( "local-coverage-resource-path" , com.android.tradefed.targetprep.VtsCoveragePreparerTest.TEST_COVERAGE_RESOURCE_PATH ) ; doReturn ( "1" ) . when ( mDevice ) . getProperty ( GCOV_PROPERTY ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; verify ( mBuildInfo , never ( ) ) . setFile ( anyObject ( ) , anyObject ( ) , anyObject ( ) ) ; }

Target:
public void testOnSetUpLocalArtifectsNotExists ( ) throws java.lang.Exception { com.android.tradefed.config.OptionSetter setter = new com.android.tradefed.config.OptionSetter ( mPreparer ) ; setter.setOptionValue ( "use-local-artifects" , "true" ) ; setter.setOptionValue ( "local-coverage-resource-path" , com.android.tradefed.targetprep.VtsCoveragePreparerTest.TEST_COVERAGE_RESOURCE_PATH ) ; org.mockito.Mockito.doReturn ( "1" ) . when ( mDevice ) . getProperty ( GCOV_PROPERTY ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; org.mockito.Mockito.verify ( mBuildInfo , org.mockito.Mockito.never ( ) ) . setFile ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void setVideoProvider ( com.android.internal.telecom.IVideoProvider videoProvider ) { com.android.server.telecom.Log.v ( this , "setVideoProvider" ) ; if ( videoProvider != null ) { try { mVideoProviderProxy = new com.android.server.telecom.VideoProviderProxy ( mLock , videoProvider , this ) ; } catch ( android.os.RemoteException ignored ) { } } else { mVideoProviderProxy = null ; } mVideoProvider = videoProvider ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onVideoCallProviderChanged ( this ) ; } }

Target:
public void setVideoProvider ( com.android.internal.telecom.IVideoProvider videoProvider ) { android.telecom.Log.v ( this , "setVideoProvider" ) ; if ( videoProvider != null ) { try { mVideoProviderProxy = new com.android.server.telecom.VideoProviderProxy ( mLock , videoProvider , this ) ; } catch ( android.os.RemoteException ignored ) { } } else { mVideoProviderProxy = null ; } mVideoProvider = videoProvider ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onVideoCallProviderChanged ( this ) ; } }
Source:
public void error ( @ com.android.annotations.Nullable java.lang.Throwable throwable , @ com.android.annotations.Nullable java.lang.String errorFormat , java.lang.Object ... arg ) { if ( errorFormat != null ) { logMessages.add ( java.lang.String.format ( ( "Error: " + errorFormat ) , arg ) ) ; } if ( throwable != null ) { logMessages.add ( throwable.getMessage ( ) ) ; } }

Target:
public void error ( @ com.android.annotations.Nullable java.lang.Throwable throwable , @ com.android.annotations.Nullable java.lang.String errorFormat , java.lang.Object ... arg ) { hasError.set ( true ) ; if ( errorFormat != null ) { logMessages.add ( java.lang.String.format ( ( "Error: " + errorFormat ) , arg ) ) ; } if ( throwable != null ) { logMessages.add ( throwable.getMessage ( ) ) ; } }
Source:
public static java.lang.String getResourceForFirstArg ( @ com.android.annotations.NonNull org.w3c.dom.Node method , @ com.android.annotations.NonNull org.w3c.dom.Node call ) { assert ( call instanceof lombok.ast.MethodInvocation ) || ( call instanceof lombok.ast.ConstructorInvocation ) ; com.android.tools.lint.checks.StringFormatDetector.StringTracker tracker = new com.android.tools.lint.checks.StringFormatDetector.StringTracker ( null , method , call , 0 ) ; method.accept ( tracker ) ; return tracker.getFormatStringName ( ) ; }

Target:
private static boolean isCharacterType ( com.intellij.psi.PsiType type ) { if ( type == ( com.intellij.psi.PsiType.CHAR ) ) { return true ; } if ( type instanceof com.intellij.psi.PsiClassType ) { java.lang.String fqn = type.getCanonicalText ( ) ; return com.android.tools.lint.client.api.JavaParser.TYPE_CHARACTER_WRAPPER.equals ( fqn ) ; } return false ; }
Source:
public void testUpdate_allNetworksScored ( ) { org.mockito.Mockito.when ( mNetworkScoreCache.isScoredNetwork ( mTrustedScanDetail.getScanResult ( ) ) ) . thenReturn ( true ) ; org.mockito.Mockito.when ( mNetworkScoreCache.isScoredNetwork ( mUntrustedScanDetail.getScanResult ( ) ) ) . thenReturn ( true ) ; mRecommendedNetworkEvaluator.update ( com.google.android.collect.Lists.newArrayList ( mTrustedScanDetail , mUntrustedScanDetail ) ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; }

Target:
public void testUpdate_allNetworksScored ( ) { org.mockito.Mockito.when ( mNetworkScoreCache.isScoredNetwork ( mTrustedScanDetail.getScanResult ( ) ) ) . thenReturn ( true ) ; org.mockito.Mockito.when ( mNetworkScoreCache.isScoredNetwork ( mUntrustedScanDetail.getScanResult ( ) ) ) . thenReturn ( true ) ; mRecommendedNetworkEvaluator.update ( com.google.android.collect.Lists.newArrayList ( mTrustedScanDetail , mUntrustedScanDetail ) ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; org.mockito.Mockito.verify ( mWifiConfigManager ) . updateNetworkNotRecommended ( mTrustedWifiConfiguration.networkId , false ) ; }
Source:
private static int getIntField ( com.android.tools.perflib.heap.Instance inst , java.lang.String fieldName , int def ) { java.lang.Integer value = com.android.ahat.InstanceUtils.getIntField ( inst , fieldName ) ; return value == null ? def : value ; }

Target:
private static java.lang.Long getLongField ( com.android.tools.perflib.heap.Instance inst , java.lang.String fieldName , java.lang.Long def ) { java.lang.Object value = com.android.ahat.InstanceUtils.getField ( inst , fieldName ) ; if ( ! ( value instanceof java.lang.Long ) ) { return def ; } return ( ( java.lang.Long ) ( value ) ) ; }
Source:
private void setGridLayout ( org.eclipse.swt.widgets.Composite parent , int spacing ) { org.eclipse.swt.layout.GridLayout gl = new org.eclipse.swt.layout.GridLayout ( 1 , false ) ; gl.horizontalSpacing = 0 ; gl.verticalSpacing = 0 ; gl.marginHeight = spacing ; gl.marginBottom = spacing ; gl.marginLeft = spacing ; gl.marginRight = spacing ; gl.marginTop = spacing ; gl.marginBottom = spacing ; parent.setLayout ( gl ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mControl = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.PaletteControl ( parent , mEditorPart ) ; }
Source:
private void setupMocksForRoamSequence ( java.lang.String roamBssid ) throws java.lang.Exception { org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public android.hardware.wifi.supplicant.V1_0.SupplicantStatus answer ( ) throws android.os.RemoteException { return mStatusSuccess ; } } ) . when ( mISupplicantStaIfaceMock ) . reassociate ( ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.eq ( roamBssid ) ) ) . thenReturn ( true ) ; }

Target:
public boolean answer ( android.net.wifi.WifiConfiguration config , java.util.Map < java.lang.String , java.lang.String > networkExtra ) throws java.lang.Exception { throw new java.lang.IllegalArgumentException ( ) ; }
Source:
public void treeChanged ( ) { synchronized ( this ) { tree = model.getTree ( ) ; setBounds ( ) ; setTransform ( ) ; } doRedraw ( ) ; }

Target:
public void treeChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; setBounds ( ) ; setTransform ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
public void destroy ( ) { validate ( ) ; nContextFinish ( ) ; nContextDeinitToClient ( mContext ) ; mMessageThread.mRun = false ; try { mMessageThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } nContextDestroy ( ) ; nDeviceDestroy ( mDev ) ; mDev = 0 ; }

Target:
public void destroy ( ) { validate ( ) ; helpDestroy ( ) ; }
Source:
void onConnectionEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras ) { android.telecom.Log.v ( this , "onConnectionEvent: %s" , event ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.onConnectionEvent ( callId , event , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void onConnectionEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras ) { android.telecom.Log.v ( this , "onConnectionEvent: %s" , event ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.onConnectionEvent ( callId , event , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public void sendDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }

Target:
public void startDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF_START , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }
Source:
public void setCamera ( java.lang.String cameraId , java.lang.String callingPackageName ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = cameraId ; args.arg2 = callingPackageName ; args.argi1 = android.os.Binder.getCallingUid ( ) ; args.argi2 = android.os.Binder.getCallingPid ( ) ; mMessageHandler.obtainMessage ( android.telecom.Connection.VideoProvider.MSG_SET_CAMERA , args ) . sendToTarget ( ) ; }

Target:
public void setCamera ( java.lang.String cameraId , java.lang.String callingPackageName , int targetSdkVersion ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = cameraId ; args.arg2 = callingPackageName ; args.argi1 = android.os.Binder.getCallingUid ( ) ; args.argi2 = android.os.Binder.getCallingPid ( ) ; args.argi3 = targetSdkVersion ; mMessageHandler.obtainMessage ( android.telecom.Connection.VideoProvider.MSG_SET_CAMERA , args ) . sendToTarget ( ) ; }
Source:
protected sun.util.locale.BaseLocale.Key normalizeKey ( sun.util.locale.BaseLocale.Key key ) { return sun.util.locale.BaseLocale.Key.normalize ( key ) ; }

Target:
protected sun.util.locale.BaseLocale.Key normalizeKey ( sun.util.locale.BaseLocale.Key key ) { assert ( ( ( ( key.lang.get ( ) ) != null ) && ( ( key.scrt.get ( ) ) != null ) ) && ( ( key.regn.get ( ) ) != null ) ) && ( ( key.vart.get ( ) ) != null ) ; return sun.util.locale.BaseLocale.Key.normalize ( key ) ; }
Source:
static java.lang.String getT9Representation ( java.lang.String s ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( s.length ( ) ) ; for ( char c : s.toLowerCase ( ) . toCharArray ( ) ) { builder.append ( com.android.dialer.searchfragment.common.QueryFilteringUtil.getDigit ( c ) ) ; } return builder.toString ( ) ; }

Target:
static java.lang.String getT9Representation ( java.lang.String s , android.content.Context context ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( s.length ( ) ) ; for ( char c : s.toLowerCase ( ) . toCharArray ( ) ) { builder.append ( com.android.dialer.searchfragment.common.QueryFilteringUtil.getDigit ( c , context ) ) ; } return builder.toString ( ) ; }
Source:
public org.jetbrains.plugins.github.GithubAuthData getAuthData ( ) { java.lang.Object selected = myAuthTypeComboBox.getSelectedItem ( ) ; if ( org.jetbrains.plugins.github.ui.GithubLoginPanel.AUTH_PASSWORD.equals ( selected ) ) return org.jetbrains.plugins.github.GithubAuthData.createBasicAuth ( getHost ( ) , getLogin ( ) , getPassword ( ) ) ; if ( org.jetbrains.plugins.github.ui.GithubLoginPanel.AUTH_TOKEN.equals ( selected ) ) return org.jetbrains.plugins.github.GithubAuthData.createTokenAuth ( getHost ( ) , getPassword ( ) ) ; GithubUtil.LOG.error ( "GithubLoginPanel illegal selection: anonymous AuthData created" , selected.toString ( ) ) ; return org.jetbrains.plugins.github.GithubAuthData.createAnonymous ( getHost ( ) ) ; }

Target:
public org.jetbrains.plugins.github.util.GithubAuthData getAuthData ( ) { java.lang.Object selected = myAuthTypeComboBox.getSelectedItem ( ) ; if ( org.jetbrains.plugins.github.ui.GithubLoginPanel.AUTH_PASSWORD.equals ( selected ) ) return org.jetbrains.plugins.github.util.GithubAuthData.createBasicAuth ( getHost ( ) , getLogin ( ) , getPassword ( ) ) ; if ( org.jetbrains.plugins.github.ui.GithubLoginPanel.AUTH_TOKEN.equals ( selected ) ) return org.jetbrains.plugins.github.util.GithubAuthData.createTokenAuth ( getHost ( ) , getPassword ( ) ) ; GithubUtil.LOG.error ( "GithubLoginPanel illegal selection: anonymous AuthData created" , selected.toString ( ) ) ; return org.jetbrains.plugins.github.util.GithubAuthData.createAnonymous ( getHost ( ) ) ; }
Source:
private com.android.jack.dx.rop.type.StdTypeList getStdTypeList ( @ javax.annotation.Nonnull com.android.jack.dx.rop.cst.CstIndexMap cstIndexMap , @ javax.annotation.Nonnull com.android.jack.dx.io.TypeList typeList ) { short [ ] type = typeList.getTypes ( ) ; int typesLength = type.length ; com.android.jack.dx.rop.type.StdTypeList stdTypeList = new com.android.jack.dx.rop.type.StdTypeList ( typesLength ) ; for ( int i = 0 ; i < typesLength ; i ++ ) { stdTypeList.set ( i , cstIndexMap.getCstType ( type [ i ] ) . getClassType ( ) ) ; } stdTypeList.setImmutable ( ) ; return stdTypeList ; }

Target:
private com.android.jack.dx.rop.type.StdTypeList getStdTypeList ( @ javax.annotation.Nonnull com.android.jack.dx.rop.cst.CstIndexMap cstIndexMap , @ javax.annotation.Nonnull com.android.jack.dx.io.TypeList typeList ) { short [ ] type = typeList.getTypes ( ) ; int typesLength = type.length ; com.android.jack.dx.rop.type.StdTypeList stdTypeList = new com.android.jack.dx.rop.type.StdTypeList ( typesLength ) ; for ( int i = 0 ; i < typesLength ; i ++ ) { stdTypeList.set ( i , cstIndexMap.getType ( type [ i ] ) ) ; } stdTypeList.setImmutable ( ) ; return stdTypeList ; }
Source:
private static void test ( java.lang.String resource ) throws java.lang.Exception { java.lang.String filename = ( ( java.lang.System.getenv ( "DEX_LOCATION" ) ) + "/" ) + resource ; Main.extractResource ( resource , filename ) ; long size = Main.getDexFileSize ( filename ) ; java.lang.System.out.println ( ( ( ( "Size for " + resource ) + ": " ) + size ) ) ; }

Target:
private static void test ( java.lang.String resource ) throws java.lang.Exception { java.lang.String filename = ( ( java.lang.System.getenv ( "DEX_LOCATION" ) ) + "/res/" ) + resource ; long size = Main.getDexFileSize ( filename ) ; java.lang.System.out.println ( ( ( ( "Size for " + resource ) + ": " ) + size ) ) ; }
Source:
public void testAesCbcHmacSha256Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha1Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public void testPreloadDensity_tvdpi ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , 213 ) ; verifyPreloadDensityInner ( res , 213 ) ; } android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; android.graphics.drawable.cts.ce2b36 Merge ; }

Target:
public void testPreloadDensity_tvdpi ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final int densityDpi = mResources.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , 213 ) ; verifyPreloadDensityInner ( mResources , 213 ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; } }
Source:
public com.google.appengine.api.datastore.Entity toEntity ( ) { com.google.appengine.api.datastore.Entity favoriteEntity = new com.google.appengine.api.datastore.Entity ( com.android.vts.entity.UserFavoriteEntity.KIND ) ; favoriteEntity.setProperty ( com.android.vts.entity.UserFavoriteEntity.USER , this . user ) ; favoriteEntity.setProperty ( com.android.vts.entity.UserFavoriteEntity.TEST_KEY , this . testKey ) ; return favoriteEntity ; }

Target:
public com.google.appengine.api.datastore.Entity toEntity ( ) { com.google.appengine.api.datastore.Entity favoriteEntity ; if ( ( this . key ) != null ) { favoriteEntity = new com.google.appengine.api.datastore.Entity ( key ) ; } else { favoriteEntity = new com.google.appengine.api.datastore.Entity ( com.android.vts.entity.UserFavoriteEntity.KIND ) ; } favoriteEntity.setProperty ( com.android.vts.entity.UserFavoriteEntity.USER , this . user ) ; favoriteEntity.setProperty ( com.android.vts.entity.UserFavoriteEntity.TEST_KEY , this . testKey ) ; favoriteEntity.setProperty ( com.android.vts.entity.UserFavoriteEntity.MUTE_NOTIFICATIONS , this . muteNotifications ) ; return favoriteEntity ; }
Source:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_foreach s ) { com.android.rs.test.Type.Builder typeBuilder = new com.android.rs.test.Type.Builder ( RS , com.android.rs.test.Element.I32 ( RS ) ) ; int X = 5 ; int Y = 7 ; s.set_dimX ( X ) ; s.set_dimY ( Y ) ; typeBuilder.setX ( X ) . setY ( Y ) ; A = com.android.rs.test.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_aRaw ( A ) ; return ; }

Target:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_foreach s ) { android.renderscript.Type.Builder typeBuilder = new android.renderscript.Type.Builder ( RS , android.renderscript.Element.I32 ( RS ) ) ; int X = 5 ; int Y = 7 ; s.set_dimX ( X ) ; s.set_dimY ( Y ) ; typeBuilder.setX ( X ) . setY ( Y ) ; A = android.renderscript.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_aRaw ( A ) ; return ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newDoc ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_DOCS ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } } ; }

Target:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { if ( ( existingDesc == null ) || ( ! ( getType ( ) . equals ( existingDesc.getType ( ) ) ) ) ) { return false ; } int diff = version.compareTo ( existingDesc.getAndroidVersion ( ) ) ; return ( diff > 0 ) || ( ( diff == 0 ) && ( ( revision.compareTo ( existingDesc.getMajorRevision ( ) ) ) > 0 ) ) ; }
Source:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType type , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( type ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( method ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , name , nat ) ; return methodRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType type , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( type ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , name , new com.android.jack.dx.rop.cst.CstString ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( method ) ) ) ; return methodRef ; }
Source:
public static com.android.internal.content.NativeLibraryHelper.Handle create ( java.lang.Package pkg ) throws java.io.IOException { return com.android.internal.content.NativeLibraryHelper.Handle.create ( pkg.getAllCodePaths ( ) , ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_MULTIARCH ) ) != 0 ) ) ; }

Target:
public static com.android.internal.content.NativeLibraryHelper.Handle create ( java.lang.Package pkg ) throws java.io.IOException { return com.android.internal.content.NativeLibraryHelper.Handle.create ( pkg.getAllCodePaths ( ) , ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_MULTIARCH ) ) != 0 ) , ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_EXTRACT_NATIVE_LIBS ) ) != 0 ) ) ; }
Source:
public synchronized boolean isManagerReady ( ) { com.android.settingslib.bluetooth.LocalBluetoothProfile profile = mHeadsetProfile ; if ( profile != null ) { return profile.isProfileReady ( ) ; } profile = mA2dpProfile ; if ( profile != null ) { return profile.isProfileReady ( ) ; } return false ; }

Target:
public synchronized boolean isManagerReady ( ) { com.android.settingslib.bluetooth.LocalBluetoothProfile profile = mHeadsetProfile ; if ( profile != null ) { return profile.isProfileReady ( ) ; } profile = mA2dpProfile ; if ( profile != null ) { return profile.isProfileReady ( ) ; } profile = mA2dpSinkProfile ; if ( profile != null ) { return profile.isProfileReady ( ) ; } return false ; }
Source:
private void onRoamingOff ( ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( "onRoamingOff" ) ; if ( ! ( mDataEnabledSettings.isUserDataEnabled ( ) ) ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }

Target:
private void onRoamingOff ( ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( "onRoamingOff" ) ; setInitialAttachApn ( ) ; setDataProfilesAsNeeded ( ) ; if ( ! ( mDataEnabledSettings.isUserDataEnabled ( ) ) ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }
Source:
public void testArraySizes ( ) throws java.lang.Exception { assertEquals ( ( "values/arrays.xml:10: Warning: Array signal_strength has an inconsistent number of items (5 in values/arrays.xml, 6 in values-land/arrays.xml)\n" + ( ( ( ( "=> values-land/arrays.xml:2: Declaration with array size (6)\n" + "values/arrays.xml:3: Warning: Array security_questions has an inconsistent number of items (3 in values-nl-rNL/arrays.xml, 4 in values-cs/arrays.xml)\n" ) + "=> values-cs/arrays.xml:3: Declaration with array size (4)\n" ) + "=> values-es/strings.xml:12: Declaration with array size (4)\n" ) + "=> values-nl-rNL/arrays.xml:3: Declaration with array size (3)" ) ) , lintProject ( "res/values/arrays.xml" , "res/values-cs/arrays.xml" , "res/values-land/arrays.xml" , "res/values-nl-rNL/arrays.xml" , "res/values-es/strings.xml" ) ) ; }

Target:
public void testArraySizes ( ) throws java.lang.Exception { assertEquals ( ( "res/values/arrays.xml:3: Warning: Array security_questions has an inconsistent number of items (3 in values-nl-rNL/arrays.xml, 4 in values-cs/arrays.xml) [InconsistentArrays]\n" + ( ( ( ( ( ( ( ( ( ( " <string-array name=\"security_questions\">\n" + " ^\n" ) + " res/values-cs/arrays.xml:3: Declaration with array size (4)\n" ) + " res/values-es/strings.xml:12: Declaration with array size (4)\n" ) + " res/values-nl-rNL/arrays.xml:3: Declaration with array size (3)\n" ) + "res/values/arrays.xml:10: Warning: Array signal_strength has an inconsistent number of items (5 in values/arrays.xml, 6 in values-land/arrays.xml) [InconsistentArrays]\n" ) + " <array name=\"signal_strength\">\n" ) + " ^\n" ) + " res/values-land/arrays.xml:2: Declaration with array size (6)\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "res/values/arrays.xml" , "res/values-cs/arrays.xml" , "res/values-land/arrays.xml" , "res/values-nl-rNL/arrays.xml" , "res/values-es/strings.xml" ) ) ; }
Source:
public static void computeAcosh ( android.renderscript.cts.TestAcosh.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( x + ( java.lang.StrictMath.sqrt ( ( ( x * x ) - 1.0 ) ) ) ) ) ) ) ; }

Target:
public static void computeTrunc ( android.renderscript.cts.TestTrunc.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.trunc ( args.in ) , 0 , 0 ) ; }
Source:
public boolean process ( java.io.File outputFile , java.io.File mainFile , java.io.File [ ] libraryFiles , java.util.Map < java.lang.String , java.lang.String > injectAttributes ) { org.w3c.dom.Document mainDoc = com.android.manifmerger.MergerXmlUtils.parseDocument ( mainFile , mLog ) ; if ( mainDoc == null ) { return false ; } boolean success = process ( mainDoc , libraryFiles , injectAttributes ) ; if ( ! ( com.android.manifmerger.MergerXmlUtils.printXmlFile ( mainDoc , outputFile , mLog ) ) ) { success = false ; } return success ; }

Target:
public boolean process ( java.io.File outputFile , java.io.File mainFile , java.io.File [ ] libraryFiles , java.util.Map < java.lang.String , java.lang.String > injectAttributes , java.lang.String packageOverride ) { org.w3c.dom.Document mainDoc = com.android.manifmerger.MergerXmlUtils.parseDocument ( mainFile , mLog ) ; if ( mainDoc == null ) { return false ; } boolean success = process ( mainDoc , libraryFiles , injectAttributes , packageOverride ) ; if ( ! ( com.android.manifmerger.MergerXmlUtils.printXmlFile ( mainDoc , outputFile , mLog ) ) ) { success = false ; } return success ; }
Source:
public synchronized void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( test ) , statusString , trace , null ) ; mExecution.getListener ( ) . notifyTestFailed ( failure ) ; }

Target:
public void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , statusString , trace , null ) ; mNotifier.testFailed ( failure ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.redirect_getter ) ; android.widget.Button applyButton = ( ( android.widget.Button ) ( findViewById ( R.id.apply ) ) ) ; applyButton.setOnClickListener ( mApplyListener ) ; mText = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.redirect_getter ) ; android.widget.Button applyButton = ( ( android.widget.Button ) ( findViewById ( R.id.apply ) ) ) ; applyButton.setOnClickListener ( mApplyListener ) ; mText = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; loadPrefs ( ) ; }
Source:
public void onMeasure ( final int widthMeasureSpec , final int heightMeasureSpec ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; } } ) ; return ; } mAwContents.onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; }

Target:
public boolean requestFocus ( final int direction , final android.graphics.Rect previouslyFocusedRect ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestFocus ( direction , previouslyFocusedRect ) ; } } ) ; return ret ; } mAwContents.requestFocus ( ) ; return mWebViewPrivate.super_requestFocus ( direction , previouslyFocusedRect ) ; }
Source:
public void testReceive_UnboundBufZero ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.isConnected ( ) ) ; assertFalse ( dc.socket ( ) . isBound ( ) ) ; java.nio.ByteBuffer dst = java.nio.ByteBuffer.allocateDirect ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_ZERO ) ; assertNull ( dc.receive ( dst ) ) ; }

Target:
public void testReceive_UnboundBufZero ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.isConnected ( ) ) ; assertFalse ( dc.socket ( ) . isBound ( ) ) ; java.nio.ByteBuffer dst = java.nio.ByteBuffer.allocateDirect ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_ZERO ) ; assertNull ( dc.receive ( dst ) ) ; dc.close ( ) ; }
Source:
private android.telephony.ims.feature.ImsFeature makeImsFeature ( int slotId , int feature ) { switch ( feature ) { case android.telephony.ims.feature.ImsFeature.EMERGENCY_MMTEL : { return onCreateEmergencyMMTelImsFeature ( slotId ) ; } case android.telephony.ims.feature.ImsFeature.MMTEL : { return onCreateMMTelImsFeature ( slotId ) ; } case android.telephony.ims.feature.ImsFeature.RCS : { return onCreateRcsFeature ( slotId ) ; } } return null ; }

Target:
private com.android.ims.internal.IImsRcsFeature createRcsFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.RcsFeature f = onCreateRcsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.RCS , c ) ; return f.getBinder ( ) ; } else { return null ; } }
Source:
private static java.io.File storeMergedConfigFile ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > configMap , java.lang.String moduleName ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { HEAD ( 27.0 ) ; com.android.compatibility.common.util.fa Merge ; }

Target:
private static java.io.File storeMergedConfigFile ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > configMap , java.lang.String moduleName ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { java.io.File folder = com.android.tradefed.util.FileUtil.createTempDir ( com.android.compatibility.common.util.DynamicConfigHandler.MERGED_CONFIG_FILE_FOLDER ) ; java.io.File mergedConfigFile = new java.io.File ( folder , ( moduleName + ".dynamic" ) ) ; java.io.OutputStream stream = new java.io.FileOutputStream ( mergedConfigFile ) ; org.xmlpull.v1.XmlSerializer serializer = org.xmlpull.v1.XmlPullParserFactory.newInstance ( ) . newSerializer ( ) ; serializer.setOutput ( stream , com.android.compatibility.common.util.DynamicConfigHandler.ENCODING ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; serializer.startDocument ( com.android.compatibility.common.util.DynamicConfigHandler.ENCODING , false ) ; serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; for ( java.lang.String key : configMap.keySet ( ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; serializer.attribute ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.KEY_ATTR , key ) ; for ( java.lang.String value : configMap.get ( key ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; serializer.text ( value ) ; serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; serializer.endDocument ( ) ; return mergedConfigFile ; }
Source:
private void handleExitEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleExitEmergencyCallbackMode: mIsPhoneInEcmState = " + ( mIsPhoneInEcmState ) ) ) ; } if ( mIsPhoneInEcmState ) { setSystemProperty ( TelephonyProperties.PROPERTY_INECM_MODE , "false" ) ; mIsPhoneInEcmState = false ; } removeCallbacks ( mExitEcmRunnable ) ; if ( ( mEcmExitRespRegistrant ) != null ) { mEcmExitRespRegistrant.notifyResult ( java.lang.Boolean.TRUE ) ; } if ( mWakeLock.isHeld ( ) ) { mWakeLock.release ( ) ; } sendEmergencyCallbackModeChange ( ) ; }

Target:
private void handleExitEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleExitEmergencyCallbackMode: mIsPhoneInEcmState = " + ( isInEcm ( ) ) ) ) ; } if ( isInEcm ( ) ) { setIsInEcm ( false ) ; } removeCallbacks ( mExitEcmRunnable ) ; if ( ( mEcmExitRespRegistrant ) != null ) { mEcmExitRespRegistrant.notifyResult ( java.lang.Boolean.TRUE ) ; } if ( mWakeLock.isHeld ( ) ) { mWakeLock.release ( ) ; } sendEmergencyCallbackModeChange ( ) ; }
Source:
private void removeItems ( @ javax.annotation.Nonnull java.util.List < java.lang.String > cstStringsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstFieldRef > cstFieldRefsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstMethodRef > cstMethodRefsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstType > cstTypesToRemove ) { string2CstStrings.keySet ( ) . removeAll ( cstStringsToRemove ) ; cstFieldRefs.removeAll ( cstFieldRefsToRemove ) ; cstMethodRefs.removeAll ( cstMethodRefsToRemove ) ; cstTypes.removeAll ( cstTypesToRemove ) ; }

Target:
private void removeItems ( @ javax.annotation.Nonnull java.util.List < java.lang.String > cstStringsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstFieldRef > cstFieldRefsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstMethodRef > cstMethodRefsToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstType > cstTypesToRemove , @ javax.annotation.Nonnull java.util.List < com.android.jack.dx.rop.cst.CstPrototypeRef > cstPrototypeRefsToRemove ) { string2CstStrings.keySet ( ) . removeAll ( cstStringsToRemove ) ; cstFieldRefs.removeAll ( cstFieldRefsToRemove ) ; cstMethodRefs.removeAll ( cstMethodRefsToRemove ) ; cstTypes.removeAll ( cstTypesToRemove ) ; cstPrototypeRefs.removeAll ( cstPrototypeRefsToRemove ) ; }
Source:
void startCoreServices ( ) { debugLog ( "startCoreServices()" ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_ON ) ; }

Target:
boolean stopProfileServices ( ) { java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( mProfilesStarted ) && ( ( supportedProfileServices.length ) > 0 ) ) { setProfileServiceState ( supportedProfileServices , BluetoothAdapter.STATE_OFF ) ; return true ; } debugLog ( "stopProfileServices() - No profiles services to stop or already stopped." ) ; return false ; }
Source:
private void sendBatteryLevelChangedBroadcast ( android.bluetooth.BluetoothDevice device , int batteryLevel ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_BATTERY_LEVEL , batteryLevel ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_PERM ) ; }

Target:
private void sendBatteryLevelChangedBroadcast ( android.bluetooth.BluetoothDevice device , int batteryLevel ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_BATTERY_LEVEL , batteryLevel ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; com.android.bluetooth.btservice.RemoteDevices.sAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_PERM ) ; }