auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void getAllDexFilesFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir dexFileVDir , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > dexFiles ) { for ( com.android.sched.vfs.InputVElement subFile : dexFileVDir.list ( ) ) { if ( subFile.isVDir ( ) ) { getAllDexFilesFromDir ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , dexFiles ) ; } else if ( subFile.getName ( ) . endsWith ( DexFileWriter.DEX_FILE_EXTENSION ) ) { dexFiles.add ( ( ( com.android.sched.vfs.InputOutputVFile ) ( subFile ) ) ) ; } } }

Target:
private void getAllDexFilesFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir dexFileVDir , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > dexFiles ) { for ( com.android.sched.vfs.InputVElement subFile : dexFileVDir.list ( ) ) { if ( subFile.isVDir ( ) ) { getAllDexFilesFromDir ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , dexFiles ) ; } else if ( BinaryKind.DEX.isBinaryFile ( ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ) ) { dexFiles.add ( ( ( com.android.sched.vfs.InputOutputVFile ) ( subFile ) ) ) ; } } }
Source:
public void setSupplicantLogLevel ( java.lang.String level ) { doStringCommand ( ( "LOG_LEVEL " + level ) ) ; }

Target:
public void setSupplicantLogLevel ( boolean turnOnVerbose ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { int logLevel = ( turnOnVerbose ) ? SupplicantStaIfaceHal.LOG_LEVEL_DEBUG : SupplicantStaIfaceHal.LOG_LEVEL_INFO ; mSupplicantStaIfaceHal.setLogLevel ( logLevel ) ; } else { doStringCommand ( ( "LOG_LEVEL " + ( turnOnVerbose ? "DEBUG" : "INFO" ) ) ) ; } }
Source:
public final void update ( final com.intellij.ui.tabs.impl.AnActionEvent e ) { com.intellij.ui.tabs.impl.JBTabsImpl tabs = e.getData ( com.intellij.ui.tabs.impl.JBTabsImpl.NAVIGATION_ACTIONS_KEY ) ; e.getPresentation ( ) . setVisible ( ( tabs != null ) ) ; if ( tabs == null ) return ; tabs = findNavigatableTabs ( tabs ) ; e.getPresentation ( ) . setEnabled ( ( tabs != null ) ) ; if ( tabs != null ) { _update ( e , tabs , tabs.myVisibleInfos.indexOf ( tabs.getSelectedInfo ( ) ) ) ; } }

Target:
public final void actionPerformed ( final com.intellij.ui.tabs.impl.AnActionEvent e ) { com.intellij.ui.tabs.impl.JBTabsImpl tabs = e.getData ( com.intellij.ui.tabs.impl.JBTabsImpl.NAVIGATION_ACTIONS_KEY ) ; tabs = findNavigatableTabs ( tabs ) ; if ( tabs == null ) return ; final int index = tabs.getVisibleInfos ( ) . indexOf ( tabs.getSelectedInfo ( ) ) ; if ( index == ( - 1 ) ) return ; _actionPerformed ( e , tabs , index ) ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { java.math.BigInteger x2 = b.toBigInteger ( ) ; java.math.BigInteger x3 = x.subtract ( x2 ) ; if ( ( x3.signum ( ) ) < 0 ) { x3 = x3.add ( q ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x3 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modSubtract ( x , b.toBigInteger ( ) ) ) ; }
Source:
public void test_getDisplayName ( ) { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "GMT-6" ) ; assertEquals ( "GMT-06:00" , tz.getDisplayName ( ) ) ; tz = java.util.TimeZone.getTimeZone ( "America/Los_Angeles" ) ; assertEquals ( "Pacific Standard Time" , tz.getDisplayName ( ) ) ; }

Target:
public void test_getDisplayName ( ) { java.util.Locale.setDefault ( java.util.Locale.US ) ; java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "GMT-6" ) ; assertEquals ( "GMT-06:00" , tz.getDisplayName ( ) ) ; tz = java.util.TimeZone.getTimeZone ( "America/Los_Angeles" ) ; assertEquals ( "Pacific Standard Time" , tz.getDisplayName ( ) ) ; }
Source:
private static org.eclipse.jdt.core.IJavaProject getJavaProjectByName ( java.lang.String name ) { try { org.eclipse.core.resources.IProject project = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) . getProject ( name ) ; if ( project.exists ( ) ) { return org.eclipse.jdt.core.JavaCore.create ( project ) ; } } catch ( java.lang.IllegalArgumentException iae ) { } return null ; }

