auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void warning ( java.lang.String tag , java.lang.String message , java.lang.Object data ) { java.lang.String description = describe ( message ) ; boolean log = true ; if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.TAG_RESOURCES_FORMAT.equals ( tag ) ) { if ( ( description.equals ( "You must supply a layout_width attribute." ) ) || ( description.equals ( "You must supply a layout_height attribute." ) ) ) { tag = com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger.TAG_MISSING_DIMENSION ; log = false ; } } if ( log ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.WARNING , "%1$s: %2$s" , mName , description ) ; } addWarning ( tag , description ) ; }

Target:
public void warning ( java.lang.String tag , java.lang.String message , java.lang.Object data ) { java.lang.String description = describe ( message ) ; boolean log = true ; if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.TAG_RESOURCES_FORMAT.equals ( tag ) ) { if ( ( description.equals ( "You must supply a layout_width attribute." ) ) || ( description.equals ( "You must supply a layout_height attribute." ) ) ) { tag = com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger.TAG_MISSING_DIMENSION ; log = false ; } } if ( log ) { appendToIdeLog ( null , IStatus.WARNING , description ) ; } addWarning ( tag , description ) ; }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient" + ( mRemoteDevice ) ) ) ; if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getClient(): not allowed for non-active user" ) ; return null ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ) ) { return null ; } return mRemoteDevice ; }

Target:
protected android.bluetooth.BluetoothDevice getRemoteDevice ( ) { return mRemoteDevice ; }
Source:
public void run ( ) { setBlockOnOpen ( true ) ; open ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . removeTreeChangeListener ( mTreeChangeListener ) ; com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . removeImageChangeListener ( mImageChangeListener ) ; com.android.ddmuilib.ImageLoader.dispose ( ) ; mDirector.stopListenForDevices ( ) ; mDirector.stopDebugBridge ( ) ; mDirector.terminate ( ) ; }

Target:
public void run ( ) { setBlockOnOpen ( true ) ; try { open ( ) ; } catch ( org.eclipse.swt.SWTException e ) { if ( ! ( getShell ( ) . isDisposed ( ) ) ) { throw e ; } } com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . removeTreeChangeListener ( mTreeChangeListener ) ; com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . removeImageChangeListener ( mImageChangeListener ) ; com.android.ddmuilib.ImageLoader.dispose ( ) ; mDirector.stopListenForDevices ( ) ; mDirector.stopDebugBridge ( ) ; mDirector.terminate ( ) ; }
Source:
public static void parseSvgToXml ( java.io.File inputSVG , java.io.OutputStream outStream ) throws java.lang.Exception { com.android.assetstudiolib.vectordrawable.SvgTree svgTree = com.android.assetstudiolib.vectordrawable.Svg2Vector.parse ( inputSVG ) ; com.android.assetstudiolib.vectordrawable.Svg2Vector.writeFile ( outStream , svgTree ) ; }

