auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( "res/layout/include_params.xml:43: Error: Layout parameter layout_margin ignored unless both layout_width and layout_height are also specified on <include> tag [IncludeLayoutParam]\n" + " android:layout_margin=\"20dp\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:44: Error: Layout parameter layout_weight ignored unless both layout_width and layout_height are also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:51: Error: Layout parameter layout_weight ignored unless layout_width is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:58: Error: Layout parameter layout_weight ignored unless layout_height is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "4 errors, 0 warnings\n" ) ) , lintProject ( "res/layout/include_params.xml" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "res/layout/include_params.xml:43: Error: Layout parameter layout_margin ignored unless both layout_width and layout_height are also specified on <include> tag [IncludeLayoutParam]\n" + " android:layout_margin=\"20dp\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:44: Error: Layout parameter layout_weight ignored unless both layout_width and layout_height are also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:51: Error: Layout parameter layout_weight ignored unless layout_width is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:58: Error: Layout parameter layout_weight ignored unless layout_height is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_weight=\"1.5\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:65: Error: Layout parameter layout_width ignored unless layout_height is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_width=\"fill_parent\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/include_params.xml:72: Error: Layout parameter layout_height ignored unless layout_width is also specified on <include> tag [IncludeLayoutParam]\n" ) + " android:layout_height=\"fill_parent\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "6 errors, 0 warnings\n" ) ) , lintProject ( "res/layout/include_params.xml" ) ) ; }
Source:
public void syncEnded ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.addAppEngineGradleFacet ( ) ; } } ) ; }

Target:
public void syncSucceeded ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.addAppEngineGradleFacet ( ) ; } } ) ; }
Source:
protected void visitType ( int type , int index ) { if ( dex.typeNames ( ) . get ( index ) . equals ( Type.VOID.getDescriptor ( ) ) ) { constantValue = com.android.jack.dx.rop.cst.CstType.intern ( Type.VOID ) ; } else { constantValue = getCstTypeFromTypeIndex ( dex , index ) ; } }

Target:
protected void visitType ( int type , int index ) { assert ( cstIndexMap ) != null ; constantValue = cstIndexMap.getCstType ( index ) ; }
Source:
private void onCodecConfigChanged ( android.bluetooth.BluetoothCodecConfig newCodecConfig , android.bluetooth.BluetoothCodecConfig [ ] codecsLocalCapabilities , android.bluetooth.BluetoothCodecConfig [ ] codecsSelectableCapabilities ) { if ( com.android.bluetooth.a2dp.A2dpNativeInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpNativeInterface.TAG , ( "onCodecConfigChanged: " + newCodecConfig ) ) ; } com.android.bluetooth.a2dp.A2dpService service = com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) ; if ( service != null ) { service.onCodecConfigChangedFromNative ( newCodecConfig , codecsLocalCapabilities , codecsSelectableCapabilities ) ; } else { android.util.Log.w ( com.android.bluetooth.a2dp.A2dpNativeInterface.TAG , "onCodecConfigChanged ignored: service not available" ) ; } }

Target:
private void onCodecConfigChanged ( byte [ ] address , android.bluetooth.BluetoothCodecConfig newCodecConfig , android.bluetooth.BluetoothCodecConfig [ ] codecsLocalCapabilities , android.bluetooth.BluetoothCodecConfig [ ] codecsSelectableCapabilities ) { com.android.bluetooth.a2dp.A2dpStackEvent event = new com.android.bluetooth.a2dp.A2dpStackEvent ( A2dpStackEvent.EVENT_TYPE_CODEC_CONFIG_CHANGED ) ; event.device = getDevice ( address ) ; event.codecStatus = new android.bluetooth.BluetoothCodecStatus ( newCodecConfig , codecsLocalCapabilities , codecsSelectableCapabilities ) ; if ( com.android.bluetooth.a2dp.A2dpNativeInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpNativeInterface.TAG , ( "onCodecConfigChanged: " + event ) ) ; } sendMessageToService ( event ) ; }
Source:
protected void onProgressUpdate ( java.lang.Integer ... progress ) { progressDialog.setMessage ( ( ( ( "load " + ( progress [ 0 ] ) ) + "/" ) + ( progress [ 1 ] ) ) ) ; progressDialog.setMax ( progress [ 1 ] ) ; progressDialog.setProgress ( progress [ 0 ] ) ; android.util.Log.v ( com.example.android.rs.vr.VrActivity.LOGTAG , ( ( ( "Loading " + ( progress [ 0 ] ) ) + "/" ) + ( progress [ 1 ] ) ) ) ; }