Target:
private static org.eclipse.core.resources.IProject getNonAndroidProjectByName ( java.lang.String name ) { try { org.eclipse.core.resources.IProject project = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) . getProject ( name ) ; if ( ( project.exists ( ) ) && ( ! ( project.hasNature ( AdtConstants.NATURE_DEFAULT ) ) ) ) { return project ; } } catch ( java.lang.IllegalArgumentException iae ) { } catch ( org.eclipse.core.runtime.CoreException e ) { } return null ; }
Source:
void init ( ) { android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothHeadset.ACTION_HF_INDICATORS_VALUE_CHANGED ) ; filter.addAction ( BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT ) ; filter.addCategory ( ( ( ( android.bluetooth.BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY ) + "." ) + ( android.bluetooth.BluetoothAssignedNumbers.PLANTRONICS ) ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.registerReceiver ( mReceiver , filter ) ; }

Target:
void init ( ) { android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothHeadset.ACTION_HF_INDICATORS_VALUE_CHANGED ) ; filter.addAction ( BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT ) ; filter.addCategory ( ( ( ( android.bluetooth.BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY ) + "." ) + ( android.bluetooth.BluetoothAssignedNumbers.PLANTRONICS ) ) ) ; filter.addCategory ( ( ( ( android.bluetooth.BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY ) + "." ) + ( android.bluetooth.BluetoothAssignedNumbers.APPLE ) ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.registerReceiver ( mReceiver , filter ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.DockMode mode = com.android.resources.DockMode.getEnum ( value ) ; if ( mode != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ( mode ) ; config.setDockModeQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.DockMode mode = com.android.resources.DockMode.getEnum ( value ) ; if ( mode != null ) { com.android.ide.common.resources.configuration.DockModeQualifier qualifier = new com.android.ide.common.resources.configuration.DockModeQualifier ( mode ) ; config.setDockModeQualifier ( qualifier ) ; return true ; } return false ; }
Source:
public com.android.tools.perflib.heap.Heap setHeapTo ( int id , java.lang.String name ) { com.android.tools.perflib.heap.Heap heap = mHeaps.get ( id ) ; if ( heap == null ) { heap = new com.android.tools.perflib.heap.Heap ( name ) ; heap.mSnapshot = this ; mHeaps.put ( id , heap ) ; } mCurrentHeap = heap ; return mCurrentHeap ; }

Target:
public com.android.tools.perflib.heap.Heap setHeapTo ( int id , @ com.android.annotations.NonNull java.lang.String name ) { com.android.tools.perflib.heap.Heap heap = getHeap ( id ) ; if ( heap == null ) { heap = new com.android.tools.perflib.heap.Heap ( id , name ) ; heap.mSnapshot = this ; mHeaps.add ( heap ) ; } mCurrentHeap = heap ; return mCurrentHeap ; }
Source:
public static void create ( android.content.Context context ) { context = context.getApplicationContext ( ) ; if ( ( org.chromium.base.PowerMonitor.sInstance ) == null ) { org.chromium.base.PowerMonitor.sInstance = org.chromium.base.PowerMonitor.LazyHolder.INSTANCE ; org.chromium.base.ApplicationStatus.registerApplicationStateListener ( org.chromium.base.PowerMonitor.sInstance ) ; android.content.IntentFilter ifilter = new android.content.IntentFilter ( android.content.Intent.ACTION_BATTERY_CHANGED ) ; android.content.Intent batteryStatusIntent = context.registerReceiver ( null , ifilter ) ; if ( batteryStatusIntent != null ) org.chromium.base.PowerMonitor.onBatteryChargingChanged ( batteryStatusIntent ) ; } }

Target:
public static void createForTests ( ) { org.chromium.base.PowerMonitor.sInstance = new org.chromium.base.PowerMonitor ( ) ; }
Source:
public static java.lang.String apiToMagic ( int targetApiLevel ) { java.lang.String version ; if ( targetApiLevel >= ( com.android.dex.DexFormat.API_CURRENT ) ) { version = com.android.dex.DexFormat.VERSION_CURRENT ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_CONST_METHOD_HANDLE ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_27 ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_METHOD_HANDLES ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_26 ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_DEFAULT_INTERFACE_METHODS ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_24 ; } else { version = com.android.dex.DexFormat.VERSION_FOR_API_13 ; } return ( ( com.android.dex.DexFormat.MAGIC_PREFIX ) + version ) + ( com.android.dex.DexFormat.MAGIC_SUFFIX ) ; }

Target:
public static java.lang.String apiToMagic ( int targetApiLevel ) { java.lang.String version ; if ( targetApiLevel >= ( com.android.dex.DexFormat.API_CURRENT ) ) { version = com.android.dex.DexFormat.VERSION_CURRENT ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_CONST_METHOD_HANDLE ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_28 ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_METHOD_HANDLES ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_26 ; } else if ( targetApiLevel >= ( com.android.dex.DexFormat.API_DEFAULT_INTERFACE_METHODS ) ) { version = com.android.dex.DexFormat.VERSION_FOR_API_24 ; } else { version = com.android.dex.DexFormat.VERSION_FOR_API_13 ; } return ( ( com.android.dex.DexFormat.MAGIC_PREFIX ) + version ) + ( com.android.dex.DexFormat.MAGIC_SUFFIX ) ; }
Source:
public void testQuickFix_parameterWithNoNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "someParam" , PsiType.INT ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( "@Named(\"someParam\")int someParam" , parameter.getText ( ) ) ; }

Target:
public void testQuickFix_parameterWithNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; java.lang.String parameterText = ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ) + "(\"foo\")int someParam" ; runQuickFixTest ( parameterText , parameterText ) ; }
Source:
protected void runInIndividualMode ( final java.lang.String javaPkgName ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { java.util.Iterator < com.android.cts.TestSuite > suites = getTestSuites ( ) . iterator ( ) ; while ( ( suites.hasNext ( ) ) && ( ! ( mTestStop ) ) ) { mCurrentTestSuite = suites.next ( ) ; mCurrentTestSuite.run ( mDevice , javaPkgName ) ; } }

Target:
protected void runInIndividualMode ( final java.lang.String javaPkgName , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { java.util.Iterator < com.android.cts.TestSuite > suites = getTestSuites ( ) . iterator ( ) ; while ( ( suites.hasNext ( ) ) && ( ! ( mTestStop ) ) ) { mCurrentTestSuite = suites.next ( ) ; mCurrentTestSuite.run ( mDevice , javaPkgName , profile ) ; } }
Source:
public static com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate fromEditor ( @ com.android.annotations.Nullable org.eclipse.ui.IEditorPart editorPart ) { if ( editorPart instanceof com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor ) { com.android.ide.eclipse.adt.internal.editors.common.CommonXmlDelegate delegate = ( ( com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor ) ( editorPart ) ) . getDelegate ( ) ; if ( delegate instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate ) ( delegate ) ) ; } } return null ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate fromEditor ( @ com.android.annotations.Nullable org.eclipse.ui.IEditorPart editorPart ) { if ( editorPart instanceof com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor ) { com.android.ide.eclipse.adt.internal.editors.common.CommonXmlDelegate delegate = ( ( com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor ) ( editorPart ) ) . getDelegate ( ) ; if ( delegate instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate ) ( delegate ) ) ; } } else if ( editorPart instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart part = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart ) ( editorPart ) ) ; return part.getEditorDelegate ( ) ; } return null ; }
Source:
public com.android.server.wifi.ScanDetailCache getScanDetailCacheForNetwork ( int networkId ) { return mScanDetailCaches.get ( networkId ) ; }