Target:
public static java.lang.String parseSvgToXml ( java.io.File inputSVG , java.io.OutputStream outStream ) { java.lang.String errorLog = null ; try { com.android.assetstudiolib.vectordrawable.SvgTree svgTree = com.android.assetstudiolib.vectordrawable.Svg2Vector.parse ( inputSVG ) ; errorLog = svgTree.getErrorLog ( ) ; com.android.assetstudiolib.vectordrawable.Svg2Vector.writeFile ( outStream , svgTree ) ; } catch ( java.lang.Exception e ) { errorLog = ( ( "EXCEPTION in parsing " + ( inputSVG.getName ( ) ) ) + ":\n" ) + ( e.getMessage ( ) ) ; } return errorLog ; }
Source:
private void createFolder ( org.eclipse.core.resources.IFolder destinationFolder , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { org.eclipse.core.resources.IContainer parent = destinationFolder.getParent ( ) ; if ( ( ( parent.getType ( ) ) == ( org.eclipse.core.resources.IResource.FOLDER ) ) && ( ( parent.exists ( ) ) == false ) ) { createFolder ( ( ( org.eclipse.core.resources.IFolder ) ( parent ) ) , monitor ) ; } destinationFolder.create ( true , true , new org.eclipse.core.runtime.SubProgressMonitor ( monitor , 10 ) ) ; }

Target:
private void processChildrenOf ( org.eclipse.core.resources.IFolder folder ) { org.eclipse.core.resources.IResource [ ] list ; try { list = folder.members ( ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { return ; } for ( org.eclipse.core.resources.IResource member : list ) { if ( member.exists ( ) ) { if ( ( member.getType ( ) ) == ( org.eclipse.core.resources.IResource.FOLDER ) ) { processChildrenOf ( ( ( org.eclipse.core.resources.IFolder ) ( member ) ) ) ; } try { member.setDerived ( true ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { } } } }
Source:
public synchronized void setLength ( int length ) { setLengthOnly ( length ) ; this . capacity = length ; }

Target:
public synchronized void setLength ( int length ) { if ( ( length < 0 ) || ( ( ( offset ) + length ) > ( data.length ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( ( ( "length=" + length ) + ", offset=" ) + ( offset ) ) + ", buffer size=" ) + ( data.length ) ) ) ; } this . length = length ; this . userSuppliedLength = length ; }
Source:
public com.android.dx.dex.code.DalvInsnList finishProcessingAndGetList ( ) { if ( ( reservedCount ) >= 0 ) { throw new java.lang.UnsupportedOperationException ( "already processed" ) ; } com.android.dx.dex.code.Dop [ ] opcodes = makeOpcodesArray ( ) ; reserveRegisters ( opcodes ) ; massageInstructions ( opcodes ) ; assignAddressesAndFixBranches ( ) ; return com.android.dx.dex.code.DalvInsnList.makeImmutable ( insns , ( ( reservedCount ) + ( unreservedRegCount ) ) ) ; }

Target:
public com.android.dx.dex.code.DalvInsnList finishProcessingAndGetList ( ) { if ( ( reservedCount ) >= 0 ) { throw new java.lang.UnsupportedOperationException ( "already processed" ) ; } com.android.dx.dex.code.Dop [ ] opcodes = makeOpcodesArray ( ) ; reserveRegisters ( opcodes ) ; if ( dexOptions.ALIGN_64BIT_REGS_IN_OUTPUT_FINISHER ) { align64bits ( opcodes ) ; } massageInstructions ( opcodes ) ; assignAddressesAndFixBranches ( ) ; return com.android.dx.dex.code.DalvInsnList.makeImmutable ( insns , ( ( ( reservedCount ) + ( unreservedRegCount ) ) + ( reservedParameterCount ) ) ) ; }
Source:
public static void merge ( com.android.build.gradle.managed.NdkBuildType base , com.android.build.gradle.managed.NdkBuildType other ) { com.android.build.gradle.internal.NdkOptionsHelper.merge ( base , ( ( com.android.build.gradle.managed.NdkOptions ) ( other ) ) ) ; if ( ( other.getIsDebuggable ( ) ) != null ) { base.setIsDebuggable ( other.getIsDebuggable ( ) ) ; } }

Target:
public static void merge ( com.android.build.gradle.managed.NdkBuildType base , com.android.build.gradle.managed.NdkBuildType other ) { com.android.build.gradle.internal.NdkOptionsHelper.merge ( base , ( ( com.android.build.gradle.managed.NdkOptions ) ( other ) ) ) ; if ( ( other.getDebuggable ( ) ) != null ) { base.setDebuggable ( other.getDebuggable ( ) ) ; } }
Source:
private void cmdStats ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { synchronized ( mLock ) { pw.println ( ( "Buffered events: " + ( mBuffer.size ( ) ) ) ) ; pw.println ( ( "Buffer capacity: " + ( mCapacity ) ) ) ; pw.println ( ( "Dropped events: " + ( mDropped ) ) ) ; } if ( ( mNetdListener ) != null ) { mNetdListener.dump ( pw ) ; } }

Target:
private void cmdList ( java.io.PrintWriter pw ) { pw.println ( "metrics events:" ) ; final java.util.List < android.net.ConnectivityMetricsEvent > events = getEvents ( ) ; for ( android.net.ConnectivityMetricsEvent ev : events ) { pw.println ( ev.toString ( ) ) ; } pw.println ( "" ) ; if ( ( mNetdListener ) != null ) { mNetdListener.list ( pw ) ; } pw.println ( "" ) ; mDefaultNetworkMetrics.listEvents ( pw ) ; }
Source:
public void setMsisdnNumber ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { msisdn = number ; msisdnTag = alphaTag ; if ( com.android.internal.telephony.uicc.SIMRecords.DBG ) log ( ( ( ( "Set MSISDN: " + ( msisdnTag ) ) + " " ) + "xxxxxxx" ) ) ; com.android.internal.telephony.uicc.AdnRecord adn = new com.android.internal.telephony.uicc.AdnRecord ( msisdnTag , msisdn ) ; new com.android.internal.telephony.uicc.AdnRecordLoader ( mFh ) . updateEF ( adn , com.android.internal.telephony.uicc.EF_MSISDN , com.android.internal.telephony.uicc.EF_EXT1 , 1 , null , obtainMessage ( com.android.internal.telephony.uicc.SIMRecords.EVENT_SET_MSISDN_DONE , onComplete ) ) ; }

Target:
public void setMsisdnNumber ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { mNewMsisdn = number ; mNewMsisdnTag = alphaTag ; if ( DBG ) log ( ( ( ( "Set MSISDN: " + ( mNewMsisdnTag ) ) + " " ) + "xxxxxxx" ) ) ; com.android.internal.telephony.uicc.AdnRecord adn = new com.android.internal.telephony.uicc.AdnRecord ( mNewMsisdnTag , mNewMsisdn ) ; new com.android.internal.telephony.uicc.AdnRecordLoader ( mFh ) . updateEF ( adn , com.android.internal.telephony.uicc.EF_MSISDN , getExtFromEf ( com.android.internal.telephony.uicc.EF_MSISDN ) , 1 , null , obtainMessage ( com.android.internal.telephony.uicc.EVENT_SET_MSISDN_DONE , onComplete ) ) ; }
Source:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void testKeyStore_DeleteEntry_NonExistent_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; try { mKeyStore.deleteEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_2 ) ; fail ( "Should throw KeyStoreException with non-existent alias" ) ; } catch ( java.security.KeyStoreException success ) { } }

Target:
public void testKeyStore_DeleteEntry_NonExistent_Success ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; mKeyStore.deleteEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_2 ) ; }
Source:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { int actualLength = nationalNumber.length ( ) ; java.util.List < java.lang.Integer > possibleLengths = numberDesc.getPossibleLengthList ( ) ; if ( ( ( possibleLengths.size ( ) ) > 0 ) && ( ! ( possibleLengths.contains ( actualLength ) ) ) ) { return false ; } java.util.regex.Matcher nationalNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.getNationalNumberPattern ( ) ) . matcher ( nationalNumber ) ; return nationalNumberPatternMatcher.matches ( ) ; }