Target:
protected void onProgressUpdate ( java.lang.Integer ... progress ) { progressDialog.setMessage ( ( ( ( ( message ) + ( progress [ 0 ] ) ) + "/" ) + ( progress [ 1 ] ) ) ) ; progressDialog.setMax ( progress [ 1 ] ) ; progressDialog.setProgress ( progress [ 0 ] ) ; android.util.Log.v ( com.example.android.rs.vr.VrActivity.LOGTAG , ( ( ( "Loading " + ( progress [ 0 ] ) ) + "/" ) + ( progress [ 1 ] ) ) ) ; }
Source:
public static com.intellij.execution.ui.ConsoleView createAndAttachConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.process.ProcessHandler processHandler , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createAndAttachConsole ( testFrameworkName , processHandler , consoleProperties , commandLineState.getEnvironment ( ) ) ; }

Target:
public static com.intellij.execution.ui.ConsoleView createAndAttachConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.process.ProcessHandler processHandler , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor , @ org.jetbrains.annotations.NotNull final com.google.gct.testing.CloudMatrixExecutionCancellator matrixExecutionCancellator ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createAndAttachConsole ( testFrameworkName , processHandler , consoleProperties , commandLineState.getEnvironment ( ) , matrixExecutionCancellator ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.KeyboardState orientation = com.android.resources.KeyboardState.getEnum ( value ) ; if ( orientation != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ( ) ; qualifier.mValue = orientation ; config.setKeyboardStateQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.KeyboardState orientation = com.android.resources.KeyboardState.getEnum ( value ) ; if ( orientation != null ) { com.android.ide.common.resources.configuration.KeyboardStateQualifier qualifier = new com.android.ide.common.resources.configuration.KeyboardStateQualifier ( ) ; qualifier.mValue = orientation ; config.setKeyboardStateQualifier ( qualifier ) ; return true ; } return false ; }
Source:
private void freeLoadedPrograms ( ) { java.util.Collection < com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > > programs = getInstalledJacks ( ) ; for ( com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program : programs ) { synchronized ( program ) { program.setLoadedProgram ( null ) ; } } java.lang.System.gc ( ) ; }

Target:
private void cleanJacks ( @ javax.annotation.Nonnull java.util.Set < com.android.jack.api.ResourceController.Category > categories , @ javax.annotation.Nonnull java.util.Set < com.android.jack.api.ResourceController.Impact > impacts ) { for ( com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program : getInstalledJacks ( ) ) { com.android.jack.api.JackProvider provider = program.getLoadedProgram ( com.android.jack.server.JackHttpServer.Assertion.DISABLED ) ; if ( provider instanceof com.android.jack.api.ResourceController ) { ( ( com.android.jack.api.ResourceController ) ( provider ) ) . clean ( categories , impacts ) ; } provider = program.getLoadedProgram ( com.android.jack.server.JackHttpServer.Assertion.ENABLED ) ; if ( provider instanceof com.android.jack.api.ResourceController ) { ( ( com.android.jack.api.ResourceController ) ( provider ) ) . clean ( categories , impacts ) ; } } }
Source:
public static com.android.jack.ir.ast.JSession buildJAst ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.lang.Exception { com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; try { options.checkValidity ( hooks ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; com.android.jack.ir.ast.JSession session = com.android.jack.Jack.buildSession ( options , hooks ) ; return session ; } finally { hooks.runHooks ( ) ; } }

Target:
public static com.android.jack.ir.ast.JSession buildJAst ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.lang.Exception { com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; try { options.addProperty ( Options.USE_DEFAULT_LIBRARIES.getName ( ) , "false" ) ; options.checkValidity ( hooks ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; com.android.jack.ir.ast.JSession session = com.android.jack.Jack.buildSession ( options , hooks ) ; return session ; } finally { hooks.runHooks ( ) ; } }
Source:
public boolean sameItemAs ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.SystemImagePackage ) { com.android.sdklib.internal.repository.packages.SystemImagePackage newPkg = ( ( com.android.sdklib.internal.repository.packages.SystemImagePackage ) ( pkg ) ) ; return ( getAbi ( ) . equals ( newPkg.getAbi ( ) ) ) && ( getAndroidVersion ( ) . equals ( newPkg.getAndroidVersion ( ) ) ) ; } return false ; }

Target:
public boolean sameItemAs ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.SystemImagePackage ) { com.android.sdklib.internal.repository.packages.SystemImagePackage newPkg = ( ( com.android.sdklib.internal.repository.packages.SystemImagePackage ) ( pkg ) ) ; return ( ( getTag ( ) . equals ( newPkg.getTag ( ) ) ) && ( getAbi ( ) . equals ( newPkg.getAbi ( ) ) ) ) && ( getAndroidVersion ( ) . equals ( newPkg.getAndroidVersion ( ) ) ) ; } return false ; }
Source:
public void onReceivedClientCertRequest ( org.chromium.android_webview.AwContentsClientBridge.ClientCertificateRequestCallback callback , java.lang.String [ ] keyTypes , java.security.Principal [ ] principals , java.lang.String host , int port ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedClientCertRequest" ) ; org.chromium.base.TraceEvent.begin ( ) ; final com.android.webview.chromium.WebViewContentsClientAdapter.ClientCertRequestImpl request = new com.android.webview.chromium.WebViewContentsClientAdapter.ClientCertRequestImpl ( callback , keyTypes , principals , host , port ) ; mWebViewClient.onReceivedClientCertRequest ( mWebView , request ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onReceivedClientCertRequest ( org.chromium.android_webview.AwContentsClientBridge.ClientCertificateRequestCallback callback , java.lang.String [ ] keyTypes , java.security.Principal [ ] principals , java.lang.String host , int port ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onReceivedClientCertRequest" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedClientCertRequest" ) ; final com.android.webview.chromium.WebViewContentsClientAdapter.ClientCertRequestImpl request = new com.android.webview.chromium.WebViewContentsClientAdapter.ClientCertRequestImpl ( callback , keyTypes , principals , host , port ) ; mWebViewClient.onReceivedClientCertRequest ( mWebView , request ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onReceivedClientCertRequest" ) ; } }
Source:
private void handleReleasedFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { if ( java.util.Objects.equals ( mCurrentFocus , connectionServiceFocus ) ) { mEventHandler.removeMessages ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT , mCurrentFocusRequest ) ; com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus newCSF = null ; if ( ( mCurrentFocusRequest ) != null ) { newCSF = mCurrentFocusRequest.call.getConnectionServiceWrapper ( ) ; } updateConnectionServiceFocus ( newCSF ) ; updateCurrentFocusCall ( ) ; if ( ( mCurrentFocusRequest ) != null ) { onRequestFocusDone ( mCurrentFocusRequest ) ; mCurrentFocusRequest = null ; } } }