Target:
private com.android.server.wifi.ScanDetailCache getOrCreateScanDetailCacheForNetwork ( android.net.wifi.WifiConfiguration config ) { if ( config == null ) return null ; com.android.server.wifi.ScanDetailCache cache = getScanDetailCacheForNetwork ( config.networkId ) ; if ( ( cache == null ) && ( ( config.networkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) { cache = new com.android.server.wifi.ScanDetailCache ( config , com.android.server.wifi.WifiConfigManager.SCAN_CACHE_ENTRIES_MAX_SIZE , com.android.server.wifi.WifiConfigManager.SCAN_CACHE_ENTRIES_TRIM_SIZE ) ; mScanDetailCaches.put ( config.networkId , cache ) ; } return cache ; }
Source:
public boolean matchesMccMnc ( java.lang.String mccMnc ) { if ( mPrefix ) { return mImsi.regionMatches ( false , 0 , mccMnc , 0 , mImsi.length ( ) ) ; } else { return mImsi.regionMatches ( false , 0 , mccMnc , 0 , mccMnc.length ( ) ) ; } }

Target:
public boolean matchesMccMnc ( java.lang.String mccMnc ) { if ( mccMnc == null ) { return false ; } if ( ( mccMnc.length ( ) ) != ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) { return false ; } int checkLength = com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ; if ( ( mPrefix ) && ( ( mImsi.length ( ) ) < ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) ) { checkLength = mImsi.length ( ) ; } return mImsi.regionMatches ( false , 0 , mccMnc , 0 , checkLength ) ; }
Source:
public void testOnWindowFocusChanged ( ) throws java.lang.Throwable { popDialog ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.cts.TestDialog d = ( ( android.app.cts.TestDialog ) ( mActivity.getDialog ( ) ) ) ; assertTrue ( d.isOnWindowFocusChangedCalled ) ; d.isOnWindowFocusChangedCalled = false ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { mActivity.showDialog ( DialogStubActivity.TEST_DIALOG_WITHOUT_THEME ) ; } } ) ; mInstrumentation.waitForIdleSync ( ) ; assertTrue ( d.isOnWindowFocusChangedCalled ) ; }

