auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testCreateMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; org.mockito.Mockito.when ( mTestImsService.mMockMMTelFeature.getFeatureState ( ) ) . thenReturn ( ImsFeature.STATE_READY ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getImsFeatureMap ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertEquals ( mTestImsService.mMockMMTelFeature , mTestImsService.getImsFeatureFromType ( features , ImsFeature.MMTEL ) ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . setImsFeatureStatusCallback ( org.mockito.Matchers.eq ( mTestCallback ) ) ; junit.framework.Assert.assertEquals ( ImsFeature.STATE_READY , mTestImsServiceBinder.getFeatureStatus ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL ) ) ; }

Target:
public void testCreateMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; org.mockito.Mockito.when ( mTestImsService.mSpyMMTelFeature.getFeatureState ( ) ) . thenReturn ( ImsFeature.STATE_READY ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getImsFeatureMap ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertEquals ( mTestImsService.mSpyMMTelFeature , mTestImsService.getImsFeatureFromType ( features , ImsFeature.MMTEL ) ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . setImsFeatureStatusCallback ( org.mockito.Matchers.eq ( mTestCallback ) ) ; junit.framework.Assert.assertEquals ( ImsFeature.STATE_READY , mTestImsServiceBinder.getFeatureStatus ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL ) ) ; }
Source:
public void visitAnnotationElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.AnnotationElementValue annotationElementValue ) { println ( ( ( ( ( visitorInfo ( annotationElementValue ) ) + " Annotation element value [" ) + ( ( annotationElementValue.u2elementNameIndex ) == 0 ? "(default)" : clazz.getString ( annotationElementValue.u2elementNameIndex ) ) ) + "]:" ) ) ; indent ( ) ; annotationElementValue.annotationAccept ( clazz , this ) ; outdent ( ) ; }

Target:
public void visitAnnotationElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.AnnotationElementValue annotationElementValue ) { println ( ( ( ( ( visitorInfo ( annotationElementValue ) ) + " Annotation element value [" ) + ( ( annotationElementValue.u2elementNameIndex ) == 0 ? "(default)" : annotationElementValue.getMethodName ( clazz ) ) ) + "]:" ) ) ; indent ( ) ; annotationElementValue.annotationAccept ( clazz , this ) ; outdent ( ) ; }
Source:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( boolean initializingUsers ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; if ( initializingUsers && ( ! ( state.isLoggedIn ( ) ) ) ) { return null ; } return state ; }

Target:
private com.google.gct.login.GoogleLoginState createGoogleLoginState ( boolean initializingUsers ) { com.google.gct.login.GoogleLoginState state = new com.google.gct.login.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; if ( initializingUsers && ( ! ( state.isLoggedIn ( ) ) ) ) { return null ; } return state ; }
Source:
public void test3_anyInRange ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 50 ; i += 7 ) { assertFalse ( com.android.dx.util._tests.BitsTest.label ( i ) , com.android.dx.util.Bits.anyInRange ( bits , i , ( 100 - i ) ) ) ; } }

Target:
public void test3_anyInRange ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 50 ; i += 7 ) { assertFalse ( com.android.dx.util.BitsTest.label ( i ) , com.android.dx.util.Bits.anyInRange ( bits , i , ( 100 - i ) ) ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.doTest ( ) ; Main.doFollowReferencesTest ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.doTest ( ) ; new Main.TestConfig ( ) . doFollowReferencesTest ( ) ; Main.doStringTest ( ) ; Main.doPrimitiveArrayTest ( ) ; java.lang.System.out.println ( "--- klass ---" ) ; new Main.TestConfig ( Main.A.class , 0 ) . doFollowReferencesTest ( ) ; }
Source:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params ) { validate ( ) ; rsnScriptInvokeV ( mContext , id , slot , params ) ; }

Target:
synchronized long nScriptKernelIDCreate ( long sid , int slot , int sig , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptKernelIDCreate ( curCon , sid , slot , sig , mUseInc ) ; }
Source:
private void loadPreferences ( ) { org.eclipse.core.runtime.preferences.IEclipsePreferences prefs = new org.eclipse.core.runtime.preferences.InstanceScope ( ) . getNode ( GlTracePlugin.PLUGIN_ID ) ; mActivityToTrace = prefs.get ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_APPNAME , "" ) ; mTraceFilePath = prefs.get ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_TRACEFILE , "" ) ; mLastUsedDevice = prefs.get ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_DEVICE , "" ) ; }

Target:
protected void okPressed ( ) { mAppPackageToTrace = mAppPackageToTraceText.getText ( ) . trim ( ) ; mActivityToTrace = mActivityToTraceText.getText ( ) . trim ( ) ; if ( mActivityToTrace.startsWith ( "." ) ) { mActivityToTrace = mActivityToTrace.substring ( 1 ) ; } mTraceFilePath = mTraceFilePathText.getText ( ) . trim ( ) ; mSelectedDevice = mDeviceCombo.getText ( ) ; savePreferences ( ) ; super . okPressed ( ) ; }
Source:
public void doneVisiting ( org.eclipse.core.resources.IProject project , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders ) { if ( mDeltaVisitor.getForceCompile ( ) ) { buildCompilationList ( project , sourceFolders ) ; } else { mergeFileModifications ( mDeltaVisitor ) ; } mDeltaVisitor.reset ( ) ; saveState ( project ) ; }