Target:
private void handleReleasedFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { android.telecom.Log.d ( this , "handleReleasedFocus connSvr = %s" , connectionServiceFocus ) ; if ( java.util.Objects.equals ( mCurrentFocus , connectionServiceFocus ) ) { mEventHandler.removeMessages ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT , mCurrentFocusRequest ) ; com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus newCSF = null ; if ( ( mCurrentFocusRequest ) != null ) { newCSF = mCurrentFocusRequest.call.getConnectionServiceWrapper ( ) ; } updateConnectionServiceFocus ( newCSF ) ; updateCurrentFocusCall ( ) ; if ( ( mCurrentFocusRequest ) != null ) { onRequestFocusDone ( mCurrentFocusRequest ) ; mCurrentFocusRequest = null ; } } }
Source:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { testPreloadDensityInner ( res , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }

Target:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = mContext.getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; verifyPreloadDensityInner ( res , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }
Source:
public void test_zh_TW ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex zh_TW = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "zh" , "TW" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "沈" , "7劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "瀋" , "18劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "贾" , "10劃" ) ; }

Target:
public void test_zh_HK ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex zh_HK = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "zh" , "HK" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_HK , "沈" , "7劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_HK , "瀋" , "18劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_HK , "贾" , "10劃" ) ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { status = PASS ; next ( ) ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . requestListenerHints ( MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; status = RETEST ; } else { int result = com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . getCurrentListenerHints ( ) ; if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) != 0 ) { status = PASS ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } }
Source:
private static void addTimeUnit ( com.ibm.icu.impl.ICUResourceBundle pastOrFuture , com.ibm.icu.text.QuantityFormatter.Builder builder ) { int size = pastOrFuture.getSize ( ) ; for ( int i = 0 ; i < size ; i ++ ) { com.ibm.icu.util.UResourceBundle r = pastOrFuture.get ( i ) ; builder.add ( r.getKey ( ) , r.getString ( ) ) ; } }