Target:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { int actualLength = nationalNumber.length ( ) ; java.util.List < java.lang.Integer > possibleLengths = numberDesc.getPossibleLengthList ( ) ; if ( ( ( possibleLengths.size ( ) ) > 0 ) && ( ! ( possibleLengths.contains ( actualLength ) ) ) ) { return false ; } return matcherApi.matchNationalNumber ( nationalNumber , numberDesc , false ) ; }
Source:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( DBG ) log ( ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; phone.getContext ( ) . sendStickyBroadcast ( intent ) ; }

Target:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( DBG ) log ( ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; phone.getContext ( ) . sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.test ( "A" ) ; Main.test ( "B" ) ; Main.test ( "C" ) ; Main.test ( "D" ) ; Main.test ( "E" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.test ( "A" ) ; Main.test ( "B" ) ; Main.test ( "C" ) ; Main.test ( "D" ) ; Main.test ( "E" ) ; Main.test ( "F" ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mBuilder = new android.app.job.JobInfo.Builder ( android.jobscheduler.cts.BatteryConstraintTest.BATTERY_JOB_ID , kJobServiceComponent ) ; com.android.compatibility.common.util.SystemUtil.runShellCommand ( getInstrumentation ( ) , "cmd jobscheduler monitor-battery on" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mLowBatteryWarningLevel = android.content.res.Resources.getSystem ( ) . getInteger ( android.content.res.Resources.getSystem ( ) . getIdentifier ( "config_lowBatteryWarningLevel" , "integer" , "android" ) ) ; mBuilder = new android.app.job.JobInfo.Builder ( android.jobscheduler.cts.BatteryConstraintTest.BATTERY_JOB_ID , kJobServiceComponent ) ; com.android.compatibility.common.util.SystemUtil.runShellCommand ( getInstrumentation ( ) , "cmd jobscheduler monitor-battery on" ) ; }
Source:
public void onSessionModifyRequestReceived ( com.android.server.telecom.Call call , android.telecom.VideoProfile videoProfile ) { int videoState = ( videoProfile != null ) ? videoProfile.getVideoState ( ) : android.telecom.VideoProfile.STATE_AUDIO_ONLY ; com.android.server.telecom.Log.v ( com.android.server.telecom.CallsManager.TAG , ( "onSessionModifyRequestReceived : videoProfile = " + ( android.telecom.VideoProfile.videoStateToString ( videoState ) ) ) ) ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onSessionModifyRequestReceived ( call , videoProfile ) ; } }

Target:
public void onSessionModifyRequestReceived ( com.android.server.telecom.Call call , android.telecom.VideoProfile videoProfile ) { int videoState = ( videoProfile != null ) ? videoProfile.getVideoState ( ) : android.telecom.VideoProfile.STATE_AUDIO_ONLY ; android.telecom.Log.v ( com.android.server.telecom.CallsManager.TAG , ( "onSessionModifyRequestReceived : videoProfile = " + ( android.telecom.VideoProfile.videoStateToString ( videoState ) ) ) ) ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onSessionModifyRequestReceived ( call , videoProfile ) ; } }
Source:
public void testSatisfiedNetworkRequestDoesNotTriggerOnUnavailable ( ) { android.net.NetworkRequest nr = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) . build ( ) ; final com.android.server.ConnectivityServiceTest.TestNetworkCallback networkCallback = new com.android.server.ConnectivityServiceTest.TestNetworkCallback ( ) ; mCm.requestNetwork ( nr , networkCallback , 10 ) ; mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; mWiFiNetworkAgent.connect ( false ) ; networkCallback.expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , mWiFiNetworkAgent ) ; com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; networkCallback.assertNoCallback ( ) ; }