Target:
public void testOnWindowFocusChanged ( ) throws java.lang.Throwable { popDialog ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.cts.TestDialog d = ( ( android.app.cts.TestDialog ) ( mActivity.getDialog ( ) ) ) ; assertTrue ( d.isOnWindowFocusChangedCalled ) ; d.isOnWindowFocusChangedCalled = false ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { mActivity.showDialog ( DialogStubActivity.TEST_DIALOG_WITHOUT_THEME ) ; } } ) ; mInstrumentation.waitForIdleSync ( ) ; new android.view.animation.cts.DelayedCheck ( android.app.cts.DialogTest.TEST_TIMEOUT ) { protected boolean check ( ) { return d.isOnWindowFocusChangedCalled ; } } . run ( ) ; }
Source:
public void test_SSLSession_getCipherSuite ( ) { libcore.javax.net.ssl.TestSSLSessions s = libcore.javax.net.ssl.TestSSLSessions.create ( ) ; assertNotNull ( s.invalid.getCipherSuite ( ) ) ; assertEquals ( StandardNames.CIPHER_SUITE_INVALID , s.invalid.getCipherSuite ( ) ) ; assertNotNull ( s.server.getCipherSuite ( ) ) ; assertNotNull ( s.client.getCipherSuite ( ) ) ; assertEquals ( s.server.getCipherSuite ( ) , s.client.getCipherSuite ( ) ) ; assertTrue ( StandardNames.CIPHER_SUITES.contains ( s.server.getCipherSuite ( ) ) ) ; s.close ( ) ; }

Target:
public void test_SSLSession_getCipherSuite ( ) { libcore.javax.net.ssl.TestSSLSessions s = libcore.javax.net.ssl.TestSSLSessions.create ( ) ; assertNotNull ( s.invalid.getCipherSuite ( ) ) ; assertEquals ( StandardNames.CIPHER_SUITE_INVALID , s.invalid.getCipherSuite ( ) ) ; assertNotNull ( s.server.getCipherSuite ( ) ) ; assertNotNull ( s.client.getCipherSuite ( ) ) ; assertEquals ( s.server.getCipherSuite ( ) , s.client.getCipherSuite ( ) ) ; libcore.java.security.StandardNames.assertValidCipherSuites ( new java.lang.String [ ] { s.server.getCipherSuite ( ) } ) ; s.close ( ) ; }
Source:
public android.webkit.WebBackForwardList restoreState ( final android.os.Bundle inState ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return restoreState ( inState ) ; } } ) ; return ret ; } if ( inState == null ) return null ; if ( ! ( mAwContents.restoreState ( inState ) ) ) return null ; return copyBackForwardList ( ) ; }

Target:
public boolean canGoBack ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBack ( ) ; } } ) ; return ret ; } return mAwContents.canGoBack ( ) ; }
Source:
public void test_setGroupingSizeI ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" , new java.text.DecimalFormatSymbols ( java.util.Locale.ENGLISH ) ) ; df.setGroupingUsed ( true ) ; df.setGroupingSize ( 2 ) ; assertEquals ( "Value not set" , 2 , df.getGroupingSize ( ) ) ; java.lang.String result = df.format ( 123 ) ; assertTrue ( ( "Invalid format:" + result ) , result.equals ( "1,23" ) ) ; }

Target:
public void test_setGroupingSize ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" , new java.text.DecimalFormatSymbols ( java.util.Locale.ENGLISH ) ) ; df.setGroupingUsed ( true ) ; df.setGroupingSize ( 2 ) ; assertEquals ( "Value not set" , 2 , df.getGroupingSize ( ) ) ; java.lang.String result = df.format ( 123 ) ; assertTrue ( ( "Invalid format:" + result ) , result.equals ( "1,23" ) ) ; }
Source:
public void onImsConnected ( ) { logger.debug ( "onImsConnected" ) ; if ( ( mRcsStackAdaptor ) != null ) { mRcsStackAdaptor.checkSubService ( ) ; } if ( ( mPublication ) != null ) { mPublication.onImsConnected ( ) ; } }

Target:
public void onImsConnected ( int imsRadioTech ) { logger.debug ( ( "onImsConnected imsRadioTech=" + imsRadioTech ) ) ; if ( ( mRcsStackAdaptor ) != null ) { mRcsStackAdaptor.checkSubService ( ) ; } if ( ( mPublication ) != null ) { mPublication.onImsConnected ( ) ; } }
Source:
public long getmtime ( java.lang.String key ) { try { return ( mBinder.getmtime ( key ) ) * 1000L ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return - 1L ; } }

Target:
public long getmtime ( java.lang.String key ) { try { final long millis = mBinder.getmtime ( key ) ; if ( millis == ( - 1L ) ) { return - 1L ; } return millis * 1000L ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return - 1L ; } }
Source:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getImsMmTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMmTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMmTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
private static void createDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( ) ) ; } com.android.dx.command.dexer.Main.outputDex = new com.android.dx.dex.file.DexFile ( com.android.dx.command.dexer.Main.args.dexOptions ) ; if ( ( com.android.dx.command.dexer.Main.args.dumpWidth ) != 0 ) { com.android.dx.command.dexer.Main.outputDex.setDumpWidth ( com.android.dx.command.dexer.Main.args.dumpWidth ) ; } }