Target:
private static void addTimeUnit ( com.ibm.icu.impl.ICUResourceBundle pastOrFuture , com.ibm.icu.text.QuantityFormatter qf ) { int size = pastOrFuture.getSize ( ) ; for ( int i = 0 ; i < size ; i ++ ) { com.ibm.icu.util.UResourceBundle r = pastOrFuture.get ( i ) ; qf.addIfAbsent ( r.getKey ( ) , r.getString ( ) ) ; } }
Source:
public java.lang.String getDisplayName ( java.util.Locale locale ) { java.util.Objects.requireNonNull ( locale , "locale" ) ; sun.util.locale.provider.LocaleResources lr = sun.util.locale.provider.LocaleProviderAdapter.getResourceBundleBased ( ) . getLocaleResources ( locale ) ; java.util.ResourceBundle rb = lr.getJavaTimeFormatData ( ) ; return rb.containsKey ( "field.week" ) ? rb.getString ( "field.week" ) : toString ( ) ; }

Target:
public java.lang.String getDisplayName ( java.util.Locale locale ) { java.util.Objects.requireNonNull ( locale , "locale" ) ; android.icu.text.DateTimePatternGenerator dateTimePatternGenerator = android.icu.text.DateTimePatternGenerator.getFrozenInstance ( android.icu.util.ULocale.forLocale ( locale ) ) ; java.lang.String icuName = dateTimePatternGenerator.getAppendItemName ( DateTimePatternGenerator.WEEK_OF_YEAR ) ; return ( icuName != null ) && ( ! ( icuName.isEmpty ( ) ) ) ? icuName : toString ( ) ; }
Source:
public static void copy ( com.google.common.io.InputSupplier < ? extends java.io.InputStream > from , java.io.File to ) throws java.io.IOException { com.google.common.io.ByteStreams.copy ( from , com.google.common.io.Files.newOutputStreamSupplier ( to ) ) ; }

Target:
public static java.util.List < java.lang.String > readLines ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.Files.readLines ( file , charset , new com.google.common.io.LineProcessor < java.util.List < java.lang.String > > ( ) { final java.util.List < java.lang.String > result = com.google.common.collect.Lists.newArrayList ( ) ; @ java.lang.Override public boolean processLine ( java.lang.String line ) { result.add ( line ) ; return true ; } @ java.lang.Override public java.util.List < java.lang.String > getResult ( ) { return result ; } } ) ; }
Source:
public void testIsFocusable ( ) { android.view.View focusable = new android.view.View ( context ) ; focusable.setFocusable ( true ) ; android.view.View notFocusable = new android.view.View ( context ) ; notFocusable.setFocusable ( false ) ; assertTrue ( android.support.test.espresso.matcher.ViewMatchers.isFocusable ( ) . matches ( focusable ) ) ; assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isFocusable ( ) . matches ( notFocusable ) ) ; }