Target:
public final void prepareFullBuild ( org.eclipse.core.resources.IProject project ) { mDeltaVisitor.reset ( ) ; buildSourceFileList ( ) ; mToCompile.addAll ( mFiles.keySet ( ) ) ; }
Source:
public void notInBadgingOutput ( ) { java.util.List < java.lang.String > strings = com.google.common.collect.Lists.newArrayList ( "" ) ; com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; java.io.File file = new java.io.File ( "foo" ) ; com.android.build.gradle.integration.common.truth.ApkSubject subject = new com.android.build.gradle.integration.common.truth.ApkSubject ( failure , file ) ; subject.checkMaxSdkVersion ( strings , 1 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . is ( "maxSdkVersion not found in badging output for <foo>" ) ; }

Target:
public void notInBadgingOutput ( ) { java.util.List < java.lang.String > strings = com.google.common.collect.Lists.newArrayList ( "" ) ; com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; java.io.File file = new java.io.File ( "foo" ) ; com.android.build.gradle.integration.common.truth.ApkSubject subject = new com.android.build.gradle.integration.common.truth.ApkSubject ( failure , file ) ; failure.reset ( ) ; subject.checkMaxSdkVersion ( strings , 1 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . is ( "maxSdkVersion not found in badging output for <foo>" ) ; }
Source:
private void scanProject ( ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getProjectResources ( mProject ) ; if ( resources != null ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem [ ] layouts = resources.getResources ( ResourceType.LAYOUT ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem layout : layouts ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile > sources = layout.getSourceFileList ( ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile source : sources ) { updateFileIncludes ( source , false ) ; } } return ; } }

Target:
private void scanProject ( ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getProjectResources ( mProject ) ; if ( resources != null ) { java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem > layouts = resources.getResourceItemsOfType ( com.android.resources.ResourceType.LAYOUT ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem layout : layouts ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile > sources = layout.getSourceFileList ( ) ; for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile source : sources ) { updateFileIncludes ( source , false ) ; } } return ; } }
Source:
void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientConnect() - address=" + address ) + ", isDirect=" ) + isDirect ) ) ; gattClientConnectNative ( clientIf , address , isDirect , transport ) ; }

Target:
void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , int phy ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientConnect() - address=" + address ) + ", isDirect=" ) + isDirect ) ) ; gattClientConnectNative ( clientIf , address , isDirect , transport ) ; }
Source:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; org.junit.Assert.assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }

Target:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) == 18 ) { return ; } com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; org.junit.Assert.assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }
Source:
public boolean startWpsPbc ( java.lang.String bssid ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommand ( "WPS_PBC" ) ; } else { return doBooleanCommand ( ( "WPS_PBC " + bssid ) ) ; } }

Target:
public boolean startWpsPbc ( java.lang.String bssid ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.startWpsPbc ( bssid ) ; } else { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommand ( "WPS_PBC" ) ; } else { return doBooleanCommand ( ( "WPS_PBC " + bssid ) ) ; } } }
Source:
protected final void unserialize ( java.nio.ByteBuffer bytes ) { int indexDataLength = ( m_dataOffset_ ) + ( m_dataLength_ ) ; m_index_ = new char [ indexDataLength ] ; for ( int i = 0 ; i < indexDataLength ; i ++ ) { m_index_ [ i ] = bytes.getChar ( ) ; } m_data_ = m_index_ ; m_initialValue_ = m_data_ [ m_dataOffset_ ] ; }

Target:
protected final void unserialize ( java.nio.ByteBuffer bytes ) { int indexDataLength = ( m_dataOffset_ ) + ( m_dataLength_ ) ; m_index_ = com.ibm.icu.impl.ICUBinary.getChars ( bytes , indexDataLength , 0 ) ; m_data_ = m_index_ ; m_initialValue_ = m_data_ [ m_dataOffset_ ] ; }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { ensureKeystoreOperationInitialized ( ) ; byte [ ] output ; try { output = mChunkedStreamer.update ( input , offset , len ) ; } catch ( android.security.KeymasterException e ) { throw android.security.KeymasterUtils.getCryptoOperationException ( e ) ; } if ( ( output != null ) && ( ( output.length ) != 0 ) ) { throw new android.security.CryptoOperationException ( "Update operation unexpectedly produced output" ) ; } }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { ensureKeystoreOperationInitialized ( ) ; byte [ ] output ; try { output = mChunkedStreamer.update ( input , offset , len ) ; } catch ( android.security.KeyStoreException e ) { throw android.security.KeyStore.getCryptoOperationException ( e ) ; } if ( ( output != null ) && ( ( output.length ) != 0 ) ) { throw new android.security.CryptoOperationException ( "Update operation unexpectedly produced output" ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; if ( Main.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } Main.set ( 0 ) ; Main.set ( 1 ) ; Main.set ( 2 ) ; Main.set ( 4 ) ; Main.set ( 8 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; if ( Main.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } if ( Main.checkUnattached ( ) ) { java.lang.System.out.println ( "Received expected error for unattached JVMTI calls" ) ; } Main.set ( 0 ) ; Main.set ( 1 ) ; Main.set ( 2 ) ; Main.set ( 4 ) ; Main.set ( 8 ) ; }
Source:
private void retryGetImsService ( ) { if ( mImsManager.isServiceAvailable ( ) ) { return ; } mImsManager.removeNotifyStatusChangedCallback ( mNotifyStatusChangedCallback ) ; mImsManager = null ; loge ( "getImsService: Retrying getting ImsService..." ) ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_GET_IMS_SERVICE ) ; sendEmptyMessageDelayed ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_GET_IMS_SERVICE , mRetryTimeout.get ( ) ) ; }

Target:
private int getImsRegistrationTech ( ) { if ( ( mImsManager ) != null ) { return mImsManager.getRegistrationTech ( ) ; } return android.telephony.ims.stub.ImsRegistrationImplBase.REGISTRATION_TECH_NONE ; }
Source:
private void setSourceType ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType sourceType ) { if ( sourceType == ( CreateAssetSetWizardState.SourceType.IMAGE ) ) { chooseForegroundTab ( mImageRadio , mImageForm ) ; } else if ( sourceType == ( CreateAssetSetWizardState.SourceType.CLIPART ) ) { chooseForegroundTab ( mClipartRadio , mClipartForm ) ; } else if ( sourceType == ( CreateAssetSetWizardState.SourceType.TEXT ) ) { updateFontLabel ( mFontButton.getFont ( ) ) ; chooseForegroundTab ( mTextRadio , mTextForm ) ; mText.setFocus ( ) ; } }