Target:
public void testTimedoutAfterUnregisteredNetworkRequest ( ) { android.net.NetworkRequest nr = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) . build ( ) ; final com.android.server.ConnectivityServiceTest.TestNetworkCallback networkCallback = new com.android.server.ConnectivityServiceTest.TestNetworkCallback ( ) ; final int timeoutMs = 10 ; mCm.requestNetwork ( nr , networkCallback , timeoutMs ) ; mCm.unregisterNetworkCallback ( networkCallback ) ; com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; networkCallback.assertNoCallback ( ) ; mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; mWiFiNetworkAgent.connect ( false ) ; networkCallback.assertNoCallback ( ) ; }
Source:
static java.lang.String getResourceArg ( org.w3c.dom.Node method , org.w3c.dom.Node call , int argIndex ) { 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 ( method , call , argIndex ) ; method.accept ( tracker ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }

Target:
static java.lang.String getResourceForFirstArg ( org.w3c.dom.Node method , 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 ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }
Source:
public com.google.common.collect.ImmutableList < com.android.build.gradle.api.ApkOutput > getOutputFiles ( ) { com.google.common.collect.ImmutableList.Builder < com.android.build.gradle.api.ApkOutput > outputs = com.google.common.collect.ImmutableList.builder ( ) ; if ( ( packageSplitResourcesTask ) != null ) { outputs.addAll ( packageSplitResourcesTask.getOutputFiles ( ) ) ; } outputs.add ( new com.android.build.gradle.api.ApkOutput.MainApkOutput ( getOutputFile ( ) ) ) ; return outputs.build ( ) ; }

Target:
public java.io.File getSplitFolder ( ) { return getOutputFile ( ) . getParentFile ( ) ; }
Source:
public boolean isVideoCall ( ) { synchronized ( mLockObj ) { return ( ( mCallProfile ) != null ) && ( mCallProfile.isVideoCall ( ) ) ; } }

Target:
public int getRadioTechnology ( ) { synchronized ( mLockObj ) { if ( ( mCallProfile ) == null ) { return android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN ; } java.lang.String callType = mCallProfile.getCallExtra ( ImsCallProfile.EXTRA_CALL_RAT_TYPE ) ; if ( ( callType == null ) || ( callType.isEmpty ( ) ) ) { callType = mCallProfile.getCallExtra ( ImsCallProfile.EXTRA_CALL_RAT_TYPE_ALT ) ; } int radioTechnology = android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN ; try { radioTechnology = java.lang.Integer.parseInt ( callType ) ; } catch ( java.lang.NumberFormatException nfe ) { radioTechnology = android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN ; } return radioTechnology ; } }
Source:
private boolean isSupportedDevice ( ) throws java.lang.Exception { final java.lang.String featureList = getDevice ( ) . executeShellCommand ( "pm list features" ) ; if ( ( featureList.contains ( "feature:android.hardware.type.watch\n" ) ) || ( featureList.contains ( "feature:android.hardware.type.television\n" ) ) ) { return false ; } final java.lang.String passwordActivity = getDevice ( ) . executeShellCommand ( ( "cmd package resolve-activity --components " + "-a android.app.action.SET_NEW_PASSWORD -c android.intent.category.DEFAULT" ) ) ; if ( passwordActivity.equals ( "No activity found\n" ) ) { return false ; } return true ; }

Target:
private boolean isSupportedDevice ( ) throws java.lang.Exception { final java.lang.String featureList = getDevice ( ) . executeShellCommand ( "pm list features" ) ; return featureList.contains ( "feature:android.software.device_admin\n" ) ; }
Source:
public android.net.NetworkStats getVtDataUsage ( int subId , boolean perUidStats ) { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , null ) ; com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getVtDataUsage ( perUidStats ) ; } return null ; }