Target:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( ) ) ; } com.android.dx.command.dexer.Main.createDexFile ( ) ; }
Source:
public void test_Greek_Latin ( ) throws java.lang.Exception { java.lang.String greek = "Καλημέρα κόσμε!" ; java.lang.String latin = libcore.icu.Transliterator.transliterate ( "Greek-Latin" , greek ) ; java.lang.String ascii = libcore.icu.Transliterator.transliterate ( "Latin-Ascii" , latin ) ; assertEquals ( "Kalēméra kósme!" , latin ) ; assertEquals ( "Kalemera kosme!" , ascii ) ; assertEquals ( "Kaliméra kósme!" , libcore.icu.Transliterator.transliterate ( "Greek-Latin/BGN" , greek ) ) ; assertEquals ( "Kali̱méra kósme!" , libcore.icu.Transliterator.transliterate ( "Greek-Latin/UNGEGN" , greek ) ) ; }

Target:
public void test_Any_Lower ( ) throws java.lang.Exception { libcore.icu.Transliterator t = new libcore.icu.Transliterator ( "Any-Lower" ) ; assertEquals ( "hello world!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; }
Source:
public android.support.v17.leanback.widget.GuidanceStylist.Guidance onCreateGuidance ( android.os.Bundle savedInstanceState ) { java.lang.String title = getResources ( ) . getString ( R.string.dvr_error_insufficient_space_title ) ; java.lang.String description = getResources ( ) . getString ( R.string.dvr_error_insufficient_space_description ) ; return new android.support.v17.leanback.widget.GuidanceStylist.Guidance ( title , description , null , null ) ; }

Target:
public void onAttach ( android.content.Context context ) { super . onAttach ( context ) ; android.os.Bundle args = getArguments ( ) ; if ( args != null ) { mFailedScheduledRecordingInfos = args.getStringArrayList ( com.android.tv.dvr.ui.DvrInsufficientSpaceErrorFragment.FAILED_SCHEDULED_RECORDING_INFOS ) ; } com.android.tv.common.SoftPreconditions.checkState ( ( ( ( mFailedScheduledRecordingInfos ) != null ) && ( ! ( mFailedScheduledRecordingInfos.isEmpty ( ) ) ) ) , com.android.tv.dvr.ui.DvrInsufficientSpaceErrorFragment.TAG , "failed scheduled recording is null" ) ; }
Source:
private static boolean shouldShowNumber ( com.android.incallui.incall.protocol.PrimaryInfo primaryInfo ) { if ( primaryInfo.nameIsNumber ) { return false ; } if ( ( primaryInfo.location ) == null ) { return false ; } if ( android.text.TextUtils.isEmpty ( primaryInfo.number ) ) { return false ; } return true ; }

Target:
private static boolean shouldShowNumber ( com.android.incallui.incall.protocol.PrimaryInfo primaryInfo , boolean isIncoming ) { if ( primaryInfo.nameIsNumber ) { return false ; } if ( ( ( primaryInfo.location ) == null ) && isIncoming ) { return false ; } if ( android.text.TextUtils.isEmpty ( primaryInfo.number ) ) { return false ; } return true ; }
Source:
public java.lang.String getDevice ( ) { int deviceIndex = mDeviceCombo.getSelectionIndex ( ) ; if ( deviceIndex != ( - 1 ) ) { return mDeviceCombo.getItem ( deviceIndex ) ; } return null ; }

Target:
com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig getNextDeviceConfig ( com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig config ) { com.android.ide.eclipse.adt.internal.sdk.LayoutDevice device = getSelectedDevice ( ) ; java.util.List < com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig > configs = device.getConfigs ( ) ; for ( int i = 0 ; i < ( configs.size ( ) ) ; i ++ ) { if ( ( configs.get ( i ) ) == config ) { return configs.get ( ( ( i + 1 ) % ( configs.size ( ) ) ) ) ; } } return null ; }
Source:
private java.lang.String normalizeWord ( java.lang.String word ) { switch ( this ) { case LOWER_HYPHEN : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_UNDERSCORE : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_UNDERSCORE : return com.google.common.base.Ascii.toUpperCase ( word ) ; } throw new java.lang.RuntimeException ( ( "unknown case: " + ( this ) ) ) ; }

Target:
java.lang.String convert ( com.google.common.base.CaseFormat format , java.lang.String s ) { if ( format == ( com.google.common.base.CaseFormat.LOWER_HYPHEN ) ) { return s.replace ( '_' , '-' ) ; } if ( format == ( com.google.common.base.CaseFormat.UPPER_UNDERSCORE ) ) { return com.google.common.base.Ascii.toUpperCase ( s ) ; } return super . convert ( format , s ) ; }
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 { org.conscrypt.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 1 ) ; fail ( ) ; }

Target:
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 [ ] id = org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( session ) ; assertNotNull ( id ) ; assertEquals ( 32 , id.length ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new tests.support.Support_TestWebServer ( ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = server.initServer ( ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; gifURLCon = openGifURLConnection ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new tests.support.Support_TestWebServer ( ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = server.initServer ( ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; url3 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test3" ) ) ; uc3 = url3.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; gifURLCon = openGifURLConnection ( ) ; }
Source:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myWarnings = com.intellij.updater.Patch.readMap ( in ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }

Target:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myRoot = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myWarnings = com.intellij.updater.Patch.readMap ( in ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }
Source:
public void test002a ( ) throws java.lang.Exception { java.io.File jackOutput ; try { jackOutput = runTest002 ( false , null ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.resource.ResourceImportConflictException e ) { } }

Target:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput ; java.io.ByteArrayOutputStream errOut = new java.io.ByteArrayOutputStream ( ) ; jackOutput = runTest002 ( true , "keep-first" , errOut , false , false ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; junit.framework.Assert.assertTrue ( errOut.toString ( ) . isEmpty ( ) ) ; }
Source:
public java.io.OutputStream getOutputStream ( ) throws java.io.IOException { checkOpen ( ) ; synchronized ( this ) { if ( ( os ) == null ) { os = new org.conscrypt.OpenSSLSocketImpl.SSLOutputStream ( ) ; } return os ; } }

Target:
public java.io.OutputStream getOutputStream ( ) throws java.io.IOException { checkOpen ( ) ; java.io.OutputStream returnVal ; synchronized ( stateLock ) { if ( ( state ) == ( org.conscrypt.OpenSSLSocketImpl.STATE_CLOSED ) ) { throw new java.net.SocketException ( "Socket is closed." ) ; } if ( ( os ) == null ) { os = new org.conscrypt.OpenSSLSocketImpl.SSLOutputStream ( ) ; } returnVal = os ; } waitForHandshake ( ) ; return returnVal ; }
Source:
void pullExternalCall ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "pullExternalCall" ) ) ) { try { logOutgoing ( "pullExternalCall %s" , callId ) ; mServiceInterface.pullExternalCall ( callId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void mergeConference ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "mergeConference" ) ) ) { try { logOutgoing ( "mergeConference %s" , callId ) ; mServiceInterface.mergeConference ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public int getDataActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDataActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getDataActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }

Target:
public int getDataActivationState ( int subId , java.lang.String callingPackage ) { enforceReadPrivilegedPermission ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getDataActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }
Source:
public boolean setApplicationHidden ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , boolean hidden ) { throwIfParentInstance ( "setApplicationHidden" ) ; if ( ( mService ) != null ) { try { return mService.setApplicationHidden ( admin , packageName , hidden ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }

Target:
public java.util.List < java.lang.String > getKeepUninstalledPackages ( @ android.annotation.Nullable android.content.ComponentName admin ) { throwIfParentInstance ( "getKeepUninstalledPackages" ) ; if ( ( mService ) != null ) { try { return mService.getKeepUninstalledPackages ( admin , mContext.getPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }
Source:
android.os.ParcelFileDescriptor connectSocket ( android.bluetooth.BluetoothDevice device , int type , android.os.ParcelUuid uuid , int port , int flag ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int fd = connectSocketNative ( com.android.bluetooth.Utils.getBytesFromAddress ( device.getAddress ( ) ) , type , com.android.bluetooth.Utils.uuidToByteArray ( uuid ) , port , flag ) ; if ( fd < 0 ) { errorLog ( "Failed to connect socket" ) ; return null ; } return android.os.ParcelFileDescriptor.adoptFd ( fd ) ; }

Target:
android.os.ParcelFileDescriptor connectSocket ( android.bluetooth.BluetoothDevice device , int type , android.os.ParcelUuid uuid , int port , int flag ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int fd = connectSocketNative ( com.android.bluetooth.Utils.getBytesFromAddress ( device.getAddress ( ) ) , type , com.android.bluetooth.Utils.uuidToByteArray ( uuid ) , port , flag , android.os.Binder.getCallingUid ( ) ) ; if ( fd < 0 ) { errorLog ( "Failed to connect socket" ) ; return null ; } return android.os.ParcelFileDescriptor.adoptFd ( fd ) ; }
Source:
protected java.security.AlgorithmParameters engineGenerateParameters ( ) { byte [ ] iv = new byte [ 32 ] ; if ( ( random ) == null ) { random = new java.security.SecureRandom ( ) ; } random.nextBytes ( iv ) ; java.security.AlgorithmParameters params ; try { params = java.security.AlgorithmParameters.getInstance ( "Shacal2" , BouncyCastleProvider.PROVIDER_NAME ) ; params.init ( new javax.crypto.spec.IvParameterSpec ( iv ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } return params ; }

Target:
protected java.security.AlgorithmParameters engineGenerateParameters ( ) { byte [ ] iv = new byte [ 32 ] ; if ( ( random ) == null ) { random = new java.security.SecureRandom ( ) ; } random.nextBytes ( iv ) ; java.security.AlgorithmParameters params ; try { params = createParametersInstance ( "Shacal2" ) ; params.init ( new javax.crypto.spec.IvParameterSpec ( iv ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } return params ; }
Source:
private void handleCopyItemSelected ( ) { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; android.text.ClipboardManager clipboardManager = ( ( android.text.ClipboardManager ) ( getSystemService ( com.android.cts.verifier.CLIPBOARD_SERVICE ) ) ) ; clipboardManager.setText ( report.getBody ( ) ) ; android.widget.Toast.makeText ( this , R.string.test_results_copied , Toast.LENGTH_SHORT ) . show ( ) ; }

Target:
private void handleCopyItemSelected ( ) { try { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; android.text.ClipboardManager clipboardManager = ( ( android.text.ClipboardManager ) ( getSystemService ( com.android.cts.verifier.CLIPBOARD_SERVICE ) ) ) ; clipboardManager.setText ( report.getBody ( ) ) ; android.widget.Toast.makeText ( this , R.string.test_results_copied , Toast.LENGTH_SHORT ) . show ( ) ; } catch ( java.io.IOException e ) { android.widget.Toast.makeText ( this , R.string.test_results_error , Toast.LENGTH_SHORT ) . show ( ) ; android.util.Log.e ( com.android.cts.verifier.TestListActivity.TAG , "Coudn't copy test results report" , e ) ; } }
Source:
public void cleanup ( ) { mNumTextureUpdated.set ( 0 ) ; if ( ( mTextureId ) != 0 ) { int [ ] textures = new int [ ] { mTextureId } ; android.opengl.GLES20.glDeleteTextures ( 1 , textures , 0 ) ; } android.opengl.GLES20.glFinish ( ) ; if ( ( mSurface ) != null ) { mSurface.release ( ) ; mSurface = null ; } if ( ( mSurfaceTexture ) != null ) { mSurfaceTexture.release ( ) ; mSurfaceTexture = null ; } }

Target:
public void cleanup ( ) { mNumTextureUpdated.set ( 0 ) ; mVerticesData.clear ( ) ; if ( ( mTextureId ) != 0 ) { int [ ] textures = new int [ ] { mTextureId } ; android.opengl.GLES20.glDeleteTextures ( 1 , textures , 0 ) ; } android.opengl.GLES20.glFinish ( ) ; if ( ( mSurface ) != null ) { mSurface.release ( ) ; mSurface = null ; } if ( ( mSurfaceTexture ) != null ) { mSurfaceTexture.release ( ) ; mSurfaceTexture = null ; } }
Source:
public java.lang.String getTime ( ) { if ( ( time ) instanceof org.bouncycastle.asn1.DERUTCTime ) { return ( ( org.bouncycastle.asn1.DERUTCTime ) ( time ) ) . getAdjustedTime ( ) ; } else { return ( ( org.bouncycastle.asn1.DERGeneralizedTime ) ( time ) ) . getTime ( ) ; } }

Target:
public java.util.Date getDate ( ) { try { if ( ( time ) instanceof org.bouncycastle.asn1.ASN1UTCTime ) { return ( ( org.bouncycastle.asn1.ASN1UTCTime ) ( time ) ) . getAdjustedDate ( ) ; } else { return ( ( org.bouncycastle.asn1.ASN1GeneralizedTime ) ( time ) ) . getDate ( ) ; } } catch ( java.text.ParseException e ) { throw new java.lang.IllegalStateException ( ( "invalid date string: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void test1_2SetStrengthAfterRelease ( ) throws java.lang.Exception { if ( ! ( isBassBoostAvailable ( ) ) ) { return ; } getBassBoost ( 0 ) ; mBassBoost.release ( ) ; try { mBassBoost.setStrength ( android.media.cts.BassBoostTest.TEST_STRENGTH ) ; fail ( "setStrength() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseBassBoost ( ) ; } }

Target:
public void test1_2SetStrengthAfterRelease ( ) throws java.lang.Exception { if ( ! ( isBassBoostAvailable ( ) ) ) { return ; } getBassBoost ( getSessionId ( ) ) ; mBassBoost.release ( ) ; try { mBassBoost.setStrength ( android.media.cts.BassBoostTest.TEST_STRENGTH ) ; fail ( "setStrength() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseBassBoost ( ) ; } }
Source:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; mPhone.getContext ( ) . sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; com.android.internal.telephony.metrics.TelephonyMetrics.getInstance ( ) . writeNITZEvent ( mPhone.getPhoneId ( ) , time ) ; }

Target:
private android.os.PersistableBundle getCarrierConfig ( ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mPhone.getContext ( ) . getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager != null ) { android.os.PersistableBundle config = configManager.getConfigForSubId ( mPhone.getSubId ( ) ) ; if ( config != null ) { return config ; } } return android.telephony.CarrierConfigManager.getDefaultConfig ( ) ; }
Source:
private static com.google.common.collect.ImmutableList < java.lang.String > getExpansionIfKnown ( java.lang.reflect.Field optionField , com.google.devtools.common.options.Option annotation , @ javax.annotation.Nullable com.google.devtools.common.options.OptionsData optionsData ) { if ( optionsData != null ) { try { return optionsData.getEvaluatedExpansion ( optionField , null ) ; } catch ( com.google.devtools.common.options.ExpansionNeedsValueException e ) { return null ; } catch ( com.google.devtools.common.options.OptionsParsingException e ) { throw new java.lang.IllegalStateException ( "Error expanding void expansion function: " , e ) ; } } else { if ( com.google.devtools.common.options.OptionsData.usesExpansionFunction ( annotation ) ) { return null ; } else { return com.google.common.collect.ImmutableList.copyOf ( annotation.expansion ( ) ) ; } } }

Target:
private static com.google.common.collect.ImmutableList < java.lang.String > getExpansionIfKnown ( java.lang.reflect.Field optionField , com.google.devtools.common.options.OptionsData optionsData ) { com.google.common.base.Preconditions.checkNotNull ( optionField ) ; com.google.common.base.Preconditions.checkNotNull ( optionsData ) ; try { return optionsData.getEvaluatedExpansion ( optionField , null ) ; } catch ( com.google.devtools.common.options.ExpansionNeedsValueException e ) { return null ; } catch ( com.google.devtools.common.options.OptionsParsingException e ) { throw new java.lang.IllegalStateException ( "Error expanding void expansion function: " , e ) ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , data.length ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , android.support.v8.renderscript.Allocation data , int dataXoff , int dataYoff ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data.getID ( mRS ) , dataXoff , dataYoff , data.mSelectedLOD , data.mSelectedFace.mID ) ; }
Source:
public android.net.NetworkStats combineValues ( android.net.NetworkStats.Entry entry ) { final int i = findIndex ( entry.iface , entry.uid , entry.set , entry.tag , entry.metered , entry.roaming ) ; if ( i == ( - 1 ) ) { addValues ( entry ) ; } else { rxBytes [ i ] += entry.rxBytes ; rxPackets [ i ] += entry.rxPackets ; txBytes [ i ] += entry.txBytes ; txPackets [ i ] += entry.txPackets ; operations [ i ] += entry.operations ; } return this ; }

Target:
public android.net.NetworkStats combineValues ( android.net.NetworkStats.Entry entry ) { final int i = findIndex ( entry.iface , entry.uid , entry.set , entry.tag , entry.metered , entry.roaming , entry.defaultNetwork ) ; if ( i == ( - 1 ) ) { addValues ( entry ) ; } else { rxBytes [ i ] += entry.rxBytes ; rxPackets [ i ] += entry.rxPackets ; txBytes [ i ] += entry.txBytes ; txPackets [ i ] += entry.txPackets ; operations [ i ] += entry.operations ; } return this ; }
Source:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { if ( ! ( allowStandardIO ) ) { throw new com.android.sched.util.codec.ParsingException ( "Standard input can not be used" ) ; } return new com.android.sched.util.file.InputStreamFile ( context.getStandardInput ( ) , com.android.sched.util.codec.InputStreamCodec.STANDARD_INPUT_LOCATION ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }

Target:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { if ( ! ( allowStandardIO ) ) { throw new com.android.sched.util.codec.ParsingException ( "Standard input can not be used" ) ; } return new com.android.sched.util.file.InputStreamFile ( context.getStandardInput ( ) , com.android.sched.util.codec.InputStreamCodec.STANDARD_INPUT_LOCATION ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( context.getWorkingDirectory ( ) , string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }
Source:
private com.android.internal.policy.impl.LockPatternKeyguardView.Mode getInitialMode ( ) { final com.android.internal.telephony.SimCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( stuckOnLockScreenBecauseSimMissing ( ) ) || ( simState == ( SimCard.State.PUK_REQUIRED ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.LockScreen ; } else if ( ( mUpdateMonitor.isKeyboardOpen ( ) ) && ( isSecure ( ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ; } else { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.LockScreen ; } }

Target:
private com.android.internal.policy.impl.LockPatternKeyguardView.Mode getInitialMode ( ) { final com.android.internal.telephony.IccCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( stuckOnLockScreenBecauseSimMissing ( ) ) || ( simState == ( IccCard.State.PUK_REQUIRED ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.LockScreen ; } else if ( ( mUpdateMonitor.isKeyboardOpen ( ) ) && ( isSecure ( ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ; } else { return com.android.internal.policy.impl.LockPatternKeyguardView.Mode.LockScreen ; } }