Target:
private void setSourceType ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType sourceType ) { if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.IMAGE ) ) { chooseForegroundTab ( mImageRadio , mImageForm ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.CLIPART ) ) { chooseForegroundTab ( mClipartRadio , mClipartForm ) ; } else if ( sourceType == ( com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizardState.SourceType.TEXT ) ) { updateFontLabel ( mFontButton.getFont ( ) ) ; chooseForegroundTab ( mTextRadio , mTextForm ) ; mText.setFocus ( ) ; } }
Source:
public android.webkit.CookieManager getCookieManager ( ) { synchronized ( mLock ) { if ( ( mCookieManager ) == null ) { if ( ! ( mStarted ) ) { org.chromium.content.app.ContentMain.initApplicationContext ( getWrappedCurrentApplicationContext ( ) ) ; } mCookieManager = new com.android.webview.chromium.CookieManagerAdapter ( new org.chromium.android_webview.AwCookieManager ( ) ) ; } } return mCookieManager ; }

Target:
private org.chromium.android_webview.AwBrowserContext getBrowserContextLocked ( ) { assert java.lang.Thread.holdsLock ( mLock ) ; assert mStarted ; if ( ( mBrowserContext ) == null ) { mBrowserContext = new org.chromium.android_webview.AwBrowserContext ( mWebViewPrefs ) ; } return mBrowserContext ; }
Source:
private void notifySelectionChanged ( com.android.ddmlib.IDevice device , com.android.hierarchyviewerlib.device.Window window ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . selectionChanged ( device , window ) ; } } }

Target:
private void notifyDeviceConnected ( com.android.hierarchyviewerlib.device.IHvDevice device ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . deviceConnected ( device ) ; } } }
Source:
private static < A > void checkForCollisions ( java.util.Map < A , java.lang.reflect.Field > aFieldMap , A optionName , java.lang.String description ) { if ( aFieldMap.containsKey ( optionName ) ) { throw new com.google.devtools.common.options.DuplicateOptionDeclarationException ( ( ( ( "Duplicate option name, due to " + description ) + ": --" ) + optionName ) ) ; } }

Target:
private static < A > void checkForCollisions ( java.util.Map < A , com.google.devtools.common.options.OptionDefinition > aFieldMap , A optionName , java.lang.String description ) { if ( aFieldMap.containsKey ( optionName ) ) { throw new com.google.devtools.common.options.DuplicateOptionDeclarationException ( ( ( ( "Duplicate option name, due to " + description ) + ": --" ) + optionName ) ) ; } }
Source:
public final void visit ( java.util.Set < com.android.tools.perflib.heap.Instance > resultSet , com.android.tools.perflib.heap.Filter filter ) { if ( resultSet.contains ( this ) ) { return ; } if ( filter != null ) { if ( filter.accept ( this ) ) { resultSet.add ( this ) ; } } else { resultSet.add ( this ) ; } }

Target:
public final void accept ( com.android.tools.perflib.heap.Visitor visitor ) { com.android.tools.perflib.heap.Instance instance = getReferredInstance ( ) ; if ( instance != null ) { instance.accept ( visitor ) ; } }
Source:
public android.webkit.CookieManager getCookieManager ( ) { synchronized ( mLock ) { if ( ( mCookieManager ) == null ) { if ( ! ( mStarted ) ) { org.chromium.content.app.ContentMain.initApplicationContext ( android.app.ActivityThread.currentApplication ( ) ) ; } mCookieManager = new com.android.webview.chromium.CookieManagerAdapter ( new org.chromium.android_webview.AwCookieManager ( ) ) ; } } return mCookieManager ; }