Target:
public long getVtDataUsage ( ) { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , null ) ; final com.android.internal.telephony.Phone [ ] phones = com.android.internal.telephony.PhoneFactory.getPhones ( ) ; long total = 0 ; for ( com.android.internal.telephony.Phone phone : phones ) { total += phone.getVtDataUsage ( ) ; } return total ; }
Source:
protected static void newDimensionOrNull ( final org.jetbrains.asm4.commons.GeneratorAdapter generator , final java.awt.Dimension dimension ) { if ( ( ( dimension.width ) == ( - 1 ) ) && ( ( dimension.height ) == ( - 1 ) ) ) { generator.visitInsn ( Opcodes.ACONST_NULL ) ; } else { com.intellij.uiDesigner.compiler.AsmCodeGenerator.pushPropValue ( generator , "java.awt.Dimension" , dimension ) ; } }

Target:
protected static void newDimensionOrNull ( final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final java.awt.Dimension dimension ) { if ( ( ( dimension.width ) == ( - 1 ) ) && ( ( dimension.height ) == ( - 1 ) ) ) { generator.visitInsn ( Opcodes.ACONST_NULL ) ; } else { com.intellij.uiDesigner.compiler.AsmCodeGenerator.pushPropValue ( generator , "java.awt.Dimension" , dimension ) ; } }
Source:
public void testIsVoicemailNumber ( ) throws java.lang.Exception { java.lang.String vmNumber = "010" ; makeAccountsVisibleToAllUsers ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT ) ; org.mockito.Mockito.doReturn ( true ) . when ( mFakePhoneAccountRegistrar ) . isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber ) ; assertTrue ( mTSIBinder.isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber , com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }

Target:
public void testIsVoicemailNumber ( ) throws java.lang.Exception { java.lang.String vmNumber = "010" ; makeAccountsVisibleToAllUsers ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT ) ; org.mockito.Mockito.doReturn ( true ) . when ( mFakePhoneAccountRegistrar ) . isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber ) ; org.junit.Assert.assertTrue ( mTSIBinder.isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber , com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }
Source:
public void testGet2_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "asdad" ) ; c.get ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSubList2_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.subList ( 0 , ( ( list.size ( ) ) + 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void test_SSLSocket_setUseClientMode_afterHandshake ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLEnginePair pair = libcore.javax.net.ssl.TestSSLEnginePair.create ( null ) ; try { pair.server.setUseClientMode ( false ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } try { pair.client.setUseClientMode ( false ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void test_SSLSocket_setUseClientMode_afterHandshake ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLSocketPair pair = libcore.javax.net.ssl.TestSSLSocketPair.create ( ) ; try { pair.server.setUseClientMode ( false ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } try { pair.client.setUseClientMode ( false ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.Spam.get ( this ) . isDialogEnabledForSpamNotification ( ) ) { BlockReportSpamDialogs.ReportNotSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }

Target:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) { BlockReportSpamDialogs.ReportNotSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "debuggable" , mDebuggable ) . add ( "debugJniBuild" , mDebugJniBuild ) . add ( "debugSigned" , mDebugSigned ) . add ( "packageNameSuffix" , mPackageNameSuffix ) . add ( "runProguard" , mRunProguard ) . add ( "zipAlign" , mZipAlign ) . omitNullValues ( ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "debuggable" , mDebuggable ) . add ( "debugJniBuild" , mDebugJniBuild ) . add ( "debugSigned" , mDebugSigned ) . add ( "packageNameSuffix" , mPackageNameSuffix ) . add ( "versionNameSuffix" , mVersionNameSuffix ) . add ( "runProguard" , mRunProguard ) . add ( "zipAlign" , mZipAlign ) . omitNullValues ( ) . toString ( ) ; }
Source:
public void test_initWithSecureRandom ( ) throws java.lang.Exception { java.security.SecureRandom sr = new java.security.SecureRandom ( ) ; javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.algorithm ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey , sr ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey , sr ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }

Target:
public void test_initWithKey ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.ALGORITHM_3DES ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }
Source:
public void testTimedoutAfterUnregisteredNetworkRequest ( ) { android.net.NetworkRequest nr = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) . build ( ) ; final com.android.server.ConnectivityServiceTest.TestNetworkCallback networkCallback = new com.android.server.ConnectivityServiceTest.TestNetworkCallback ( ) ; mCm.requestNetwork ( nr , networkCallback , 10 ) ; mCm.unregisterNetworkCallback ( networkCallback ) ; com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; networkCallback.assertNoCallback ( ) ; mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; mWiFiNetworkAgent.connect ( false ) ; networkCallback.assertNoCallback ( ) ; }

Target:
public void testTimedoutNetworkRequest ( ) { android.net.NetworkRequest nr = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) . build ( ) ; final com.android.server.ConnectivityServiceTest.TestNetworkCallback networkCallback = new com.android.server.ConnectivityServiceTest.TestNetworkCallback ( ) ; final int timeoutMs = 10 ; mCm.requestNetwork ( nr , networkCallback , timeoutMs ) ; networkCallback.expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.UNAVAILABLE , null ) ; mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; mWiFiNetworkAgent.connect ( false ) ; networkCallback.assertNoCallback ( ) ; }
Source:
public void hangupForegroundResumeBackground ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilHangup ( mInstanceId , rr.mSerial , ( - 1 ) ) ; send ( rr ) ; }