Target:
public void isFocusableTest ( ) { android.view.View focusable = new android.view.View ( context ) ; focusable.setFocusable ( true ) ; android.view.View notFocusable = new android.view.View ( context ) ; notFocusable.setFocusable ( false ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.ViewMatchers.isFocusable ( ) . matches ( focusable ) ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isFocusable ( ) . matches ( notFocusable ) ) ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { final java.security.spec.AlgorithmParameterSpec spec ; if ( params != null ) { try { spec = params.getParameterSpec ( javax.crypto.spec.IvParameterSpec.class ) ; } catch ( java.security.spec.InvalidParameterSpecException e ) { throw new java.security.InvalidAlgorithmParameterException ( e ) ; } } else { spec = null ; } engineInit ( opmode , key , spec , random ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { java.security.spec.AlgorithmParameterSpec spec ; if ( params != null ) { try { spec = params.getParameterSpec ( javax.crypto.spec.IvParameterSpec.class ) ; } catch ( java.security.spec.InvalidParameterSpecException e ) { throw new java.security.InvalidAlgorithmParameterException ( "Params must be convertible to IvParameterSpec" , e ) ; } } else { spec = null ; } engineInit ( opmode , key , spec , random ) ; }
Source:
private synchronized void onApplicationStateChanged ( byte [ ] address , boolean registered ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "onApplicationStateChanged(): registered=" + registered ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_APPLICATION_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = ( registered ) ? 1 : 0 ; mHandler.sendMessage ( msg ) ; }

Target:
private static synchronized void setHidDeviceService ( com.android.bluetooth.hid.HidDeviceService instance ) { com.android.bluetooth.hid.HidDeviceService.sHidDeviceService = instance ; }
Source:
public long getFieldID ( long classID , java.lang.String fieldName ) { org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket reply = getFieldsInClass ( classID ) ; return getFieldID ( reply , fieldName ) ; }

Target:
public long getFieldID ( long classID , java.lang.String fieldName ) { org.apache.harmony.jpda.tests.framework.jdwp.Field [ ] fields = getFieldsInfo ( classID ) ; for ( org.apache.harmony.jpda.tests.framework.jdwp.Field field : fields ) { if ( field.getName ( ) . equals ( fieldName ) ) { return field.getFieldID ( ) ; } } return - 1 ; }
Source:
private void addToBuffer ( int offset , android.renderscript.Matrix4f m ) { mIOBuffer.reset ( offset ) ; for ( int i = 0 ; i < 16 ; i ++ ) { mIOBuffer.addF32 ( m.mMat [ i ] ) ; } mAlloc.setFromFieldPacker ( 0 , mIOBuffer ) ; }

Target:
private void addToBuffer ( int offset , android.renderscript.Matrix4f m ) { mIOBuffer.reset ( offset ) ; for ( int i = 0 ; i < 16 ; i ++ ) { mIOBuffer.addF32 ( m.mMat [ i ] ) ; } mIOBuffer.reset ( mIOBuffer.getData ( ) . length ) ; mAlloc.setFromFieldPacker ( 0 , mIOBuffer ) ; }
Source:
public void testRefactor1 ( ) throws java.lang.Exception { moveType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , "com.example.refactoringtest.CustomView1" , "src/com/example/refactoringtest/subpackage" , true , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* Android Type Move\n" ) + "\n" ) + " * customviews.xml - /testRefactor1/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1\n" ) + "\n" ) + "\n" ) + " * customviews.xml - /testRefactor1/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1" ) ) ) ; }

Target:
public void testRefactor1 ( ) throws java.lang.Exception { moveType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , "com.example.refactoringtest.CustomView1" , "src/com/example/refactoringtest/subpackage" , true , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* customviews.xml - /testRefactor1/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1\n" ) + "\n" ) + "\n" ) + "* customviews.xml - /testRefactor1/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1" ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( networkKey , rssiCurve , meteredHint ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( "ScoredNetwork{" + "networkKey=" ) + ( networkKey ) ) + ", rssiCurve=" ) + ( rssiCurve ) ) + ", meteredHint=" ) + ( meteredHint ) ) + ", attributes=" ) + ( attributes ) ) + '}' ; }
Source:
private boolean hasRestrictedNetworkPermission ( android.content.pm.PackageInfo app ) { int flags = ( ( app.applicationInfo ) != null ) ? app.applicationInfo.flags : 0 ; if ( ( ( flags & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) != 0 ) || ( ( flags & ( android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP ) ) != 0 ) ) { return true ; } return ( hasPermission ( app , android.Manifest.permission.CONNECTIVITY_INTERNAL ) ) || ( hasPermission ( app , android.Manifest.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS ) ) ; }

Target:
boolean isPreinstalledSystemApp ( android.content.pm.PackageInfo app ) { int flags = ( ( app.applicationInfo ) != null ) ? app.applicationInfo.flags : 0 ; return ( flags & ( ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) | ( android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP ) ) ) != 0 ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] buffer = new byte [ 1 ] ; org.conscrypt.NativeCrypto.SSL_read ( s , fd , callback , buffer , 0 , 1 , 0 ) ; assertEquals ( 42 , buffer [ 0 ] ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the client" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.Collection < com.intellij.psi.PsiAnnotation > getAnnotations ( @ com.android.annotations.NonNull org.eclipse.jdt.internal.compiler.lookup.MethodBinding method ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } return m.psiAnnotations ; }
Source:
public void Test13088 ( ) { com.ibm.icu.util.ULocale loc = new com.ibm.icu.util.ULocale ( "fa" ) ; double num = - 12.34 ; com.ibm.icu.text.NumberFormat numfmt = com.ibm.icu.text.NumberFormat.getPercentInstance ( loc ) ; expect2 ( numfmt , num , "‎٪ ‎−۱٬۲۳۴" ) ; }

Target:
public void Test13088 ( ) { com.ibm.icu.util.ULocale loc = new com.ibm.icu.util.ULocale ( "fa" ) ; java.lang.String pattern = "% #,##0;% -#,##0" ; double num = - 12.34 ; com.ibm.icu.text.DecimalFormatSymbols symbols = com.ibm.icu.text.DecimalFormatSymbols.getInstance ( loc ) ; assertEquals ( "Checking for expected symbols" , "‎−" , symbols.getMinusSignString ( ) ) ; assertEquals ( "Checking for expected symbols" , "‎٪" , symbols.getPercentString ( ) ) ; com.ibm.icu.text.DecimalFormat numfmt = new com.ibm.icu.text.DecimalFormat ( pattern , symbols ) ; expect2 ( numfmt , num , "‎٪ ‎−۱٬۲۳۴" ) ; }
Source:
private static android.telephony.SmsCbMessage createFromPdu ( byte [ ] pdu ) { try { byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.internal.telephony.gsm.GsmSmsCbMessage.createSmsCbMessage ( com.android.cellbroadcastreceiver.DialogSmsDisplayTests.sEmptyLocation , pdus ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
private android.telephony.SmsCbMessage createFromPdu ( byte [ ] pdu ) { try { byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.internal.telephony.gsm.GsmSmsCbMessage.createSmsCbMessage ( mContext , new com.android.internal.telephony.gsm.SmsCbHeader ( pdus [ 0 ] ) , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.sEmptyLocation , pdus ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
public com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty clone ( ) { com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > copy = new com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > ( mSparseArray.size ( ) ) ; for ( int i = 0 ; i < ( mSparseArray.size ( ) ) ; i ++ ) { int key = mSparseArray.keyAt ( i ) ; com.android.ide.eclipse.gltrace.state.IGLProperty value = mSparseArray.get ( key ) ; copy.put ( key , value ) ; } return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( mType , mDefaultValue , copy ) ; }

Target:
public com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty clone ( ) { com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > copy = new com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > ( mSparseArray.size ( ) ) ; for ( int i = 0 ; i < ( mSparseArray.size ( ) ) ; i ++ ) { int key = mSparseArray.keyAt ( i ) ; com.android.ide.eclipse.gltrace.state.IGLProperty value = mSparseArray.get ( key ) ; copy.put ( key , value ) ; } return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( mType , mDefaultValue , mCreateOnAccess , copy ) ; }
Source:
public void processBasicBlockElements ( ) { instructions = new java.util.LinkedList < > ( ) ; extraInstructions = new java.util.LinkedList < > ( ) ; noMoreInstruction = false ; java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = com.google.common.collect.Lists.newArrayList ( this . currentBasicBlock.elements ( true ) ) ; super . accept ( elements ) ; }

Target:
public void processBasicBlockElements ( ) { instructions = new java.util.LinkedList < > ( ) ; extraInstructions = new java.util.LinkedList < > ( ) ; noMoreInstruction = false ; java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = com.google.common.collect.Lists.newArrayList ( this . currentBasicBlock.getElements ( true ) ) ; super . accept ( elements ) ; }
Source:
private static void printBitset ( java.util.BitSet bs ) { java.lang.System.out.println ( ) ; for ( int i = ( bs.size ( ) ) - 1 ; i >= 0 ; i -- ) { if ( bs.get ( i ) ) java.lang.System.out.print ( 1 ) ; else java.lang.System.out.print ( 0 ) ; } }

Target:
public void test_serialization ( ) throws java.lang.Exception { java.util.BitSet bs = new java.util.BitSet ( 500 ) ; bs.set ( 5 ) ; bs.set ( 32 ) ; bs.set ( 63 ) ; bs.set ( 64 ) ; bs.set ( 71 , 110 ) ; bs.set ( 127 , 130 ) ; bs.set ( 193 ) ; bs.set ( 450 ) ; org.apache.harmony.testframework.serialization.SerializationTest.verifySelf ( bs ) ; }
Source:
private com.android.internal.telephony.CommandException getCommandException ( int code , java.lang.String errorString ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "getCommandException code= " + code ) + ", errorString= " ) + errorString ) ) ; com.android.internal.telephony.CommandException.Error error = CommandException.Error.GENERIC_FAILURE ; switch ( code ) { case com.android.ims.ImsReasonInfo.CODE_UT_NOT_SUPPORTED : error = CommandException.Error.REQUEST_NOT_SUPPORTED ; break ; case com.android.ims.ImsReasonInfo.CODE_UT_CB_PASSWORD_MISMATCH : error = CommandException.Error.PASSWORD_INCORRECT ; break ; case com.android.ims.ImsReasonInfo.CODE_UT_SERVICE_UNAVAILABLE : error = CommandException.Error.RADIO_NOT_AVAILABLE ; default : break ; } return new com.android.internal.telephony.CommandException ( error , errorString ) ; }

Target:
private com.android.internal.telephony.CommandException getCommandException ( int code , java.lang.String errorString ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "getCommandException code= " + code ) + ", errorString= " ) + errorString ) ) ; com.android.internal.telephony.CommandException.Error error = CommandException.Error.GENERIC_FAILURE ; switch ( code ) { case com.android.ims.ImsReasonInfo.CODE_UT_NOT_SUPPORTED : error = CommandException.Error.REQUEST_NOT_SUPPORTED ; break ; case com.android.ims.ImsReasonInfo.CODE_UT_CB_PASSWORD_MISMATCH : error = CommandException.Error.PASSWORD_INCORRECT ; break ; case com.android.ims.ImsReasonInfo.CODE_UT_SERVICE_UNAVAILABLE : error = CommandException.Error.RADIO_NOT_AVAILABLE ; break ; case com.android.ims.ImsReasonInfo.CODE_FDN_BLOCKED : error = CommandException.Error.FDN_CHECK_FAILURE ; default : break ; } return new com.android.internal.telephony.CommandException ( error , errorString ) ; }
Source:
private void setParameters ( int width , int height , int bitRate ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.EncodeDecodeTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; mBitRate = bitRate ; }

Target:
private void setParameters ( int width , int height , int bitRate , java.lang.String mimeType ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.EncodeDecodeTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; mBitRate = bitRate ; mMimeType = mimeType ; }
Source:
private com.android.timezone.distro.DistroVersion readDistroVersion ( java.io.File distroDir ) throws com.android.timezone.distro.DistroException , java.io.IOException { android.util.Slog.i ( logTag , "Reading distro format version" ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new com.android.timezone.distro.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = com.android.timezone.distro.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return com.android.timezone.distro.DistroVersion.fromBytes ( versionBytes ) ; }

Target:
private com.android.timezone.distro.DistroVersion readDistroVersion ( java.io.File distroDir ) throws com.android.timezone.distro.DistroException , java.io.IOException { android.util.Slog.i ( logTag , ( "Reading distro format version: " + distroDir ) ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new com.android.timezone.distro.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = com.android.timezone.distro.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return com.android.timezone.distro.DistroVersion.fromBytes ( versionBytes ) ; }
Source:
public void testE2 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_1 t = new dot.junit.opcodes.aput_object.d.T_aput_object_1 ( ) ; java.lang.String [ ] arr = new java.lang.String [ 2 ] ; try { t.run ( arr , ( - 1 ) , "abc" ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE4 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_4" , java.lang.ArrayStoreException.class , new java.lang.String [ 2 ] , 0 , new java.lang.Integer ( 1 ) ) ; }
Source:
private proguard.classfile.Attribute getAttribute ( proguard.classfile.Clazz clazz , java.lang.String name ) { for ( int index = 0 ; index < ( u2attributesCount ) ; index ++ ) { proguard.classfile.Attribute attribute = attributes [ index ] ; if ( attribute.getAttributeName ( clazz ) . equals ( name ) ) { return attribute ; } } return null ; }

Target:
private proguard.classfile.attribute.Attribute getAttribute ( proguard.classfile.Clazz clazz , java.lang.String name ) { for ( int index = 0 ; index < ( u2attributesCount ) ; index ++ ) { proguard.classfile.attribute.Attribute attribute = attributes [ index ] ; if ( attribute.getAttributeName ( clazz ) . equals ( name ) ) { return attribute ; } } return null ; }
Source:
synchronized boolean reportError ( byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "reportError(): error = " + error ) ) ; return reportErrorNative ( error ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; if ( ! ( checkDevice ( device ) ) ) { return false ; } return sendReportNative ( id , data ) ; }
Source:
private int performDexOptInternal ( java.lang.String packageName , boolean checkProfiles , java.lang.String targetCompilerFilter , boolean force ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return PackageDexOptimizer.DEX_OPT_FAILED ; } mPackageUsage.write ( false ) ; } long callingId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mInstallLock ) { return performDexOptInternalWithDependenciesLI ( p , checkProfiles , targetCompilerFilter , force ) ; } } finally { android.os.Binder.restoreCallingIdentity ( callingId ) ; } }

Target:
public void shutdown ( ) { mPackageUsage.writeNow ( mPackages ) ; mCompilerStats.writeNow ( ) ; }
Source:
public void testWrongSeparator2 ( ) throws java.lang.Exception { assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:15: Warning: Use \'$\' instead of \'.\' for inner classes (or use only lowercase letters in package names) [InnerclassSeparator]\n" ) + " android:name=\".Foo.Bar\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 1 warnings\n" ) ) , lintProject ( "registration/AndroidManifestWrong2.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "registration/Bar.java.txt=>src/test/pkg/Foo/Bar.java" ) ) ; }

Target:
public void testWrongSeparator2 ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:15: Warning: Use \'$\' instead of \'.\' for inner classes (or use only lowercase letters in package names) [InnerclassSeparator]\n" ) + " android:name=\".Foo.Bar\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 1 warnings\n" ) ) , lintProject ( "registration/AndroidManifestWrong2.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "registration/Bar.java.txt=>src/test/pkg/Foo/Bar.java" ) ) ; }
Source:
public boolean isAudioOn ( ) { if ( android.bluetooth.BluetoothHeadset.VDBG ) android.bluetooth.BluetoothHeadset.log ( "isAudioOn()" ) ; if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { return mService.isAudioOn ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } if ( ( mService ) == null ) android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; return false ; }

Target:
public boolean isAudioOn ( ) { if ( android.bluetooth.BluetoothHeadset.VDBG ) android.bluetooth.BluetoothHeadset.log ( "isAudioOn()" ) ; final android.bluetooth.IBluetoothHeadset service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.isAudioOn ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } if ( service == null ) android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; return false ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newPlatformTool ( @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_PLATFORM_TOOLS ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getFullRevision ( ) { return revision ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }

Target:
public java.lang.String getPath ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) ;
Source:
public static com.android.internal.telephony.gsm.SmsMessage newFromCMT ( java.lang.String [ ] lines ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.IccUtils.hexStringToBytes ( lines [ 1 ] ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.util.Log.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "SMS PDU parsing failed: " , ex ) ; return null ; } }

Target:
public static com.android.internal.telephony.gsm.SmsMessage newFromCMT ( java.lang.String [ ] lines ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.uicc.IccUtils.hexStringToBytes ( lines [ 1 ] ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "SMS PDU parsing failed: " , ex ) ; return null ; } }
Source:
public android.security.KeyPairGeneratorSpec build ( ) { return new android.security.KeyPairGeneratorSpec ( mContext , mKeystoreAlias , mKeyType , mKeySize , mSpec , mSubjectDN , mSerialNumber , mStartDate , mEndDate , mFlags , mKeyValidityStart , mKeyValidityForOriginationEnd , mKeyValidityForConsumptionEnd , mPurposes , mDigests , mPaddings , mBlockModes , mUserAuthenticators , mUserAuthenticationValidityDurationSeconds ) ; }

Target:
public android.security.KeyPairGeneratorSpec build ( ) { return new android.security.KeyPairGeneratorSpec ( mContext , mKeystoreAlias , mKeyType , mKeySize , mSpec , mSubjectDN , mSerialNumber , mStartDate , mEndDate , mFlags , mKeyValidityStart , mKeyValidityForOriginationEnd , mKeyValidityForConsumptionEnd , mPurposes , mDigests , mPaddings , mBlockModes , mRandomizedEncryptionRequired , mUserAuthenticators , mUserAuthenticationValidityDurationSeconds ) ; }