Target:
public android.webkit.CookieManager getCookieManager ( ) { synchronized ( mLock ) { if ( ( mCookieManager ) == null ) { if ( ! ( mStarted ) ) { org.chromium.content.app.ContentMain.initApplicationContext ( getWrappedCurrentApplicationContext ( ) ) ; } mCookieManager = new com.android.webview.chromium.CookieManagerAdapter ( new org.chromium.android_webview.AwCookieManager ( ) ) ; } } return mCookieManager ; }
Source:
protected void onPostExecute ( java.lang.Boolean success ) { views.isLoaded = true ; if ( success ) { int currentGroup = getDayGroupForCall ( views.rowId ) ; if ( currentGroup != ( details.previousGroup ) ) { views.dayGroupHeaderVisibility = android.view.View.VISIBLE ; views.dayGroupHeaderText = getGroupDescription ( currentGroup ) ; } else { views.dayGroupHeaderVisibility = android.view.View.GONE ; } render ( views , details , rowId ) ; } }

Target:
protected void onPostExecute ( java.lang.Boolean success ) { views.isLoaded = true ; if ( success ) { views.callbackAction = getCallbackAction ( views.rowId ) ; int currentDayGroup = getDayGroup ( views.rowId ) ; if ( currentDayGroup != ( details.previousGroup ) ) { views.dayGroupHeaderVisibility = android.view.View.VISIBLE ; views.dayGroupHeaderText = getGroupDescription ( currentDayGroup ) ; } else { views.dayGroupHeaderVisibility = android.view.View.GONE ; } render ( views , details , rowId ) ; } }
Source:
private void deleteDatabaseFile ( java.lang.String fileName ) { if ( ( fileName.equalsIgnoreCase ( ":memory:" ) ) || ( ( fileName.trim ( ) . length ( ) ) == 0 ) ) { return ; } android.util.Log.e ( android.database.DefaultDatabaseErrorHandler.TAG , ( "deleting the database file: " + fileName ) ) ; try { new java.io.File ( fileName ) . delete ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( android.database.DefaultDatabaseErrorHandler.TAG , ( "delete failed: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private void deleteDatabaseFile ( java.lang.String fileName ) { if ( ( fileName.equalsIgnoreCase ( ":memory:" ) ) || ( ( fileName.trim ( ) . length ( ) ) == 0 ) ) { return ; } android.util.Log.e ( android.database.DefaultDatabaseErrorHandler.TAG , ( "deleting the database file: " + fileName ) ) ; try { android.database.sqlite.SQLiteDatabase.deleteDatabase ( new java.io.File ( fileName ) ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( android.database.DefaultDatabaseErrorHandler.TAG , ( "delete failed: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
private void recordResourcesUsages ( @ com.android.annotations.NonNull java.io.File file , boolean isDefaultFolder , @ com.android.annotations.Nullable com.android.build.gradle.tasks.ResourceUsageAnalyzer.Resource from ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.google.common.io.Files.toString ( file , com.google.common.base.Charsets.UTF_8 ) ; org.w3c.dom.Document document = com.android.utils.XmlUtils.parseDocument ( xml , true ) ; recordResourceReferences ( file , isDefaultFolder , document.getDocumentElement ( ) , from ) ; }

Target:
private void recordXmlResourcesUsages ( @ com.android.annotations.NonNull java.io.File file , boolean isDefaultFolder , @ com.android.annotations.Nullable com.android.build.gradle.tasks.ResourceUsageAnalyzer.Resource from ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.google.common.io.Files.toString ( file , com.google.common.base.Charsets.UTF_8 ) ; org.w3c.dom.Document document = com.android.utils.XmlUtils.parseDocument ( xml , true ) ; recordResourceReferences ( file , isDefaultFolder , document.getDocumentElement ( ) , from ) ; }
Source:
public proguard.evaluation.value.IntegerValue createIntegerValue ( int value ) { switch ( value ) { case - 1 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_M1 ; case 0 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_0 ; case 1 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_1 ; case 2 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_2 ; case 3 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_3 ; case 4 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_4 ; case 5 : return proguard.evaluation.value.SpecificValueFactory.INTEGER_VALUE_5 ; default : return new proguard.evaluation.value.ParticularIntegerValue ( value ) ; } }

Target:
public proguard.evaluation.value.IntegerValue createIntegerValue ( int value ) { switch ( value ) { case - 1 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_M1 ; case 0 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_0 ; case 1 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_1 ; case 2 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_2 ; case 3 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_3 ; case 4 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_4 ; case 5 : return proguard.evaluation.value.ParticularValueFactory.INTEGER_VALUE_5 ; default : return new proguard.evaluation.value.ParticularIntegerValue ( value ) ; } }
Source:
public void writeToParcel ( android.os.Parcel destination , int flags ) { destination.writeByte ( ( ( byte ) ( isMuted ? 1 : 0 ) ) ) ; destination.writeInt ( route ) ; destination.writeInt ( supportedRouteMask ) ; }

Target:
public void writeToParcel ( android.os.Parcel destination , int flags ) { destination.writeByte ( ( ( byte ) ( isMuted ? 1 : 0 ) ) ) ; destination.writeInt ( route ) ; destination.writeInt ( supportedRouteMask ) ; destination.writeParcelable ( activeBluetoothDevice , 0 ) ; destination.writeParcelableList ( new java.util.ArrayList ( supportedBluetoothDevices ) , 0 ) ; }
Source:
private static boolean verifyVpnStatus ( android.support.test.uiautomator.UiDevice device ) { device.openNotification ( ) ; boolean isTrue = device.wait ( android.support.test.uiautomator.Until.hasObject ( android.support.test.uiautomator.By.res ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_LOCK_ICON_RES ) ) , java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 3L , java.util.concurrent.TimeUnit.SECONDS ) ) ; device.pressHome ( ) ; return isTrue ; }

Target:
private static boolean verifyVpnStatus ( final android.support.test.uiautomator.UiDevice device ) throws java.lang.Exception { device.openNotification ( ) ; boolean isTrue = new com.android.devtools.systemimage.uitest.utils.Wait ( ) . until ( new com.android.devtools.systemimage.uitest.utils.Wait.ExpectedCondition ( ) { @ java.lang.Override public boolean isTrue ( ) throws java.lang.Exception { return ( device.hasObject ( android.support.test.uiautomator.By.res ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_LOCK_ICON_RES ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_ACTIVATED_TEXT ) ) ) ; } } ) ; device.pressHome ( ) ; return isTrue ; }
Source:
public void testCannotAccessScanResults_NoInteractAcrossUsersFullPermission ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mUid = com.android.server.wifi.util.WifiPermissionsUtilTest.MANAGED_PROFILE_UID ; mPermissionsList.put ( mMacAddressPermission , mUid ) ; mWifiScanAllowApps = android.app.AppOpsManager.MODE_ALLOWED ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScoreManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }

Target:
public void testCannotAccessScanResults_NoInteractAcrossUsersFullPermission ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mUid = com.android.server.wifi.util.WifiPermissionsUtilTest.MANAGED_PROFILE_UID ; mPermissionsList.put ( mMacAddressPermission , mUid ) ; mWifiScanAllowApps = android.app.AppOpsManager.MODE_ALLOWED ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScoreManager , mWifiInjector ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }
Source:
private final void incRefsLocked ( int id ) { if ( android.content.res.AssetManager.DEBUG_REFS ) { if ( ( mRefStacks ) == null ) { mRefStacks = new java.util.HashMap < java.lang.Integer , java.lang.RuntimeException > ( ) ; java.lang.RuntimeException ex = new java.lang.RuntimeException ( ) ; ex.fillInStackTrace ( ) ; mRefStacks.put ( this . hashCode ( ) , ex ) ; } } ( mNumRefs ) ++ ; }

Target:
private final void incRefsLocked ( long id ) { if ( android.content.res.AssetManager.DEBUG_REFS ) { if ( ( mRefStacks ) == null ) { mRefStacks = new java.util.HashMap < java.lang.Long , java.lang.RuntimeException > ( ) ; } java.lang.RuntimeException ex = new java.lang.RuntimeException ( ) ; ex.fillInStackTrace ( ) ; mRefStacks.put ( id , ex ) ; } ( mNumRefs ) ++ ; }
Source:
private void registerEvents ( int slotId ) { if ( ( mStkContext [ slotId ] . mSetupEventListSettings ) == null ) { return ; } for ( int event : mStkContext [ slotId ] . mSetupEventListSettings.eventList ) { switch ( event ) { case com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants.IDLE_SCREEN_AVAILABLE_EVENT : registerProcessObserver ( ) ; break ; case com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants.LANGUAGE_SELECTION_EVENT : default : break ; } } }