Target:
public void hangupWaitingOrBackground ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilHangup ( mInstanceId , rr.mSerial , ( - 1 ) ) ; send ( rr ) ; }
Source:
public com.google.common.collect.ImmutableBiMap < K , V > build ( ) { com.google.common.collect.ImmutableMap < K , V > map = super . build ( ) ; if ( map.isEmpty ( ) ) { return com.google.common.collect.ImmutableBiMap.of ( ) ; } return new com.google.common.collect.RegularImmutableBiMap < K , V > ( map ) ; }

Target:
public com.google.common.collect.ImmutableBiMap < K , V > build ( ) { switch ( size ) { case 0 : return com.google.common.collect.ImmutableBiMap.of ( ) ; case 1 : return com.google.common.collect.ImmutableBiMap.of ( entries [ 0 ] . getKey ( ) , entries [ 0 ] . getValue ( ) ) ; default : return new com.google.common.collect.RegularImmutableBiMap < K , V > ( size , entries ) ; } }
Source:
public android.graphics.drawable.Drawable getDrawable ( android.content.Context context ) { com.android.systemui.statusbar.phone.SignalDrawable d = new com.android.systemui.statusbar.phone.SignalDrawable ( context ) ; d.setColors ( com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState ( context , Tile.STATE_UNAVAILABLE ) , com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState ( context , Tile.STATE_ACTIVE ) ) ; d.setLevel ( getState ( ) ) ; return d ; }

Target:
public android.graphics.drawable.Drawable getDrawable ( android.content.Context context ) { com.android.settingslib.graph.SignalDrawable d = new com.android.settingslib.graph.SignalDrawable ( context ) ; d.setColors ( com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState ( context , Tile.STATE_UNAVAILABLE ) , com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState ( context , Tile.STATE_ACTIVE ) ) ; d.setLevel ( getState ( ) ) ; return d ; }
Source:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; loadedMerger.loadFromBlob ( folder , true ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }

Target:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , null ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; loadedMerger.loadFromBlob ( folder , true ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }
Source:
private java.lang.String mzIDFromKey ( android.icu.impl.ICUResource.Key key ) { sb.setLength ( 0 ) ; for ( int i = android.icu.impl.TimeZoneNamesImpl.MZ_PREFIX.length ( ) ; i < ( key.length ( ) ) ; ++ i ) { sb.append ( key.charAt ( i ) ) ; } return sb.toString ( ) ; }

Target:
private java.lang.String mzIDFromKey ( android.icu.impl.UResource.Key key ) { sb.setLength ( 0 ) ; for ( int i = android.icu.impl.TimeZoneNamesImpl.MZ_PREFIX.length ( ) ; i < ( key.length ( ) ) ; ++ i ) { sb.append ( key.charAt ( i ) ) ; } return sb.toString ( ) ; }
Source:
public void visitLibraryClass ( proguard.classfile.visitor.LibraryClass libraryClass ) { if ( ( ( libraryClass.getAccessFlags ( ) ) & ( ( ClassConstants.INTERNAL_ACC_INTERFACE ) | ( ClassConstants.INTERNAL_ACC_ABSTRACT ) ) ) != 0 ) { proguard.classfile.visitor.Clazz [ ] subClasses = libraryClass.subClasses ; if ( subClasses != null ) { for ( int index = 0 ; index < ( subClasses.length ) ; index ++ ) { subClasses [ index ] . accept ( this ) ; } } } else { libraryClass.accept ( classVisitor ) ; } }

Target:
public void visitLibraryClass ( proguard.classfile.visitor.LibraryClass libraryClass ) { if ( ( ( libraryClass.getAccessFlags ( ) ) & ( ( ClassConstants.ACC_INTERFACE ) | ( ClassConstants.ACC_ABSTRACT ) ) ) != 0 ) { proguard.classfile.visitor.Clazz [ ] subClasses = libraryClass.subClasses ; if ( subClasses != null ) { for ( int index = 0 ; index < ( subClasses.length ) ; index ++ ) { subClasses [ index ] . accept ( this ) ; } } } else { libraryClass.accept ( classVisitor ) ; } }
Source:
public boolean supportsFormat ( android.media.MediaFormat format ) { final java.util.Map < java.lang.String , java.lang.Object > map = format.getMap ( ) ; java.lang.Integer width = ( ( java.lang.Integer ) ( map.get ( MediaFormat.KEY_WIDTH ) ) ) ; java.lang.Integer height = ( ( java.lang.Integer ) ( map.get ( MediaFormat.KEY_HEIGHT ) ) ) ; java.lang.Double rate = ( ( java.lang.Double ) ( map.get ( MediaFormat.KEY_FRAME_RATE ) ) ) ; return supports ( width , height , rate ) ; }

Target:
public boolean supportsFormat ( android.media.MediaFormat format ) { final java.util.Map < java.lang.String , java.lang.Object > map = format.getMap ( ) ; java.lang.Integer width = ( ( java.lang.Integer ) ( map.get ( MediaFormat.KEY_WIDTH ) ) ) ; java.lang.Integer height = ( ( java.lang.Integer ) ( map.get ( MediaFormat.KEY_HEIGHT ) ) ) ; java.lang.Number rate = ( ( java.lang.Number ) ( map.get ( MediaFormat.KEY_FRAME_RATE ) ) ) ; return supports ( width , height , rate ) ; }
Source:
public void testTarget17WithRtl ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.RtlDetectorTest.ALL ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( "res/layout/rtl.xml:14: Warning: Use \"start\" instead of \"left\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" + " android:layout_gravity=\"left\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/rtl.xml:22: Warning: Use \"end\" instead of \"right\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" ) + " android:layout_gravity=\"right\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/rtl.xml:30: Warning: Use \"end\" instead of \"right\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" ) + " android:gravity=\"right\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml: Warning: The project references RTL attributes, but does not explicitly enable or disable RTL support with android:supportsRtl in the manifest [RtlEnabled]\n" ) + "0 errors, 4 warnings\n" ) ) , lintProject ( "rtl/project-api17.properties=>project.properties" , "rtl/minsdk5targetsdk17.xml=>AndroidManifest.xml" , "rtl/rtl.xml=>res/layout/rtl.xml" ) ) ; }

Target:
public void testTarget17WithRtl ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.RtlDetectorTest.ALL ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( "res/layout/rtl.xml:14: Warning: Use \"start\" instead of \"left\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" + " android:layout_gravity=\"left\"\n" ) + " ~~~~\n" ) + "res/layout/rtl.xml:22: Warning: Use \"end\" instead of \"right\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" ) + " android:layout_gravity=\"right\"\n" ) + " ~~~~~\n" ) + "res/layout/rtl.xml:30: Warning: Use \"end\" instead of \"right\" to ensure correct behavior in right-to-left locales [RtlHardcoded]\n" ) + " android:gravity=\"right\"\n" ) + " ~~~~~\n" ) + "AndroidManifest.xml: Warning: The project references RTL attributes, but does not explicitly enable or disable RTL support with android:supportsRtl in the manifest [RtlEnabled]\n" ) + "0 errors, 4 warnings\n" ) ) , lintProject ( "rtl/project-api17.properties=>project.properties" , "rtl/minsdk5targetsdk17.xml=>AndroidManifest.xml" , "rtl/rtl.xml=>res/layout/rtl.xml" ) ) ; }
Source:
public static int retrieveMinimalDaysInFirstWeek ( java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarDataProvider.class ) ; java.lang.Integer value = pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarWeekParameterGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.MINIMAL_DAYS_IN_FIRST_WEEK ) ; return ( value != null ) && ( ( value >= 1 ) && ( value <= 7 ) ) ? value : 1 ; }

Target:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }
Source:
private void handleWifiStateChanged ( android.content.Intent intent ) { }

Target:
private void handleWifiStateChanged ( android.content.Intent intent ) { mWifiState = intent.getIntExtra ( WifiManager.EXTRA_WIFI_STATE , ( - 1 ) ) ; switch ( mWifiState ) { case android.net.wifi.WifiManager.WIFI_STATE_ENABLED : mSavedSsidsOnDisable.clear ( ) ; break ; case android.net.wifi.WifiManager.WIFI_STATE_DISABLED : for ( java.lang.String ssid : mSavedSsidsInLastScan ) { mSavedSsidsOnDisable.put ( ssid , com.android.networkrecommendation.WifiWakeupController.NUM_SCANS_TO_CONFIRM_AP_LOSS ) ; } break ; } }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; try { fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , inputVFiles ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } return inputVFiles.listIterator ( ) ; }