Target:
private void registerEvents ( int slotId ) { if ( ( mStkContext [ slotId ] . mSetupEventListSettings ) == null ) { return ; } for ( int event : mStkContext [ slotId ] . mSetupEventListSettings.eventList ) { switch ( event ) { case com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants.IDLE_SCREEN_AVAILABLE_EVENT : registerProcessObserver ( ) ; break ; case com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants.LANGUAGE_SELECTION_EVENT : registerLocaleChangeReceiver ( ) ; break ; default : break ; } } }
Source:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.String carrierCode ) { java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > intlNumberFormats = metadata.intlNumberFormats ( ) ; java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > availableFormats = ( ( ( intlNumberFormats.size ( ) ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormats ( ) : metadata.intlNumberFormats ( ) ; com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }

Target:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.String carrierCode ) { com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat [ ] intlNumberFormats = metadata.intlNumberFormat ; com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat [ ] availableFormats = ( ( ( intlNumberFormats.length ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormat : metadata.intlNumberFormat ; com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }
Source:
private void loadStoppedAuthority ( java.lang.String authority ) { final android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; synchronized ( mLock ) { if ( ! ( mStoppedAuthorities.contains ( authority ) ) ) { return ; } if ( com.android.documentsui.base.Shared.DEBUG ) android.util.Log.d ( com.android.documentsui.roots.ProvidersCache.TAG , ( "Loading stopped authority " + authority ) ) ; mRoots.putAll ( authority , loadRootsForAuthority ( resolver , authority , true ) ) ; mStoppedAuthorities.remove ( authority ) ; } }

Target:
private void loadStoppedAuthority ( java.lang.String authority ) { final android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; synchronized ( mLock ) { if ( ! ( mStoppedAuthorities.contains ( authority ) ) ) { return ; } if ( com.android.documentsui.base.Shared.DEBUG ) android.util.Log.d ( com.android.documentsui.roots.ProvidersCache.TAG , ( "Loading stopped authority " + authority ) ) ; mRoots.replaceValues ( authority , loadRootsForAuthority ( resolver , authority , true ) ) ; mStoppedAuthorities.remove ( authority ) ; } }
Source:
public boolean tearDownInterfaces ( ) { mWificond = mWifiInjector.makeWificond ( ) ; if ( ( mWificond ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to get reference to wificond" ) ; return false ; } try { mWificond.tearDownInterfaces ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to tear down interfaces due to remote exception" ) ; } return false ; }

Target:
public boolean tearDownInterfaces ( ) { android.util.Log.d ( com.android.server.wifi.WificondControl.TAG , "tearing down interfaces in wificond" ) ; mWificond = mWifiInjector.makeWificond ( ) ; if ( ( mWificond ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to get reference to wificond" ) ; return false ; } try { mWificond.tearDownInterfaces ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to tear down interfaces due to remote exception" ) ; } return false ; }
Source:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { byte [ ] distroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
private void writeObject ( java.io.ObjectOutputStream s ) throws java.io.IOException { lock.lock ( ) ; try { int n = size ; q = new java.util.PriorityQueue < E > ( ( n == 0 ? 1 : n ) , comparator ) ; q.addAll ( this ) ; s.defaultWriteObject ( ) ; } finally { q = null ; lock.unlock ( ) ; } }

Target:
private void writeObject ( java.io.ObjectOutputStream s ) throws java.io.IOException { lock.lock ( ) ; try { q = new java.util.PriorityQueue < E > ( java.lang.Math.max ( size , 1 ) , comparator ) ; q.addAll ( this ) ; s.defaultWriteObject ( ) ; } finally { q = null ; lock.unlock ( ) ; } }
Source:
public void test_Constructor_String_String_112270 ( ) { java.io.File ref1 = new java.io.File ( "/dir1/file1" ) ; java.io.File file1 = new java.io.File ( "/" , "/dir1/file1" ) ; assertEquals ( "wrong result 1" , ref1.getPath ( ) , file1.getPath ( ) ) ; java.io.File file2 = new java.io.File ( "/" , "//dir1/file1" ) ; assertEquals ( "wrong result 2" , ref1.getPath ( ) , file2.getPath ( ) ) ; if ( ( java.io.File.separatorChar ) == '\\' ) { java.io.File file3 = new java.io.File ( "\\" , "\\dir1\\file1" ) ; assertEquals ( "wrong result 3" , ref1.getPath ( ) , file3.getPath ( ) ) ; java.io.File file4 = new java.io.File ( "\\" , "\\\\dir1\\file1" ) ; assertEquals ( "wrong result 4" , ref1.getPath ( ) , file4.getPath ( ) ) ; } java.io.File ref2 = new java.io.File ( "/lib/content-types.properties" ) ; java.io.File file5 = new java.io.File ( "/" , "lib/content-types.properties" ) ; assertEquals ( "wrong result 5" , ref2.getPath ( ) , file5.getPath ( ) ) ; }

Target:
public void test_Constructor_String_String_112270 ( ) { java.io.File ref1 = new java.io.File ( "/dir1/file1" ) ; java.io.File file1 = new java.io.File ( "/" , "/dir1/file1" ) ; assertEquals ( "wrong result 1" , ref1.getPath ( ) , file1.getPath ( ) ) ; java.io.File file2 = new java.io.File ( "/" , "//dir1/file1" ) ; assertEquals ( "wrong result 2" , ref1.getPath ( ) , file2.getPath ( ) ) ; if ( ( java.io.File.separatorChar ) == '\\' ) { java.io.File file3 = new java.io.File ( "\\" , "\\dir1\\file1" ) ; assertEquals ( "wrong result 3" , ref1.getPath ( ) , file3.getPath ( ) ) ; java.io.File file4 = new java.io.File ( "\\" , "\\\\dir1\\file1" ) ; assertEquals ( "wrong result 4" , ref1.getPath ( ) , file4.getPath ( ) ) ; } java.io.File ref2 = new java.io.File ( "/lib/test_112270.properties" ) ; java.io.File file5 = new java.io.File ( "/" , "lib/test_112270.properties" ) ; assertEquals ( "wrong result 5" , ref2.getPath ( ) , file5.getPath ( ) ) ; }
Source:
public static < TValue extends java.lang.Comparable > TValue get95PercentileValue ( java.util.Collection < TValue > collection ) { android.hardware.cts.helpers.SensorCtsHelper.validateCollection ( collection ) ; java.util.ArrayList < TValue > arrayCopy = new java.util.ArrayList < TValue > ( collection ) ; java.util.Collections.sort ( arrayCopy ) ; int arrayIndex = ( ( int ) ( ( arrayCopy.size ( ) ) * 0.95 ) ) - 1 ; if ( arrayIndex < 0 ) { arrayIndex = 0 ; } return arrayCopy.get ( arrayIndex ) ; }

Target:
public static < TValue extends java.lang.Comparable < ? super TValue > > TValue get95PercentileValue ( java.util.Collection < TValue > collection ) { android.hardware.cts.helpers.SensorCtsHelper.validateCollection ( collection ) ; java.util.List < TValue > arrayCopy = new java.util.ArrayList < TValue > ( collection ) ; java.util.Collections.sort ( arrayCopy ) ; int arrayIndex = ( ( int ) ( java.lang.Math.round ( ( ( ( arrayCopy.size ( ) ) * 0.95 ) + 0.5 ) ) ) ) - 1 ; return arrayCopy.get ( arrayIndex ) ; }
Source:
public boolean setPnoScan ( boolean enable ) { java.lang.String cmd = ( enable ) ? "SET pno 1" : "SET pno 0" ; return doBooleanCommand ( cmd ) ; }

Target:
public boolean stopFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.addRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-ADD 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }
Source:
private void handleFailedIpConfiguration ( ) { loge ( "IP configuration failed" ) ; mWifiInfo.setInetAddress ( null ) ; if ( ( ++ ( mReconnectCount ) ) > ( getMaxDhcpRetries ( ) ) ) { loge ( ( ( ( "Failed " + ( mReconnectCount ) ) + " times, Disabling " ) + ( mLastNetworkId ) ) ) ; android.net.wifi.WifiConfigStore.disableNetwork ( mLastNetworkId , WifiConfiguration.DISABLED_DHCP_FAILURE ) ; mReconnectCount = 0 ; } android.net.wifi.WifiNative.disconnectCommand ( ) ; android.net.wifi.WifiNative.reconnectCommand ( ) ; }

Target:
private void handleFailedIpConfiguration ( ) { loge ( "IP configuration failed" ) ; mWifiInfo.setInetAddress ( null ) ; mWifiInfo.setMeteredHint ( false ) ; int maxRetries = getMaxDhcpRetries ( ) ; if ( ( maxRetries > 0 ) && ( ( ++ ( mReconnectCount ) ) > maxRetries ) ) { loge ( ( ( ( "Failed " + ( mReconnectCount ) ) + " times, Disabling " ) + ( mLastNetworkId ) ) ) ; mWifiConfigStore.disableNetwork ( mLastNetworkId , WifiConfiguration.DISABLED_DHCP_FAILURE ) ; mReconnectCount = 0 ; } mWifiNative.disconnect ( ) ; mWifiNative.reconnect ( ) ; }
Source:
public static native boolean setCurrentTimeMillis ( long millis ) ;

Target:
public static boolean setCurrentTimeMillis ( long millis ) { android.os.IBinder b = android.os.ServiceManager.getService ( Context.ALARM_SERVICE ) ; android.app.IAlarmManager mgr = IAlarmManager.Stub.asInterface ( b ) ; if ( mgr == null ) { return false ; } try { return mgr.setTime ( millis ) ; } catch ( android.os.RemoteException e ) { android.util.Slog.e ( android.os.SystemClock.TAG , "Unable to set RTC" , e ) ; } catch ( java.lang.SecurityException e ) { android.util.Slog.e ( android.os.SystemClock.TAG , "Unable to set RTC" , e ) ; } return false ; }
Source:
public boolean hasSideEffect ( ) { com.android.jack.dx.rop.code.Rop opcode = getOpcode ( ) ; if ( ( opcode.getBranchingness ( ) ) != ( com.android.jack.dx.rop.code.Rop.BRANCH_NONE ) ) { return true ; } boolean hasLocalSideEffect = ( com.android.jack.dx.ssa.Optimizer.getPreserveLocals ( ) ) && ( ( getLocalAssignment ( ) ) != null ) ; switch ( opcode.getOpcode ( ) ) { case com.android.jack.dx.rop.code.RegOps.MOVE_RESULT : case com.android.jack.dx.rop.code.RegOps.MOVE : case com.android.jack.dx.rop.code.RegOps.CONST : return hasLocalSideEffect ; default : return true ; } }

Target:
public boolean hasSideEffect ( ) { com.android.jack.dx.rop.code.Rop opcode = getOpcode ( ) ; if ( ( opcode.getBranchingness ( ) ) != ( com.android.jack.dx.rop.code.Rop.BRANCH_NONE ) ) { return true ; } boolean hasLocalSideEffect = ( com.android.jack.dx.ssa.Optimizer.getPreserveLocals ( ) ) && ( ( getLocalAssignment ( ) ) != null ) ; switch ( opcode.getOpcode ( ) ) { case com.android.jack.dx.rop.code.RegOps.MOVE_RESULT : case com.android.jack.dx.rop.code.RegOps.MOVE : case com.android.jack.dx.rop.code.RegOps.CONST : case com.android.jack.dx.rop.code.RegOps.XOR : return hasLocalSideEffect ; default : return true ; } }
Source:
private static java.security.interfaces.RSAPrivateKey getNonCRTKey ( java.security.Provider p ) throws java.lang.Exception { java.security.KeyFactory gen = java.security.KeyFactory.getInstance ( "RSA" , p ) ; return ( ( java.security.interfaces.RSAPrivateKey ) ( gen.generatePrivate ( new java.security.spec.RSAPrivateKeySpec ( tests.security.interfaces.RSAPrivateKeyTest.SIMPLE_N , tests.security.interfaces.RSAPrivateKeyTest.SIMPLE_D ) ) ) ) ; }

Target:
public void test_getPrivateExponent ( ) throws java.lang.Exception { java.security.KeyFactory gen = java.security.KeyFactory.getInstance ( "RSA" ) ; final java.math.BigInteger n = java.math.BigInteger.valueOf ( 3233 ) ; final java.math.BigInteger d = java.math.BigInteger.valueOf ( 2753 ) ; java.security.interfaces.RSAPrivateKey key = ( ( java.security.interfaces.RSAPrivateKey ) ( gen.generatePrivate ( new java.security.spec.RSAPrivateKeySpec ( n , d ) ) ) ) ; assertEquals ( "invalid private exponent" , d , key.getPrivateExponent ( ) ) ; }
Source:
public void testBasicSourceProviders ( ) throws java.lang.Exception { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( "basic" ) ; com.android.builder.model.AndroidProject model = projectData.model ; java.io.File projectDir = projectData.projectDir ; com.android.build.gradle.model.AndroidProjectTest.testDefaultSourceSets ( model , projectDir ) ; for ( com.android.builder.model.Variant variant : model.getVariants ( ) ) { com.android.builder.model.AndroidArtifact artifact = variant.getMainArtifact ( ) ; assertNull ( artifact.getVariantSourceProvider ( ) ) ; assertNull ( artifact.getMultiFlavorSourceProvider ( ) ) ; } }

Target:
public void testBasicSourceProviders ( ) throws java.lang.Exception { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( com.android.build.gradle.model.AndroidProjectTest.FOLDER_TEST_REGULAR , "basic" ) ; com.android.builder.model.AndroidProject model = projectData.model ; java.io.File projectDir = projectData.projectDir ; com.android.build.gradle.model.AndroidProjectTest.testDefaultSourceSets ( model , projectDir ) ; for ( com.android.builder.model.Variant variant : model.getVariants ( ) ) { com.android.builder.model.AndroidArtifact artifact = variant.getMainArtifact ( ) ; assertNull ( artifact.getVariantSourceProvider ( ) ) ; assertNull ( artifact.getMultiFlavorSourceProvider ( ) ) ; } }
Source:
public boolean performAccessibilityAction ( final int action , final android.os.Bundle arguments ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return performAccessibilityAction ( action , arguments ) ; } } ) ; return ret ; } if ( mAwContents.supportsAccessibilityAction ( action ) ) { return mAwContents.performAccessibilityAction ( action , arguments ) ; } return mWebViewPrivate.super_performAccessibilityAction ( action , arguments ) ; }

Target:
public void setOverScrollMode ( final int mode ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setOverScrollMode ( mode ) ; } } ) ; return ; } mAwContents.setOverScrollMode ( mode ) ; }
Source:
private void removePreviousDigitIfPossible ( ) { final int currentPosition = mDigits.getSelectionStart ( ) ; if ( currentPosition > 0 ) { mDigits.setSelection ( currentPosition ) ; mDigits.getText ( ) . delete ( ( currentPosition - 1 ) , currentPosition ) ; } }