Target:
public com.android.sched.vfs.InputOutputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return getSectionVFS ( fileType ) . getRootDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public void TestFormatReplaceOptimizationNoOffsets ( ) { android.icu.impl.SimplePatternFormatter fmt = android.icu.impl.SimplePatternFormatter.compile ( "{2}, {0}, {1} and {3}" ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; assertEquals ( "format" , "original, freddy, frog and by" , fmt.formatAndReplace ( result , null , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; }

Target:
public void TestFormatReplaceOptimizationNoOffsets ( ) { android.icu.text.SimpleFormatter fmt = android.icu.text.SimpleFormatter.compile ( "{2}, {0}, {1} and {3}" ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; assertEquals ( "format" , "original, freddy, frog and by" , fmt.formatAndReplace ( result , null , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; }
Source:
public com.google.common.collect.ImmutableSet < V > get ( @ javax.annotation.Nullable K key ) { com.google.common.collect.ImmutableSet < V > set = ( ( com.google.common.collect.ImmutableSet < V > ) ( map.get ( key ) ) ) ; if ( set != null ) { return set ; } else if ( ( emptySet ) != null ) { return emptySet ; } else { return com.google.common.collect.ImmutableSet.< V > of ( ) ; } }

Target:
java.util.Comparator < ? super V > valueComparator ( ) { return ( emptySet ) instanceof com.google.common.collect.ImmutableSortedSet ? ( ( com.google.common.collect.ImmutableSortedSet < V > ) ( emptySet ) ) . comparator ( ) : null ; }
Source:
public void appendTo ( java.util.List keepSpecifications , boolean markClasses , boolean markConditionally ) { proguard.ant.KeepSpecificationElement keepSpecificationElement = ( isReference ( ) ) ? ( ( proguard.ant.KeepSpecificationElement ) ( getCheckedRef ( this . getClass ( ) , this . getClass ( ) . getName ( ) ) ) ) : this ; proguard.KeepClassSpecification keepClassSpecification = new proguard.KeepClassSpecification ( markClasses , markConditionally , allowShrinking , allowOptimization , allowObfuscation , createClassSpecification ( keepSpecificationElement ) ) ; keepSpecifications.add ( keepClassSpecification ) ; }

Target:
public void appendTo ( java.util.List keepSpecifications , boolean markClasses , boolean markConditionally ) { proguard.ant.KeepSpecificationElement keepSpecificationElement = ( isReference ( ) ) ? ( ( proguard.ant.KeepSpecificationElement ) ( getCheckedRef ( this . getClass ( ) , this . getClass ( ) . getName ( ) ) ) ) : this ; proguard.KeepClassSpecification keepClassSpecification = new proguard.KeepClassSpecification ( markClasses , markConditionally , markDescriptorClasses , allowShrinking , allowOptimization , allowObfuscation , createClassSpecification ( keepSpecificationElement ) ) ; keepSpecifications.add ( keepClassSpecification ) ; }
Source:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.inject.DialerRootComponent.class ) ) { if ( ( elementsByAnnotation.containsKey ( com.android.dialer.inject.InstallIn.class ) ) || ( elementsByAnnotation.containsKey ( com.android.dialer.inject.IncludeInDialerRoot.class ) ) ) { return elementsByAnnotation.get ( com.android.dialer.inject.DialerRootComponent.class ) ; } else { generateRootComponent ( com.google.auto.common.MoreElements.asType ( element ) ) ; } } return java.util.Collections.emptySet ( ) ; }

Target:
private boolean shouldDeferRootComponent ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { return ( elementsByAnnotation.containsKey ( com.android.dialer.inject.InstallIn.class ) ) || ( elementsByAnnotation.containsKey ( com.android.dialer.inject.IncludeInDialerRoot.class ) ) ; }
Source:
public int getCarrierPrivilegeStatusForCurrentTransaction ( android.content.pm.PackageManager packageManager ) { java.lang.String [ ] packages = packageManager.getPackagesForUid ( android.os.Binder.getCallingUid ( ) ) ; for ( java.lang.String pkg : packages ) { int accessStatus = getCarrierPrivilegeStatus ( packageManager , pkg ) ; if ( accessStatus != ( android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS ) ) { return accessStatus ; } } return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS ; }

Target:
public int getCarrierPrivilegeStatusForCurrentTransaction ( android.content.pm.PackageManager packageManager ) { return getCarrierPrivilegeStatusForUid ( packageManager , android.os.Binder.getCallingUid ( ) ) ; }