Target:
private void updateTtsSpans ( ) { for ( java.lang.Object o : mDigits.getText ( ) . getSpans ( 0 , mDigits.getText ( ) . length ( ) , android.text.style.TtsSpan.class ) ) { mDigits.getText ( ) . removeSpan ( o ) ; } android.telephony.PhoneNumberUtils.ttsSpanAsPhoneNumber ( mDigits.getText ( ) , 0 , mDigits.getText ( ) . length ( ) ) ; }
Source:
public com.google.gct.testing.GoogleCloudTestingConfigurationImpl copy ( java.lang.String prefix ) { com.google.gct.testing.GoogleCloudTestingConfigurationImpl newConfiguration = ( prefix == null ) ? new com.google.gct.testing.GoogleCloudTestingConfigurationImpl ( id , name , icon , facet ) : new com.google.gct.testing.GoogleCloudTestingConfigurationImpl ( ( prefix + ( name ) ) , icon , facet ) ; newConfiguration.deviceDimension.enableAll ( deviceDimension.getEnabledTypes ( ) ) ; newConfiguration.apiDimension.enableAll ( apiDimension.getEnabledTypes ( ) ) ; newConfiguration.languageDimension.enableAll ( languageDimension.getEnabledTypes ( ) ) ; newConfiguration.orientationDimension.enableAll ( orientationDimension.getEnabledTypes ( ) ) ; return newConfiguration ; }

Target:
public com.google.gct.testing.CloudTestConfigurationImpl copy ( java.lang.String prefix ) { com.google.gct.testing.CloudTestConfigurationImpl newConfiguration = ( prefix == null ) ? new com.google.gct.testing.CloudTestConfigurationImpl ( id , name , icon , facet ) : new com.google.gct.testing.CloudTestConfigurationImpl ( ( prefix + ( name ) ) , icon , facet ) ; newConfiguration.deviceDimension.enableAll ( deviceDimension.getEnabledTypes ( ) ) ; newConfiguration.apiDimension.enableAll ( apiDimension.getEnabledTypes ( ) ) ; newConfiguration.languageDimension.enableAll ( languageDimension.getEnabledTypes ( ) ) ; newConfiguration.orientationDimension.enableAll ( orientationDimension.getEnabledTypes ( ) ) ; return newConfiguration ; }